@flowio/api-internal-sdk 0.0.155 → 0.0.156
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/api-internal.js +23 -123
- package/dist/esm/api-internal.js +20 -120
- package/dist/types/api-internal.d.ts +11 -58
- package/package.json +2 -2
package/dist/cjs/api-internal.js
CHANGED
|
@@ -49,9 +49,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
49
49
|
return result;
|
|
50
50
|
};
|
|
51
51
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
52
|
-
exports.
|
|
53
|
-
exports.
|
|
54
|
-
exports.JeanDemoItemsResource = exports.ItemSalesMarginsResource = exports.ItemRestrictionsResource = exports.ItemHarmonizationsResource = exports.ItemClassificationSummariesResource = exports.ItemClassificationsResource = exports.TrackingsResource = exports.LabelTrackingSummariesResource = exports.ChannelTokensResource = exports.StripeEventsResource = exports.StripeDisputeEventsResource = exports.ShopifyLocalizedVariantsResource = exports.ShopifyCartConversionsResource = exports.ShopifyCartsResource = exports.KnowYourBusinessesResource = exports.ShopifyOrdersResource = exports.OrganizationSessionsResource = exports.
|
|
52
|
+
exports.ClassificationProductSummaryPagesResource = exports.ClassificationDetailsResource = exports.ClassificationActionsResource = exports.ClassificationsResource = exports.CiphersResource = exports.CheckoutSubmitOrderBundlesResource = exports.CheckoutFinalizeOrderFormsResource = exports.CheckoutContentSummariesResource = exports.CheckoutConfigurationsResource = exports.CheckoutBundlesResource = exports.ChargebacksResource = exports.ChannelOrganizationShopifyResource = exports.ChannelOrderAcceptanceDetailsResource = exports.ChannelOrderAcceptancesResource = exports.ChannelOrdersResource = exports.ChannelMembershipsResource = exports.ChannelFulfillmentsResource = exports.ChannelDebugTransactionsResource = exports.ChannelCurrencySettingsResource = exports.ChannelCurrencyPairsInternalResource = exports.ChannelBillingStatementsResource = exports.ChannelBilledTransactionPairsResource = exports.ChannelAccountsResource = exports.CenterQueryBuildersResource = exports.CenterDefaultsResource = exports.CatalogSettingsResource = exports.CarrierFilesResource = exports.CarrierAccountsResource = exports.CallRecordsResource = exports.CalculatorOrganizationSettingsResource = exports.BrowserBundlesResource = exports.BrickWebhookEventsResource = exports.BillingSandboxSetupsResource = exports.BillingOrganizationProcessingRatesResource = exports.BankPaymentStatusImportsResource = exports.BankPaymentOrdersResource = exports.BankPaymentsResource = exports.AuthorizedChargeStatusesResource = exports.AllOrganizationsMembershipsResource = exports.AlertRequeueSummariesResource = exports.AlertFailureSummariesResource = exports.AddressConfigurationSettingsResource = exports.AccountPaymentHoldsResource = exports.$Resource = exports.$HttpClient = exports.stripQuery = exports.parseHeaders = exports.parseJson = exports.isResponseJson = exports.isResponseEmpty = void 0;
|
|
53
|
+
exports.HarmonizationThresholdsResource = exports.HarmonizationItemClassificationsResource = exports.GoogleShoppingSettingsResource = exports.GlobalSearchResultsResource = exports.GiftCardProgramsResource = exports.GenerateLoadsResource = exports.FtpSettingsResource = exports.FraudReviewDecisionsResource = exports.FraudReviewsResource = exports.FraudProviderConfigurationsResource = exports.FraudPendingReviewDetailsResource = exports.FraudPendingReviewsResource = exports.FlowLabelSettingsResource = exports.FlowLabProjectsResource = exports.FlowChannelOrganizationsResource = exports.FlowBillingStatementsResource = exports.FlowAccountsResource = exports.FinancialReportingStatementsResource = exports.FinancialMerchantCategoriesResource = exports.FinanceBankPaymentsResource = exports.FinanceBankAccountsResource = exports.FeatureValuesResource = exports.FeaturesResource = exports.ExternalFulfillmentProofsResource = exports.ExplicitStatementsResource = exports.ErpVendorStatusesResource = exports.ErpPriorityVendorsResource = exports.ErpPriorityFilesResource = exports.ErpFlowVendorsResource = exports.ErpFlowFilesResource = exports.DutyInternalRatesResource = exports.DisputesResource = exports.DiscountCodesResource = exports.DeliveredDutyPreferencesResource = exports.DeliveredDutyOptionsResource = exports.DebugOrderTransactionsResource = exports.DebugOrdersResource = exports.CustomsDetailsResource = exports.CustomerSecretsResource = exports.CourthouseProductSummariesResource = exports.ContentSchemasResource = exports.ConsumerOptinActivitiesResource = exports.CompliancesResource = exports.CommercialInvoiceSummariesResource = exports.CommercialInvoiceComparisonsResource = exports.ColmItemsResource = exports.CliLogEntriesResource = exports.ClassificationTaxonomyResource = exports.ClassificationStatisticsResource = exports.ClassificationRequeueRequestsResource = void 0;
|
|
54
|
+
exports.JeanDemoItemsResource = exports.ItemSalesMarginsResource = exports.ItemRestrictionsResource = exports.ItemHarmonizationsResource = exports.ItemClassificationSummariesResource = exports.ItemClassificationsResource = exports.TrackingsResource = exports.LabelTrackingSummariesResource = exports.ChannelTokensResource = exports.StripeEventsResource = exports.StripeDisputeEventsResource = exports.ShopifyLocalizedVariantsResource = exports.ShopifyCartConversionsResource = exports.ShopifyCartsResource = exports.KnowYourBusinessesResource = exports.ShopifyOrdersResource = exports.OrganizationSessionsResource = exports.CountriesResource = exports.ServiceFeesResource = exports.RatecardsResource = exports.QueryBuildersResource = exports.SimplePermissionChecksResource = exports.PermissionAuditsResource = exports.AuthorizationsResource = exports.MembershipsResource = exports.OnboardingStatesResource = exports.OrderManagementEventsResource = exports.UltimateBeneficiaryOwnersResource = exports.ShipmentNotificationsResource = exports.ReceiptNotificationsResource = exports.WebhookEventsResource = exports.PaypalDisputeEventsResource = exports.OrdersResource = exports.ExperiencesResource = exports.CryptoEventsResource = exports.UsersResource = exports.CheckoutReferencesResource = exports.ChannelCurrenciesResource = exports.ChannelsResource = exports.ItemsResource = exports.InvoiceWebhookResponsesResource = exports.NotificationRequestsResource = exports.AdyenDisputeEventsResource = exports.InvariantsResource = exports.InternalPaymentRequestVerificationsResource = exports.InternalPaymentRequestsResource = exports.InternalHarmonizationStatisticsResource = exports.InternalDebugTransactionsResource = exports.Hs6Resource = exports.HarmonizationUnclassifiedStatisticsResource = void 0;
|
|
55
55
|
exports.OrganizationBillingStatementsResource = exports.OrganizationAccountsResource = exports.OrderRevenueTimelineChartsResource = exports.OrderRevenueRegionChartsResource = exports.OrderPaymentAuthorizationsResource = exports.OrderDetailsResource = exports.OrderCombinedShipmentsResource = exports.OrderCancellationsResource = exports.OrderAddressValidationsResource = exports.OrderActionabilitiesResource = exports.OptinPromptCopiesResource = exports.OptinPromptsResource = exports.OptinAttributesResource = exports.OnboardingOrganizationsResource = exports.OnboardingAuditSnapshotsResource = exports.OnboardingAuditReportsResource = exports.NegativeDebitMetricsResource = exports.MerchantOfRecordEntitySettingsResource = exports.MerchantHubOverridesResource = exports.MerchantApplicationSummariesResource = exports.MarketsOrderSummariesResource = exports.MarketsOrdersResource = exports.MarketingGatewayLocalizedItemsResource = exports.MarketingGatewayGoogleConnectionsResource = exports.MarketingGatewayFeedSourcesResource = exports.MarketingGatewayFeedFormsResource = exports.MarketingGatewayFeedsResource = exports.MarketingGatewayFacebookConnectionDeauthsResource = exports.MarketingGatewayFacebookConnectionAccessTokenSummariesResource = exports.MarketingGatewayFacebookConnectionsResource = exports.MarketingGatewayFacebookBusinessesResource = exports.MarketingGatewayChannelSourceSummariesResource = exports.MarketingGatewayChannelsResource = exports.ManualReviewRulesResource = exports.LoyaltyProgramsResource = exports.LostChargebacksResource = exports.LogisticsPayoutRequestsResource = exports.LogisticsCapabilitiesResource = exports.LocalizedItemsExportSettingsResource = exports.LocalizedContentsResource = exports.LocalizationsResource = exports.LocalizableContentsResource = exports.LiabilityRemittancePlansResource = exports.LevyRateSummariesResource = exports.LabelTaxonomyResource = exports.LabelRequestResultsResource = exports.LabelGenerationSettingsResource = exports.LabelCreationJobsResource = exports.LabProjectSettingsResource = exports.KeysResource = void 0;
|
|
56
56
|
exports.SearchProviderExportsResource = exports.ScreensResource = exports.SandboxSetupsResource = exports.RoutingEntitiesResource = exports.RestrictionRuleOverridesResource = exports.RestrictionRulesResource = exports.RestrictionProductSummariesResource = exports.RestrictionProductsResource = exports.RestrictionOrganizationDecisionSummariesResource = exports.RestrictionOrganizationsResource = exports.RestrictionItemsResource = exports.RestrictionFiltersResource = exports.RestrictionCategoriesResource = exports.RescreenRestrictionsProductsResource = exports.ReportSummaryResource = exports.ReportsResource = exports.ReboundConfigurationsResource = exports.RatesNamesSummariesResource = exports.RatecardStandardConfigurationsResource = exports.RatecardServiceFeesOverridesResource = exports.RateLevelRatecardsResource = exports.RateLevelOrganizationsResource = exports.RateLevelsResource = exports.RateAndRuleLookupsResource = exports.PublicHubsResource = exports.ProductReviewHistoriesResource = exports.ProductClassificationsResource = exports.ProcessorMerchantsResource = exports.ProcessorAccountsResource = exports.PlatformFeeChangesResource = exports.PendingBankPaymentsResource = exports.PaymentRedirectsResource = exports.PaymentOrganizationSettingsResource = exports.PaymentMethodDetailsResource = exports.PassphrasesResource = exports.PartnerOrganizationSettingsResource = exports.PartnerOrganizationAuthorizationsResource = exports.PartnerMembershipsResource = exports.PartnerAuthorizationsResource = exports.PartnersResource = exports.OrganizationsAuditCheckReportsResource = exports.OrganizationSettingsResource = exports.OrganizationRestrictionStatusNotesResource = exports.OrganizationRestrictionStatusesResource = exports.OrganizationPaymentSettingsResource = exports.OrganizationOnboardingStateAuditResultsResource = exports.OrganizationMembershipCopiesResource = exports.OrganizationDebugTransactionsResource = exports.OrganizationDeactivationsResource = exports.OrganizationCurrencySettingsResource = void 0;
|
|
57
57
|
exports.createClient = exports.WebhooksResource = exports.ViesResultsResource = exports.V1CheckoutsResource = exports.UserStatusRulesResource = exports.UserProductListSettingsResource = exports.UserProductDetailSettingsResource = exports.UserOneTimeTokensResource = exports.UnclassifiedProductsSummariesResource = exports.UnclassifiedProductsPurgeRequestsResource = exports.TribesResource = exports.TransactionAdjustmentsResource = exports.TransactionsResource = exports.TrackingSubscriptionsResource = exports.TrackingDebugLabelsResource = exports.TestsResource = exports.TechOnboardingDescriptionsResource = exports.TaxCalculationFormsResource = exports.TasksResource = exports.TariffEligibilitiesResource = exports.StoreConnectionsResource = exports.SpotRatesResource = exports.SnoozesResource = exports.SmpTaxCalculationFormsResource = exports.ShopifyWebhookEventsResource = exports.ShopifyStoreDetailsResource = exports.ShopifyPromotionsResource = exports.ShopifyPartnerWebhooksResource = exports.ShopifyOrganizationSettingsResource = exports.ShopifyOrderFulfillmentsSnapshotsResource = exports.ShopifyOrderDetailsResource = exports.ShopifyMonitoringOrderMonitorReviewsResource = exports.ShopifyMonitoringOrderMonitorsResource = exports.ShopifyMarketsWebhookRegistrationsResource = exports.ShopifyMarketsSyncsResource = exports.ShopifyMarketsShopSummariesResource = exports.ShopifyMarketsShopsResource = exports.ShopifyMarketsQueuedRecordsResource = exports.ShopifyMarketsOrderVersionWithShopIdsResource = exports.ShopifyGrantsChecksResource = exports.ShopifyGiftCardReversalsResource = exports.ShopifyGiftCardRedemptionsResource = exports.ShopifyGiftCardBalancesResource = exports.ShopsResource = exports.ShippingLanesResource = exports.SessionRolloutsResource = exports.SessionOrderDataResource = exports.SessionCountriesResource = void 0;
|
|
@@ -465,9 +465,6 @@ var BrowserBundlesResource = /** @class */ (function (_super) {
|
|
|
465
465
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/bundles/browser"),
|
|
466
466
|
headers: params.headers,
|
|
467
467
|
method: 'GET',
|
|
468
|
-
query: {
|
|
469
|
-
context: params.context,
|
|
470
|
-
},
|
|
471
468
|
});
|
|
472
469
|
};
|
|
473
470
|
BrowserBundlesResource.prototype.post = function (params) {
|
|
@@ -476,9 +473,6 @@ var BrowserBundlesResource = /** @class */ (function (_super) {
|
|
|
476
473
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/bundles/browser"),
|
|
477
474
|
headers: params.headers,
|
|
478
475
|
method: 'POST',
|
|
479
|
-
query: {
|
|
480
|
-
context: params.context,
|
|
481
|
-
},
|
|
482
476
|
});
|
|
483
477
|
};
|
|
484
478
|
return BrowserBundlesResource;
|
|
@@ -896,6 +890,25 @@ var ChannelBillingStatementsResource = /** @class */ (function (_super) {
|
|
|
896
890
|
return ChannelBillingStatementsResource;
|
|
897
891
|
}($Resource));
|
|
898
892
|
exports.ChannelBillingStatementsResource = ChannelBillingStatementsResource;
|
|
893
|
+
var ChannelCurrencyPairsInternalResource = /** @class */ (function (_super) {
|
|
894
|
+
__extends(ChannelCurrencyPairsInternalResource, _super);
|
|
895
|
+
function ChannelCurrencyPairsInternalResource() {
|
|
896
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
897
|
+
}
|
|
898
|
+
ChannelCurrencyPairsInternalResource.prototype.get = function (params) {
|
|
899
|
+
return this.client.request({
|
|
900
|
+
endpoint: "/internal/channel/".concat(encodeURIComponent(params.channel_id), "/currency/pair"),
|
|
901
|
+
headers: params.headers,
|
|
902
|
+
method: 'GET',
|
|
903
|
+
query: {
|
|
904
|
+
base: params.base,
|
|
905
|
+
target: params.target,
|
|
906
|
+
},
|
|
907
|
+
});
|
|
908
|
+
};
|
|
909
|
+
return ChannelCurrencyPairsInternalResource;
|
|
910
|
+
}($Resource));
|
|
911
|
+
exports.ChannelCurrencyPairsInternalResource = ChannelCurrencyPairsInternalResource;
|
|
899
912
|
var ChannelCurrencySettingsResource = /** @class */ (function (_super) {
|
|
900
913
|
__extends(ChannelCurrencySettingsResource, _super);
|
|
901
914
|
function ChannelCurrencySettingsResource() {
|
|
@@ -1862,9 +1875,6 @@ var DeliveredDutyOptionsResource = /** @class */ (function (_super) {
|
|
|
1862
1875
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/experiences/").concat(encodeURIComponent(params.key), "/preference/display/shipping/duty/options/v2"),
|
|
1863
1876
|
headers: params.headers,
|
|
1864
1877
|
method: 'GET',
|
|
1865
|
-
query: {
|
|
1866
|
-
context: params.context,
|
|
1867
|
-
},
|
|
1868
1878
|
});
|
|
1869
1879
|
};
|
|
1870
1880
|
return DeliveredDutyOptionsResource;
|
|
@@ -1905,9 +1915,6 @@ var DiscountCodesResource = /** @class */ (function (_super) {
|
|
|
1905
1915
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/orders/").concat(encodeURIComponent(params.number), "/discount/codes"),
|
|
1906
1916
|
headers: params.headers,
|
|
1907
1917
|
method: 'PUT',
|
|
1908
|
-
query: {
|
|
1909
|
-
context: params.context,
|
|
1910
|
-
},
|
|
1911
1918
|
});
|
|
1912
1919
|
};
|
|
1913
1920
|
/*Removes the discount code from the order*/
|
|
@@ -1916,9 +1923,6 @@ var DiscountCodesResource = /** @class */ (function (_super) {
|
|
|
1916
1923
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/orders/").concat(encodeURIComponent(params.number), "/discount/codes/").concat(encodeURIComponent(params.code)),
|
|
1917
1924
|
headers: params.headers,
|
|
1918
1925
|
method: 'DELETE',
|
|
1919
|
-
query: {
|
|
1920
|
-
context: params.context,
|
|
1921
|
-
},
|
|
1922
1926
|
});
|
|
1923
1927
|
};
|
|
1924
1928
|
return DiscountCodesResource;
|
|
@@ -2969,9 +2973,6 @@ var GiftCardProgramsResource = /** @class */ (function (_super) {
|
|
|
2969
2973
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/orders/").concat(encodeURIComponent(params.number), "/gift_cards"),
|
|
2970
2974
|
headers: params.headers,
|
|
2971
2975
|
method: 'POST',
|
|
2972
|
-
query: {
|
|
2973
|
-
context: params.context,
|
|
2974
|
-
},
|
|
2975
2976
|
});
|
|
2976
2977
|
};
|
|
2977
2978
|
GiftCardProgramsResource.prototype.deleteById = function (params) {
|
|
@@ -2979,9 +2980,6 @@ var GiftCardProgramsResource = /** @class */ (function (_super) {
|
|
|
2979
2980
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/orders/").concat(encodeURIComponent(params.number), "/gift_cards/").concat(encodeURIComponent(params.id)),
|
|
2980
2981
|
headers: params.headers,
|
|
2981
2982
|
method: 'DELETE',
|
|
2982
|
-
query: {
|
|
2983
|
-
context: params.context,
|
|
2984
|
-
},
|
|
2985
2983
|
});
|
|
2986
2984
|
};
|
|
2987
2985
|
return GiftCardProgramsResource;
|
|
@@ -3537,7 +3535,6 @@ var ExperiencesResource = /** @class */ (function (_super) {
|
|
|
3537
3535
|
headers: params.headers,
|
|
3538
3536
|
method: 'POST',
|
|
3539
3537
|
query: {
|
|
3540
|
-
context: params.context,
|
|
3541
3538
|
country: params.country,
|
|
3542
3539
|
currency: params.currency,
|
|
3543
3540
|
experience: params.experience,
|
|
@@ -3560,7 +3557,6 @@ var ExperiencesResource = /** @class */ (function (_super) {
|
|
|
3560
3557
|
headers: params.headers,
|
|
3561
3558
|
method: 'POST',
|
|
3562
3559
|
query: {
|
|
3563
|
-
context: params.context,
|
|
3564
3560
|
country: params.country,
|
|
3565
3561
|
currency: params.currency,
|
|
3566
3562
|
experience: params.experience,
|
|
@@ -3582,7 +3578,6 @@ var ExperiencesResource = /** @class */ (function (_super) {
|
|
|
3582
3578
|
headers: params.headers,
|
|
3583
3579
|
method: 'GET',
|
|
3584
3580
|
query: {
|
|
3585
|
-
context: params.context,
|
|
3586
3581
|
country: params.country,
|
|
3587
3582
|
currency: params.currency,
|
|
3588
3583
|
q: params.q,
|
|
@@ -3603,7 +3598,6 @@ var OrdersResource = /** @class */ (function (_super) {
|
|
|
3603
3598
|
headers: params.headers,
|
|
3604
3599
|
method: 'GET',
|
|
3605
3600
|
query: {
|
|
3606
|
-
context: params.context,
|
|
3607
3601
|
expand: params.expand,
|
|
3608
3602
|
},
|
|
3609
3603
|
});
|
|
@@ -3614,9 +3608,6 @@ var OrdersResource = /** @class */ (function (_super) {
|
|
|
3614
3608
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/orders/").concat(encodeURIComponent(params.number), "/gift/card/redemptions"),
|
|
3615
3609
|
headers: params.headers,
|
|
3616
3610
|
method: 'POST',
|
|
3617
|
-
query: {
|
|
3618
|
-
context: params.context,
|
|
3619
|
-
},
|
|
3620
3611
|
});
|
|
3621
3612
|
};
|
|
3622
3613
|
/*Adds a gift card to the order*/
|
|
@@ -3626,9 +3617,6 @@ var OrdersResource = /** @class */ (function (_super) {
|
|
|
3626
3617
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/orders/").concat(encodeURIComponent(params.number), "/gift/cards"),
|
|
3627
3618
|
headers: params.headers,
|
|
3628
3619
|
method: 'POST',
|
|
3629
|
-
query: {
|
|
3630
|
-
context: params.context,
|
|
3631
|
-
},
|
|
3632
3620
|
});
|
|
3633
3621
|
};
|
|
3634
3622
|
/*Removes a gift card from the order*/
|
|
@@ -3637,9 +3625,6 @@ var OrdersResource = /** @class */ (function (_super) {
|
|
|
3637
3625
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/orders/").concat(encodeURIComponent(params.number), "/gift/cards/").concat(encodeURIComponent(params.id)),
|
|
3638
3626
|
headers: params.headers,
|
|
3639
3627
|
method: 'DELETE',
|
|
3640
|
-
query: {
|
|
3641
|
-
context: params.context,
|
|
3642
|
-
},
|
|
3643
3628
|
});
|
|
3644
3629
|
};
|
|
3645
3630
|
/*Authorizes any credit payments associated with this order. Call prior to authorizing any credit payments to ensure the correct order balance is used. Any credit payments that fail will be removed.*/
|
|
@@ -3648,9 +3633,6 @@ var OrdersResource = /** @class */ (function (_super) {
|
|
|
3648
3633
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/orders/").concat(encodeURIComponent(params.number), "/gift_cards/authorize"),
|
|
3649
3634
|
headers: params.headers,
|
|
3650
3635
|
method: 'POST',
|
|
3651
|
-
query: {
|
|
3652
|
-
context: params.context,
|
|
3653
|
-
},
|
|
3654
3636
|
});
|
|
3655
3637
|
};
|
|
3656
3638
|
/*Updates the email address associated with this order. Fixes typos automatically (e.g. gmail.con => gmail.com) or if not possible assigns a proxy email address to the order*/
|
|
@@ -3660,9 +3642,6 @@ var OrdersResource = /** @class */ (function (_super) {
|
|
|
3660
3642
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/orders/").concat(encodeURIComponent(params.number), "/modifications/email"),
|
|
3661
3643
|
headers: params.headers,
|
|
3662
3644
|
method: 'PUT',
|
|
3663
|
-
query: {
|
|
3664
|
-
context: params.context,
|
|
3665
|
-
},
|
|
3666
3645
|
});
|
|
3667
3646
|
};
|
|
3668
3647
|
/*Checks to see where an order can be submitted. Will not actually mark the order as submitted. Already submitted orders are given a free pass. This operation may perform some mutation if mutation is the only way to perform the check idempotently (e.g. checks to see if gift cards can be charged may actually charge the card).*/
|
|
@@ -3671,9 +3650,6 @@ var OrdersResource = /** @class */ (function (_super) {
|
|
|
3671
3650
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/orders/").concat(encodeURIComponent(params.number), "/submissions/check"),
|
|
3672
3651
|
headers: params.headers,
|
|
3673
3652
|
method: 'PUT',
|
|
3674
|
-
query: {
|
|
3675
|
-
context: params.context,
|
|
3676
|
-
},
|
|
3677
3653
|
});
|
|
3678
3654
|
};
|
|
3679
3655
|
return OrdersResource;
|
|
@@ -4013,36 +3989,6 @@ var CountriesResource = /** @class */ (function (_super) {
|
|
|
4013
3989
|
return CountriesResource;
|
|
4014
3990
|
}($Resource));
|
|
4015
3991
|
exports.CountriesResource = CountriesResource;
|
|
4016
|
-
var ContextsResource = /** @class */ (function (_super) {
|
|
4017
|
-
__extends(ContextsResource, _super);
|
|
4018
|
-
function ContextsResource() {
|
|
4019
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
4020
|
-
}
|
|
4021
|
-
ContextsResource.prototype.post = function (params) {
|
|
4022
|
-
return this.client.request({
|
|
4023
|
-
body: params.body,
|
|
4024
|
-
endpoint: '/contexts',
|
|
4025
|
-
headers: params.headers,
|
|
4026
|
-
method: 'POST',
|
|
4027
|
-
});
|
|
4028
|
-
};
|
|
4029
|
-
ContextsResource.prototype.getById = function (params) {
|
|
4030
|
-
return this.client.request({
|
|
4031
|
-
endpoint: "/contexts/".concat(encodeURIComponent(params.id)),
|
|
4032
|
-
headers: params.headers,
|
|
4033
|
-
method: 'GET',
|
|
4034
|
-
});
|
|
4035
|
-
};
|
|
4036
|
-
ContextsResource.prototype.deleteById = function (params) {
|
|
4037
|
-
return this.client.request({
|
|
4038
|
-
endpoint: "/contexts/".concat(encodeURIComponent(params.id)),
|
|
4039
|
-
headers: params.headers,
|
|
4040
|
-
method: 'DELETE',
|
|
4041
|
-
});
|
|
4042
|
-
};
|
|
4043
|
-
return ContextsResource;
|
|
4044
|
-
}($Resource));
|
|
4045
|
-
exports.ContextsResource = ContextsResource;
|
|
4046
3992
|
var OrganizationSessionsResource = /** @class */ (function (_super) {
|
|
4047
3993
|
__extends(OrganizationSessionsResource, _super);
|
|
4048
3994
|
function OrganizationSessionsResource() {
|
|
@@ -4054,9 +4000,6 @@ var OrganizationSessionsResource = /** @class */ (function (_super) {
|
|
|
4054
4000
|
endpoint: "/sfcc/sessions/organizations/".concat(encodeURIComponent(params.organization)),
|
|
4055
4001
|
headers: params.headers,
|
|
4056
4002
|
method: 'POST',
|
|
4057
|
-
query: {
|
|
4058
|
-
context: params.context,
|
|
4059
|
-
},
|
|
4060
4003
|
});
|
|
4061
4004
|
};
|
|
4062
4005
|
OrganizationSessionsResource.prototype.getBySession = function (params) {
|
|
@@ -4072,9 +4015,6 @@ var OrganizationSessionsResource = /** @class */ (function (_super) {
|
|
|
4072
4015
|
endpoint: "/sfcc/sessions/".concat(encodeURIComponent(params.session)),
|
|
4073
4016
|
headers: params.headers,
|
|
4074
4017
|
method: 'PUT',
|
|
4075
|
-
query: {
|
|
4076
|
-
context: params.context,
|
|
4077
|
-
},
|
|
4078
4018
|
});
|
|
4079
4019
|
};
|
|
4080
4020
|
OrganizationSessionsResource.prototype.deleteBySession = function (params) {
|
|
@@ -4090,9 +4030,6 @@ var OrganizationSessionsResource = /** @class */ (function (_super) {
|
|
|
4090
4030
|
endpoint: "/sfcc/sessions/".concat(encodeURIComponent(params.session), "/organizations/").concat(encodeURIComponent(params.organization)),
|
|
4091
4031
|
headers: params.headers,
|
|
4092
4032
|
method: 'PUT',
|
|
4093
|
-
query: {
|
|
4094
|
-
context: params.context,
|
|
4095
|
-
},
|
|
4096
4033
|
});
|
|
4097
4034
|
};
|
|
4098
4035
|
/*Resets the session based on the provided geo parameters.*/
|
|
@@ -4102,9 +4039,6 @@ var OrganizationSessionsResource = /** @class */ (function (_super) {
|
|
|
4102
4039
|
endpoint: "/sfcc/sessions/".concat(encodeURIComponent(params.session), "/reset"),
|
|
4103
4040
|
headers: params.headers,
|
|
4104
4041
|
method: 'PUT',
|
|
4105
|
-
query: {
|
|
4106
|
-
context: params.context,
|
|
4107
|
-
},
|
|
4108
4042
|
});
|
|
4109
4043
|
};
|
|
4110
4044
|
return OrganizationSessionsResource;
|
|
@@ -4160,7 +4094,6 @@ var ShopifyCartsResource = /** @class */ (function (_super) {
|
|
|
4160
4094
|
headers: params.headers,
|
|
4161
4095
|
method: 'PUT',
|
|
4162
4096
|
query: {
|
|
4163
|
-
context: params.context,
|
|
4164
4097
|
expand: params.expand,
|
|
4165
4098
|
},
|
|
4166
4099
|
});
|
|
@@ -4172,7 +4105,6 @@ var ShopifyCartsResource = /** @class */ (function (_super) {
|
|
|
4172
4105
|
headers: params.headers,
|
|
4173
4106
|
method: 'DELETE',
|
|
4174
4107
|
query: {
|
|
4175
|
-
context: params.context,
|
|
4176
4108
|
expand: params.expand,
|
|
4177
4109
|
},
|
|
4178
4110
|
});
|
|
@@ -4184,9 +4116,6 @@ var ShopifyCartsResource = /** @class */ (function (_super) {
|
|
|
4184
4116
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/shopify/carts/flow/order"),
|
|
4185
4117
|
headers: params.headers,
|
|
4186
4118
|
method: 'POST',
|
|
4187
|
-
query: {
|
|
4188
|
-
context: params.context,
|
|
4189
|
-
},
|
|
4190
4119
|
});
|
|
4191
4120
|
};
|
|
4192
4121
|
return ShopifyCartsResource;
|
|
@@ -4204,9 +4133,6 @@ var ShopifyCartConversionsResource = /** @class */ (function (_super) {
|
|
|
4204
4133
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/experiences/").concat(encodeURIComponent(params.experience_key), "/shopify/cart/checkouts"),
|
|
4205
4134
|
headers: params.headers,
|
|
4206
4135
|
method: 'POST',
|
|
4207
|
-
query: {
|
|
4208
|
-
context: params.context,
|
|
4209
|
-
},
|
|
4210
4136
|
});
|
|
4211
4137
|
};
|
|
4212
4138
|
return ShopifyCartConversionsResource;
|
|
@@ -4223,7 +4149,6 @@ var ShopifyLocalizedVariantsResource = /** @class */ (function (_super) {
|
|
|
4223
4149
|
headers: params.headers,
|
|
4224
4150
|
method: 'GET',
|
|
4225
4151
|
query: {
|
|
4226
|
-
context: params.context,
|
|
4227
4152
|
country: params.country,
|
|
4228
4153
|
currency: params.currency,
|
|
4229
4154
|
handle: params.handle,
|
|
@@ -4980,9 +4905,6 @@ var LoyaltyProgramsResource = /** @class */ (function (_super) {
|
|
|
4980
4905
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/loyalty/").concat(encodeURIComponent(params.number)),
|
|
4981
4906
|
headers: params.headers,
|
|
4982
4907
|
method: 'POST',
|
|
4983
|
-
query: {
|
|
4984
|
-
context: params.context,
|
|
4985
|
-
},
|
|
4986
4908
|
});
|
|
4987
4909
|
};
|
|
4988
4910
|
LoyaltyProgramsResource.prototype.deleteById = function (params) {
|
|
@@ -4990,9 +4912,6 @@ var LoyaltyProgramsResource = /** @class */ (function (_super) {
|
|
|
4990
4912
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/loyalty/").concat(encodeURIComponent(params.number), "/").concat(encodeURIComponent(params.id)),
|
|
4991
4913
|
headers: params.headers,
|
|
4992
4914
|
method: 'DELETE',
|
|
4993
|
-
query: {
|
|
4994
|
-
context: params.context,
|
|
4995
|
-
},
|
|
4996
4915
|
});
|
|
4997
4916
|
};
|
|
4998
4917
|
return LoyaltyProgramsResource;
|
|
@@ -8332,9 +8251,6 @@ var ShopifyOrderDetailsResource = /** @class */ (function (_super) {
|
|
|
8332
8251
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/shopify/orders/checks/inventory"),
|
|
8333
8252
|
headers: params.headers,
|
|
8334
8253
|
method: 'POST',
|
|
8335
|
-
query: {
|
|
8336
|
-
context: params.context,
|
|
8337
|
-
},
|
|
8338
8254
|
});
|
|
8339
8255
|
};
|
|
8340
8256
|
/*Endpoint to inject a submitted order directly to shopify, bypassing event processing*/
|
|
@@ -8344,9 +8260,6 @@ var ShopifyOrderDetailsResource = /** @class */ (function (_super) {
|
|
|
8344
8260
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/shopify/orders/ensure"),
|
|
8345
8261
|
headers: params.headers,
|
|
8346
8262
|
method: 'POST',
|
|
8347
|
-
query: {
|
|
8348
|
-
context: params.context,
|
|
8349
|
-
},
|
|
8350
8263
|
});
|
|
8351
8264
|
};
|
|
8352
8265
|
/*Check inventory for order items, ensuring expected quantities are in stock.*/
|
|
@@ -8355,9 +8268,6 @@ var ShopifyOrderDetailsResource = /** @class */ (function (_super) {
|
|
|
8355
8268
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/shopify/orders/").concat(encodeURIComponent(params.number), "/checks/inventory"),
|
|
8356
8269
|
headers: params.headers,
|
|
8357
8270
|
method: 'GET',
|
|
8358
|
-
query: {
|
|
8359
|
-
context: params.context,
|
|
8360
|
-
},
|
|
8361
8271
|
});
|
|
8362
8272
|
};
|
|
8363
8273
|
/*Based on the code, determine if a gift card or promotion is applied to the order. Attempt will be made to first validate and apply code as a gift card. If not applicable, attempt to validate and apply the code as a promotion. This endpoint achieves the same behavior as calling '/payments/gift-card' followed by /promotion.*/
|
|
@@ -8368,7 +8278,6 @@ var ShopifyOrderDetailsResource = /** @class */ (function (_super) {
|
|
|
8368
8278
|
headers: params.headers,
|
|
8369
8279
|
method: 'POST',
|
|
8370
8280
|
query: {
|
|
8371
|
-
context: params.context,
|
|
8372
8281
|
expand: params.expand,
|
|
8373
8282
|
},
|
|
8374
8283
|
});
|
|
@@ -8400,7 +8309,6 @@ var ShopifyOrderDetailsResource = /** @class */ (function (_super) {
|
|
|
8400
8309
|
headers: params.headers,
|
|
8401
8310
|
method: 'PUT',
|
|
8402
8311
|
query: {
|
|
8403
|
-
context: params.context,
|
|
8404
8312
|
expand: params.expand,
|
|
8405
8313
|
},
|
|
8406
8314
|
});
|
|
@@ -8412,7 +8320,6 @@ var ShopifyOrderDetailsResource = /** @class */ (function (_super) {
|
|
|
8412
8320
|
headers: params.headers,
|
|
8413
8321
|
method: 'DELETE',
|
|
8414
8322
|
query: {
|
|
8415
|
-
context: params.context,
|
|
8416
8323
|
expand: params.expand,
|
|
8417
8324
|
},
|
|
8418
8325
|
});
|
|
@@ -8424,7 +8331,6 @@ var ShopifyOrderDetailsResource = /** @class */ (function (_super) {
|
|
|
8424
8331
|
headers: params.headers,
|
|
8425
8332
|
method: 'DELETE',
|
|
8426
8333
|
query: {
|
|
8427
|
-
context: params.context,
|
|
8428
8334
|
expand: params.expand,
|
|
8429
8335
|
},
|
|
8430
8336
|
});
|
|
@@ -8597,9 +8503,6 @@ var ShopifyWebhookEventsResource = /** @class */ (function (_super) {
|
|
|
8597
8503
|
endpoint: "/shopify/webhook/events/shops/".concat(encodeURIComponent(params.shopify_shop_id), "/").concat(encodeURIComponent(params.topic), "/").concat(encodeURIComponent(params.action)),
|
|
8598
8504
|
headers: params.headers,
|
|
8599
8505
|
method: 'POST',
|
|
8600
|
-
query: {
|
|
8601
|
-
context: params.context,
|
|
8602
|
-
},
|
|
8603
8506
|
});
|
|
8604
8507
|
};
|
|
8605
8508
|
ShopifyWebhookEventsResource.prototype.postByTopicAndAction = function (params) {
|
|
@@ -8608,9 +8511,6 @@ var ShopifyWebhookEventsResource = /** @class */ (function (_super) {
|
|
|
8608
8511
|
endpoint: "/shopify/webhook/events/".concat(encodeURIComponent(params.topic), "/").concat(encodeURIComponent(params.action)),
|
|
8609
8512
|
headers: params.headers,
|
|
8610
8513
|
method: 'POST',
|
|
8611
|
-
query: {
|
|
8612
|
-
context: params.context,
|
|
8613
|
-
},
|
|
8614
8514
|
});
|
|
8615
8515
|
};
|
|
8616
8516
|
return ShopifyWebhookEventsResource;
|
|
@@ -9294,6 +9194,7 @@ function createClient(options) {
|
|
|
9294
9194
|
channelAccounts: new ChannelAccountsResource(options),
|
|
9295
9195
|
channelBilledTransactionPairs: new ChannelBilledTransactionPairsResource(options),
|
|
9296
9196
|
channelBillingStatements: new ChannelBillingStatementsResource(options),
|
|
9197
|
+
channelCurrencyPairsInternal: new ChannelCurrencyPairsInternalResource(options),
|
|
9297
9198
|
channelCurrencySettings: new ChannelCurrencySettingsResource(options),
|
|
9298
9199
|
channelDebugTransactions: new ChannelDebugTransactionsResource(options),
|
|
9299
9200
|
channelFulfillments: new ChannelFulfillmentsResource(options),
|
|
@@ -9396,7 +9297,6 @@ function createClient(options) {
|
|
|
9396
9297
|
ratecards: new RatecardsResource(options),
|
|
9397
9298
|
serviceFees: new ServiceFeesResource(options),
|
|
9398
9299
|
countries: new CountriesResource(options),
|
|
9399
|
-
contexts: new ContextsResource(options),
|
|
9400
9300
|
organizationSessions: new OrganizationSessionsResource(options),
|
|
9401
9301
|
shopifyOrders: new ShopifyOrdersResource(options),
|
|
9402
9302
|
knowYourBusinesses: new KnowYourBusinessesResource(options),
|
package/dist/esm/api-internal.js
CHANGED
|
@@ -429,9 +429,6 @@ var BrowserBundlesResource = /** @class */ (function (_super) {
|
|
|
429
429
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/bundles/browser"),
|
|
430
430
|
headers: params.headers,
|
|
431
431
|
method: 'GET',
|
|
432
|
-
query: {
|
|
433
|
-
context: params.context,
|
|
434
|
-
},
|
|
435
432
|
});
|
|
436
433
|
};
|
|
437
434
|
BrowserBundlesResource.prototype.post = function (params) {
|
|
@@ -440,9 +437,6 @@ var BrowserBundlesResource = /** @class */ (function (_super) {
|
|
|
440
437
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/bundles/browser"),
|
|
441
438
|
headers: params.headers,
|
|
442
439
|
method: 'POST',
|
|
443
|
-
query: {
|
|
444
|
-
context: params.context,
|
|
445
|
-
},
|
|
446
440
|
});
|
|
447
441
|
};
|
|
448
442
|
return BrowserBundlesResource;
|
|
@@ -860,6 +854,25 @@ var ChannelBillingStatementsResource = /** @class */ (function (_super) {
|
|
|
860
854
|
return ChannelBillingStatementsResource;
|
|
861
855
|
}($Resource));
|
|
862
856
|
export { ChannelBillingStatementsResource };
|
|
857
|
+
var ChannelCurrencyPairsInternalResource = /** @class */ (function (_super) {
|
|
858
|
+
__extends(ChannelCurrencyPairsInternalResource, _super);
|
|
859
|
+
function ChannelCurrencyPairsInternalResource() {
|
|
860
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
861
|
+
}
|
|
862
|
+
ChannelCurrencyPairsInternalResource.prototype.get = function (params) {
|
|
863
|
+
return this.client.request({
|
|
864
|
+
endpoint: "/internal/channel/".concat(encodeURIComponent(params.channel_id), "/currency/pair"),
|
|
865
|
+
headers: params.headers,
|
|
866
|
+
method: 'GET',
|
|
867
|
+
query: {
|
|
868
|
+
base: params.base,
|
|
869
|
+
target: params.target,
|
|
870
|
+
},
|
|
871
|
+
});
|
|
872
|
+
};
|
|
873
|
+
return ChannelCurrencyPairsInternalResource;
|
|
874
|
+
}($Resource));
|
|
875
|
+
export { ChannelCurrencyPairsInternalResource };
|
|
863
876
|
var ChannelCurrencySettingsResource = /** @class */ (function (_super) {
|
|
864
877
|
__extends(ChannelCurrencySettingsResource, _super);
|
|
865
878
|
function ChannelCurrencySettingsResource() {
|
|
@@ -1826,9 +1839,6 @@ var DeliveredDutyOptionsResource = /** @class */ (function (_super) {
|
|
|
1826
1839
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/experiences/").concat(encodeURIComponent(params.key), "/preference/display/shipping/duty/options/v2"),
|
|
1827
1840
|
headers: params.headers,
|
|
1828
1841
|
method: 'GET',
|
|
1829
|
-
query: {
|
|
1830
|
-
context: params.context,
|
|
1831
|
-
},
|
|
1832
1842
|
});
|
|
1833
1843
|
};
|
|
1834
1844
|
return DeliveredDutyOptionsResource;
|
|
@@ -1869,9 +1879,6 @@ var DiscountCodesResource = /** @class */ (function (_super) {
|
|
|
1869
1879
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/orders/").concat(encodeURIComponent(params.number), "/discount/codes"),
|
|
1870
1880
|
headers: params.headers,
|
|
1871
1881
|
method: 'PUT',
|
|
1872
|
-
query: {
|
|
1873
|
-
context: params.context,
|
|
1874
|
-
},
|
|
1875
1882
|
});
|
|
1876
1883
|
};
|
|
1877
1884
|
/*Removes the discount code from the order*/
|
|
@@ -1880,9 +1887,6 @@ var DiscountCodesResource = /** @class */ (function (_super) {
|
|
|
1880
1887
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/orders/").concat(encodeURIComponent(params.number), "/discount/codes/").concat(encodeURIComponent(params.code)),
|
|
1881
1888
|
headers: params.headers,
|
|
1882
1889
|
method: 'DELETE',
|
|
1883
|
-
query: {
|
|
1884
|
-
context: params.context,
|
|
1885
|
-
},
|
|
1886
1890
|
});
|
|
1887
1891
|
};
|
|
1888
1892
|
return DiscountCodesResource;
|
|
@@ -2933,9 +2937,6 @@ var GiftCardProgramsResource = /** @class */ (function (_super) {
|
|
|
2933
2937
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/orders/").concat(encodeURIComponent(params.number), "/gift_cards"),
|
|
2934
2938
|
headers: params.headers,
|
|
2935
2939
|
method: 'POST',
|
|
2936
|
-
query: {
|
|
2937
|
-
context: params.context,
|
|
2938
|
-
},
|
|
2939
2940
|
});
|
|
2940
2941
|
};
|
|
2941
2942
|
GiftCardProgramsResource.prototype.deleteById = function (params) {
|
|
@@ -2943,9 +2944,6 @@ var GiftCardProgramsResource = /** @class */ (function (_super) {
|
|
|
2943
2944
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/orders/").concat(encodeURIComponent(params.number), "/gift_cards/").concat(encodeURIComponent(params.id)),
|
|
2944
2945
|
headers: params.headers,
|
|
2945
2946
|
method: 'DELETE',
|
|
2946
|
-
query: {
|
|
2947
|
-
context: params.context,
|
|
2948
|
-
},
|
|
2949
2947
|
});
|
|
2950
2948
|
};
|
|
2951
2949
|
return GiftCardProgramsResource;
|
|
@@ -3501,7 +3499,6 @@ var ExperiencesResource = /** @class */ (function (_super) {
|
|
|
3501
3499
|
headers: params.headers,
|
|
3502
3500
|
method: 'POST',
|
|
3503
3501
|
query: {
|
|
3504
|
-
context: params.context,
|
|
3505
3502
|
country: params.country,
|
|
3506
3503
|
currency: params.currency,
|
|
3507
3504
|
experience: params.experience,
|
|
@@ -3524,7 +3521,6 @@ var ExperiencesResource = /** @class */ (function (_super) {
|
|
|
3524
3521
|
headers: params.headers,
|
|
3525
3522
|
method: 'POST',
|
|
3526
3523
|
query: {
|
|
3527
|
-
context: params.context,
|
|
3528
3524
|
country: params.country,
|
|
3529
3525
|
currency: params.currency,
|
|
3530
3526
|
experience: params.experience,
|
|
@@ -3546,7 +3542,6 @@ var ExperiencesResource = /** @class */ (function (_super) {
|
|
|
3546
3542
|
headers: params.headers,
|
|
3547
3543
|
method: 'GET',
|
|
3548
3544
|
query: {
|
|
3549
|
-
context: params.context,
|
|
3550
3545
|
country: params.country,
|
|
3551
3546
|
currency: params.currency,
|
|
3552
3547
|
q: params.q,
|
|
@@ -3567,7 +3562,6 @@ var OrdersResource = /** @class */ (function (_super) {
|
|
|
3567
3562
|
headers: params.headers,
|
|
3568
3563
|
method: 'GET',
|
|
3569
3564
|
query: {
|
|
3570
|
-
context: params.context,
|
|
3571
3565
|
expand: params.expand,
|
|
3572
3566
|
},
|
|
3573
3567
|
});
|
|
@@ -3578,9 +3572,6 @@ var OrdersResource = /** @class */ (function (_super) {
|
|
|
3578
3572
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/orders/").concat(encodeURIComponent(params.number), "/gift/card/redemptions"),
|
|
3579
3573
|
headers: params.headers,
|
|
3580
3574
|
method: 'POST',
|
|
3581
|
-
query: {
|
|
3582
|
-
context: params.context,
|
|
3583
|
-
},
|
|
3584
3575
|
});
|
|
3585
3576
|
};
|
|
3586
3577
|
/*Adds a gift card to the order*/
|
|
@@ -3590,9 +3581,6 @@ var OrdersResource = /** @class */ (function (_super) {
|
|
|
3590
3581
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/orders/").concat(encodeURIComponent(params.number), "/gift/cards"),
|
|
3591
3582
|
headers: params.headers,
|
|
3592
3583
|
method: 'POST',
|
|
3593
|
-
query: {
|
|
3594
|
-
context: params.context,
|
|
3595
|
-
},
|
|
3596
3584
|
});
|
|
3597
3585
|
};
|
|
3598
3586
|
/*Removes a gift card from the order*/
|
|
@@ -3601,9 +3589,6 @@ var OrdersResource = /** @class */ (function (_super) {
|
|
|
3601
3589
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/orders/").concat(encodeURIComponent(params.number), "/gift/cards/").concat(encodeURIComponent(params.id)),
|
|
3602
3590
|
headers: params.headers,
|
|
3603
3591
|
method: 'DELETE',
|
|
3604
|
-
query: {
|
|
3605
|
-
context: params.context,
|
|
3606
|
-
},
|
|
3607
3592
|
});
|
|
3608
3593
|
};
|
|
3609
3594
|
/*Authorizes any credit payments associated with this order. Call prior to authorizing any credit payments to ensure the correct order balance is used. Any credit payments that fail will be removed.*/
|
|
@@ -3612,9 +3597,6 @@ var OrdersResource = /** @class */ (function (_super) {
|
|
|
3612
3597
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/orders/").concat(encodeURIComponent(params.number), "/gift_cards/authorize"),
|
|
3613
3598
|
headers: params.headers,
|
|
3614
3599
|
method: 'POST',
|
|
3615
|
-
query: {
|
|
3616
|
-
context: params.context,
|
|
3617
|
-
},
|
|
3618
3600
|
});
|
|
3619
3601
|
};
|
|
3620
3602
|
/*Updates the email address associated with this order. Fixes typos automatically (e.g. gmail.con => gmail.com) or if not possible assigns a proxy email address to the order*/
|
|
@@ -3624,9 +3606,6 @@ var OrdersResource = /** @class */ (function (_super) {
|
|
|
3624
3606
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/orders/").concat(encodeURIComponent(params.number), "/modifications/email"),
|
|
3625
3607
|
headers: params.headers,
|
|
3626
3608
|
method: 'PUT',
|
|
3627
|
-
query: {
|
|
3628
|
-
context: params.context,
|
|
3629
|
-
},
|
|
3630
3609
|
});
|
|
3631
3610
|
};
|
|
3632
3611
|
/*Checks to see where an order can be submitted. Will not actually mark the order as submitted. Already submitted orders are given a free pass. This operation may perform some mutation if mutation is the only way to perform the check idempotently (e.g. checks to see if gift cards can be charged may actually charge the card).*/
|
|
@@ -3635,9 +3614,6 @@ var OrdersResource = /** @class */ (function (_super) {
|
|
|
3635
3614
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/orders/").concat(encodeURIComponent(params.number), "/submissions/check"),
|
|
3636
3615
|
headers: params.headers,
|
|
3637
3616
|
method: 'PUT',
|
|
3638
|
-
query: {
|
|
3639
|
-
context: params.context,
|
|
3640
|
-
},
|
|
3641
3617
|
});
|
|
3642
3618
|
};
|
|
3643
3619
|
return OrdersResource;
|
|
@@ -3977,36 +3953,6 @@ var CountriesResource = /** @class */ (function (_super) {
|
|
|
3977
3953
|
return CountriesResource;
|
|
3978
3954
|
}($Resource));
|
|
3979
3955
|
export { CountriesResource };
|
|
3980
|
-
var ContextsResource = /** @class */ (function (_super) {
|
|
3981
|
-
__extends(ContextsResource, _super);
|
|
3982
|
-
function ContextsResource() {
|
|
3983
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
3984
|
-
}
|
|
3985
|
-
ContextsResource.prototype.post = function (params) {
|
|
3986
|
-
return this.client.request({
|
|
3987
|
-
body: params.body,
|
|
3988
|
-
endpoint: '/contexts',
|
|
3989
|
-
headers: params.headers,
|
|
3990
|
-
method: 'POST',
|
|
3991
|
-
});
|
|
3992
|
-
};
|
|
3993
|
-
ContextsResource.prototype.getById = function (params) {
|
|
3994
|
-
return this.client.request({
|
|
3995
|
-
endpoint: "/contexts/".concat(encodeURIComponent(params.id)),
|
|
3996
|
-
headers: params.headers,
|
|
3997
|
-
method: 'GET',
|
|
3998
|
-
});
|
|
3999
|
-
};
|
|
4000
|
-
ContextsResource.prototype.deleteById = function (params) {
|
|
4001
|
-
return this.client.request({
|
|
4002
|
-
endpoint: "/contexts/".concat(encodeURIComponent(params.id)),
|
|
4003
|
-
headers: params.headers,
|
|
4004
|
-
method: 'DELETE',
|
|
4005
|
-
});
|
|
4006
|
-
};
|
|
4007
|
-
return ContextsResource;
|
|
4008
|
-
}($Resource));
|
|
4009
|
-
export { ContextsResource };
|
|
4010
3956
|
var OrganizationSessionsResource = /** @class */ (function (_super) {
|
|
4011
3957
|
__extends(OrganizationSessionsResource, _super);
|
|
4012
3958
|
function OrganizationSessionsResource() {
|
|
@@ -4018,9 +3964,6 @@ var OrganizationSessionsResource = /** @class */ (function (_super) {
|
|
|
4018
3964
|
endpoint: "/sfcc/sessions/organizations/".concat(encodeURIComponent(params.organization)),
|
|
4019
3965
|
headers: params.headers,
|
|
4020
3966
|
method: 'POST',
|
|
4021
|
-
query: {
|
|
4022
|
-
context: params.context,
|
|
4023
|
-
},
|
|
4024
3967
|
});
|
|
4025
3968
|
};
|
|
4026
3969
|
OrganizationSessionsResource.prototype.getBySession = function (params) {
|
|
@@ -4036,9 +3979,6 @@ var OrganizationSessionsResource = /** @class */ (function (_super) {
|
|
|
4036
3979
|
endpoint: "/sfcc/sessions/".concat(encodeURIComponent(params.session)),
|
|
4037
3980
|
headers: params.headers,
|
|
4038
3981
|
method: 'PUT',
|
|
4039
|
-
query: {
|
|
4040
|
-
context: params.context,
|
|
4041
|
-
},
|
|
4042
3982
|
});
|
|
4043
3983
|
};
|
|
4044
3984
|
OrganizationSessionsResource.prototype.deleteBySession = function (params) {
|
|
@@ -4054,9 +3994,6 @@ var OrganizationSessionsResource = /** @class */ (function (_super) {
|
|
|
4054
3994
|
endpoint: "/sfcc/sessions/".concat(encodeURIComponent(params.session), "/organizations/").concat(encodeURIComponent(params.organization)),
|
|
4055
3995
|
headers: params.headers,
|
|
4056
3996
|
method: 'PUT',
|
|
4057
|
-
query: {
|
|
4058
|
-
context: params.context,
|
|
4059
|
-
},
|
|
4060
3997
|
});
|
|
4061
3998
|
};
|
|
4062
3999
|
/*Resets the session based on the provided geo parameters.*/
|
|
@@ -4066,9 +4003,6 @@ var OrganizationSessionsResource = /** @class */ (function (_super) {
|
|
|
4066
4003
|
endpoint: "/sfcc/sessions/".concat(encodeURIComponent(params.session), "/reset"),
|
|
4067
4004
|
headers: params.headers,
|
|
4068
4005
|
method: 'PUT',
|
|
4069
|
-
query: {
|
|
4070
|
-
context: params.context,
|
|
4071
|
-
},
|
|
4072
4006
|
});
|
|
4073
4007
|
};
|
|
4074
4008
|
return OrganizationSessionsResource;
|
|
@@ -4124,7 +4058,6 @@ var ShopifyCartsResource = /** @class */ (function (_super) {
|
|
|
4124
4058
|
headers: params.headers,
|
|
4125
4059
|
method: 'PUT',
|
|
4126
4060
|
query: {
|
|
4127
|
-
context: params.context,
|
|
4128
4061
|
expand: params.expand,
|
|
4129
4062
|
},
|
|
4130
4063
|
});
|
|
@@ -4136,7 +4069,6 @@ var ShopifyCartsResource = /** @class */ (function (_super) {
|
|
|
4136
4069
|
headers: params.headers,
|
|
4137
4070
|
method: 'DELETE',
|
|
4138
4071
|
query: {
|
|
4139
|
-
context: params.context,
|
|
4140
4072
|
expand: params.expand,
|
|
4141
4073
|
},
|
|
4142
4074
|
});
|
|
@@ -4148,9 +4080,6 @@ var ShopifyCartsResource = /** @class */ (function (_super) {
|
|
|
4148
4080
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/shopify/carts/flow/order"),
|
|
4149
4081
|
headers: params.headers,
|
|
4150
4082
|
method: 'POST',
|
|
4151
|
-
query: {
|
|
4152
|
-
context: params.context,
|
|
4153
|
-
},
|
|
4154
4083
|
});
|
|
4155
4084
|
};
|
|
4156
4085
|
return ShopifyCartsResource;
|
|
@@ -4168,9 +4097,6 @@ var ShopifyCartConversionsResource = /** @class */ (function (_super) {
|
|
|
4168
4097
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/experiences/").concat(encodeURIComponent(params.experience_key), "/shopify/cart/checkouts"),
|
|
4169
4098
|
headers: params.headers,
|
|
4170
4099
|
method: 'POST',
|
|
4171
|
-
query: {
|
|
4172
|
-
context: params.context,
|
|
4173
|
-
},
|
|
4174
4100
|
});
|
|
4175
4101
|
};
|
|
4176
4102
|
return ShopifyCartConversionsResource;
|
|
@@ -4187,7 +4113,6 @@ var ShopifyLocalizedVariantsResource = /** @class */ (function (_super) {
|
|
|
4187
4113
|
headers: params.headers,
|
|
4188
4114
|
method: 'GET',
|
|
4189
4115
|
query: {
|
|
4190
|
-
context: params.context,
|
|
4191
4116
|
country: params.country,
|
|
4192
4117
|
currency: params.currency,
|
|
4193
4118
|
handle: params.handle,
|
|
@@ -4944,9 +4869,6 @@ var LoyaltyProgramsResource = /** @class */ (function (_super) {
|
|
|
4944
4869
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/loyalty/").concat(encodeURIComponent(params.number)),
|
|
4945
4870
|
headers: params.headers,
|
|
4946
4871
|
method: 'POST',
|
|
4947
|
-
query: {
|
|
4948
|
-
context: params.context,
|
|
4949
|
-
},
|
|
4950
4872
|
});
|
|
4951
4873
|
};
|
|
4952
4874
|
LoyaltyProgramsResource.prototype.deleteById = function (params) {
|
|
@@ -4954,9 +4876,6 @@ var LoyaltyProgramsResource = /** @class */ (function (_super) {
|
|
|
4954
4876
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/loyalty/").concat(encodeURIComponent(params.number), "/").concat(encodeURIComponent(params.id)),
|
|
4955
4877
|
headers: params.headers,
|
|
4956
4878
|
method: 'DELETE',
|
|
4957
|
-
query: {
|
|
4958
|
-
context: params.context,
|
|
4959
|
-
},
|
|
4960
4879
|
});
|
|
4961
4880
|
};
|
|
4962
4881
|
return LoyaltyProgramsResource;
|
|
@@ -8296,9 +8215,6 @@ var ShopifyOrderDetailsResource = /** @class */ (function (_super) {
|
|
|
8296
8215
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/shopify/orders/checks/inventory"),
|
|
8297
8216
|
headers: params.headers,
|
|
8298
8217
|
method: 'POST',
|
|
8299
|
-
query: {
|
|
8300
|
-
context: params.context,
|
|
8301
|
-
},
|
|
8302
8218
|
});
|
|
8303
8219
|
};
|
|
8304
8220
|
/*Endpoint to inject a submitted order directly to shopify, bypassing event processing*/
|
|
@@ -8308,9 +8224,6 @@ var ShopifyOrderDetailsResource = /** @class */ (function (_super) {
|
|
|
8308
8224
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/shopify/orders/ensure"),
|
|
8309
8225
|
headers: params.headers,
|
|
8310
8226
|
method: 'POST',
|
|
8311
|
-
query: {
|
|
8312
|
-
context: params.context,
|
|
8313
|
-
},
|
|
8314
8227
|
});
|
|
8315
8228
|
};
|
|
8316
8229
|
/*Check inventory for order items, ensuring expected quantities are in stock.*/
|
|
@@ -8319,9 +8232,6 @@ var ShopifyOrderDetailsResource = /** @class */ (function (_super) {
|
|
|
8319
8232
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/shopify/orders/").concat(encodeURIComponent(params.number), "/checks/inventory"),
|
|
8320
8233
|
headers: params.headers,
|
|
8321
8234
|
method: 'GET',
|
|
8322
|
-
query: {
|
|
8323
|
-
context: params.context,
|
|
8324
|
-
},
|
|
8325
8235
|
});
|
|
8326
8236
|
};
|
|
8327
8237
|
/*Based on the code, determine if a gift card or promotion is applied to the order. Attempt will be made to first validate and apply code as a gift card. If not applicable, attempt to validate and apply the code as a promotion. This endpoint achieves the same behavior as calling '/payments/gift-card' followed by /promotion.*/
|
|
@@ -8332,7 +8242,6 @@ var ShopifyOrderDetailsResource = /** @class */ (function (_super) {
|
|
|
8332
8242
|
headers: params.headers,
|
|
8333
8243
|
method: 'POST',
|
|
8334
8244
|
query: {
|
|
8335
|
-
context: params.context,
|
|
8336
8245
|
expand: params.expand,
|
|
8337
8246
|
},
|
|
8338
8247
|
});
|
|
@@ -8364,7 +8273,6 @@ var ShopifyOrderDetailsResource = /** @class */ (function (_super) {
|
|
|
8364
8273
|
headers: params.headers,
|
|
8365
8274
|
method: 'PUT',
|
|
8366
8275
|
query: {
|
|
8367
|
-
context: params.context,
|
|
8368
8276
|
expand: params.expand,
|
|
8369
8277
|
},
|
|
8370
8278
|
});
|
|
@@ -8376,7 +8284,6 @@ var ShopifyOrderDetailsResource = /** @class */ (function (_super) {
|
|
|
8376
8284
|
headers: params.headers,
|
|
8377
8285
|
method: 'DELETE',
|
|
8378
8286
|
query: {
|
|
8379
|
-
context: params.context,
|
|
8380
8287
|
expand: params.expand,
|
|
8381
8288
|
},
|
|
8382
8289
|
});
|
|
@@ -8388,7 +8295,6 @@ var ShopifyOrderDetailsResource = /** @class */ (function (_super) {
|
|
|
8388
8295
|
headers: params.headers,
|
|
8389
8296
|
method: 'DELETE',
|
|
8390
8297
|
query: {
|
|
8391
|
-
context: params.context,
|
|
8392
8298
|
expand: params.expand,
|
|
8393
8299
|
},
|
|
8394
8300
|
});
|
|
@@ -8561,9 +8467,6 @@ var ShopifyWebhookEventsResource = /** @class */ (function (_super) {
|
|
|
8561
8467
|
endpoint: "/shopify/webhook/events/shops/".concat(encodeURIComponent(params.shopify_shop_id), "/").concat(encodeURIComponent(params.topic), "/").concat(encodeURIComponent(params.action)),
|
|
8562
8468
|
headers: params.headers,
|
|
8563
8469
|
method: 'POST',
|
|
8564
|
-
query: {
|
|
8565
|
-
context: params.context,
|
|
8566
|
-
},
|
|
8567
8470
|
});
|
|
8568
8471
|
};
|
|
8569
8472
|
ShopifyWebhookEventsResource.prototype.postByTopicAndAction = function (params) {
|
|
@@ -8572,9 +8475,6 @@ var ShopifyWebhookEventsResource = /** @class */ (function (_super) {
|
|
|
8572
8475
|
endpoint: "/shopify/webhook/events/".concat(encodeURIComponent(params.topic), "/").concat(encodeURIComponent(params.action)),
|
|
8573
8476
|
headers: params.headers,
|
|
8574
8477
|
method: 'POST',
|
|
8575
|
-
query: {
|
|
8576
|
-
context: params.context,
|
|
8577
|
-
},
|
|
8578
8478
|
});
|
|
8579
8479
|
};
|
|
8580
8480
|
return ShopifyWebhookEventsResource;
|
|
@@ -9258,6 +9158,7 @@ export function createClient(options) {
|
|
|
9258
9158
|
channelAccounts: new ChannelAccountsResource(options),
|
|
9259
9159
|
channelBilledTransactionPairs: new ChannelBilledTransactionPairsResource(options),
|
|
9260
9160
|
channelBillingStatements: new ChannelBillingStatementsResource(options),
|
|
9161
|
+
channelCurrencyPairsInternal: new ChannelCurrencyPairsInternalResource(options),
|
|
9261
9162
|
channelCurrencySettings: new ChannelCurrencySettingsResource(options),
|
|
9262
9163
|
channelDebugTransactions: new ChannelDebugTransactionsResource(options),
|
|
9263
9164
|
channelFulfillments: new ChannelFulfillmentsResource(options),
|
|
@@ -9360,7 +9261,6 @@ export function createClient(options) {
|
|
|
9360
9261
|
ratecards: new RatecardsResource(options),
|
|
9361
9262
|
serviceFees: new ServiceFeesResource(options),
|
|
9362
9263
|
countries: new CountriesResource(options),
|
|
9363
|
-
contexts: new ContextsResource(options),
|
|
9364
9264
|
organizationSessions: new OrganizationSessionsResource(options),
|
|
9365
9265
|
shopifyOrders: new ShopifyOrdersResource(options),
|
|
9366
9266
|
knowYourBusinesses: new KnowYourBusinessesResource(options),
|
|
@@ -249,13 +249,11 @@ export interface BrickWebhookEventsGetByFtpFolderIdParameters {
|
|
|
249
249
|
export interface BrowserBundlesGetParameters {
|
|
250
250
|
headers?: $HttpHeaders;
|
|
251
251
|
organization: string;
|
|
252
|
-
context?: string;
|
|
253
252
|
}
|
|
254
253
|
export interface BrowserBundlesPostParameters {
|
|
255
254
|
body: io.flow.internal.v0.models.BrowserBundleForm;
|
|
256
255
|
headers?: $HttpHeaders;
|
|
257
256
|
organization: string;
|
|
258
|
-
context?: string;
|
|
259
257
|
}
|
|
260
258
|
export interface CalculatorOrganizationSettingsGetParameters {
|
|
261
259
|
headers?: $HttpHeaders;
|
|
@@ -484,6 +482,12 @@ export interface ChannelBillingStatementsPostEmailByIdParameters {
|
|
|
484
482
|
channel_id: string;
|
|
485
483
|
id: string;
|
|
486
484
|
}
|
|
485
|
+
export interface ChannelCurrencyPairsInternalGetParameters {
|
|
486
|
+
headers?: $HttpHeaders;
|
|
487
|
+
channel_id: string;
|
|
488
|
+
base: string;
|
|
489
|
+
target: string;
|
|
490
|
+
}
|
|
487
491
|
export interface ChannelCurrencySettingsGetParameters {
|
|
488
492
|
headers?: $HttpHeaders;
|
|
489
493
|
id?: string[];
|
|
@@ -880,7 +884,6 @@ export interface DeliveredDutyOptionsGetOptionsAndV2Parameters {
|
|
|
880
884
|
headers?: $HttpHeaders;
|
|
881
885
|
organization: string;
|
|
882
886
|
key: string;
|
|
883
|
-
context?: string;
|
|
884
887
|
}
|
|
885
888
|
export interface DeliveredDutyPreferencesGetParameters {
|
|
886
889
|
headers?: $HttpHeaders;
|
|
@@ -898,14 +901,12 @@ export interface DiscountCodesPutParameters {
|
|
|
898
901
|
headers?: $HttpHeaders;
|
|
899
902
|
organization: string;
|
|
900
903
|
number: string;
|
|
901
|
-
context?: string;
|
|
902
904
|
}
|
|
903
905
|
export interface DiscountCodesDeleteByCodeParameters {
|
|
904
906
|
headers?: $HttpHeaders;
|
|
905
907
|
organization: string;
|
|
906
908
|
number: string;
|
|
907
909
|
code: string;
|
|
908
|
-
context?: string;
|
|
909
910
|
}
|
|
910
911
|
export interface DisputesGetParameters {
|
|
911
912
|
headers?: $HttpHeaders;
|
|
@@ -1465,14 +1466,12 @@ export interface GiftCardProgramsPostParameters {
|
|
|
1465
1466
|
headers?: $HttpHeaders;
|
|
1466
1467
|
organization: string;
|
|
1467
1468
|
number: string;
|
|
1468
|
-
context?: string;
|
|
1469
1469
|
}
|
|
1470
1470
|
export interface GiftCardProgramsDeleteByIdParameters {
|
|
1471
1471
|
headers?: $HttpHeaders;
|
|
1472
1472
|
organization: string;
|
|
1473
1473
|
number: string;
|
|
1474
1474
|
id: string;
|
|
1475
|
-
context?: string;
|
|
1476
1475
|
}
|
|
1477
1476
|
export interface GlobalSearchResultsGetParameters {
|
|
1478
1477
|
headers?: $HttpHeaders;
|
|
@@ -1687,7 +1686,6 @@ export interface ExperiencesPostItemsAndFiltersParameters {
|
|
|
1687
1686
|
ship_from_province?: string;
|
|
1688
1687
|
ship_to_country?: string;
|
|
1689
1688
|
ship_to_province?: string;
|
|
1690
|
-
context?: string;
|
|
1691
1689
|
}
|
|
1692
1690
|
export interface ExperiencesPostItemsAndFiltersByFilterParameters {
|
|
1693
1691
|
body: io.flow.internal.v0.models.ItemValuesForm;
|
|
@@ -1705,7 +1703,6 @@ export interface ExperiencesPostItemsAndFiltersByFilterParameters {
|
|
|
1705
1703
|
ship_from_province?: string;
|
|
1706
1704
|
ship_to_country?: string;
|
|
1707
1705
|
ship_to_province?: string;
|
|
1708
|
-
context?: string;
|
|
1709
1706
|
}
|
|
1710
1707
|
export interface ExperiencesGetItemsAndQueryByExperienceKeyParameters {
|
|
1711
1708
|
headers?: $HttpHeaders;
|
|
@@ -1714,54 +1711,46 @@ export interface ExperiencesGetItemsAndQueryByExperienceKeyParameters {
|
|
|
1714
1711
|
q?: string;
|
|
1715
1712
|
country?: string;
|
|
1716
1713
|
currency?: string;
|
|
1717
|
-
context?: string;
|
|
1718
1714
|
}
|
|
1719
1715
|
export interface OrdersGetInternalByNumberParameters {
|
|
1720
1716
|
headers?: $HttpHeaders;
|
|
1721
1717
|
organization: string;
|
|
1722
1718
|
number: string;
|
|
1723
1719
|
expand?: string[];
|
|
1724
|
-
context?: string;
|
|
1725
1720
|
}
|
|
1726
1721
|
export interface OrdersPostGiftAndCardAndRedemptionsByNumberParameters {
|
|
1727
1722
|
headers?: $HttpHeaders;
|
|
1728
1723
|
organization: string;
|
|
1729
1724
|
number: string;
|
|
1730
|
-
context?: string;
|
|
1731
1725
|
}
|
|
1732
1726
|
export interface OrdersPostGiftAndCardsByNumberParameters {
|
|
1733
1727
|
body: io.flow.internal.v0.models.GiftCardForm;
|
|
1734
1728
|
headers?: $HttpHeaders;
|
|
1735
1729
|
organization: string;
|
|
1736
1730
|
number: string;
|
|
1737
|
-
context?: string;
|
|
1738
1731
|
}
|
|
1739
1732
|
export interface OrdersDeleteGiftAndCardsByNumberAndIdParameters {
|
|
1740
1733
|
headers?: $HttpHeaders;
|
|
1741
1734
|
organization: string;
|
|
1742
1735
|
number: string;
|
|
1743
1736
|
id: string;
|
|
1744
|
-
context?: string;
|
|
1745
1737
|
}
|
|
1746
1738
|
export interface OrdersPostGiftCardsAndAuthorizeByNumberParameters {
|
|
1747
1739
|
headers?: $HttpHeaders;
|
|
1748
1740
|
organization: string;
|
|
1749
1741
|
number: string;
|
|
1750
|
-
context?: string;
|
|
1751
1742
|
}
|
|
1752
1743
|
export interface OrdersPutModificationsAndEmailByNumberParameters {
|
|
1753
1744
|
body: io.flow.internal.v0.models.EmailModificationForm;
|
|
1754
1745
|
headers?: $HttpHeaders;
|
|
1755
1746
|
organization: string;
|
|
1756
1747
|
number: string;
|
|
1757
|
-
context?: string;
|
|
1758
1748
|
}
|
|
1759
1749
|
export interface OrdersPutSubmissionsAndCheckByNumberParameters {
|
|
1760
1750
|
headers?: $HttpHeaders;
|
|
1761
1751
|
organization: string;
|
|
1762
1752
|
number: string;
|
|
1763
1753
|
expand?: string[];
|
|
1764
|
-
context?: string;
|
|
1765
1754
|
}
|
|
1766
1755
|
export interface PaypalDisputeEventsPostParameters {
|
|
1767
1756
|
body: io.flow.external.paypal.v1.models.PaypalDisputeEvent;
|
|
@@ -1887,23 +1876,10 @@ export interface CountriesGetParameters {
|
|
|
1887
1876
|
headers?: $HttpHeaders;
|
|
1888
1877
|
organization: string;
|
|
1889
1878
|
}
|
|
1890
|
-
export interface ContextsPostParameters {
|
|
1891
|
-
body: io.flow.session.context.v0.models.ContextForm;
|
|
1892
|
-
headers?: $HttpHeaders;
|
|
1893
|
-
}
|
|
1894
|
-
export interface ContextsGetByIdParameters {
|
|
1895
|
-
headers?: $HttpHeaders;
|
|
1896
|
-
id: string;
|
|
1897
|
-
}
|
|
1898
|
-
export interface ContextsDeleteByIdParameters {
|
|
1899
|
-
headers?: $HttpHeaders;
|
|
1900
|
-
id: string;
|
|
1901
|
-
}
|
|
1902
1879
|
export interface OrganizationSessionsPostOrganizationsByOrganizationParameters {
|
|
1903
1880
|
body: io.flow.session.v0.models.SessionForm;
|
|
1904
1881
|
headers?: $HttpHeaders;
|
|
1905
1882
|
organization: string;
|
|
1906
|
-
context?: string;
|
|
1907
1883
|
}
|
|
1908
1884
|
export interface OrganizationSessionsGetBySessionParameters {
|
|
1909
1885
|
headers?: $HttpHeaders;
|
|
@@ -1913,7 +1889,6 @@ export interface OrganizationSessionsPutBySessionParameters {
|
|
|
1913
1889
|
body: io.flow.session.v0.models.SessionPutForm;
|
|
1914
1890
|
headers?: $HttpHeaders;
|
|
1915
1891
|
session: string;
|
|
1916
|
-
context?: string;
|
|
1917
1892
|
}
|
|
1918
1893
|
export interface OrganizationSessionsDeleteBySessionParameters {
|
|
1919
1894
|
headers?: $HttpHeaders;
|
|
@@ -1924,13 +1899,11 @@ export interface OrganizationSessionsPutOrganizationsBySessionAndOrganizationPar
|
|
|
1924
1899
|
headers?: $HttpHeaders;
|
|
1925
1900
|
session: string;
|
|
1926
1901
|
organization: string;
|
|
1927
|
-
context?: string;
|
|
1928
1902
|
}
|
|
1929
1903
|
export interface OrganizationSessionsPutResetBySessionParameters {
|
|
1930
1904
|
body: io.flow.session.v0.models.SessionPutForm;
|
|
1931
1905
|
headers?: $HttpHeaders;
|
|
1932
1906
|
session: string;
|
|
1933
|
-
context?: string;
|
|
1934
1907
|
}
|
|
1935
1908
|
export interface ShopifyOrdersGetTraceByShopifyOrderIdParameters {
|
|
1936
1909
|
headers?: $HttpHeaders;
|
|
@@ -1951,26 +1924,22 @@ export interface ShopifyCartsPutShopifyAndCartsAndPromotionByIdParameters {
|
|
|
1951
1924
|
headers?: $HttpHeaders;
|
|
1952
1925
|
id: string;
|
|
1953
1926
|
expand?: string[];
|
|
1954
|
-
context?: string;
|
|
1955
1927
|
}
|
|
1956
1928
|
export interface ShopifyCartsDeleteShopifyAndCartsAndPromotionByIdParameters {
|
|
1957
1929
|
headers?: $HttpHeaders;
|
|
1958
1930
|
id: string;
|
|
1959
1931
|
expand?: string[];
|
|
1960
|
-
context?: string;
|
|
1961
1932
|
}
|
|
1962
1933
|
export interface ShopifyCartsPostShopifyAndCartsAndFlowAndOrderByOrganizationParameters {
|
|
1963
1934
|
body: io.flow.experience.v0.models.Order;
|
|
1964
1935
|
headers?: $HttpHeaders;
|
|
1965
1936
|
organization: string;
|
|
1966
|
-
context?: string;
|
|
1967
1937
|
}
|
|
1968
1938
|
export interface ShopifyCartConversionsPostCheckoutsParameters {
|
|
1969
1939
|
body: io.flow.shopify.external.v0.models.ShopifyExternalCart;
|
|
1970
1940
|
headers?: $HttpHeaders;
|
|
1971
1941
|
organization: string;
|
|
1972
1942
|
experience_key: string;
|
|
1973
|
-
context?: string;
|
|
1974
1943
|
}
|
|
1975
1944
|
export interface ShopifyLocalizedVariantsGetExperienceAndMapByExperienceKeyParameters {
|
|
1976
1945
|
headers?: $HttpHeaders;
|
|
@@ -1980,7 +1949,6 @@ export interface ShopifyLocalizedVariantsGetExperienceAndMapByExperienceKeyParam
|
|
|
1980
1949
|
handle?: string[];
|
|
1981
1950
|
country?: string;
|
|
1982
1951
|
currency?: string;
|
|
1983
|
-
context?: string;
|
|
1984
1952
|
}
|
|
1985
1953
|
export interface StripeDisputeEventsPostParameters {
|
|
1986
1954
|
body: any;
|
|
@@ -2316,14 +2284,12 @@ export interface LoyaltyProgramsPostParameters {
|
|
|
2316
2284
|
headers?: $HttpHeaders;
|
|
2317
2285
|
organization: string;
|
|
2318
2286
|
number: string;
|
|
2319
|
-
context?: string;
|
|
2320
2287
|
}
|
|
2321
2288
|
export interface LoyaltyProgramsDeleteByIdParameters {
|
|
2322
2289
|
headers?: $HttpHeaders;
|
|
2323
2290
|
organization: string;
|
|
2324
2291
|
number: string;
|
|
2325
2292
|
id: string;
|
|
2326
|
-
context?: string;
|
|
2327
2293
|
}
|
|
2328
2294
|
export interface ManualReviewRulesGetParameters {
|
|
2329
2295
|
headers?: $HttpHeaders;
|
|
@@ -3886,19 +3852,16 @@ export interface ShopifyOrderDetailsPostChecksAndInventoryParameters {
|
|
|
3886
3852
|
body: io.flow.internal.v0.models.ShopifyOrderInventoryCheck[];
|
|
3887
3853
|
headers?: $HttpHeaders;
|
|
3888
3854
|
organization: string;
|
|
3889
|
-
context?: string;
|
|
3890
3855
|
}
|
|
3891
3856
|
export interface ShopifyOrderDetailsPostEnsureParameters {
|
|
3892
3857
|
body: io.flow.internal.v0.models.InternalOrder;
|
|
3893
3858
|
headers?: $HttpHeaders;
|
|
3894
3859
|
organization: string;
|
|
3895
|
-
context?: string;
|
|
3896
3860
|
}
|
|
3897
3861
|
export interface ShopifyOrderDetailsGetChecksAndInventoryByNumberParameters {
|
|
3898
3862
|
headers?: $HttpHeaders;
|
|
3899
3863
|
organization: string;
|
|
3900
3864
|
number: string;
|
|
3901
|
-
context?: string;
|
|
3902
3865
|
}
|
|
3903
3866
|
export interface ShopifyOrderDetailsPostCodesByNumberParameters {
|
|
3904
3867
|
body: io.flow.internal.v0.models.ShopifyCodeForm;
|
|
@@ -3906,7 +3869,6 @@ export interface ShopifyOrderDetailsPostCodesByNumberParameters {
|
|
|
3906
3869
|
organization: string;
|
|
3907
3870
|
number: string;
|
|
3908
3871
|
expand?: string[];
|
|
3909
|
-
context?: string;
|
|
3910
3872
|
}
|
|
3911
3873
|
export interface ShopifyOrderDetailsGetContentsByNumberParameters {
|
|
3912
3874
|
headers?: $HttpHeaders;
|
|
@@ -3926,21 +3888,18 @@ export interface ShopifyOrderDetailsPutPromotionByNumberParameters {
|
|
|
3926
3888
|
organization: string;
|
|
3927
3889
|
number: string;
|
|
3928
3890
|
expand?: string[];
|
|
3929
|
-
context?: string;
|
|
3930
3891
|
}
|
|
3931
3892
|
export interface ShopifyOrderDetailsDeletePromotionByNumberParameters {
|
|
3932
3893
|
headers?: $HttpHeaders;
|
|
3933
3894
|
organization: string;
|
|
3934
3895
|
number: string;
|
|
3935
3896
|
expand?: string[];
|
|
3936
|
-
context?: string;
|
|
3937
3897
|
}
|
|
3938
3898
|
export interface ShopifyOrderDetailsDeletePromotionAndDeleteByNumberParameters {
|
|
3939
3899
|
headers?: $HttpHeaders;
|
|
3940
3900
|
organization: string;
|
|
3941
3901
|
number: string;
|
|
3942
3902
|
expand?: string[];
|
|
3943
|
-
context?: string;
|
|
3944
3903
|
}
|
|
3945
3904
|
export interface ShopifyOrderDetailsPutPromotionsAndAutoAndApplyByNumberParameters {
|
|
3946
3905
|
headers?: $HttpHeaders;
|
|
@@ -4015,14 +3974,12 @@ export interface ShopifyWebhookEventsPostShopsByShopifyShopIdAndTopicAndActionPa
|
|
|
4015
3974
|
shopify_shop_id: string;
|
|
4016
3975
|
topic: string;
|
|
4017
3976
|
action: string;
|
|
4018
|
-
context?: string;
|
|
4019
3977
|
}
|
|
4020
3978
|
export interface ShopifyWebhookEventsPostByTopicAndActionParameters {
|
|
4021
3979
|
body: any;
|
|
4022
3980
|
headers?: $HttpHeaders;
|
|
4023
3981
|
topic: string;
|
|
4024
3982
|
action: string;
|
|
4025
|
-
context?: string;
|
|
4026
3983
|
}
|
|
4027
3984
|
export interface SmpTaxCalculationFormsPostParameters {
|
|
4028
3985
|
body: io.flow.internal.v0.models.SmpTaxCalculationForm;
|
|
@@ -4358,6 +4315,7 @@ export declare type ChannelBillingStatementsGetResponse = $HttpOk<io.flow.intern
|
|
|
4358
4315
|
export declare type ChannelBillingStatementsGetByIdResponse = $HttpOk<io.flow.internal.v0.models.ChannelBillingStatement> | $HttpUnauthorized<undefined> | $HttpNotFound<undefined>;
|
|
4359
4316
|
export declare type ChannelBillingStatementsDeleteByIdResponse = $HttpNoContent<undefined> | $HttpUnauthorized<undefined> | $HttpNotFound<undefined> | $HttpUnprocessableEntity<io.flow.error.v0.models.GenericError>;
|
|
4360
4317
|
export declare type ChannelBillingStatementsPostEmailByIdResponse = $HttpNoContent<undefined> | $HttpUnauthorized<undefined> | $HttpNotFound<undefined> | $HttpUnprocessableEntity<io.flow.error.v0.models.GenericError>;
|
|
4318
|
+
export declare type ChannelCurrencyPairsInternalGetResponse = $HttpOk<io.flow.internal.v0.models.ChannelCurrencyPairInternal> | $HttpUnauthorized<undefined> | $HttpNotFound<undefined> | $HttpUnprocessableEntity<io.flow.error.v0.models.GenericError>;
|
|
4361
4319
|
export declare type ChannelCurrencySettingsGetResponse = $HttpOk<io.flow.internal.v0.models.ChannelCurrencySetting[]> | $HttpUnauthorized<undefined> | $HttpUnprocessableEntity<io.flow.error.v0.models.GenericError>;
|
|
4362
4320
|
export declare type ChannelCurrencySettingsPostResponse = $HttpCreated<io.flow.internal.v0.models.ChannelCurrencySetting> | $HttpUnauthorized<undefined> | $HttpNotFound<undefined> | $HttpUnprocessableEntity<io.flow.error.v0.models.GenericError>;
|
|
4363
4321
|
export declare type ChannelCurrencySettingsGetByIdResponse = $HttpOk<io.flow.internal.v0.models.ChannelCurrencySetting> | $HttpUnauthorized<undefined> | $HttpNotFound<undefined>;
|
|
@@ -4592,9 +4550,6 @@ export declare type QueryBuildersPostResponse = $HttpCreated<io.flow.query.build
|
|
|
4592
4550
|
export declare type RatecardsGetExportByIdResponse = $HttpOk<string> | $HttpUnauthorized<undefined> | $HttpNotFound<undefined>;
|
|
4593
4551
|
export declare type ServiceFeesPutFuelAndSurchargesByServiceIdResponse = $HttpOk<io.flow.ratecard.v0.unions.ServiceFee> | $HttpUnauthorized<undefined> | $HttpNotFound<undefined> | $HttpUnprocessableEntity<io.flow.error.v0.models.GenericError>;
|
|
4594
4552
|
export declare type CountriesGetResponse = $HttpOk<io.flow.reference.v0.models.Country[]> | $HttpUnauthorized<undefined> | $HttpNotFound<undefined>;
|
|
4595
|
-
export declare type ContextsPostResponse = $HttpCreated<io.flow.session.context.v0.models.Context> | $HttpUnauthorized<undefined> | $HttpUnprocessableEntity<io.flow.error.v0.models.GenericError>;
|
|
4596
|
-
export declare type ContextsGetByIdResponse = $HttpOk<io.flow.session.context.v0.models.Context> | $HttpUnauthorized<undefined> | $HttpNotFound<undefined>;
|
|
4597
|
-
export declare type ContextsDeleteByIdResponse = $HttpNoContent<undefined> | $HttpUnauthorized<undefined> | $HttpNotFound<undefined>;
|
|
4598
4553
|
export declare type OrganizationSessionsPostOrganizationsByOrganizationResponse = $HttpCreated<io.flow.session.v0.models.OrganizationSession> | $HttpUnprocessableEntity<io.flow.error.v0.models.GenericError>;
|
|
4599
4554
|
export declare type OrganizationSessionsGetBySessionResponse = $HttpOk<io.flow.session.v0.unions.Session> | $HttpNotFound<undefined>;
|
|
4600
4555
|
export declare type OrganizationSessionsPutBySessionResponse = $HttpOk<io.flow.session.v0.unions.Session> | $HttpNotFound<undefined> | $HttpUnprocessableEntity<io.flow.error.v0.models.GenericError>;
|
|
@@ -5113,6 +5068,9 @@ export declare class ChannelBillingStatementsResource extends $Resource {
|
|
|
5113
5068
|
deleteById(params: ChannelBillingStatementsDeleteByIdParameters): Promise<ChannelBillingStatementsDeleteByIdResponse>;
|
|
5114
5069
|
postEmailById(params: ChannelBillingStatementsPostEmailByIdParameters): Promise<ChannelBillingStatementsPostEmailByIdResponse>;
|
|
5115
5070
|
}
|
|
5071
|
+
export declare class ChannelCurrencyPairsInternalResource extends $Resource {
|
|
5072
|
+
get(params: ChannelCurrencyPairsInternalGetParameters): Promise<ChannelCurrencyPairsInternalGetResponse>;
|
|
5073
|
+
}
|
|
5116
5074
|
export declare class ChannelCurrencySettingsResource extends $Resource {
|
|
5117
5075
|
get(params: ChannelCurrencySettingsGetParameters): Promise<ChannelCurrencySettingsGetResponse>;
|
|
5118
5076
|
post(params: ChannelCurrencySettingsPostParameters): Promise<ChannelCurrencySettingsPostResponse>;
|
|
@@ -5551,11 +5509,6 @@ export declare class ServiceFeesResource extends $Resource {
|
|
|
5551
5509
|
export declare class CountriesResource extends $Resource {
|
|
5552
5510
|
get(params: CountriesGetParameters): Promise<CountriesGetResponse>;
|
|
5553
5511
|
}
|
|
5554
|
-
export declare class ContextsResource extends $Resource {
|
|
5555
|
-
post(params: ContextsPostParameters): Promise<ContextsPostResponse>;
|
|
5556
|
-
getById(params: ContextsGetByIdParameters): Promise<ContextsGetByIdResponse>;
|
|
5557
|
-
deleteById(params: ContextsDeleteByIdParameters): Promise<ContextsDeleteByIdResponse>;
|
|
5558
|
-
}
|
|
5559
5512
|
export declare class OrganizationSessionsResource extends $Resource {
|
|
5560
5513
|
postOrganizationsByOrganization(params: OrganizationSessionsPostOrganizationsByOrganizationParameters): Promise<OrganizationSessionsPostOrganizationsByOrganizationResponse>;
|
|
5561
5514
|
getBySession(params: OrganizationSessionsGetBySessionParameters): Promise<OrganizationSessionsGetBySessionResponse>;
|
|
@@ -6317,6 +6270,7 @@ export interface ClientInstance {
|
|
|
6317
6270
|
channelAccounts: ChannelAccountsResource;
|
|
6318
6271
|
channelBilledTransactionPairs: ChannelBilledTransactionPairsResource;
|
|
6319
6272
|
channelBillingStatements: ChannelBillingStatementsResource;
|
|
6273
|
+
channelCurrencyPairsInternal: ChannelCurrencyPairsInternalResource;
|
|
6320
6274
|
channelCurrencySettings: ChannelCurrencySettingsResource;
|
|
6321
6275
|
channelDebugTransactions: ChannelDebugTransactionsResource;
|
|
6322
6276
|
channelFulfillments: ChannelFulfillmentsResource;
|
|
@@ -6419,7 +6373,6 @@ export interface ClientInstance {
|
|
|
6419
6373
|
ratecards: RatecardsResource;
|
|
6420
6374
|
serviceFees: ServiceFeesResource;
|
|
6421
6375
|
countries: CountriesResource;
|
|
6422
|
-
contexts: ContextsResource;
|
|
6423
6376
|
organizationSessions: OrganizationSessionsResource;
|
|
6424
6377
|
shopifyOrders: ShopifyOrdersResource;
|
|
6425
6378
|
knowYourBusinesses: KnowYourBusinessesResource;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowio/api-internal-sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.156",
|
|
4
4
|
"description": "Global TypeScript typings for Flow Commerce API",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"generate": "apibuilder update"
|
|
27
27
|
},
|
|
28
28
|
"sideEffects": false,
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "2e07a02edf9ba40b639c33c004df49e4d9b88ed2"
|
|
30
30
|
}
|