@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
|
@@ -167,6 +167,70 @@ function updatePaymentAcceptanceConfiguration(payload) {
|
|
|
167
167
|
}
|
|
168
168
|
return __updatePaymentAcceptanceConfiguration;
|
|
169
169
|
}
|
|
170
|
+
function addPaymentAcceptanceConfigurationRules(payload) {
|
|
171
|
+
function __addPaymentAcceptanceConfigurationRules({ host }) {
|
|
172
|
+
const metadata = {
|
|
173
|
+
entityFqdn: "wix.payments.payment_acceptance_configurations.v1.payment_acceptance_configuration",
|
|
174
|
+
method: "POST",
|
|
175
|
+
methodFqn: "wix.payments.payment_acceptance_configurations.v1.PaymentAcceptanceConfigurationService.AddPaymentAcceptanceConfigurationRules",
|
|
176
|
+
packageName: PACKAGE_NAME,
|
|
177
|
+
migrationOptions: {
|
|
178
|
+
optInTransformResponse: true
|
|
179
|
+
},
|
|
180
|
+
url: resolveWixPaymentsPaymentAcceptanceConfigurationsV1PaymentAcceptanceConfigurationServiceUrl(
|
|
181
|
+
{
|
|
182
|
+
protoPath: "/v1/payment-acceptance-configurations/{paymentAcceptanceConfigurationId}/add-rules",
|
|
183
|
+
data: payload,
|
|
184
|
+
host
|
|
185
|
+
}
|
|
186
|
+
),
|
|
187
|
+
data: payload,
|
|
188
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
189
|
+
{
|
|
190
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
191
|
+
paths: [
|
|
192
|
+
{ path: "paymentAcceptanceConfiguration.createdDate" },
|
|
193
|
+
{ path: "paymentAcceptanceConfiguration.updatedDate" }
|
|
194
|
+
]
|
|
195
|
+
}
|
|
196
|
+
])
|
|
197
|
+
};
|
|
198
|
+
return metadata;
|
|
199
|
+
}
|
|
200
|
+
return __addPaymentAcceptanceConfigurationRules;
|
|
201
|
+
}
|
|
202
|
+
function removePaymentAcceptanceConfigurationRules(payload) {
|
|
203
|
+
function __removePaymentAcceptanceConfigurationRules({ host }) {
|
|
204
|
+
const metadata = {
|
|
205
|
+
entityFqdn: "wix.payments.payment_acceptance_configurations.v1.payment_acceptance_configuration",
|
|
206
|
+
method: "POST",
|
|
207
|
+
methodFqn: "wix.payments.payment_acceptance_configurations.v1.PaymentAcceptanceConfigurationService.RemovePaymentAcceptanceConfigurationRules",
|
|
208
|
+
packageName: PACKAGE_NAME,
|
|
209
|
+
migrationOptions: {
|
|
210
|
+
optInTransformResponse: true
|
|
211
|
+
},
|
|
212
|
+
url: resolveWixPaymentsPaymentAcceptanceConfigurationsV1PaymentAcceptanceConfigurationServiceUrl(
|
|
213
|
+
{
|
|
214
|
+
protoPath: "/v1/payment-acceptance-configurations/{paymentAcceptanceConfigurationId}/remove-rules",
|
|
215
|
+
data: payload,
|
|
216
|
+
host
|
|
217
|
+
}
|
|
218
|
+
),
|
|
219
|
+
data: payload,
|
|
220
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
221
|
+
{
|
|
222
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
223
|
+
paths: [
|
|
224
|
+
{ path: "paymentAcceptanceConfiguration.createdDate" },
|
|
225
|
+
{ path: "paymentAcceptanceConfiguration.updatedDate" }
|
|
226
|
+
]
|
|
227
|
+
}
|
|
228
|
+
])
|
|
229
|
+
};
|
|
230
|
+
return metadata;
|
|
231
|
+
}
|
|
232
|
+
return __removePaymentAcceptanceConfigurationRules;
|
|
233
|
+
}
|
|
170
234
|
function deletePaymentAcceptanceConfiguration(payload) {
|
|
171
235
|
function __deletePaymentAcceptanceConfiguration({ host }) {
|
|
172
236
|
const metadata = {
|
|
@@ -445,6 +509,72 @@ async function updatePaymentAcceptanceConfiguration2(_id, paymentAcceptanceConfi
|
|
|
445
509
|
throw transformedError;
|
|
446
510
|
}
|
|
447
511
|
}
|
|
512
|
+
async function addPaymentAcceptanceConfigurationRules2(paymentAcceptanceConfigurationId, options) {
|
|
513
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
514
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
515
|
+
paymentAcceptanceConfigurationId,
|
|
516
|
+
paymentAcceptanceConfigurationRevision: options?.paymentAcceptanceConfigurationRevision,
|
|
517
|
+
rules: options?.rules
|
|
518
|
+
});
|
|
519
|
+
const reqOpts = addPaymentAcceptanceConfigurationRules(
|
|
520
|
+
payload
|
|
521
|
+
);
|
|
522
|
+
sideEffects?.onSiteCall?.();
|
|
523
|
+
try {
|
|
524
|
+
const result = await httpClient.request(reqOpts);
|
|
525
|
+
sideEffects?.onSuccess?.(result);
|
|
526
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
527
|
+
} catch (err) {
|
|
528
|
+
const transformedError = sdkTransformError(
|
|
529
|
+
err,
|
|
530
|
+
{
|
|
531
|
+
spreadPathsToArguments: {},
|
|
532
|
+
explicitPathsToArguments: {
|
|
533
|
+
paymentAcceptanceConfigurationId: "$[0]",
|
|
534
|
+
paymentAcceptanceConfigurationRevision: "$[1].paymentAcceptanceConfigurationRevision",
|
|
535
|
+
rules: "$[1].rules"
|
|
536
|
+
},
|
|
537
|
+
singleArgumentUnchanged: false
|
|
538
|
+
},
|
|
539
|
+
["paymentAcceptanceConfigurationId", "options"]
|
|
540
|
+
);
|
|
541
|
+
sideEffects?.onError?.(err);
|
|
542
|
+
throw transformedError;
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
async function removePaymentAcceptanceConfigurationRules2(paymentAcceptanceConfigurationId, options) {
|
|
546
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
547
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
548
|
+
paymentAcceptanceConfigurationId,
|
|
549
|
+
paymentAcceptanceConfigurationRevision: options?.paymentAcceptanceConfigurationRevision,
|
|
550
|
+
ruleIds: options?.ruleIds
|
|
551
|
+
});
|
|
552
|
+
const reqOpts = removePaymentAcceptanceConfigurationRules(
|
|
553
|
+
payload
|
|
554
|
+
);
|
|
555
|
+
sideEffects?.onSiteCall?.();
|
|
556
|
+
try {
|
|
557
|
+
const result = await httpClient.request(reqOpts);
|
|
558
|
+
sideEffects?.onSuccess?.(result);
|
|
559
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
560
|
+
} catch (err) {
|
|
561
|
+
const transformedError = sdkTransformError(
|
|
562
|
+
err,
|
|
563
|
+
{
|
|
564
|
+
spreadPathsToArguments: {},
|
|
565
|
+
explicitPathsToArguments: {
|
|
566
|
+
paymentAcceptanceConfigurationId: "$[0]",
|
|
567
|
+
paymentAcceptanceConfigurationRevision: "$[1].paymentAcceptanceConfigurationRevision",
|
|
568
|
+
ruleIds: "$[1].ruleIds"
|
|
569
|
+
},
|
|
570
|
+
singleArgumentUnchanged: false
|
|
571
|
+
},
|
|
572
|
+
["paymentAcceptanceConfigurationId", "options"]
|
|
573
|
+
);
|
|
574
|
+
sideEffects?.onError?.(err);
|
|
575
|
+
throw transformedError;
|
|
576
|
+
}
|
|
577
|
+
}
|
|
448
578
|
async function deletePaymentAcceptanceConfiguration2(paymentAcceptanceConfigurationId) {
|
|
449
579
|
const { httpClient, sideEffects } = arguments[1];
|
|
450
580
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
@@ -518,6 +648,31 @@ function queryPaymentAcceptanceConfigurations2() {
|
|
|
518
648
|
transformationPaths: {}
|
|
519
649
|
});
|
|
520
650
|
}
|
|
651
|
+
async function typedQueryPaymentAcceptanceConfigurations(query) {
|
|
652
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
653
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({ query });
|
|
654
|
+
const reqOpts = queryPaymentAcceptanceConfigurations(
|
|
655
|
+
payload
|
|
656
|
+
);
|
|
657
|
+
sideEffects?.onSiteCall?.();
|
|
658
|
+
try {
|
|
659
|
+
const result = await httpClient.request(reqOpts);
|
|
660
|
+
sideEffects?.onSuccess?.(result);
|
|
661
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
662
|
+
} catch (err) {
|
|
663
|
+
const transformedError = sdkTransformError(
|
|
664
|
+
err,
|
|
665
|
+
{
|
|
666
|
+
spreadPathsToArguments: {},
|
|
667
|
+
explicitPathsToArguments: { query: "$[0]" },
|
|
668
|
+
singleArgumentUnchanged: false
|
|
669
|
+
},
|
|
670
|
+
["query"]
|
|
671
|
+
);
|
|
672
|
+
sideEffects?.onError?.(err);
|
|
673
|
+
throw transformedError;
|
|
674
|
+
}
|
|
675
|
+
}
|
|
521
676
|
async function bulkUpdatePaymentAcceptanceConfigurationTags2(ids, options) {
|
|
522
677
|
const { httpClient, sideEffects } = arguments[2];
|
|
523
678
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
@@ -591,12 +746,15 @@ export {
|
|
|
591
746
|
SortOrder,
|
|
592
747
|
State,
|
|
593
748
|
WebhookIdentityType,
|
|
749
|
+
addPaymentAcceptanceConfigurationRules2 as addPaymentAcceptanceConfigurationRules,
|
|
594
750
|
bulkUpdatePaymentAcceptanceConfigurationTags2 as bulkUpdatePaymentAcceptanceConfigurationTags,
|
|
595
751
|
bulkUpdatePaymentAcceptanceConfigurationTagsByFilter2 as bulkUpdatePaymentAcceptanceConfigurationTagsByFilter,
|
|
596
752
|
createPaymentAcceptanceConfiguration2 as createPaymentAcceptanceConfiguration,
|
|
597
753
|
deletePaymentAcceptanceConfiguration2 as deletePaymentAcceptanceConfiguration,
|
|
598
754
|
getPaymentAcceptanceConfiguration2 as getPaymentAcceptanceConfiguration,
|
|
599
755
|
queryPaymentAcceptanceConfigurations2 as queryPaymentAcceptanceConfigurations,
|
|
756
|
+
removePaymentAcceptanceConfigurationRules2 as removePaymentAcceptanceConfigurationRules,
|
|
757
|
+
typedQueryPaymentAcceptanceConfigurations,
|
|
600
758
|
updatePaymentAcceptanceConfiguration2 as updatePaymentAcceptanceConfiguration
|
|
601
759
|
};
|
|
602
760
|
//# sourceMappingURL=index.typings.mjs.map
|