@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 };
|
|
@@ -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
|