@flowio/api-internal-sdk 0.0.155 → 0.0.157
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 +131 -185
- package/dist/esm/api-internal.js +125 -179
- package/dist/types/api-internal.d.ts +76 -101
- package/package.json +2 -2
package/dist/esm/api-internal.js
CHANGED
|
@@ -165,6 +165,44 @@ var AddressConfigurationSettingsResource = /** @class */ (function (_super) {
|
|
|
165
165
|
return AddressConfigurationSettingsResource;
|
|
166
166
|
}($Resource));
|
|
167
167
|
export { AddressConfigurationSettingsResource };
|
|
168
|
+
var AldoItemsResource = /** @class */ (function (_super) {
|
|
169
|
+
__extends(AldoItemsResource, _super);
|
|
170
|
+
function AldoItemsResource() {
|
|
171
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
172
|
+
}
|
|
173
|
+
AldoItemsResource.prototype.post = function (params) {
|
|
174
|
+
return this.client.request({
|
|
175
|
+
body: params.body,
|
|
176
|
+
endpoint: '/aldo/items',
|
|
177
|
+
headers: params.headers,
|
|
178
|
+
method: 'POST',
|
|
179
|
+
});
|
|
180
|
+
};
|
|
181
|
+
AldoItemsResource.prototype.getById = function (params) {
|
|
182
|
+
return this.client.request({
|
|
183
|
+
endpoint: "/aldo/items/".concat(encodeURIComponent(params.id)),
|
|
184
|
+
headers: params.headers,
|
|
185
|
+
method: 'GET',
|
|
186
|
+
});
|
|
187
|
+
};
|
|
188
|
+
AldoItemsResource.prototype.putById = function (params) {
|
|
189
|
+
return this.client.request({
|
|
190
|
+
body: params.body,
|
|
191
|
+
endpoint: "/aldo/items/".concat(encodeURIComponent(params.id)),
|
|
192
|
+
headers: params.headers,
|
|
193
|
+
method: 'PUT',
|
|
194
|
+
});
|
|
195
|
+
};
|
|
196
|
+
AldoItemsResource.prototype.deleteById = function (params) {
|
|
197
|
+
return this.client.request({
|
|
198
|
+
endpoint: "/aldo/items/".concat(encodeURIComponent(params.id)),
|
|
199
|
+
headers: params.headers,
|
|
200
|
+
method: 'DELETE',
|
|
201
|
+
});
|
|
202
|
+
};
|
|
203
|
+
return AldoItemsResource;
|
|
204
|
+
}($Resource));
|
|
205
|
+
export { AldoItemsResource };
|
|
168
206
|
var AlertFailureSummariesResource = /** @class */ (function (_super) {
|
|
169
207
|
__extends(AlertFailureSummariesResource, _super);
|
|
170
208
|
function AlertFailureSummariesResource() {
|
|
@@ -429,9 +467,6 @@ var BrowserBundlesResource = /** @class */ (function (_super) {
|
|
|
429
467
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/bundles/browser"),
|
|
430
468
|
headers: params.headers,
|
|
431
469
|
method: 'GET',
|
|
432
|
-
query: {
|
|
433
|
-
context: params.context,
|
|
434
|
-
},
|
|
435
470
|
});
|
|
436
471
|
};
|
|
437
472
|
BrowserBundlesResource.prototype.post = function (params) {
|
|
@@ -440,9 +475,6 @@ var BrowserBundlesResource = /** @class */ (function (_super) {
|
|
|
440
475
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/bundles/browser"),
|
|
441
476
|
headers: params.headers,
|
|
442
477
|
method: 'POST',
|
|
443
|
-
query: {
|
|
444
|
-
context: params.context,
|
|
445
|
-
},
|
|
446
478
|
});
|
|
447
479
|
};
|
|
448
480
|
return BrowserBundlesResource;
|
|
@@ -860,6 +892,25 @@ var ChannelBillingStatementsResource = /** @class */ (function (_super) {
|
|
|
860
892
|
return ChannelBillingStatementsResource;
|
|
861
893
|
}($Resource));
|
|
862
894
|
export { ChannelBillingStatementsResource };
|
|
895
|
+
var ChannelCurrencyPairsInternalResource = /** @class */ (function (_super) {
|
|
896
|
+
__extends(ChannelCurrencyPairsInternalResource, _super);
|
|
897
|
+
function ChannelCurrencyPairsInternalResource() {
|
|
898
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
899
|
+
}
|
|
900
|
+
ChannelCurrencyPairsInternalResource.prototype.get = function (params) {
|
|
901
|
+
return this.client.request({
|
|
902
|
+
endpoint: "/internal/channel/".concat(encodeURIComponent(params.channel_id), "/currency/pair"),
|
|
903
|
+
headers: params.headers,
|
|
904
|
+
method: 'GET',
|
|
905
|
+
query: {
|
|
906
|
+
base: params.base,
|
|
907
|
+
target: params.target,
|
|
908
|
+
},
|
|
909
|
+
});
|
|
910
|
+
};
|
|
911
|
+
return ChannelCurrencyPairsInternalResource;
|
|
912
|
+
}($Resource));
|
|
913
|
+
export { ChannelCurrencyPairsInternalResource };
|
|
863
914
|
var ChannelCurrencySettingsResource = /** @class */ (function (_super) {
|
|
864
915
|
__extends(ChannelCurrencySettingsResource, _super);
|
|
865
916
|
function ChannelCurrencySettingsResource() {
|
|
@@ -1565,57 +1616,6 @@ var CliLogEntriesResource = /** @class */ (function (_super) {
|
|
|
1565
1616
|
return CliLogEntriesResource;
|
|
1566
1617
|
}($Resource));
|
|
1567
1618
|
export { CliLogEntriesResource };
|
|
1568
|
-
var ColmItemsResource = /** @class */ (function (_super) {
|
|
1569
|
-
__extends(ColmItemsResource, _super);
|
|
1570
|
-
function ColmItemsResource() {
|
|
1571
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
1572
|
-
}
|
|
1573
|
-
ColmItemsResource.prototype.get = function (params) {
|
|
1574
|
-
return this.client.request({
|
|
1575
|
-
endpoint: '/colm/items',
|
|
1576
|
-
headers: params.headers,
|
|
1577
|
-
method: 'GET',
|
|
1578
|
-
query: {
|
|
1579
|
-
id: params.id,
|
|
1580
|
-
limit: params.limit,
|
|
1581
|
-
offset: params.offset,
|
|
1582
|
-
sort: params.sort,
|
|
1583
|
-
},
|
|
1584
|
-
});
|
|
1585
|
-
};
|
|
1586
|
-
ColmItemsResource.prototype.post = function (params) {
|
|
1587
|
-
return this.client.request({
|
|
1588
|
-
body: params.body,
|
|
1589
|
-
endpoint: '/colm/items',
|
|
1590
|
-
headers: params.headers,
|
|
1591
|
-
method: 'POST',
|
|
1592
|
-
});
|
|
1593
|
-
};
|
|
1594
|
-
ColmItemsResource.prototype.getById = function (params) {
|
|
1595
|
-
return this.client.request({
|
|
1596
|
-
endpoint: "/colm/items/".concat(encodeURIComponent(params.id)),
|
|
1597
|
-
headers: params.headers,
|
|
1598
|
-
method: 'GET',
|
|
1599
|
-
});
|
|
1600
|
-
};
|
|
1601
|
-
ColmItemsResource.prototype.putById = function (params) {
|
|
1602
|
-
return this.client.request({
|
|
1603
|
-
body: params.body,
|
|
1604
|
-
endpoint: "/colm/items/".concat(encodeURIComponent(params.id)),
|
|
1605
|
-
headers: params.headers,
|
|
1606
|
-
method: 'PUT',
|
|
1607
|
-
});
|
|
1608
|
-
};
|
|
1609
|
-
ColmItemsResource.prototype.deleteById = function (params) {
|
|
1610
|
-
return this.client.request({
|
|
1611
|
-
endpoint: "/colm/items/".concat(encodeURIComponent(params.id)),
|
|
1612
|
-
headers: params.headers,
|
|
1613
|
-
method: 'DELETE',
|
|
1614
|
-
});
|
|
1615
|
-
};
|
|
1616
|
-
return ColmItemsResource;
|
|
1617
|
-
}($Resource));
|
|
1618
|
-
export { ColmItemsResource };
|
|
1619
1619
|
var CommercialInvoiceComparisonsResource = /** @class */ (function (_super) {
|
|
1620
1620
|
__extends(CommercialInvoiceComparisonsResource, _super);
|
|
1621
1621
|
function CommercialInvoiceComparisonsResource() {
|
|
@@ -1826,9 +1826,6 @@ var DeliveredDutyOptionsResource = /** @class */ (function (_super) {
|
|
|
1826
1826
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/experiences/").concat(encodeURIComponent(params.key), "/preference/display/shipping/duty/options/v2"),
|
|
1827
1827
|
headers: params.headers,
|
|
1828
1828
|
method: 'GET',
|
|
1829
|
-
query: {
|
|
1830
|
-
context: params.context,
|
|
1831
|
-
},
|
|
1832
1829
|
});
|
|
1833
1830
|
};
|
|
1834
1831
|
return DeliveredDutyOptionsResource;
|
|
@@ -1857,6 +1854,30 @@ var DeliveredDutyPreferencesResource = /** @class */ (function (_super) {
|
|
|
1857
1854
|
return DeliveredDutyPreferencesResource;
|
|
1858
1855
|
}($Resource));
|
|
1859
1856
|
export { DeliveredDutyPreferencesResource };
|
|
1857
|
+
var DhlEcommerceWebhooksResource = /** @class */ (function (_super) {
|
|
1858
|
+
__extends(DhlEcommerceWebhooksResource, _super);
|
|
1859
|
+
function DhlEcommerceWebhooksResource() {
|
|
1860
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1861
|
+
}
|
|
1862
|
+
DhlEcommerceWebhooksResource.prototype.get = function (params) {
|
|
1863
|
+
if (params === void 0) { params = {}; }
|
|
1864
|
+
return this.client.request({
|
|
1865
|
+
endpoint: '/dhl/ecommerce/webhook',
|
|
1866
|
+
headers: params.headers,
|
|
1867
|
+
method: 'GET',
|
|
1868
|
+
});
|
|
1869
|
+
};
|
|
1870
|
+
DhlEcommerceWebhooksResource.prototype.post = function (params) {
|
|
1871
|
+
return this.client.request({
|
|
1872
|
+
body: params.body,
|
|
1873
|
+
endpoint: '/dhl/ecommerce/webhook',
|
|
1874
|
+
headers: params.headers,
|
|
1875
|
+
method: 'POST',
|
|
1876
|
+
});
|
|
1877
|
+
};
|
|
1878
|
+
return DhlEcommerceWebhooksResource;
|
|
1879
|
+
}($Resource));
|
|
1880
|
+
export { DhlEcommerceWebhooksResource };
|
|
1860
1881
|
var DiscountCodesResource = /** @class */ (function (_super) {
|
|
1861
1882
|
__extends(DiscountCodesResource, _super);
|
|
1862
1883
|
function DiscountCodesResource() {
|
|
@@ -1869,9 +1890,6 @@ var DiscountCodesResource = /** @class */ (function (_super) {
|
|
|
1869
1890
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/orders/").concat(encodeURIComponent(params.number), "/discount/codes"),
|
|
1870
1891
|
headers: params.headers,
|
|
1871
1892
|
method: 'PUT',
|
|
1872
|
-
query: {
|
|
1873
|
-
context: params.context,
|
|
1874
|
-
},
|
|
1875
1893
|
});
|
|
1876
1894
|
};
|
|
1877
1895
|
/*Removes the discount code from the order*/
|
|
@@ -1880,9 +1898,6 @@ var DiscountCodesResource = /** @class */ (function (_super) {
|
|
|
1880
1898
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/orders/").concat(encodeURIComponent(params.number), "/discount/codes/").concat(encodeURIComponent(params.code)),
|
|
1881
1899
|
headers: params.headers,
|
|
1882
1900
|
method: 'DELETE',
|
|
1883
|
-
query: {
|
|
1884
|
-
context: params.context,
|
|
1885
|
-
},
|
|
1886
1901
|
});
|
|
1887
1902
|
};
|
|
1888
1903
|
return DiscountCodesResource;
|
|
@@ -2933,9 +2948,6 @@ var GiftCardProgramsResource = /** @class */ (function (_super) {
|
|
|
2933
2948
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/orders/").concat(encodeURIComponent(params.number), "/gift_cards"),
|
|
2934
2949
|
headers: params.headers,
|
|
2935
2950
|
method: 'POST',
|
|
2936
|
-
query: {
|
|
2937
|
-
context: params.context,
|
|
2938
|
-
},
|
|
2939
2951
|
});
|
|
2940
2952
|
};
|
|
2941
2953
|
GiftCardProgramsResource.prototype.deleteById = function (params) {
|
|
@@ -2943,9 +2955,6 @@ var GiftCardProgramsResource = /** @class */ (function (_super) {
|
|
|
2943
2955
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/orders/").concat(encodeURIComponent(params.number), "/gift_cards/").concat(encodeURIComponent(params.id)),
|
|
2944
2956
|
headers: params.headers,
|
|
2945
2957
|
method: 'DELETE',
|
|
2946
|
-
query: {
|
|
2947
|
-
context: params.context,
|
|
2948
|
-
},
|
|
2949
2958
|
});
|
|
2950
2959
|
};
|
|
2951
2960
|
return GiftCardProgramsResource;
|
|
@@ -3501,7 +3510,6 @@ var ExperiencesResource = /** @class */ (function (_super) {
|
|
|
3501
3510
|
headers: params.headers,
|
|
3502
3511
|
method: 'POST',
|
|
3503
3512
|
query: {
|
|
3504
|
-
context: params.context,
|
|
3505
3513
|
country: params.country,
|
|
3506
3514
|
currency: params.currency,
|
|
3507
3515
|
experience: params.experience,
|
|
@@ -3524,7 +3532,6 @@ var ExperiencesResource = /** @class */ (function (_super) {
|
|
|
3524
3532
|
headers: params.headers,
|
|
3525
3533
|
method: 'POST',
|
|
3526
3534
|
query: {
|
|
3527
|
-
context: params.context,
|
|
3528
3535
|
country: params.country,
|
|
3529
3536
|
currency: params.currency,
|
|
3530
3537
|
experience: params.experience,
|
|
@@ -3546,7 +3553,6 @@ var ExperiencesResource = /** @class */ (function (_super) {
|
|
|
3546
3553
|
headers: params.headers,
|
|
3547
3554
|
method: 'GET',
|
|
3548
3555
|
query: {
|
|
3549
|
-
context: params.context,
|
|
3550
3556
|
country: params.country,
|
|
3551
3557
|
currency: params.currency,
|
|
3552
3558
|
q: params.q,
|
|
@@ -3567,7 +3573,6 @@ var OrdersResource = /** @class */ (function (_super) {
|
|
|
3567
3573
|
headers: params.headers,
|
|
3568
3574
|
method: 'GET',
|
|
3569
3575
|
query: {
|
|
3570
|
-
context: params.context,
|
|
3571
3576
|
expand: params.expand,
|
|
3572
3577
|
},
|
|
3573
3578
|
});
|
|
@@ -3578,9 +3583,6 @@ var OrdersResource = /** @class */ (function (_super) {
|
|
|
3578
3583
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/orders/").concat(encodeURIComponent(params.number), "/gift/card/redemptions"),
|
|
3579
3584
|
headers: params.headers,
|
|
3580
3585
|
method: 'POST',
|
|
3581
|
-
query: {
|
|
3582
|
-
context: params.context,
|
|
3583
|
-
},
|
|
3584
3586
|
});
|
|
3585
3587
|
};
|
|
3586
3588
|
/*Adds a gift card to the order*/
|
|
@@ -3590,9 +3592,6 @@ var OrdersResource = /** @class */ (function (_super) {
|
|
|
3590
3592
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/orders/").concat(encodeURIComponent(params.number), "/gift/cards"),
|
|
3591
3593
|
headers: params.headers,
|
|
3592
3594
|
method: 'POST',
|
|
3593
|
-
query: {
|
|
3594
|
-
context: params.context,
|
|
3595
|
-
},
|
|
3596
3595
|
});
|
|
3597
3596
|
};
|
|
3598
3597
|
/*Removes a gift card from the order*/
|
|
@@ -3601,9 +3600,6 @@ var OrdersResource = /** @class */ (function (_super) {
|
|
|
3601
3600
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/orders/").concat(encodeURIComponent(params.number), "/gift/cards/").concat(encodeURIComponent(params.id)),
|
|
3602
3601
|
headers: params.headers,
|
|
3603
3602
|
method: 'DELETE',
|
|
3604
|
-
query: {
|
|
3605
|
-
context: params.context,
|
|
3606
|
-
},
|
|
3607
3603
|
});
|
|
3608
3604
|
};
|
|
3609
3605
|
/*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 +3608,6 @@ var OrdersResource = /** @class */ (function (_super) {
|
|
|
3612
3608
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/orders/").concat(encodeURIComponent(params.number), "/gift_cards/authorize"),
|
|
3613
3609
|
headers: params.headers,
|
|
3614
3610
|
method: 'POST',
|
|
3615
|
-
query: {
|
|
3616
|
-
context: params.context,
|
|
3617
|
-
},
|
|
3618
3611
|
});
|
|
3619
3612
|
};
|
|
3620
3613
|
/*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 +3617,6 @@ var OrdersResource = /** @class */ (function (_super) {
|
|
|
3624
3617
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/orders/").concat(encodeURIComponent(params.number), "/modifications/email"),
|
|
3625
3618
|
headers: params.headers,
|
|
3626
3619
|
method: 'PUT',
|
|
3627
|
-
query: {
|
|
3628
|
-
context: params.context,
|
|
3629
|
-
},
|
|
3630
3620
|
});
|
|
3631
3621
|
};
|
|
3632
3622
|
/*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 +3625,6 @@ var OrdersResource = /** @class */ (function (_super) {
|
|
|
3635
3625
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/orders/").concat(encodeURIComponent(params.number), "/submissions/check"),
|
|
3636
3626
|
headers: params.headers,
|
|
3637
3627
|
method: 'PUT',
|
|
3638
|
-
query: {
|
|
3639
|
-
context: params.context,
|
|
3640
|
-
},
|
|
3641
3628
|
});
|
|
3642
3629
|
};
|
|
3643
3630
|
return OrdersResource;
|
|
@@ -3977,36 +3964,6 @@ var CountriesResource = /** @class */ (function (_super) {
|
|
|
3977
3964
|
return CountriesResource;
|
|
3978
3965
|
}($Resource));
|
|
3979
3966
|
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
3967
|
var OrganizationSessionsResource = /** @class */ (function (_super) {
|
|
4011
3968
|
__extends(OrganizationSessionsResource, _super);
|
|
4012
3969
|
function OrganizationSessionsResource() {
|
|
@@ -4018,9 +3975,6 @@ var OrganizationSessionsResource = /** @class */ (function (_super) {
|
|
|
4018
3975
|
endpoint: "/sfcc/sessions/organizations/".concat(encodeURIComponent(params.organization)),
|
|
4019
3976
|
headers: params.headers,
|
|
4020
3977
|
method: 'POST',
|
|
4021
|
-
query: {
|
|
4022
|
-
context: params.context,
|
|
4023
|
-
},
|
|
4024
3978
|
});
|
|
4025
3979
|
};
|
|
4026
3980
|
OrganizationSessionsResource.prototype.getBySession = function (params) {
|
|
@@ -4036,9 +3990,6 @@ var OrganizationSessionsResource = /** @class */ (function (_super) {
|
|
|
4036
3990
|
endpoint: "/sfcc/sessions/".concat(encodeURIComponent(params.session)),
|
|
4037
3991
|
headers: params.headers,
|
|
4038
3992
|
method: 'PUT',
|
|
4039
|
-
query: {
|
|
4040
|
-
context: params.context,
|
|
4041
|
-
},
|
|
4042
3993
|
});
|
|
4043
3994
|
};
|
|
4044
3995
|
OrganizationSessionsResource.prototype.deleteBySession = function (params) {
|
|
@@ -4054,9 +4005,6 @@ var OrganizationSessionsResource = /** @class */ (function (_super) {
|
|
|
4054
4005
|
endpoint: "/sfcc/sessions/".concat(encodeURIComponent(params.session), "/organizations/").concat(encodeURIComponent(params.organization)),
|
|
4055
4006
|
headers: params.headers,
|
|
4056
4007
|
method: 'PUT',
|
|
4057
|
-
query: {
|
|
4058
|
-
context: params.context,
|
|
4059
|
-
},
|
|
4060
4008
|
});
|
|
4061
4009
|
};
|
|
4062
4010
|
/*Resets the session based on the provided geo parameters.*/
|
|
@@ -4066,9 +4014,6 @@ var OrganizationSessionsResource = /** @class */ (function (_super) {
|
|
|
4066
4014
|
endpoint: "/sfcc/sessions/".concat(encodeURIComponent(params.session), "/reset"),
|
|
4067
4015
|
headers: params.headers,
|
|
4068
4016
|
method: 'PUT',
|
|
4069
|
-
query: {
|
|
4070
|
-
context: params.context,
|
|
4071
|
-
},
|
|
4072
4017
|
});
|
|
4073
4018
|
};
|
|
4074
4019
|
return OrganizationSessionsResource;
|
|
@@ -4124,7 +4069,6 @@ var ShopifyCartsResource = /** @class */ (function (_super) {
|
|
|
4124
4069
|
headers: params.headers,
|
|
4125
4070
|
method: 'PUT',
|
|
4126
4071
|
query: {
|
|
4127
|
-
context: params.context,
|
|
4128
4072
|
expand: params.expand,
|
|
4129
4073
|
},
|
|
4130
4074
|
});
|
|
@@ -4136,7 +4080,6 @@ var ShopifyCartsResource = /** @class */ (function (_super) {
|
|
|
4136
4080
|
headers: params.headers,
|
|
4137
4081
|
method: 'DELETE',
|
|
4138
4082
|
query: {
|
|
4139
|
-
context: params.context,
|
|
4140
4083
|
expand: params.expand,
|
|
4141
4084
|
},
|
|
4142
4085
|
});
|
|
@@ -4148,9 +4091,6 @@ var ShopifyCartsResource = /** @class */ (function (_super) {
|
|
|
4148
4091
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/shopify/carts/flow/order"),
|
|
4149
4092
|
headers: params.headers,
|
|
4150
4093
|
method: 'POST',
|
|
4151
|
-
query: {
|
|
4152
|
-
context: params.context,
|
|
4153
|
-
},
|
|
4154
4094
|
});
|
|
4155
4095
|
};
|
|
4156
4096
|
return ShopifyCartsResource;
|
|
@@ -4168,9 +4108,6 @@ var ShopifyCartConversionsResource = /** @class */ (function (_super) {
|
|
|
4168
4108
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/experiences/").concat(encodeURIComponent(params.experience_key), "/shopify/cart/checkouts"),
|
|
4169
4109
|
headers: params.headers,
|
|
4170
4110
|
method: 'POST',
|
|
4171
|
-
query: {
|
|
4172
|
-
context: params.context,
|
|
4173
|
-
},
|
|
4174
4111
|
});
|
|
4175
4112
|
};
|
|
4176
4113
|
return ShopifyCartConversionsResource;
|
|
@@ -4187,7 +4124,6 @@ var ShopifyLocalizedVariantsResource = /** @class */ (function (_super) {
|
|
|
4187
4124
|
headers: params.headers,
|
|
4188
4125
|
method: 'GET',
|
|
4189
4126
|
query: {
|
|
4190
|
-
context: params.context,
|
|
4191
4127
|
country: params.country,
|
|
4192
4128
|
currency: params.currency,
|
|
4193
4129
|
handle: params.handle,
|
|
@@ -4944,9 +4880,6 @@ var LoyaltyProgramsResource = /** @class */ (function (_super) {
|
|
|
4944
4880
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/loyalty/").concat(encodeURIComponent(params.number)),
|
|
4945
4881
|
headers: params.headers,
|
|
4946
4882
|
method: 'POST',
|
|
4947
|
-
query: {
|
|
4948
|
-
context: params.context,
|
|
4949
|
-
},
|
|
4950
4883
|
});
|
|
4951
4884
|
};
|
|
4952
4885
|
LoyaltyProgramsResource.prototype.deleteById = function (params) {
|
|
@@ -4954,9 +4887,6 @@ var LoyaltyProgramsResource = /** @class */ (function (_super) {
|
|
|
4954
4887
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/loyalty/").concat(encodeURIComponent(params.number), "/").concat(encodeURIComponent(params.id)),
|
|
4955
4888
|
headers: params.headers,
|
|
4956
4889
|
method: 'DELETE',
|
|
4957
|
-
query: {
|
|
4958
|
-
context: params.context,
|
|
4959
|
-
},
|
|
4960
4890
|
});
|
|
4961
4891
|
};
|
|
4962
4892
|
return LoyaltyProgramsResource;
|
|
@@ -7061,6 +6991,46 @@ var ProductReviewHistoriesResource = /** @class */ (function (_super) {
|
|
|
7061
6991
|
return ProductReviewHistoriesResource;
|
|
7062
6992
|
}($Resource));
|
|
7063
6993
|
export { ProductReviewHistoriesResource };
|
|
6994
|
+
var PspRoutingDistributionRevisionsResource = /** @class */ (function (_super) {
|
|
6995
|
+
__extends(PspRoutingDistributionRevisionsResource, _super);
|
|
6996
|
+
function PspRoutingDistributionRevisionsResource() {
|
|
6997
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
6998
|
+
}
|
|
6999
|
+
/*Get the current revision of psp_routing_distributions*/
|
|
7000
|
+
PspRoutingDistributionRevisionsResource.prototype.get = function (params) {
|
|
7001
|
+
return this.client.request({
|
|
7002
|
+
endpoint: '/internal/psp_routing_distribution_revisions',
|
|
7003
|
+
headers: params.headers,
|
|
7004
|
+
method: 'GET',
|
|
7005
|
+
query: {
|
|
7006
|
+
id: params.id,
|
|
7007
|
+
limit: params.limit,
|
|
7008
|
+
offset: params.offset,
|
|
7009
|
+
sort: params.sort,
|
|
7010
|
+
},
|
|
7011
|
+
});
|
|
7012
|
+
};
|
|
7013
|
+
/*Update the current psp_routing_distributions by creating a new revision*/
|
|
7014
|
+
PspRoutingDistributionRevisionsResource.prototype.post = function (params) {
|
|
7015
|
+
return this.client.request({
|
|
7016
|
+
body: params.body,
|
|
7017
|
+
endpoint: '/internal/psp_routing_distribution_revisions',
|
|
7018
|
+
headers: params.headers,
|
|
7019
|
+
method: 'POST',
|
|
7020
|
+
});
|
|
7021
|
+
};
|
|
7022
|
+
/*Get the current revision of psp_routing_distributions*/
|
|
7023
|
+
PspRoutingDistributionRevisionsResource.prototype.getCurrent = function (params) {
|
|
7024
|
+
if (params === void 0) { params = {}; }
|
|
7025
|
+
return this.client.request({
|
|
7026
|
+
endpoint: '/internal/psp_routing_distribution_revisions/current',
|
|
7027
|
+
headers: params.headers,
|
|
7028
|
+
method: 'GET',
|
|
7029
|
+
});
|
|
7030
|
+
};
|
|
7031
|
+
return PspRoutingDistributionRevisionsResource;
|
|
7032
|
+
}($Resource));
|
|
7033
|
+
export { PspRoutingDistributionRevisionsResource };
|
|
7064
7034
|
var PublicHubsResource = /** @class */ (function (_super) {
|
|
7065
7035
|
__extends(PublicHubsResource, _super);
|
|
7066
7036
|
function PublicHubsResource() {
|
|
@@ -8296,9 +8266,6 @@ var ShopifyOrderDetailsResource = /** @class */ (function (_super) {
|
|
|
8296
8266
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/shopify/orders/checks/inventory"),
|
|
8297
8267
|
headers: params.headers,
|
|
8298
8268
|
method: 'POST',
|
|
8299
|
-
query: {
|
|
8300
|
-
context: params.context,
|
|
8301
|
-
},
|
|
8302
8269
|
});
|
|
8303
8270
|
};
|
|
8304
8271
|
/*Endpoint to inject a submitted order directly to shopify, bypassing event processing*/
|
|
@@ -8308,9 +8275,6 @@ var ShopifyOrderDetailsResource = /** @class */ (function (_super) {
|
|
|
8308
8275
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/shopify/orders/ensure"),
|
|
8309
8276
|
headers: params.headers,
|
|
8310
8277
|
method: 'POST',
|
|
8311
|
-
query: {
|
|
8312
|
-
context: params.context,
|
|
8313
|
-
},
|
|
8314
8278
|
});
|
|
8315
8279
|
};
|
|
8316
8280
|
/*Check inventory for order items, ensuring expected quantities are in stock.*/
|
|
@@ -8319,9 +8283,6 @@ var ShopifyOrderDetailsResource = /** @class */ (function (_super) {
|
|
|
8319
8283
|
endpoint: "/".concat(encodeURIComponent(params.organization), "/shopify/orders/").concat(encodeURIComponent(params.number), "/checks/inventory"),
|
|
8320
8284
|
headers: params.headers,
|
|
8321
8285
|
method: 'GET',
|
|
8322
|
-
query: {
|
|
8323
|
-
context: params.context,
|
|
8324
|
-
},
|
|
8325
8286
|
});
|
|
8326
8287
|
};
|
|
8327
8288
|
/*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 +8293,6 @@ var ShopifyOrderDetailsResource = /** @class */ (function (_super) {
|
|
|
8332
8293
|
headers: params.headers,
|
|
8333
8294
|
method: 'POST',
|
|
8334
8295
|
query: {
|
|
8335
|
-
context: params.context,
|
|
8336
8296
|
expand: params.expand,
|
|
8337
8297
|
},
|
|
8338
8298
|
});
|
|
@@ -8364,7 +8324,6 @@ var ShopifyOrderDetailsResource = /** @class */ (function (_super) {
|
|
|
8364
8324
|
headers: params.headers,
|
|
8365
8325
|
method: 'PUT',
|
|
8366
8326
|
query: {
|
|
8367
|
-
context: params.context,
|
|
8368
8327
|
expand: params.expand,
|
|
8369
8328
|
},
|
|
8370
8329
|
});
|
|
@@ -8376,7 +8335,6 @@ var ShopifyOrderDetailsResource = /** @class */ (function (_super) {
|
|
|
8376
8335
|
headers: params.headers,
|
|
8377
8336
|
method: 'DELETE',
|
|
8378
8337
|
query: {
|
|
8379
|
-
context: params.context,
|
|
8380
8338
|
expand: params.expand,
|
|
8381
8339
|
},
|
|
8382
8340
|
});
|
|
@@ -8388,7 +8346,6 @@ var ShopifyOrderDetailsResource = /** @class */ (function (_super) {
|
|
|
8388
8346
|
headers: params.headers,
|
|
8389
8347
|
method: 'DELETE',
|
|
8390
8348
|
query: {
|
|
8391
|
-
context: params.context,
|
|
8392
8349
|
expand: params.expand,
|
|
8393
8350
|
},
|
|
8394
8351
|
});
|
|
@@ -8561,9 +8518,6 @@ var ShopifyWebhookEventsResource = /** @class */ (function (_super) {
|
|
|
8561
8518
|
endpoint: "/shopify/webhook/events/shops/".concat(encodeURIComponent(params.shopify_shop_id), "/").concat(encodeURIComponent(params.topic), "/").concat(encodeURIComponent(params.action)),
|
|
8562
8519
|
headers: params.headers,
|
|
8563
8520
|
method: 'POST',
|
|
8564
|
-
query: {
|
|
8565
|
-
context: params.context,
|
|
8566
|
-
},
|
|
8567
8521
|
});
|
|
8568
8522
|
};
|
|
8569
8523
|
ShopifyWebhookEventsResource.prototype.postByTopicAndAction = function (params) {
|
|
@@ -8572,9 +8526,6 @@ var ShopifyWebhookEventsResource = /** @class */ (function (_super) {
|
|
|
8572
8526
|
endpoint: "/shopify/webhook/events/".concat(encodeURIComponent(params.topic), "/").concat(encodeURIComponent(params.action)),
|
|
8573
8527
|
headers: params.headers,
|
|
8574
8528
|
method: 'POST',
|
|
8575
|
-
query: {
|
|
8576
|
-
context: params.context,
|
|
8577
|
-
},
|
|
8578
8529
|
});
|
|
8579
8530
|
};
|
|
8580
8531
|
return ShopifyWebhookEventsResource;
|
|
@@ -9157,13 +9108,6 @@ var V1CheckoutsResource = /** @class */ (function (_super) {
|
|
|
9157
9108
|
method: 'POST',
|
|
9158
9109
|
});
|
|
9159
9110
|
};
|
|
9160
|
-
V1CheckoutsResource.prototype.getV1ByV2CheckoutId = function (params) {
|
|
9161
|
-
return this.client.request({
|
|
9162
|
-
endpoint: "/checkouts/v1/".concat(encodeURIComponent(params.v2_checkout_id)),
|
|
9163
|
-
headers: params.headers,
|
|
9164
|
-
method: 'GET',
|
|
9165
|
-
});
|
|
9166
|
-
};
|
|
9167
9111
|
V1CheckoutsResource.prototype.getById = function (params) {
|
|
9168
9112
|
return this.client.request({
|
|
9169
9113
|
endpoint: "/checkouts/".concat(encodeURIComponent(params.id)),
|
|
@@ -9237,6 +9181,7 @@ export function createClient(options) {
|
|
|
9237
9181
|
return {
|
|
9238
9182
|
accountPaymentHolds: new AccountPaymentHoldsResource(options),
|
|
9239
9183
|
addressConfigurationSettings: new AddressConfigurationSettingsResource(options),
|
|
9184
|
+
aldoItems: new AldoItemsResource(options),
|
|
9240
9185
|
alertFailureSummaries: new AlertFailureSummariesResource(options),
|
|
9241
9186
|
alertRequeueSummaries: new AlertRequeueSummariesResource(options),
|
|
9242
9187
|
allOrganizationsMemberships: new AllOrganizationsMembershipsResource(options),
|
|
@@ -9258,6 +9203,7 @@ export function createClient(options) {
|
|
|
9258
9203
|
channelAccounts: new ChannelAccountsResource(options),
|
|
9259
9204
|
channelBilledTransactionPairs: new ChannelBilledTransactionPairsResource(options),
|
|
9260
9205
|
channelBillingStatements: new ChannelBillingStatementsResource(options),
|
|
9206
|
+
channelCurrencyPairsInternal: new ChannelCurrencyPairsInternalResource(options),
|
|
9261
9207
|
channelCurrencySettings: new ChannelCurrencySettingsResource(options),
|
|
9262
9208
|
channelDebugTransactions: new ChannelDebugTransactionsResource(options),
|
|
9263
9209
|
channelFulfillments: new ChannelFulfillmentsResource(options),
|
|
@@ -9281,7 +9227,6 @@ export function createClient(options) {
|
|
|
9281
9227
|
classificationStatistics: new ClassificationStatisticsResource(options),
|
|
9282
9228
|
classificationTaxonomy: new ClassificationTaxonomyResource(options),
|
|
9283
9229
|
cliLogEntries: new CliLogEntriesResource(options),
|
|
9284
|
-
colmItems: new ColmItemsResource(options),
|
|
9285
9230
|
commercialInvoiceComparisons: new CommercialInvoiceComparisonsResource(options),
|
|
9286
9231
|
commercialInvoiceSummaries: new CommercialInvoiceSummariesResource(options),
|
|
9287
9232
|
compliances: new CompliancesResource(options),
|
|
@@ -9294,6 +9239,7 @@ export function createClient(options) {
|
|
|
9294
9239
|
debugOrderTransactions: new DebugOrderTransactionsResource(options),
|
|
9295
9240
|
deliveredDutyOptions: new DeliveredDutyOptionsResource(options),
|
|
9296
9241
|
deliveredDutyPreferences: new DeliveredDutyPreferencesResource(options),
|
|
9242
|
+
dhlEcommerceWebhooks: new DhlEcommerceWebhooksResource(options),
|
|
9297
9243
|
discountCodes: new DiscountCodesResource(options),
|
|
9298
9244
|
disputes: new DisputesResource(options),
|
|
9299
9245
|
dutyInternalRates: new DutyInternalRatesResource(options),
|
|
@@ -9360,7 +9306,6 @@ export function createClient(options) {
|
|
|
9360
9306
|
ratecards: new RatecardsResource(options),
|
|
9361
9307
|
serviceFees: new ServiceFeesResource(options),
|
|
9362
9308
|
countries: new CountriesResource(options),
|
|
9363
|
-
contexts: new ContextsResource(options),
|
|
9364
9309
|
organizationSessions: new OrganizationSessionsResource(options),
|
|
9365
9310
|
shopifyOrders: new ShopifyOrdersResource(options),
|
|
9366
9311
|
knowYourBusinesses: new KnowYourBusinessesResource(options),
|
|
@@ -9453,6 +9398,7 @@ export function createClient(options) {
|
|
|
9453
9398
|
processorMerchants: new ProcessorMerchantsResource(options),
|
|
9454
9399
|
productClassifications: new ProductClassificationsResource(options),
|
|
9455
9400
|
productReviewHistories: new ProductReviewHistoriesResource(options),
|
|
9401
|
+
pspRoutingDistributionRevisions: new PspRoutingDistributionRevisionsResource(options),
|
|
9456
9402
|
publicHubs: new PublicHubsResource(options),
|
|
9457
9403
|
rateAndRuleLookups: new RateAndRuleLookupsResource(options),
|
|
9458
9404
|
rateLevels: new RateLevelsResource(options),
|