@wix/auto_sdk_payments_payment-acceptance-configurations 1.0.36 → 1.0.38
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 +94 -1
- package/build/cjs/index.js +156 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +1 -1
- package/build/cjs/index.typings.js +134 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +74 -2
- package/build/cjs/meta.js +116 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +94 -1
- package/build/es/index.mjs +154 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +1 -1
- package/build/es/index.typings.mjs +132 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +74 -2
- package/build/es/meta.mjs +114 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +29 -3
- package/build/internal/cjs/index.js +156 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +120 -1
- package/build/internal/cjs/index.typings.js +134 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +74 -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 +29 -3
- package/build/internal/es/index.mjs +154 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +120 -1
- package/build/internal/es/index.typings.mjs +132 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +74 -2
- package/build/internal/es/meta.mjs +114 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -40,6 +40,13 @@ interface PaymentAcceptanceConfiguration {
|
|
|
40
40
|
tags?: Tags;
|
|
41
41
|
}
|
|
42
42
|
interface PaymentAcceptanceRule {
|
|
43
|
+
/**
|
|
44
|
+
* Rule Id
|
|
45
|
+
* @format GUID
|
|
46
|
+
* @readonly
|
|
47
|
+
* @immutable
|
|
48
|
+
*/
|
|
49
|
+
_id?: string | null;
|
|
43
50
|
/**
|
|
44
51
|
* Payment method type id
|
|
45
52
|
* @format GUID
|
|
@@ -184,6 +191,51 @@ interface UpdatePaymentAcceptanceConfigurationResponse {
|
|
|
184
191
|
/** Updated PaymentAcceptanceConfiguration. */
|
|
185
192
|
paymentAcceptanceConfiguration?: PaymentAcceptanceConfiguration;
|
|
186
193
|
}
|
|
194
|
+
interface AddPaymentAcceptanceConfigurationRulesRequest {
|
|
195
|
+
/**
|
|
196
|
+
* Id of payment acceptance configuration to update
|
|
197
|
+
* @format GUID
|
|
198
|
+
*/
|
|
199
|
+
paymentAcceptanceConfigurationId: string;
|
|
200
|
+
/**
|
|
201
|
+
* Payment acceptance configuration revision
|
|
202
|
+
* @readonly
|
|
203
|
+
*/
|
|
204
|
+
paymentAcceptanceConfigurationRevision?: string | null;
|
|
205
|
+
/**
|
|
206
|
+
* Rules to add
|
|
207
|
+
* @minSize 1
|
|
208
|
+
* @maxSize 1000
|
|
209
|
+
*/
|
|
210
|
+
rules: PaymentAcceptanceRule[];
|
|
211
|
+
}
|
|
212
|
+
interface AddPaymentAcceptanceConfigurationRulesResponse {
|
|
213
|
+
/** Updated PaymentAcceptanceConfiguration */
|
|
214
|
+
paymentAcceptanceConfiguration?: PaymentAcceptanceConfiguration;
|
|
215
|
+
}
|
|
216
|
+
interface RemovePaymentAcceptanceConfigurationRulesRequest {
|
|
217
|
+
/**
|
|
218
|
+
* Id of payment acceptance configuration to update
|
|
219
|
+
* @format GUID
|
|
220
|
+
*/
|
|
221
|
+
paymentAcceptanceConfigurationId: string;
|
|
222
|
+
/**
|
|
223
|
+
* Payment acceptance configuration revision
|
|
224
|
+
* @readonly
|
|
225
|
+
*/
|
|
226
|
+
paymentAcceptanceConfigurationRevision?: string | null;
|
|
227
|
+
/**
|
|
228
|
+
* IDs of the rules to remove
|
|
229
|
+
* @format GUID
|
|
230
|
+
* @minSize 1
|
|
231
|
+
* @maxSize 1000
|
|
232
|
+
*/
|
|
233
|
+
ruleIds: string[];
|
|
234
|
+
}
|
|
235
|
+
interface RemovePaymentAcceptanceConfigurationRulesResponse {
|
|
236
|
+
/** Updated PaymentAcceptanceConfiguration */
|
|
237
|
+
paymentAcceptanceConfiguration?: PaymentAcceptanceConfiguration;
|
|
238
|
+
}
|
|
187
239
|
interface DeletePaymentAcceptanceConfigurationRequest {
|
|
188
240
|
/**
|
|
189
241
|
* Id of payment acceptance configuration to delete
|
|
@@ -408,6 +460,10 @@ interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
|
|
|
408
460
|
wixelAssigned?: WixelAssigned;
|
|
409
461
|
/** Emitted when Wixel is detached. */
|
|
410
462
|
wixelUnassigned?: WixelUnassigned;
|
|
463
|
+
/** Emitted when StudioTwo is attached. */
|
|
464
|
+
studioTwoAssigned?: StudioTwoAssigned;
|
|
465
|
+
/** Emitted when StudioTwo is detached. */
|
|
466
|
+
studioTwoUnassigned?: StudioTwoUnassigned;
|
|
411
467
|
/**
|
|
412
468
|
* A meta site id.
|
|
413
469
|
* @format GUID
|
|
@@ -478,6 +534,10 @@ interface MetaSiteSpecialEventPayloadOneOf {
|
|
|
478
534
|
wixelAssigned?: WixelAssigned;
|
|
479
535
|
/** Emitted when Wixel is detached. */
|
|
480
536
|
wixelUnassigned?: WixelUnassigned;
|
|
537
|
+
/** Emitted when StudioTwo is attached. */
|
|
538
|
+
studioTwoAssigned?: StudioTwoAssigned;
|
|
539
|
+
/** Emitted when StudioTwo is detached. */
|
|
540
|
+
studioTwoUnassigned?: StudioTwoUnassigned;
|
|
481
541
|
}
|
|
482
542
|
interface Asset {
|
|
483
543
|
/**
|
|
@@ -830,6 +890,12 @@ interface WixelAssigned {
|
|
|
830
890
|
/** Unassigned Wixel */
|
|
831
891
|
interface WixelUnassigned {
|
|
832
892
|
}
|
|
893
|
+
/** Assigned StudioTwo */
|
|
894
|
+
interface StudioTwoAssigned {
|
|
895
|
+
}
|
|
896
|
+
/** Unassigned StudioTwo */
|
|
897
|
+
interface StudioTwoUnassigned {
|
|
898
|
+
}
|
|
833
899
|
interface DomainEvent extends DomainEventBodyOneOf {
|
|
834
900
|
createdEvent?: EntityCreatedEvent;
|
|
835
901
|
updatedEvent?: EntityUpdatedEvent;
|
|
@@ -1004,6 +1070,33 @@ interface UpdatePaymentAcceptanceConfiguration {
|
|
|
1004
1070
|
/** Tags */
|
|
1005
1071
|
tags?: Tags;
|
|
1006
1072
|
}
|
|
1073
|
+
interface AddPaymentAcceptanceConfigurationRulesOptions {
|
|
1074
|
+
/**
|
|
1075
|
+
* Payment acceptance configuration revision
|
|
1076
|
+
* @readonly
|
|
1077
|
+
*/
|
|
1078
|
+
paymentAcceptanceConfigurationRevision?: string | null;
|
|
1079
|
+
/**
|
|
1080
|
+
* Rules to add
|
|
1081
|
+
* @minSize 1
|
|
1082
|
+
* @maxSize 1000
|
|
1083
|
+
*/
|
|
1084
|
+
rules: PaymentAcceptanceRule[];
|
|
1085
|
+
}
|
|
1086
|
+
interface RemovePaymentAcceptanceConfigurationRulesOptions {
|
|
1087
|
+
/**
|
|
1088
|
+
* Payment acceptance configuration revision
|
|
1089
|
+
* @readonly
|
|
1090
|
+
*/
|
|
1091
|
+
paymentAcceptanceConfigurationRevision?: string | null;
|
|
1092
|
+
/**
|
|
1093
|
+
* IDs of the rules to remove
|
|
1094
|
+
* @format GUID
|
|
1095
|
+
* @minSize 1
|
|
1096
|
+
* @maxSize 1000
|
|
1097
|
+
*/
|
|
1098
|
+
ruleIds: string[];
|
|
1099
|
+
}
|
|
1007
1100
|
interface QueryCursorResult {
|
|
1008
1101
|
cursors: Cursors;
|
|
1009
1102
|
hasNext: () => boolean;
|
|
@@ -1094,4 +1187,4 @@ interface BulkUpdatePaymentAcceptanceConfigurationTagsByFilterOptions {
|
|
|
1094
1187
|
unassignTags?: Tags;
|
|
1095
1188
|
}
|
|
1096
1189
|
|
|
1097
|
-
export { type ActionEvent, type ApplicationError, type Asset, type BulkActionMetadata, type BulkUpdatePaymentAcceptanceConfigurationTagsByFilterOptions, type BulkUpdatePaymentAcceptanceConfigurationTagsByFilterRequest, type BulkUpdatePaymentAcceptanceConfigurationTagsByFilterResponse, type BulkUpdatePaymentAcceptanceConfigurationTagsOptions, type BulkUpdatePaymentAcceptanceConfigurationTagsRequest, type BulkUpdatePaymentAcceptanceConfigurationTagsResponse, type BulkUpdatePaymentAcceptanceConfigurationTagsResult, type Countries, type CreatePaymentAcceptanceConfigurationRequest, type CreatePaymentAcceptanceConfigurationResponse, type Currencies, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DeleteContext, type DeletePaymentAcceptanceConfigurationRequest, type DeletePaymentAcceptanceConfigurationResponse, DeleteStatus, type DeleteStatusWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type ExtendedFields, type GetPaymentAcceptanceConfigurationRequest, type GetPaymentAcceptanceConfigurationResponse, type IdentificationData, type IdentificationDataIdOneOf, type ItemMetadata, type MessageEnvelope, type MetaSiteSpecialEvent, type MetaSiteSpecialEventPayloadOneOf, Namespace, type NamespaceChanged, type NamespaceWithLiterals, type OdeditorAssigned, type OdeditorUnassigned, type PaymentAcceptanceConfiguration, type PaymentAcceptanceConfigurationsQueryBuilder, type PaymentAcceptanceConfigurationsQueryResult, type PaymentAcceptanceRule, type PaymentBrands, type PicassoAssigned, type PicassoUnassigned, type QueryPaymentAcceptanceConfigurationsRequest, type QueryPaymentAcceptanceConfigurationsResponse, type RestoreInfo, type Restrictions, type RestrictionsCountriesOneOf, type RestrictionsCurrenciesOneOf, type RestrictionsPaymentBrandsOneOf, type ServiceProvisioned, type ServiceRemoved, type SiteCreated, SiteCreatedContext, type SiteCreatedContextWithLiterals, type SiteDeleted, type SiteHardDeleted, type SiteMarkedAsTemplate, type SiteMarkedAsWixSite, type SitePublished, type SitePurgedExternally, type SiteRenamed, type SiteTransferred, type SiteUndeleted, type SiteUnpublished, type SiteUrlChanged, SortOrder, type SortOrderWithLiterals, type Sorting, State, type StateWithLiterals, type StudioAssigned, type StudioUnassigned, type TagList, type Tags, type UpdatePaymentAcceptanceConfiguration, type UpdatePaymentAcceptanceConfigurationRequest, type UpdatePaymentAcceptanceConfigurationResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type WixelAssigned, type WixelUnassigned };
|
|
1190
|
+
export { type ActionEvent, type AddPaymentAcceptanceConfigurationRulesOptions, type AddPaymentAcceptanceConfigurationRulesRequest, type AddPaymentAcceptanceConfigurationRulesResponse, type ApplicationError, type Asset, type BulkActionMetadata, type BulkUpdatePaymentAcceptanceConfigurationTagsByFilterOptions, type BulkUpdatePaymentAcceptanceConfigurationTagsByFilterRequest, type BulkUpdatePaymentAcceptanceConfigurationTagsByFilterResponse, type BulkUpdatePaymentAcceptanceConfigurationTagsOptions, type BulkUpdatePaymentAcceptanceConfigurationTagsRequest, type BulkUpdatePaymentAcceptanceConfigurationTagsResponse, type BulkUpdatePaymentAcceptanceConfigurationTagsResult, type Countries, type CreatePaymentAcceptanceConfigurationRequest, type CreatePaymentAcceptanceConfigurationResponse, type Currencies, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DeleteContext, type DeletePaymentAcceptanceConfigurationRequest, type DeletePaymentAcceptanceConfigurationResponse, DeleteStatus, type DeleteStatusWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type ExtendedFields, type GetPaymentAcceptanceConfigurationRequest, type GetPaymentAcceptanceConfigurationResponse, type IdentificationData, type IdentificationDataIdOneOf, type ItemMetadata, type MessageEnvelope, type MetaSiteSpecialEvent, type MetaSiteSpecialEventPayloadOneOf, Namespace, type NamespaceChanged, type NamespaceWithLiterals, type OdeditorAssigned, type OdeditorUnassigned, type PaymentAcceptanceConfiguration, type PaymentAcceptanceConfigurationsQueryBuilder, type PaymentAcceptanceConfigurationsQueryResult, type PaymentAcceptanceRule, type PaymentBrands, type PicassoAssigned, type PicassoUnassigned, type QueryPaymentAcceptanceConfigurationsRequest, type QueryPaymentAcceptanceConfigurationsResponse, type RemovePaymentAcceptanceConfigurationRulesOptions, type RemovePaymentAcceptanceConfigurationRulesRequest, type RemovePaymentAcceptanceConfigurationRulesResponse, type RestoreInfo, type Restrictions, type RestrictionsCountriesOneOf, type RestrictionsCurrenciesOneOf, type RestrictionsPaymentBrandsOneOf, type ServiceProvisioned, type ServiceRemoved, type SiteCreated, SiteCreatedContext, type SiteCreatedContextWithLiterals, type SiteDeleted, type SiteHardDeleted, type SiteMarkedAsTemplate, type SiteMarkedAsWixSite, type SitePublished, type SitePurgedExternally, type SiteRenamed, type SiteTransferred, type SiteUndeleted, type SiteUnpublished, type SiteUrlChanged, SortOrder, type SortOrderWithLiterals, type Sorting, State, type StateWithLiterals, type StudioAssigned, type StudioTwoAssigned, type StudioTwoUnassigned, type StudioUnassigned, type TagList, type Tags, type UpdatePaymentAcceptanceConfiguration, type UpdatePaymentAcceptanceConfigurationRequest, type UpdatePaymentAcceptanceConfigurationResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type WixelAssigned, type WixelUnassigned };
|
package/build/cjs/index.js
CHANGED
|
@@ -26,12 +26,14 @@ __export(index_exports, {
|
|
|
26
26
|
SortOrder: () => SortOrder,
|
|
27
27
|
State: () => State,
|
|
28
28
|
WebhookIdentityType: () => WebhookIdentityType,
|
|
29
|
+
addPaymentAcceptanceConfigurationRules: () => addPaymentAcceptanceConfigurationRules4,
|
|
29
30
|
bulkUpdatePaymentAcceptanceConfigurationTags: () => bulkUpdatePaymentAcceptanceConfigurationTags4,
|
|
30
31
|
bulkUpdatePaymentAcceptanceConfigurationTagsByFilter: () => bulkUpdatePaymentAcceptanceConfigurationTagsByFilter4,
|
|
31
32
|
createPaymentAcceptanceConfiguration: () => createPaymentAcceptanceConfiguration4,
|
|
32
33
|
deletePaymentAcceptanceConfiguration: () => deletePaymentAcceptanceConfiguration4,
|
|
33
34
|
getPaymentAcceptanceConfiguration: () => getPaymentAcceptanceConfiguration4,
|
|
34
35
|
queryPaymentAcceptanceConfigurations: () => queryPaymentAcceptanceConfigurations4,
|
|
36
|
+
removePaymentAcceptanceConfigurationRules: () => removePaymentAcceptanceConfigurationRules4,
|
|
35
37
|
updatePaymentAcceptanceConfiguration: () => updatePaymentAcceptanceConfiguration4
|
|
36
38
|
});
|
|
37
39
|
module.exports = __toCommonJS(index_exports);
|
|
@@ -202,6 +204,70 @@ function updatePaymentAcceptanceConfiguration(payload) {
|
|
|
202
204
|
}
|
|
203
205
|
return __updatePaymentAcceptanceConfiguration;
|
|
204
206
|
}
|
|
207
|
+
function addPaymentAcceptanceConfigurationRules(payload) {
|
|
208
|
+
function __addPaymentAcceptanceConfigurationRules({ host }) {
|
|
209
|
+
const metadata = {
|
|
210
|
+
entityFqdn: "wix.payments.payment_acceptance_configurations.v1.payment_acceptance_configuration",
|
|
211
|
+
method: "POST",
|
|
212
|
+
methodFqn: "wix.payments.payment_acceptance_configurations.v1.PaymentAcceptanceConfigurationService.AddPaymentAcceptanceConfigurationRules",
|
|
213
|
+
packageName: PACKAGE_NAME,
|
|
214
|
+
migrationOptions: {
|
|
215
|
+
optInTransformResponse: true
|
|
216
|
+
},
|
|
217
|
+
url: resolveWixPaymentsPaymentAcceptanceConfigurationsV1PaymentAcceptanceConfigurationServiceUrl(
|
|
218
|
+
{
|
|
219
|
+
protoPath: "/v1/payment-acceptance-configurations/{paymentAcceptanceConfigurationId}/add-rules",
|
|
220
|
+
data: payload,
|
|
221
|
+
host
|
|
222
|
+
}
|
|
223
|
+
),
|
|
224
|
+
data: payload,
|
|
225
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
226
|
+
{
|
|
227
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
228
|
+
paths: [
|
|
229
|
+
{ path: "paymentAcceptanceConfiguration.createdDate" },
|
|
230
|
+
{ path: "paymentAcceptanceConfiguration.updatedDate" }
|
|
231
|
+
]
|
|
232
|
+
}
|
|
233
|
+
])
|
|
234
|
+
};
|
|
235
|
+
return metadata;
|
|
236
|
+
}
|
|
237
|
+
return __addPaymentAcceptanceConfigurationRules;
|
|
238
|
+
}
|
|
239
|
+
function removePaymentAcceptanceConfigurationRules(payload) {
|
|
240
|
+
function __removePaymentAcceptanceConfigurationRules({ host }) {
|
|
241
|
+
const metadata = {
|
|
242
|
+
entityFqdn: "wix.payments.payment_acceptance_configurations.v1.payment_acceptance_configuration",
|
|
243
|
+
method: "POST",
|
|
244
|
+
methodFqn: "wix.payments.payment_acceptance_configurations.v1.PaymentAcceptanceConfigurationService.RemovePaymentAcceptanceConfigurationRules",
|
|
245
|
+
packageName: PACKAGE_NAME,
|
|
246
|
+
migrationOptions: {
|
|
247
|
+
optInTransformResponse: true
|
|
248
|
+
},
|
|
249
|
+
url: resolveWixPaymentsPaymentAcceptanceConfigurationsV1PaymentAcceptanceConfigurationServiceUrl(
|
|
250
|
+
{
|
|
251
|
+
protoPath: "/v1/payment-acceptance-configurations/{paymentAcceptanceConfigurationId}/remove-rules",
|
|
252
|
+
data: payload,
|
|
253
|
+
host
|
|
254
|
+
}
|
|
255
|
+
),
|
|
256
|
+
data: payload,
|
|
257
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
258
|
+
{
|
|
259
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
260
|
+
paths: [
|
|
261
|
+
{ path: "paymentAcceptanceConfiguration.createdDate" },
|
|
262
|
+
{ path: "paymentAcceptanceConfiguration.updatedDate" }
|
|
263
|
+
]
|
|
264
|
+
}
|
|
265
|
+
])
|
|
266
|
+
};
|
|
267
|
+
return metadata;
|
|
268
|
+
}
|
|
269
|
+
return __removePaymentAcceptanceConfigurationRules;
|
|
270
|
+
}
|
|
205
271
|
function deletePaymentAcceptanceConfiguration(payload) {
|
|
206
272
|
function __deletePaymentAcceptanceConfiguration({ host }) {
|
|
207
273
|
const metadata = {
|
|
@@ -480,6 +546,72 @@ async function updatePaymentAcceptanceConfiguration2(_id, paymentAcceptanceConfi
|
|
|
480
546
|
throw transformedError;
|
|
481
547
|
}
|
|
482
548
|
}
|
|
549
|
+
async function addPaymentAcceptanceConfigurationRules2(paymentAcceptanceConfigurationId, options) {
|
|
550
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
551
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
552
|
+
paymentAcceptanceConfigurationId,
|
|
553
|
+
paymentAcceptanceConfigurationRevision: options?.paymentAcceptanceConfigurationRevision,
|
|
554
|
+
rules: options?.rules
|
|
555
|
+
});
|
|
556
|
+
const reqOpts = addPaymentAcceptanceConfigurationRules(
|
|
557
|
+
payload
|
|
558
|
+
);
|
|
559
|
+
sideEffects?.onSiteCall?.();
|
|
560
|
+
try {
|
|
561
|
+
const result = await httpClient.request(reqOpts);
|
|
562
|
+
sideEffects?.onSuccess?.(result);
|
|
563
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
564
|
+
} catch (err) {
|
|
565
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
566
|
+
err,
|
|
567
|
+
{
|
|
568
|
+
spreadPathsToArguments: {},
|
|
569
|
+
explicitPathsToArguments: {
|
|
570
|
+
paymentAcceptanceConfigurationId: "$[0]",
|
|
571
|
+
paymentAcceptanceConfigurationRevision: "$[1].paymentAcceptanceConfigurationRevision",
|
|
572
|
+
rules: "$[1].rules"
|
|
573
|
+
},
|
|
574
|
+
singleArgumentUnchanged: false
|
|
575
|
+
},
|
|
576
|
+
["paymentAcceptanceConfigurationId", "options"]
|
|
577
|
+
);
|
|
578
|
+
sideEffects?.onError?.(err);
|
|
579
|
+
throw transformedError;
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
async function removePaymentAcceptanceConfigurationRules2(paymentAcceptanceConfigurationId, options) {
|
|
583
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
584
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
585
|
+
paymentAcceptanceConfigurationId,
|
|
586
|
+
paymentAcceptanceConfigurationRevision: options?.paymentAcceptanceConfigurationRevision,
|
|
587
|
+
ruleIds: options?.ruleIds
|
|
588
|
+
});
|
|
589
|
+
const reqOpts = removePaymentAcceptanceConfigurationRules(
|
|
590
|
+
payload
|
|
591
|
+
);
|
|
592
|
+
sideEffects?.onSiteCall?.();
|
|
593
|
+
try {
|
|
594
|
+
const result = await httpClient.request(reqOpts);
|
|
595
|
+
sideEffects?.onSuccess?.(result);
|
|
596
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
597
|
+
} catch (err) {
|
|
598
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
599
|
+
err,
|
|
600
|
+
{
|
|
601
|
+
spreadPathsToArguments: {},
|
|
602
|
+
explicitPathsToArguments: {
|
|
603
|
+
paymentAcceptanceConfigurationId: "$[0]",
|
|
604
|
+
paymentAcceptanceConfigurationRevision: "$[1].paymentAcceptanceConfigurationRevision",
|
|
605
|
+
ruleIds: "$[1].ruleIds"
|
|
606
|
+
},
|
|
607
|
+
singleArgumentUnchanged: false
|
|
608
|
+
},
|
|
609
|
+
["paymentAcceptanceConfigurationId", "options"]
|
|
610
|
+
);
|
|
611
|
+
sideEffects?.onError?.(err);
|
|
612
|
+
throw transformedError;
|
|
613
|
+
}
|
|
614
|
+
}
|
|
483
615
|
async function deletePaymentAcceptanceConfiguration2(paymentAcceptanceConfigurationId) {
|
|
484
616
|
const { httpClient, sideEffects } = arguments[1];
|
|
485
617
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
@@ -643,6 +775,22 @@ function updatePaymentAcceptanceConfiguration3(httpClient) {
|
|
|
643
775
|
{ httpClient }
|
|
644
776
|
);
|
|
645
777
|
}
|
|
778
|
+
function addPaymentAcceptanceConfigurationRules3(httpClient) {
|
|
779
|
+
return (paymentAcceptanceConfigurationId, options) => addPaymentAcceptanceConfigurationRules2(
|
|
780
|
+
paymentAcceptanceConfigurationId,
|
|
781
|
+
options,
|
|
782
|
+
// @ts-ignore
|
|
783
|
+
{ httpClient }
|
|
784
|
+
);
|
|
785
|
+
}
|
|
786
|
+
function removePaymentAcceptanceConfigurationRules3(httpClient) {
|
|
787
|
+
return (paymentAcceptanceConfigurationId, options) => removePaymentAcceptanceConfigurationRules2(
|
|
788
|
+
paymentAcceptanceConfigurationId,
|
|
789
|
+
options,
|
|
790
|
+
// @ts-ignore
|
|
791
|
+
{ httpClient }
|
|
792
|
+
);
|
|
793
|
+
}
|
|
646
794
|
function deletePaymentAcceptanceConfiguration3(httpClient) {
|
|
647
795
|
return (paymentAcceptanceConfigurationId) => deletePaymentAcceptanceConfiguration2(
|
|
648
796
|
paymentAcceptanceConfigurationId,
|
|
@@ -678,6 +826,12 @@ var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
|
|
|
678
826
|
var createPaymentAcceptanceConfiguration4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createPaymentAcceptanceConfiguration3);
|
|
679
827
|
var getPaymentAcceptanceConfiguration4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getPaymentAcceptanceConfiguration3);
|
|
680
828
|
var updatePaymentAcceptanceConfiguration4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updatePaymentAcceptanceConfiguration3);
|
|
829
|
+
var addPaymentAcceptanceConfigurationRules4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(
|
|
830
|
+
addPaymentAcceptanceConfigurationRules3
|
|
831
|
+
);
|
|
832
|
+
var removePaymentAcceptanceConfigurationRules4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(
|
|
833
|
+
removePaymentAcceptanceConfigurationRules3
|
|
834
|
+
);
|
|
681
835
|
var deletePaymentAcceptanceConfiguration4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deletePaymentAcceptanceConfiguration3);
|
|
682
836
|
var queryPaymentAcceptanceConfigurations4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(queryPaymentAcceptanceConfigurations3);
|
|
683
837
|
var bulkUpdatePaymentAcceptanceConfigurationTags4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(
|
|
@@ -694,12 +848,14 @@ var bulkUpdatePaymentAcceptanceConfigurationTagsByFilter4 = /* @__PURE__ */ (0,
|
|
|
694
848
|
SortOrder,
|
|
695
849
|
State,
|
|
696
850
|
WebhookIdentityType,
|
|
851
|
+
addPaymentAcceptanceConfigurationRules,
|
|
697
852
|
bulkUpdatePaymentAcceptanceConfigurationTags,
|
|
698
853
|
bulkUpdatePaymentAcceptanceConfigurationTagsByFilter,
|
|
699
854
|
createPaymentAcceptanceConfiguration,
|
|
700
855
|
deletePaymentAcceptanceConfiguration,
|
|
701
856
|
getPaymentAcceptanceConfiguration,
|
|
702
857
|
queryPaymentAcceptanceConfigurations,
|
|
858
|
+
removePaymentAcceptanceConfigurationRules,
|
|
703
859
|
updatePaymentAcceptanceConfiguration
|
|
704
860
|
});
|
|
705
861
|
//# sourceMappingURL=index.js.map
|