File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
app/code/Meta/BusinessExtension Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -1077,21 +1077,24 @@ public function getGraphApiVersion(): string
1077
1077
* @param string $customToken
1078
1078
* @param string $accessToken
1079
1079
* @param string $seller_platform_type
1080
+ * @param string $extensionVersion
1080
1081
* @throws GuzzleException
1081
1082
*/
1082
1083
public function repairCommercePartnerIntegration (
1083
1084
$ externalBusinessId ,
1084
1085
$ shopDomain ,
1085
1086
$ customToken ,
1086
1087
$ accessToken ,
1087
- $ seller_platform_type
1088
+ $ seller_platform_type ,
1089
+ $ extensionVersion
1088
1090
) {
1089
1091
$ request = [
1090
1092
'access_token ' => $ accessToken ,
1091
1093
'fbe_external_business_id ' => $ externalBusinessId ,
1092
1094
'custom_token ' => $ customToken ,
1093
1095
'shop_domain ' => $ shopDomain ,
1094
- 'commerce_partner_seller_platform_type ' => $ seller_platform_type
1096
+ 'commerce_partner_seller_platform_type ' => $ seller_platform_type ,
1097
+ 'extension_version ' => $ extensionVersion
1095
1098
];
1096
1099
$ response = $ this ->callApi ('POST ' , "commerce_partner_integrations_repair " , $ request );
1097
1100
return json_decode ($ response ->getBody ()->__toString (), true );
Original file line number Diff line number Diff line change @@ -342,13 +342,15 @@ public function repairCommercePartnerIntegration($storeId): bool
342
342
$ customToken = $ this ->apiKeyService ->getCustomApiKey ();
343
343
$ domain = $ this ->storeManager ->getStore ($ storeId )->getBaseUrl ();
344
344
$ seller_platform_type = $ this ->adobeConfig ->getCommercePartnerSellerPlatformType ();
345
+ $ extensionVersion = $ this ->systemConfig ->getModuleVersion ();
345
346
346
347
$ response = $ this ->graphApiAdapter ->repairCommercePartnerIntegration (
347
348
$ externalBusinessId ,
348
349
$ domain ,
349
350
$ customToken ,
350
351
$ accessToken ,
351
- $ seller_platform_type
352
+ $ seller_platform_type ,
353
+ $ extensionVersion
352
354
);
353
355
if ($ response ['success ' ] === true ) {
354
356
$ integrationId = $ response ['id ' ];
You can’t perform that action at this time.
0 commit comments