@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
|
@@ -42,6 +42,13 @@ interface PaymentAcceptanceConfiguration {
|
|
|
42
42
|
tags?: Tags;
|
|
43
43
|
}
|
|
44
44
|
interface PaymentAcceptanceRule {
|
|
45
|
+
/**
|
|
46
|
+
* Rule Id
|
|
47
|
+
* @format GUID
|
|
48
|
+
* @readonly
|
|
49
|
+
* @immutable
|
|
50
|
+
*/
|
|
51
|
+
_id?: string | null;
|
|
45
52
|
/**
|
|
46
53
|
* Payment method type id
|
|
47
54
|
* @format GUID
|
|
@@ -186,6 +193,51 @@ interface UpdatePaymentAcceptanceConfigurationResponse {
|
|
|
186
193
|
/** Updated PaymentAcceptanceConfiguration. */
|
|
187
194
|
paymentAcceptanceConfiguration?: PaymentAcceptanceConfiguration;
|
|
188
195
|
}
|
|
196
|
+
interface AddPaymentAcceptanceConfigurationRulesRequest {
|
|
197
|
+
/**
|
|
198
|
+
* Id of payment acceptance configuration to update
|
|
199
|
+
* @format GUID
|
|
200
|
+
*/
|
|
201
|
+
paymentAcceptanceConfigurationId: string;
|
|
202
|
+
/**
|
|
203
|
+
* Payment acceptance configuration revision
|
|
204
|
+
* @readonly
|
|
205
|
+
*/
|
|
206
|
+
paymentAcceptanceConfigurationRevision?: string | null;
|
|
207
|
+
/**
|
|
208
|
+
* Rules to add
|
|
209
|
+
* @minSize 1
|
|
210
|
+
* @maxSize 1000
|
|
211
|
+
*/
|
|
212
|
+
rules: PaymentAcceptanceRule[];
|
|
213
|
+
}
|
|
214
|
+
interface AddPaymentAcceptanceConfigurationRulesResponse {
|
|
215
|
+
/** Updated PaymentAcceptanceConfiguration */
|
|
216
|
+
paymentAcceptanceConfiguration?: PaymentAcceptanceConfiguration;
|
|
217
|
+
}
|
|
218
|
+
interface RemovePaymentAcceptanceConfigurationRulesRequest {
|
|
219
|
+
/**
|
|
220
|
+
* Id of payment acceptance configuration to update
|
|
221
|
+
* @format GUID
|
|
222
|
+
*/
|
|
223
|
+
paymentAcceptanceConfigurationId: string;
|
|
224
|
+
/**
|
|
225
|
+
* Payment acceptance configuration revision
|
|
226
|
+
* @readonly
|
|
227
|
+
*/
|
|
228
|
+
paymentAcceptanceConfigurationRevision?: string | null;
|
|
229
|
+
/**
|
|
230
|
+
* IDs of the rules to remove
|
|
231
|
+
* @format GUID
|
|
232
|
+
* @minSize 1
|
|
233
|
+
* @maxSize 1000
|
|
234
|
+
*/
|
|
235
|
+
ruleIds: string[];
|
|
236
|
+
}
|
|
237
|
+
interface RemovePaymentAcceptanceConfigurationRulesResponse {
|
|
238
|
+
/** Updated PaymentAcceptanceConfiguration */
|
|
239
|
+
paymentAcceptanceConfiguration?: PaymentAcceptanceConfiguration;
|
|
240
|
+
}
|
|
189
241
|
interface DeletePaymentAcceptanceConfigurationRequest {
|
|
190
242
|
/**
|
|
191
243
|
* Id of payment acceptance configuration to delete
|
|
@@ -1062,6 +1114,59 @@ interface UpdatePaymentAcceptanceConfiguration {
|
|
|
1062
1114
|
/** Tags */
|
|
1063
1115
|
tags?: Tags;
|
|
1064
1116
|
}
|
|
1117
|
+
/**
|
|
1118
|
+
* Add PaymentAcceptanceConfiguration Rules
|
|
1119
|
+
* as result new rules wll be validated and added to existing ones
|
|
1120
|
+
* some extra rules may be added
|
|
1121
|
+
* @param paymentAcceptanceConfigurationId - Id of payment acceptance configuration to update
|
|
1122
|
+
* @internal
|
|
1123
|
+
* @documentationMaturity preview
|
|
1124
|
+
* @requiredField options.rules
|
|
1125
|
+
* @requiredField paymentAcceptanceConfigurationId
|
|
1126
|
+
* @permissionId PAYMENTS.PAYMENT_ACCEPTANCE_CONFIGURATION_UPDATE
|
|
1127
|
+
* @fqn wix.payments.payment_acceptance_configurations.v1.PaymentAcceptanceConfigurationService.AddPaymentAcceptanceConfigurationRules
|
|
1128
|
+
*/
|
|
1129
|
+
declare function addPaymentAcceptanceConfigurationRules(paymentAcceptanceConfigurationId: string, options?: NonNullablePaths<AddPaymentAcceptanceConfigurationRulesOptions, `rules`, 2>): Promise<NonNullablePaths<AddPaymentAcceptanceConfigurationRulesResponse, `paymentAcceptanceConfiguration.rules` | `paymentAcceptanceConfiguration.rules.${number}.paymentMethodTypeId` | `paymentAcceptanceConfiguration.rules.${number}.accountConnectionId` | `paymentAcceptanceConfiguration.rules.${number}.merchantEnabled` | `paymentAcceptanceConfiguration.tags.tags.tagIds`, 5>>;
|
|
1130
|
+
interface AddPaymentAcceptanceConfigurationRulesOptions {
|
|
1131
|
+
/**
|
|
1132
|
+
* Payment acceptance configuration revision
|
|
1133
|
+
* @readonly
|
|
1134
|
+
*/
|
|
1135
|
+
paymentAcceptanceConfigurationRevision?: string | null;
|
|
1136
|
+
/**
|
|
1137
|
+
* Rules to add
|
|
1138
|
+
* @minSize 1
|
|
1139
|
+
* @maxSize 1000
|
|
1140
|
+
*/
|
|
1141
|
+
rules: PaymentAcceptanceRule[];
|
|
1142
|
+
}
|
|
1143
|
+
/**
|
|
1144
|
+
* Remove PaymentAcceptanceConfiguration
|
|
1145
|
+
* as result existing rules will be removed from PaymentAcceptanceConfiguration
|
|
1146
|
+
* some extra rules may be deleted
|
|
1147
|
+
* @param paymentAcceptanceConfigurationId - Id of payment acceptance configuration to update
|
|
1148
|
+
* @internal
|
|
1149
|
+
* @documentationMaturity preview
|
|
1150
|
+
* @requiredField options.ruleIds
|
|
1151
|
+
* @requiredField paymentAcceptanceConfigurationId
|
|
1152
|
+
* @permissionId PAYMENTS.PAYMENT_ACCEPTANCE_CONFIGURATION_UPDATE
|
|
1153
|
+
* @fqn wix.payments.payment_acceptance_configurations.v1.PaymentAcceptanceConfigurationService.RemovePaymentAcceptanceConfigurationRules
|
|
1154
|
+
*/
|
|
1155
|
+
declare function removePaymentAcceptanceConfigurationRules(paymentAcceptanceConfigurationId: string, options?: NonNullablePaths<RemovePaymentAcceptanceConfigurationRulesOptions, `ruleIds`, 2>): Promise<NonNullablePaths<RemovePaymentAcceptanceConfigurationRulesResponse, `paymentAcceptanceConfiguration.rules` | `paymentAcceptanceConfiguration.rules.${number}.paymentMethodTypeId` | `paymentAcceptanceConfiguration.rules.${number}.accountConnectionId` | `paymentAcceptanceConfiguration.rules.${number}.merchantEnabled` | `paymentAcceptanceConfiguration.tags.tags.tagIds`, 5>>;
|
|
1156
|
+
interface RemovePaymentAcceptanceConfigurationRulesOptions {
|
|
1157
|
+
/**
|
|
1158
|
+
* Payment acceptance configuration revision
|
|
1159
|
+
* @readonly
|
|
1160
|
+
*/
|
|
1161
|
+
paymentAcceptanceConfigurationRevision?: string | null;
|
|
1162
|
+
/**
|
|
1163
|
+
* IDs of the rules to remove
|
|
1164
|
+
* @format GUID
|
|
1165
|
+
* @minSize 1
|
|
1166
|
+
* @maxSize 1000
|
|
1167
|
+
*/
|
|
1168
|
+
ruleIds: string[];
|
|
1169
|
+
}
|
|
1065
1170
|
/**
|
|
1066
1171
|
* Delete a PaymentAcceptanceConfiguration
|
|
1067
1172
|
* @param paymentAcceptanceConfigurationId - Id of payment acceptance configuration to delete
|
|
@@ -1164,6 +1269,12 @@ interface PaymentAcceptanceConfigurationsQueryBuilder {
|
|
|
1164
1269
|
/** @documentationMaturity preview */
|
|
1165
1270
|
find: () => Promise<PaymentAcceptanceConfigurationsQueryResult>;
|
|
1166
1271
|
}
|
|
1272
|
+
/**
|
|
1273
|
+
* @hidden
|
|
1274
|
+
* @fqn wix.payments.payment_acceptance_configurations.v1.PaymentAcceptanceConfigurationService.QueryPaymentAcceptanceConfigurations
|
|
1275
|
+
* @requiredField query
|
|
1276
|
+
*/
|
|
1277
|
+
declare function typedQueryPaymentAcceptanceConfigurations(query: CursorQuery): Promise<NonNullablePaths<QueryPaymentAcceptanceConfigurationsResponse, `paymentAcceptanceConfigurations`, 2>>;
|
|
1167
1278
|
/**
|
|
1168
1279
|
* Synchronously update tags on multiple PaymentAcceptanceConfigurations, by list of PaymentAcceptanceConfigurations ids
|
|
1169
1280
|
* A tag that appears both in the list of assign and unassign tags, will be assigned
|
|
@@ -1200,4 +1311,4 @@ interface BulkUpdatePaymentAcceptanceConfigurationTagsByFilterOptions {
|
|
|
1200
1311
|
unassignTags?: Tags;
|
|
1201
1312
|
}
|
|
1202
1313
|
|
|
1203
|
-
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 StudioTwoAssigned, type StudioTwoUnassigned, type StudioUnassigned, type TagList, type Tags, type UpdatePaymentAcceptanceConfiguration, type UpdatePaymentAcceptanceConfigurationRequest, type UpdatePaymentAcceptanceConfigurationResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type WixelAssigned, type WixelUnassigned, bulkUpdatePaymentAcceptanceConfigurationTags, bulkUpdatePaymentAcceptanceConfigurationTagsByFilter, createPaymentAcceptanceConfiguration, deletePaymentAcceptanceConfiguration, getPaymentAcceptanceConfiguration, queryPaymentAcceptanceConfigurations, updatePaymentAcceptanceConfiguration };
|
|
1314
|
+
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, addPaymentAcceptanceConfigurationRules, bulkUpdatePaymentAcceptanceConfigurationTags, bulkUpdatePaymentAcceptanceConfigurationTagsByFilter, createPaymentAcceptanceConfiguration, deletePaymentAcceptanceConfiguration, getPaymentAcceptanceConfiguration, queryPaymentAcceptanceConfigurations, removePaymentAcceptanceConfigurationRules, typedQueryPaymentAcceptanceConfigurations, updatePaymentAcceptanceConfiguration };
|
|
@@ -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
|