@wix/auto_sdk_payments_payment-acceptance-configurations 1.0.43 → 1.0.44
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 +1 -1
- package/build/cjs/index.js +80 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +46 -1
- package/build/cjs/index.typings.js +69 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +32 -2
- package/build/cjs/meta.js +58 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +79 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +46 -1
- package/build/es/index.typings.mjs +68 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +32 -2
- package/build/es/meta.mjs +57 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +18 -5
- package/build/internal/cjs/index.js +80 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +60 -3
- package/build/internal/cjs/index.typings.js +69 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +32 -2
- package/build/internal/cjs/meta.js +58 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +18 -5
- package/build/internal/es/index.mjs +79 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +60 -3
- package/build/internal/es/index.typings.mjs +68 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +32 -2
- package/build/internal/es/meta.mjs +57 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -238,6 +238,33 @@ interface RemovePaymentAcceptanceConfigurationRulesResponse {
|
|
|
238
238
|
/** Updated PaymentAcceptanceConfiguration */
|
|
239
239
|
paymentAcceptanceConfiguration?: PaymentAcceptanceConfiguration;
|
|
240
240
|
}
|
|
241
|
+
interface ModifyPaymentAcceptanceConfigurationRulesRequest {
|
|
242
|
+
/**
|
|
243
|
+
* Id of payment acceptance configuration to update
|
|
244
|
+
* @format GUID
|
|
245
|
+
*/
|
|
246
|
+
paymentAcceptanceConfigurationId: string;
|
|
247
|
+
/**
|
|
248
|
+
* Payment acceptance configuration revision
|
|
249
|
+
* @readonly
|
|
250
|
+
*/
|
|
251
|
+
paymentAcceptanceConfigurationRevision?: string | null;
|
|
252
|
+
/**
|
|
253
|
+
* Rules to add
|
|
254
|
+
* @maxSize 1000
|
|
255
|
+
*/
|
|
256
|
+
rulesToAdd?: PaymentAcceptanceRule[];
|
|
257
|
+
/**
|
|
258
|
+
* IDs of the rules to remove
|
|
259
|
+
* @format GUID
|
|
260
|
+
* @maxSize 1000
|
|
261
|
+
*/
|
|
262
|
+
rulesToRemoveIds?: string[];
|
|
263
|
+
}
|
|
264
|
+
interface ModifyPaymentAcceptanceConfigurationRulesResponse {
|
|
265
|
+
/** Updated PaymentAcceptanceConfiguration */
|
|
266
|
+
paymentAcceptanceConfiguration?: PaymentAcceptanceConfiguration;
|
|
267
|
+
}
|
|
241
268
|
interface DeletePaymentAcceptanceConfigurationRequest {
|
|
242
269
|
/**
|
|
243
270
|
* Id of payment acceptance configuration to delete
|
|
@@ -1101,6 +1128,24 @@ interface RemovePaymentAcceptanceConfigurationRulesOptions {
|
|
|
1101
1128
|
*/
|
|
1102
1129
|
ruleIds: string[];
|
|
1103
1130
|
}
|
|
1131
|
+
interface ModifyPaymentAcceptanceConfigurationRulesOptions {
|
|
1132
|
+
/**
|
|
1133
|
+
* Payment acceptance configuration revision
|
|
1134
|
+
* @readonly
|
|
1135
|
+
*/
|
|
1136
|
+
paymentAcceptanceConfigurationRevision?: string | null;
|
|
1137
|
+
/**
|
|
1138
|
+
* Rules to add
|
|
1139
|
+
* @maxSize 1000
|
|
1140
|
+
*/
|
|
1141
|
+
rulesToAdd?: PaymentAcceptanceRule[];
|
|
1142
|
+
/**
|
|
1143
|
+
* IDs of the rules to remove
|
|
1144
|
+
* @format GUID
|
|
1145
|
+
* @maxSize 1000
|
|
1146
|
+
*/
|
|
1147
|
+
rulesToRemoveIds?: string[];
|
|
1148
|
+
}
|
|
1104
1149
|
interface QueryCursorResult {
|
|
1105
1150
|
cursors: Cursors;
|
|
1106
1151
|
hasNext: () => boolean;
|
|
@@ -1262,4 +1307,4 @@ interface BulkUpdatePaymentAcceptanceConfigurationTagsByFilterOptions {
|
|
|
1262
1307
|
unassignTags?: Tags;
|
|
1263
1308
|
}
|
|
1264
1309
|
|
|
1265
|
-
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 CommonQueryWithEntityContext, 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 PaymentAcceptanceConfigurationQuery, type PaymentAcceptanceConfigurationQuerySpec, 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, typedQueryPaymentAcceptanceConfigurations };
|
|
1310
|
+
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 CommonQueryWithEntityContext, 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, type ModifyPaymentAcceptanceConfigurationRulesOptions, type ModifyPaymentAcceptanceConfigurationRulesRequest, type ModifyPaymentAcceptanceConfigurationRulesResponse, Namespace, type NamespaceChanged, type NamespaceWithLiterals, type OdeditorAssigned, type OdeditorUnassigned, type PaymentAcceptanceConfiguration, type PaymentAcceptanceConfigurationQuery, type PaymentAcceptanceConfigurationQuerySpec, 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, typedQueryPaymentAcceptanceConfigurations };
|
|
@@ -231,6 +231,38 @@ function removePaymentAcceptanceConfigurationRules(payload) {
|
|
|
231
231
|
}
|
|
232
232
|
return __removePaymentAcceptanceConfigurationRules;
|
|
233
233
|
}
|
|
234
|
+
function modifyPaymentAcceptanceConfigurationRules(payload) {
|
|
235
|
+
function __modifyPaymentAcceptanceConfigurationRules({ host }) {
|
|
236
|
+
const metadata = {
|
|
237
|
+
entityFqdn: "wix.payments.payment_acceptance_configurations.v1.payment_acceptance_configuration",
|
|
238
|
+
method: "POST",
|
|
239
|
+
methodFqn: "wix.payments.payment_acceptance_configurations.v1.PaymentAcceptanceConfigurationService.ModifyPaymentAcceptanceConfigurationRules",
|
|
240
|
+
packageName: PACKAGE_NAME,
|
|
241
|
+
migrationOptions: {
|
|
242
|
+
optInTransformResponse: true
|
|
243
|
+
},
|
|
244
|
+
url: resolveWixPaymentsPaymentAcceptanceConfigurationsV1PaymentAcceptanceConfigurationServiceUrl(
|
|
245
|
+
{
|
|
246
|
+
protoPath: "/v1/payment-acceptance-configurations/{paymentAcceptanceConfigurationId}/modify-rules",
|
|
247
|
+
data: payload,
|
|
248
|
+
host
|
|
249
|
+
}
|
|
250
|
+
),
|
|
251
|
+
data: payload,
|
|
252
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
253
|
+
{
|
|
254
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
255
|
+
paths: [
|
|
256
|
+
{ path: "paymentAcceptanceConfiguration.createdDate" },
|
|
257
|
+
{ path: "paymentAcceptanceConfiguration.updatedDate" }
|
|
258
|
+
]
|
|
259
|
+
}
|
|
260
|
+
])
|
|
261
|
+
};
|
|
262
|
+
return metadata;
|
|
263
|
+
}
|
|
264
|
+
return __modifyPaymentAcceptanceConfigurationRules;
|
|
265
|
+
}
|
|
234
266
|
function deletePaymentAcceptanceConfiguration(payload) {
|
|
235
267
|
function __deletePaymentAcceptanceConfiguration({ host }) {
|
|
236
268
|
const metadata = {
|
|
@@ -576,6 +608,41 @@ async function removePaymentAcceptanceConfigurationRules2(paymentAcceptanceConfi
|
|
|
576
608
|
throw transformedError;
|
|
577
609
|
}
|
|
578
610
|
}
|
|
611
|
+
async function modifyPaymentAcceptanceConfigurationRules2(paymentAcceptanceConfigurationId, options) {
|
|
612
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
613
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
614
|
+
paymentAcceptanceConfigurationId,
|
|
615
|
+
paymentAcceptanceConfigurationRevision: options?.paymentAcceptanceConfigurationRevision,
|
|
616
|
+
rulesToAdd: options?.rulesToAdd,
|
|
617
|
+
rulesToRemoveIds: options?.rulesToRemoveIds
|
|
618
|
+
});
|
|
619
|
+
const reqOpts = modifyPaymentAcceptanceConfigurationRules(
|
|
620
|
+
payload
|
|
621
|
+
);
|
|
622
|
+
sideEffects?.onSiteCall?.();
|
|
623
|
+
try {
|
|
624
|
+
const result = await httpClient.request(reqOpts);
|
|
625
|
+
sideEffects?.onSuccess?.(result);
|
|
626
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
627
|
+
} catch (err) {
|
|
628
|
+
const transformedError = sdkTransformError(
|
|
629
|
+
err,
|
|
630
|
+
{
|
|
631
|
+
spreadPathsToArguments: {},
|
|
632
|
+
explicitPathsToArguments: {
|
|
633
|
+
paymentAcceptanceConfigurationId: "$[0]",
|
|
634
|
+
paymentAcceptanceConfigurationRevision: "$[1].paymentAcceptanceConfigurationRevision",
|
|
635
|
+
rulesToAdd: "$[1].rulesToAdd",
|
|
636
|
+
rulesToRemoveIds: "$[1].rulesToRemoveIds"
|
|
637
|
+
},
|
|
638
|
+
singleArgumentUnchanged: false
|
|
639
|
+
},
|
|
640
|
+
["paymentAcceptanceConfigurationId", "options"]
|
|
641
|
+
);
|
|
642
|
+
sideEffects?.onError?.(err);
|
|
643
|
+
throw transformedError;
|
|
644
|
+
}
|
|
645
|
+
}
|
|
579
646
|
async function deletePaymentAcceptanceConfiguration2(paymentAcceptanceConfigurationId) {
|
|
580
647
|
const { httpClient, sideEffects } = arguments[1];
|
|
581
648
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
@@ -753,6 +820,7 @@ export {
|
|
|
753
820
|
createPaymentAcceptanceConfiguration2 as createPaymentAcceptanceConfiguration,
|
|
754
821
|
deletePaymentAcceptanceConfiguration2 as deletePaymentAcceptanceConfiguration,
|
|
755
822
|
getPaymentAcceptanceConfiguration2 as getPaymentAcceptanceConfiguration,
|
|
823
|
+
modifyPaymentAcceptanceConfigurationRules2 as modifyPaymentAcceptanceConfigurationRules,
|
|
756
824
|
queryPaymentAcceptanceConfigurations2 as queryPaymentAcceptanceConfigurations,
|
|
757
825
|
removePaymentAcceptanceConfigurationRules2 as removePaymentAcceptanceConfigurationRules,
|
|
758
826
|
typedQueryPaymentAcceptanceConfigurations,
|