@wix/auto_sdk_payments_payment-acceptance-configurations 1.0.37 → 1.0.39
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/build/cjs/index.d.ts +10 -1110
- package/build/cjs/index.js +201 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +1198 -1
- package/build/cjs/index.typings.js +161 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +61 -2
- package/build/cjs/meta.js +116 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +10 -1110
- package/build/es/index.mjs +199 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +1198 -1
- package/build/es/index.typings.mjs +158 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +61 -2
- package/build/es/meta.mjs +114 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +34 -20
- package/build/internal/cjs/index.js +201 -1
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +112 -1
- package/build/internal/cjs/index.typings.js +161 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +60 -2
- package/build/internal/cjs/meta.js +116 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +34 -20
- package/build/internal/es/index.mjs +199 -1
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +112 -1
- package/build/internal/es/index.typings.mjs +158 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +60 -2
- package/build/internal/es/meta.mjs +114 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -26,12 +26,15 @@ __export(index_typings_exports, {
|
|
|
26
26
|
SortOrder: () => SortOrder,
|
|
27
27
|
State: () => State,
|
|
28
28
|
WebhookIdentityType: () => WebhookIdentityType,
|
|
29
|
+
addPaymentAcceptanceConfigurationRules: () => addPaymentAcceptanceConfigurationRules2,
|
|
29
30
|
bulkUpdatePaymentAcceptanceConfigurationTags: () => bulkUpdatePaymentAcceptanceConfigurationTags2,
|
|
30
31
|
bulkUpdatePaymentAcceptanceConfigurationTagsByFilter: () => bulkUpdatePaymentAcceptanceConfigurationTagsByFilter2,
|
|
31
32
|
createPaymentAcceptanceConfiguration: () => createPaymentAcceptanceConfiguration2,
|
|
32
33
|
deletePaymentAcceptanceConfiguration: () => deletePaymentAcceptanceConfiguration2,
|
|
33
34
|
getPaymentAcceptanceConfiguration: () => getPaymentAcceptanceConfiguration2,
|
|
34
35
|
queryPaymentAcceptanceConfigurations: () => queryPaymentAcceptanceConfigurations2,
|
|
36
|
+
removePaymentAcceptanceConfigurationRules: () => removePaymentAcceptanceConfigurationRules2,
|
|
37
|
+
typedQueryPaymentAcceptanceConfigurations: () => typedQueryPaymentAcceptanceConfigurations,
|
|
35
38
|
updatePaymentAcceptanceConfiguration: () => updatePaymentAcceptanceConfiguration2
|
|
36
39
|
});
|
|
37
40
|
module.exports = __toCommonJS(index_typings_exports);
|
|
@@ -202,6 +205,70 @@ function updatePaymentAcceptanceConfiguration(payload) {
|
|
|
202
205
|
}
|
|
203
206
|
return __updatePaymentAcceptanceConfiguration;
|
|
204
207
|
}
|
|
208
|
+
function addPaymentAcceptanceConfigurationRules(payload) {
|
|
209
|
+
function __addPaymentAcceptanceConfigurationRules({ host }) {
|
|
210
|
+
const metadata = {
|
|
211
|
+
entityFqdn: "wix.payments.payment_acceptance_configurations.v1.payment_acceptance_configuration",
|
|
212
|
+
method: "POST",
|
|
213
|
+
methodFqn: "wix.payments.payment_acceptance_configurations.v1.PaymentAcceptanceConfigurationService.AddPaymentAcceptanceConfigurationRules",
|
|
214
|
+
packageName: PACKAGE_NAME,
|
|
215
|
+
migrationOptions: {
|
|
216
|
+
optInTransformResponse: true
|
|
217
|
+
},
|
|
218
|
+
url: resolveWixPaymentsPaymentAcceptanceConfigurationsV1PaymentAcceptanceConfigurationServiceUrl(
|
|
219
|
+
{
|
|
220
|
+
protoPath: "/v1/payment-acceptance-configurations/{paymentAcceptanceConfigurationId}/add-rules",
|
|
221
|
+
data: payload,
|
|
222
|
+
host
|
|
223
|
+
}
|
|
224
|
+
),
|
|
225
|
+
data: payload,
|
|
226
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
227
|
+
{
|
|
228
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
229
|
+
paths: [
|
|
230
|
+
{ path: "paymentAcceptanceConfiguration.createdDate" },
|
|
231
|
+
{ path: "paymentAcceptanceConfiguration.updatedDate" }
|
|
232
|
+
]
|
|
233
|
+
}
|
|
234
|
+
])
|
|
235
|
+
};
|
|
236
|
+
return metadata;
|
|
237
|
+
}
|
|
238
|
+
return __addPaymentAcceptanceConfigurationRules;
|
|
239
|
+
}
|
|
240
|
+
function removePaymentAcceptanceConfigurationRules(payload) {
|
|
241
|
+
function __removePaymentAcceptanceConfigurationRules({ host }) {
|
|
242
|
+
const metadata = {
|
|
243
|
+
entityFqdn: "wix.payments.payment_acceptance_configurations.v1.payment_acceptance_configuration",
|
|
244
|
+
method: "POST",
|
|
245
|
+
methodFqn: "wix.payments.payment_acceptance_configurations.v1.PaymentAcceptanceConfigurationService.RemovePaymentAcceptanceConfigurationRules",
|
|
246
|
+
packageName: PACKAGE_NAME,
|
|
247
|
+
migrationOptions: {
|
|
248
|
+
optInTransformResponse: true
|
|
249
|
+
},
|
|
250
|
+
url: resolveWixPaymentsPaymentAcceptanceConfigurationsV1PaymentAcceptanceConfigurationServiceUrl(
|
|
251
|
+
{
|
|
252
|
+
protoPath: "/v1/payment-acceptance-configurations/{paymentAcceptanceConfigurationId}/remove-rules",
|
|
253
|
+
data: payload,
|
|
254
|
+
host
|
|
255
|
+
}
|
|
256
|
+
),
|
|
257
|
+
data: payload,
|
|
258
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
259
|
+
{
|
|
260
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
261
|
+
paths: [
|
|
262
|
+
{ path: "paymentAcceptanceConfiguration.createdDate" },
|
|
263
|
+
{ path: "paymentAcceptanceConfiguration.updatedDate" }
|
|
264
|
+
]
|
|
265
|
+
}
|
|
266
|
+
])
|
|
267
|
+
};
|
|
268
|
+
return metadata;
|
|
269
|
+
}
|
|
270
|
+
return __removePaymentAcceptanceConfigurationRules;
|
|
271
|
+
}
|
|
205
272
|
function deletePaymentAcceptanceConfiguration(payload) {
|
|
206
273
|
function __deletePaymentAcceptanceConfiguration({ host }) {
|
|
207
274
|
const metadata = {
|
|
@@ -480,6 +547,72 @@ async function updatePaymentAcceptanceConfiguration2(_id, paymentAcceptanceConfi
|
|
|
480
547
|
throw transformedError;
|
|
481
548
|
}
|
|
482
549
|
}
|
|
550
|
+
async function addPaymentAcceptanceConfigurationRules2(paymentAcceptanceConfigurationId, options) {
|
|
551
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
552
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
553
|
+
paymentAcceptanceConfigurationId,
|
|
554
|
+
paymentAcceptanceConfigurationRevision: options?.paymentAcceptanceConfigurationRevision,
|
|
555
|
+
rules: options?.rules
|
|
556
|
+
});
|
|
557
|
+
const reqOpts = addPaymentAcceptanceConfigurationRules(
|
|
558
|
+
payload
|
|
559
|
+
);
|
|
560
|
+
sideEffects?.onSiteCall?.();
|
|
561
|
+
try {
|
|
562
|
+
const result = await httpClient.request(reqOpts);
|
|
563
|
+
sideEffects?.onSuccess?.(result);
|
|
564
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
565
|
+
} catch (err) {
|
|
566
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
567
|
+
err,
|
|
568
|
+
{
|
|
569
|
+
spreadPathsToArguments: {},
|
|
570
|
+
explicitPathsToArguments: {
|
|
571
|
+
paymentAcceptanceConfigurationId: "$[0]",
|
|
572
|
+
paymentAcceptanceConfigurationRevision: "$[1].paymentAcceptanceConfigurationRevision",
|
|
573
|
+
rules: "$[1].rules"
|
|
574
|
+
},
|
|
575
|
+
singleArgumentUnchanged: false
|
|
576
|
+
},
|
|
577
|
+
["paymentAcceptanceConfigurationId", "options"]
|
|
578
|
+
);
|
|
579
|
+
sideEffects?.onError?.(err);
|
|
580
|
+
throw transformedError;
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
async function removePaymentAcceptanceConfigurationRules2(paymentAcceptanceConfigurationId, options) {
|
|
584
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
585
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
586
|
+
paymentAcceptanceConfigurationId,
|
|
587
|
+
paymentAcceptanceConfigurationRevision: options?.paymentAcceptanceConfigurationRevision,
|
|
588
|
+
ruleIds: options?.ruleIds
|
|
589
|
+
});
|
|
590
|
+
const reqOpts = removePaymentAcceptanceConfigurationRules(
|
|
591
|
+
payload
|
|
592
|
+
);
|
|
593
|
+
sideEffects?.onSiteCall?.();
|
|
594
|
+
try {
|
|
595
|
+
const result = await httpClient.request(reqOpts);
|
|
596
|
+
sideEffects?.onSuccess?.(result);
|
|
597
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
598
|
+
} catch (err) {
|
|
599
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
600
|
+
err,
|
|
601
|
+
{
|
|
602
|
+
spreadPathsToArguments: {},
|
|
603
|
+
explicitPathsToArguments: {
|
|
604
|
+
paymentAcceptanceConfigurationId: "$[0]",
|
|
605
|
+
paymentAcceptanceConfigurationRevision: "$[1].paymentAcceptanceConfigurationRevision",
|
|
606
|
+
ruleIds: "$[1].ruleIds"
|
|
607
|
+
},
|
|
608
|
+
singleArgumentUnchanged: false
|
|
609
|
+
},
|
|
610
|
+
["paymentAcceptanceConfigurationId", "options"]
|
|
611
|
+
);
|
|
612
|
+
sideEffects?.onError?.(err);
|
|
613
|
+
throw transformedError;
|
|
614
|
+
}
|
|
615
|
+
}
|
|
483
616
|
async function deletePaymentAcceptanceConfiguration2(paymentAcceptanceConfigurationId) {
|
|
484
617
|
const { httpClient, sideEffects } = arguments[1];
|
|
485
618
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
@@ -553,6 +686,31 @@ function queryPaymentAcceptanceConfigurations2() {
|
|
|
553
686
|
transformationPaths: {}
|
|
554
687
|
});
|
|
555
688
|
}
|
|
689
|
+
async function typedQueryPaymentAcceptanceConfigurations(query) {
|
|
690
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
691
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ query });
|
|
692
|
+
const reqOpts = queryPaymentAcceptanceConfigurations(
|
|
693
|
+
payload
|
|
694
|
+
);
|
|
695
|
+
sideEffects?.onSiteCall?.();
|
|
696
|
+
try {
|
|
697
|
+
const result = await httpClient.request(reqOpts);
|
|
698
|
+
sideEffects?.onSuccess?.(result);
|
|
699
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
700
|
+
} catch (err) {
|
|
701
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
702
|
+
err,
|
|
703
|
+
{
|
|
704
|
+
spreadPathsToArguments: {},
|
|
705
|
+
explicitPathsToArguments: { query: "$[0]" },
|
|
706
|
+
singleArgumentUnchanged: false
|
|
707
|
+
},
|
|
708
|
+
["query"]
|
|
709
|
+
);
|
|
710
|
+
sideEffects?.onError?.(err);
|
|
711
|
+
throw transformedError;
|
|
712
|
+
}
|
|
713
|
+
}
|
|
556
714
|
async function bulkUpdatePaymentAcceptanceConfigurationTags2(ids, options) {
|
|
557
715
|
const { httpClient, sideEffects } = arguments[2];
|
|
558
716
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
@@ -627,12 +785,15 @@ async function bulkUpdatePaymentAcceptanceConfigurationTagsByFilter2(filter, opt
|
|
|
627
785
|
SortOrder,
|
|
628
786
|
State,
|
|
629
787
|
WebhookIdentityType,
|
|
788
|
+
addPaymentAcceptanceConfigurationRules,
|
|
630
789
|
bulkUpdatePaymentAcceptanceConfigurationTags,
|
|
631
790
|
bulkUpdatePaymentAcceptanceConfigurationTagsByFilter,
|
|
632
791
|
createPaymentAcceptanceConfiguration,
|
|
633
792
|
deletePaymentAcceptanceConfiguration,
|
|
634
793
|
getPaymentAcceptanceConfiguration,
|
|
635
794
|
queryPaymentAcceptanceConfigurations,
|
|
795
|
+
removePaymentAcceptanceConfigurationRules,
|
|
796
|
+
typedQueryPaymentAcceptanceConfigurations,
|
|
636
797
|
updatePaymentAcceptanceConfiguration
|
|
637
798
|
});
|
|
638
799
|
//# sourceMappingURL=index.typings.js.map
|