@wix/auto_sdk_payments_payment-acceptance-configurations 1.0.19 → 1.0.20
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.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +518 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/es/index.d.mts +1 -1
- package/build/es/index.typings.d.mts +1 -0
- package/build/es/index.typings.mjs +486 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/internal/cjs/index.d.ts +2 -2
- package/build/internal/cjs/{payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.universal-Bhkpm_q_.d.ts → index.typings.d.ts} +94 -1
- package/build/internal/cjs/index.typings.js +518 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +2 -1
- package/build/internal/es/index.d.mts +2 -2
- package/build/internal/es/{payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.universal-Bhkpm_q_.d.mts → index.typings.d.mts} +94 -1
- package/build/internal/es/index.typings.mjs +486 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +2 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -558,4 +558,4 @@ interface BulkUpdatePaymentAcceptanceConfigurationTagsByFilterOptions {
|
|
|
558
558
|
unassignTags?: Tags;
|
|
559
559
|
}
|
|
560
560
|
|
|
561
|
-
export { type ActionEvent, type ApplicationError, type BulkActionMetadata, type BulkUpdatePaymentAcceptanceConfigurationTagsByFilterOptions, type BulkUpdatePaymentAcceptanceConfigurationTagsByFilterRequest, type BulkUpdatePaymentAcceptanceConfigurationTagsByFilterResponse, type BulkUpdatePaymentAcceptanceConfigurationTagsOptions, type BulkUpdatePaymentAcceptanceConfigurationTagsRequest, type BulkUpdatePaymentAcceptanceConfigurationTagsResponse, type BulkUpdatePaymentAcceptanceConfigurationTagsResult, type CreatePaymentAcceptanceConfigurationRequest, type CreatePaymentAcceptanceConfigurationResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DeletePaymentAcceptanceConfigurationRequest, type DeletePaymentAcceptanceConfigurationResponse, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type ExtendedFields, type GetPaymentAcceptanceConfigurationRequest, type GetPaymentAcceptanceConfigurationResponse, type IdentificationData, type IdentificationDataIdOneOf, type ItemMetadata, type MessageEnvelope, type PaymentAcceptanceConfiguration, type PaymentAcceptanceConfigurationsQueryBuilder, type PaymentAcceptanceConfigurationsQueryResult, type PaymentAcceptanceRule, type QueryPaymentAcceptanceConfigurationsRequest, type QueryPaymentAcceptanceConfigurationsResponse, type RestoreInfo, SortOrder, type Sorting, type TagList, type Tags, type UpdatePaymentAcceptanceConfiguration, type UpdatePaymentAcceptanceConfigurationRequest, type UpdatePaymentAcceptanceConfigurationResponse, WebhookIdentityType };
|
|
561
|
+
export { type ActionEvent, type ApplicationError, type BulkActionMetadata, type BulkUpdatePaymentAcceptanceConfigurationTagsByFilterOptions, type BulkUpdatePaymentAcceptanceConfigurationTagsByFilterRequest, type BulkUpdatePaymentAcceptanceConfigurationTagsByFilterResponse, type BulkUpdatePaymentAcceptanceConfigurationTagsOptions, type BulkUpdatePaymentAcceptanceConfigurationTagsRequest, type BulkUpdatePaymentAcceptanceConfigurationTagsResponse, type BulkUpdatePaymentAcceptanceConfigurationTagsResult, type CreatePaymentAcceptanceConfigurationRequest, type CreatePaymentAcceptanceConfigurationResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DeletePaymentAcceptanceConfigurationRequest, type DeletePaymentAcceptanceConfigurationResponse, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type ExtendedFields, type GetPaymentAcceptanceConfigurationRequest, type GetPaymentAcceptanceConfigurationResponse, type IdentificationData, type IdentificationDataIdOneOf, type ItemMetadata, type MessageEnvelope, type PaymentAcceptanceConfiguration, type PaymentAcceptanceConfigurationsQueryBuilder, type PaymentAcceptanceConfigurationsQueryResult, type PaymentAcceptanceRule, type QueryPaymentAcceptanceConfigurationsRequest, type QueryPaymentAcceptanceConfigurationsResponse, type RestoreInfo, type SortOrderWithLiterals as S, SortOrder, type Sorting, type TagList, type Tags, type UpdatePaymentAcceptanceConfiguration, type UpdatePaymentAcceptanceConfigurationRequest, type UpdatePaymentAcceptanceConfigurationResponse, type WebhookIdentityTypeWithLiterals as W, WebhookIdentityType };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ActionEvent, ApplicationError, BulkActionMetadata, BulkUpdatePaymentAcceptanceConfigurationTagsByFilterOptions, BulkUpdatePaymentAcceptanceConfigurationTagsByFilterRequest, BulkUpdatePaymentAcceptanceConfigurationTagsByFilterResponse, BulkUpdatePaymentAcceptanceConfigurationTagsOptions, BulkUpdatePaymentAcceptanceConfigurationTagsRequest, BulkUpdatePaymentAcceptanceConfigurationTagsResponse, BulkUpdatePaymentAcceptanceConfigurationTagsResult, CreatePaymentAcceptanceConfigurationRequest, CreatePaymentAcceptanceConfigurationResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeletePaymentAcceptanceConfigurationRequest, DeletePaymentAcceptanceConfigurationResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ExtendedFields, GetPaymentAcceptanceConfigurationRequest, GetPaymentAcceptanceConfigurationResponse, IdentificationData, IdentificationDataIdOneOf, ItemMetadata, MessageEnvelope, PaymentAcceptanceConfiguration, PaymentAcceptanceConfigurationsQueryBuilder, PaymentAcceptanceConfigurationsQueryResult, PaymentAcceptanceRule, QueryPaymentAcceptanceConfigurationsRequest, QueryPaymentAcceptanceConfigurationsResponse, RestoreInfo, SortOrder, S as SortOrderWithLiterals, Sorting, TagList, Tags, UpdatePaymentAcceptanceConfiguration, UpdatePaymentAcceptanceConfigurationRequest, UpdatePaymentAcceptanceConfigurationResponse, WebhookIdentityType, W as WebhookIdentityTypeWithLiterals } from './index.js';
|
|
@@ -0,0 +1,518 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// index.typings.ts
|
|
21
|
+
var index_typings_exports = {};
|
|
22
|
+
__export(index_typings_exports, {
|
|
23
|
+
SortOrder: () => SortOrder,
|
|
24
|
+
WebhookIdentityType: () => WebhookIdentityType,
|
|
25
|
+
bulkUpdatePaymentAcceptanceConfigurationTags: () => bulkUpdatePaymentAcceptanceConfigurationTags2,
|
|
26
|
+
bulkUpdatePaymentAcceptanceConfigurationTagsByFilter: () => bulkUpdatePaymentAcceptanceConfigurationTagsByFilter2,
|
|
27
|
+
createPaymentAcceptanceConfiguration: () => createPaymentAcceptanceConfiguration2,
|
|
28
|
+
deletePaymentAcceptanceConfiguration: () => deletePaymentAcceptanceConfiguration2,
|
|
29
|
+
getPaymentAcceptanceConfiguration: () => getPaymentAcceptanceConfiguration2,
|
|
30
|
+
queryPaymentAcceptanceConfigurations: () => queryPaymentAcceptanceConfigurations2,
|
|
31
|
+
updatePaymentAcceptanceConfiguration: () => updatePaymentAcceptanceConfiguration2
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(index_typings_exports);
|
|
34
|
+
|
|
35
|
+
// src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.universal.ts
|
|
36
|
+
var import_transform_error = require("@wix/sdk-runtime/transform-error");
|
|
37
|
+
var import_query_builder = require("@wix/sdk-runtime/query-builder");
|
|
38
|
+
var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
39
|
+
|
|
40
|
+
// src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.http.ts
|
|
41
|
+
var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
|
|
42
|
+
var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
43
|
+
var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
44
|
+
var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
|
|
45
|
+
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
46
|
+
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
47
|
+
function resolveWixPaymentsPaymentAcceptanceConfigurationsV1PaymentAcceptanceConfigurationServiceUrl(opts) {
|
|
48
|
+
const domainToMappings = {};
|
|
49
|
+
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
50
|
+
}
|
|
51
|
+
var PACKAGE_NAME = "@wix/auto_sdk_payments_payment-acceptance-configurations";
|
|
52
|
+
function createPaymentAcceptanceConfiguration(payload) {
|
|
53
|
+
function __createPaymentAcceptanceConfiguration({ host }) {
|
|
54
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
55
|
+
{
|
|
56
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
57
|
+
paths: [
|
|
58
|
+
{ path: "paymentAcceptanceConfiguration.createdDate" },
|
|
59
|
+
{ path: "paymentAcceptanceConfiguration.updatedDate" }
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
]);
|
|
63
|
+
const metadata = {
|
|
64
|
+
entityFqdn: "wix.payments.payment_acceptance_configurations.v1.payment_acceptance_configuration",
|
|
65
|
+
method: "POST",
|
|
66
|
+
methodFqn: "wix.payments.payment_acceptance_configurations.v1.PaymentAcceptanceConfigurationService.CreatePaymentAcceptanceConfiguration",
|
|
67
|
+
packageName: PACKAGE_NAME,
|
|
68
|
+
url: resolveWixPaymentsPaymentAcceptanceConfigurationsV1PaymentAcceptanceConfigurationServiceUrl(
|
|
69
|
+
{
|
|
70
|
+
protoPath: "/v1/payment-acceptance-configurations",
|
|
71
|
+
data: serializedData,
|
|
72
|
+
host
|
|
73
|
+
}
|
|
74
|
+
),
|
|
75
|
+
data: serializedData,
|
|
76
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
77
|
+
{
|
|
78
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
79
|
+
paths: [
|
|
80
|
+
{ path: "paymentAcceptanceConfiguration.createdDate" },
|
|
81
|
+
{ path: "paymentAcceptanceConfiguration.updatedDate" }
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
])
|
|
85
|
+
};
|
|
86
|
+
return metadata;
|
|
87
|
+
}
|
|
88
|
+
return __createPaymentAcceptanceConfiguration;
|
|
89
|
+
}
|
|
90
|
+
function getPaymentAcceptanceConfiguration(payload) {
|
|
91
|
+
function __getPaymentAcceptanceConfiguration({ host }) {
|
|
92
|
+
const metadata = {
|
|
93
|
+
entityFqdn: "wix.payments.payment_acceptance_configurations.v1.payment_acceptance_configuration",
|
|
94
|
+
method: "GET",
|
|
95
|
+
methodFqn: "wix.payments.payment_acceptance_configurations.v1.PaymentAcceptanceConfigurationService.GetPaymentAcceptanceConfiguration",
|
|
96
|
+
packageName: PACKAGE_NAME,
|
|
97
|
+
url: resolveWixPaymentsPaymentAcceptanceConfigurationsV1PaymentAcceptanceConfigurationServiceUrl(
|
|
98
|
+
{
|
|
99
|
+
protoPath: "/v1/payment-acceptance-configurations/{paymentAcceptanceConfigurationId}",
|
|
100
|
+
data: payload,
|
|
101
|
+
host
|
|
102
|
+
}
|
|
103
|
+
),
|
|
104
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
105
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
106
|
+
{
|
|
107
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
108
|
+
paths: [
|
|
109
|
+
{ path: "paymentAcceptanceConfiguration.createdDate" },
|
|
110
|
+
{ path: "paymentAcceptanceConfiguration.updatedDate" }
|
|
111
|
+
]
|
|
112
|
+
}
|
|
113
|
+
])
|
|
114
|
+
};
|
|
115
|
+
return metadata;
|
|
116
|
+
}
|
|
117
|
+
return __getPaymentAcceptanceConfiguration;
|
|
118
|
+
}
|
|
119
|
+
function updatePaymentAcceptanceConfiguration(payload) {
|
|
120
|
+
function __updatePaymentAcceptanceConfiguration({ host }) {
|
|
121
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
122
|
+
{
|
|
123
|
+
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
124
|
+
paths: [{ path: "fieldMask" }]
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
128
|
+
paths: [
|
|
129
|
+
{ path: "paymentAcceptanceConfiguration.createdDate" },
|
|
130
|
+
{ path: "paymentAcceptanceConfiguration.updatedDate" }
|
|
131
|
+
]
|
|
132
|
+
}
|
|
133
|
+
]);
|
|
134
|
+
const metadata = {
|
|
135
|
+
entityFqdn: "wix.payments.payment_acceptance_configurations.v1.payment_acceptance_configuration",
|
|
136
|
+
method: "PATCH",
|
|
137
|
+
methodFqn: "wix.payments.payment_acceptance_configurations.v1.PaymentAcceptanceConfigurationService.UpdatePaymentAcceptanceConfiguration",
|
|
138
|
+
packageName: PACKAGE_NAME,
|
|
139
|
+
url: resolveWixPaymentsPaymentAcceptanceConfigurationsV1PaymentAcceptanceConfigurationServiceUrl(
|
|
140
|
+
{
|
|
141
|
+
protoPath: "/v1/payment-acceptance-configurations/{paymentAcceptanceConfiguration.id}",
|
|
142
|
+
data: serializedData,
|
|
143
|
+
host
|
|
144
|
+
}
|
|
145
|
+
),
|
|
146
|
+
data: serializedData,
|
|
147
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
148
|
+
{
|
|
149
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
150
|
+
paths: [
|
|
151
|
+
{ path: "paymentAcceptanceConfiguration.createdDate" },
|
|
152
|
+
{ path: "paymentAcceptanceConfiguration.updatedDate" }
|
|
153
|
+
]
|
|
154
|
+
}
|
|
155
|
+
])
|
|
156
|
+
};
|
|
157
|
+
return metadata;
|
|
158
|
+
}
|
|
159
|
+
return __updatePaymentAcceptanceConfiguration;
|
|
160
|
+
}
|
|
161
|
+
function deletePaymentAcceptanceConfiguration(payload) {
|
|
162
|
+
function __deletePaymentAcceptanceConfiguration({ host }) {
|
|
163
|
+
const metadata = {
|
|
164
|
+
entityFqdn: "wix.payments.payment_acceptance_configurations.v1.payment_acceptance_configuration",
|
|
165
|
+
method: "DELETE",
|
|
166
|
+
methodFqn: "wix.payments.payment_acceptance_configurations.v1.PaymentAcceptanceConfigurationService.DeletePaymentAcceptanceConfiguration",
|
|
167
|
+
packageName: PACKAGE_NAME,
|
|
168
|
+
url: resolveWixPaymentsPaymentAcceptanceConfigurationsV1PaymentAcceptanceConfigurationServiceUrl(
|
|
169
|
+
{
|
|
170
|
+
protoPath: "/v1/payment-acceptance-configurations/{paymentAcceptanceConfigurationId}",
|
|
171
|
+
data: payload,
|
|
172
|
+
host
|
|
173
|
+
}
|
|
174
|
+
),
|
|
175
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
176
|
+
};
|
|
177
|
+
return metadata;
|
|
178
|
+
}
|
|
179
|
+
return __deletePaymentAcceptanceConfiguration;
|
|
180
|
+
}
|
|
181
|
+
function queryPaymentAcceptanceConfigurations(payload) {
|
|
182
|
+
function __queryPaymentAcceptanceConfigurations({ host }) {
|
|
183
|
+
const metadata = {
|
|
184
|
+
entityFqdn: "wix.payments.payment_acceptance_configurations.v1.payment_acceptance_configuration",
|
|
185
|
+
method: "POST",
|
|
186
|
+
methodFqn: "wix.payments.payment_acceptance_configurations.v1.PaymentAcceptanceConfigurationService.QueryPaymentAcceptanceConfigurations",
|
|
187
|
+
packageName: PACKAGE_NAME,
|
|
188
|
+
url: resolveWixPaymentsPaymentAcceptanceConfigurationsV1PaymentAcceptanceConfigurationServiceUrl(
|
|
189
|
+
{
|
|
190
|
+
protoPath: "/v1/payment-acceptance-configurations/query",
|
|
191
|
+
data: payload,
|
|
192
|
+
host
|
|
193
|
+
}
|
|
194
|
+
),
|
|
195
|
+
data: payload,
|
|
196
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
197
|
+
{
|
|
198
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
199
|
+
paths: [
|
|
200
|
+
{ path: "paymentAcceptanceConfigurations.createdDate" },
|
|
201
|
+
{ path: "paymentAcceptanceConfigurations.updatedDate" }
|
|
202
|
+
]
|
|
203
|
+
}
|
|
204
|
+
]),
|
|
205
|
+
fallback: [
|
|
206
|
+
{
|
|
207
|
+
method: "POST",
|
|
208
|
+
url: resolveWixPaymentsPaymentAcceptanceConfigurationsV1PaymentAcceptanceConfigurationServiceUrl(
|
|
209
|
+
{
|
|
210
|
+
protoPath: "/v1/payment-acceptance-configurations/query",
|
|
211
|
+
data: payload,
|
|
212
|
+
host
|
|
213
|
+
}
|
|
214
|
+
),
|
|
215
|
+
data: payload
|
|
216
|
+
}
|
|
217
|
+
]
|
|
218
|
+
};
|
|
219
|
+
return metadata;
|
|
220
|
+
}
|
|
221
|
+
return __queryPaymentAcceptanceConfigurations;
|
|
222
|
+
}
|
|
223
|
+
function bulkUpdatePaymentAcceptanceConfigurationTags(payload) {
|
|
224
|
+
function __bulkUpdatePaymentAcceptanceConfigurationTags({ host }) {
|
|
225
|
+
const metadata = {
|
|
226
|
+
entityFqdn: "wix.payments.payment_acceptance_configurations.v1.payment_acceptance_configuration",
|
|
227
|
+
method: "POST",
|
|
228
|
+
methodFqn: "wix.payments.payment_acceptance_configurations.v1.PaymentAcceptanceConfigurationService.BulkUpdatePaymentAcceptanceConfigurationTags",
|
|
229
|
+
packageName: PACKAGE_NAME,
|
|
230
|
+
url: resolveWixPaymentsPaymentAcceptanceConfigurationsV1PaymentAcceptanceConfigurationServiceUrl(
|
|
231
|
+
{
|
|
232
|
+
protoPath: "/v1/bulk/payment-acceptance-configurations/update-tags",
|
|
233
|
+
data: payload,
|
|
234
|
+
host
|
|
235
|
+
}
|
|
236
|
+
),
|
|
237
|
+
data: payload
|
|
238
|
+
};
|
|
239
|
+
return metadata;
|
|
240
|
+
}
|
|
241
|
+
return __bulkUpdatePaymentAcceptanceConfigurationTags;
|
|
242
|
+
}
|
|
243
|
+
function bulkUpdatePaymentAcceptanceConfigurationTagsByFilter(payload) {
|
|
244
|
+
function __bulkUpdatePaymentAcceptanceConfigurationTagsByFilter({
|
|
245
|
+
host
|
|
246
|
+
}) {
|
|
247
|
+
const metadata = {
|
|
248
|
+
entityFqdn: "wix.payments.payment_acceptance_configurations.v1.payment_acceptance_configuration",
|
|
249
|
+
method: "POST",
|
|
250
|
+
methodFqn: "wix.payments.payment_acceptance_configurations.v1.PaymentAcceptanceConfigurationService.BulkUpdatePaymentAcceptanceConfigurationTagsByFilter",
|
|
251
|
+
packageName: PACKAGE_NAME,
|
|
252
|
+
url: resolveWixPaymentsPaymentAcceptanceConfigurationsV1PaymentAcceptanceConfigurationServiceUrl(
|
|
253
|
+
{
|
|
254
|
+
protoPath: "/v1/bulk/payment-acceptance-configurations/update-tags-by-filter",
|
|
255
|
+
data: payload,
|
|
256
|
+
host
|
|
257
|
+
}
|
|
258
|
+
),
|
|
259
|
+
data: payload
|
|
260
|
+
};
|
|
261
|
+
return metadata;
|
|
262
|
+
}
|
|
263
|
+
return __bulkUpdatePaymentAcceptanceConfigurationTagsByFilter;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
// src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.universal.ts
|
|
267
|
+
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
268
|
+
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
269
|
+
SortOrder2["ASC"] = "ASC";
|
|
270
|
+
SortOrder2["DESC"] = "DESC";
|
|
271
|
+
return SortOrder2;
|
|
272
|
+
})(SortOrder || {});
|
|
273
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
274
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
275
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
276
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
277
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
278
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
279
|
+
return WebhookIdentityType2;
|
|
280
|
+
})(WebhookIdentityType || {});
|
|
281
|
+
async function createPaymentAcceptanceConfiguration2(paymentAcceptanceConfiguration) {
|
|
282
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
283
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
284
|
+
paymentAcceptanceConfiguration
|
|
285
|
+
});
|
|
286
|
+
const reqOpts = createPaymentAcceptanceConfiguration(
|
|
287
|
+
payload
|
|
288
|
+
);
|
|
289
|
+
sideEffects?.onSiteCall?.();
|
|
290
|
+
try {
|
|
291
|
+
const result = await httpClient.request(reqOpts);
|
|
292
|
+
sideEffects?.onSuccess?.(result);
|
|
293
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.paymentAcceptanceConfiguration;
|
|
294
|
+
} catch (err) {
|
|
295
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
296
|
+
err,
|
|
297
|
+
{
|
|
298
|
+
spreadPathsToArguments: {},
|
|
299
|
+
explicitPathsToArguments: { paymentAcceptanceConfiguration: "$[0]" },
|
|
300
|
+
singleArgumentUnchanged: false
|
|
301
|
+
},
|
|
302
|
+
["paymentAcceptanceConfiguration"]
|
|
303
|
+
);
|
|
304
|
+
sideEffects?.onError?.(err);
|
|
305
|
+
throw transformedError;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
async function getPaymentAcceptanceConfiguration2(paymentAcceptanceConfigurationId) {
|
|
309
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
310
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
311
|
+
paymentAcceptanceConfigurationId
|
|
312
|
+
});
|
|
313
|
+
const reqOpts = getPaymentAcceptanceConfiguration(
|
|
314
|
+
payload
|
|
315
|
+
);
|
|
316
|
+
sideEffects?.onSiteCall?.();
|
|
317
|
+
try {
|
|
318
|
+
const result = await httpClient.request(reqOpts);
|
|
319
|
+
sideEffects?.onSuccess?.(result);
|
|
320
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.paymentAcceptanceConfiguration;
|
|
321
|
+
} catch (err) {
|
|
322
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
323
|
+
err,
|
|
324
|
+
{
|
|
325
|
+
spreadPathsToArguments: {},
|
|
326
|
+
explicitPathsToArguments: { paymentAcceptanceConfigurationId: "$[0]" },
|
|
327
|
+
singleArgumentUnchanged: false
|
|
328
|
+
},
|
|
329
|
+
["paymentAcceptanceConfigurationId"]
|
|
330
|
+
);
|
|
331
|
+
sideEffects?.onError?.(err);
|
|
332
|
+
throw transformedError;
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
async function updatePaymentAcceptanceConfiguration2(_id, paymentAcceptanceConfiguration) {
|
|
336
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
337
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
338
|
+
paymentAcceptanceConfiguration: {
|
|
339
|
+
...paymentAcceptanceConfiguration,
|
|
340
|
+
id: _id
|
|
341
|
+
}
|
|
342
|
+
});
|
|
343
|
+
const reqOpts = updatePaymentAcceptanceConfiguration(
|
|
344
|
+
payload
|
|
345
|
+
);
|
|
346
|
+
sideEffects?.onSiteCall?.();
|
|
347
|
+
try {
|
|
348
|
+
const result = await httpClient.request(reqOpts);
|
|
349
|
+
sideEffects?.onSuccess?.(result);
|
|
350
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.paymentAcceptanceConfiguration;
|
|
351
|
+
} catch (err) {
|
|
352
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
353
|
+
err,
|
|
354
|
+
{
|
|
355
|
+
spreadPathsToArguments: { paymentAcceptanceConfiguration: "$[1]" },
|
|
356
|
+
explicitPathsToArguments: {
|
|
357
|
+
"paymentAcceptanceConfiguration.id": "$[0]"
|
|
358
|
+
},
|
|
359
|
+
singleArgumentUnchanged: false
|
|
360
|
+
},
|
|
361
|
+
["_id", "paymentAcceptanceConfiguration"]
|
|
362
|
+
);
|
|
363
|
+
sideEffects?.onError?.(err);
|
|
364
|
+
throw transformedError;
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
async function deletePaymentAcceptanceConfiguration2(paymentAcceptanceConfigurationId) {
|
|
368
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
369
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
370
|
+
paymentAcceptanceConfigurationId
|
|
371
|
+
});
|
|
372
|
+
const reqOpts = deletePaymentAcceptanceConfiguration(
|
|
373
|
+
payload
|
|
374
|
+
);
|
|
375
|
+
sideEffects?.onSiteCall?.();
|
|
376
|
+
try {
|
|
377
|
+
const result = await httpClient.request(reqOpts);
|
|
378
|
+
sideEffects?.onSuccess?.(result);
|
|
379
|
+
} catch (err) {
|
|
380
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
381
|
+
err,
|
|
382
|
+
{
|
|
383
|
+
spreadPathsToArguments: {},
|
|
384
|
+
explicitPathsToArguments: { paymentAcceptanceConfigurationId: "$[0]" },
|
|
385
|
+
singleArgumentUnchanged: false
|
|
386
|
+
},
|
|
387
|
+
["paymentAcceptanceConfigurationId"]
|
|
388
|
+
);
|
|
389
|
+
sideEffects?.onError?.(err);
|
|
390
|
+
throw transformedError;
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
function queryPaymentAcceptanceConfigurations2() {
|
|
394
|
+
const { httpClient, sideEffects } = arguments[0];
|
|
395
|
+
return (0, import_query_builder.queryBuilder)({
|
|
396
|
+
func: async (payload) => {
|
|
397
|
+
const reqOpts = queryPaymentAcceptanceConfigurations(
|
|
398
|
+
payload
|
|
399
|
+
);
|
|
400
|
+
sideEffects?.onSiteCall?.();
|
|
401
|
+
try {
|
|
402
|
+
const result = await httpClient.request(reqOpts);
|
|
403
|
+
sideEffects?.onSuccess?.(result);
|
|
404
|
+
return result;
|
|
405
|
+
} catch (err) {
|
|
406
|
+
sideEffects?.onError?.(err);
|
|
407
|
+
throw err;
|
|
408
|
+
}
|
|
409
|
+
},
|
|
410
|
+
requestTransformer: (query) => {
|
|
411
|
+
const args = [query, {}];
|
|
412
|
+
return (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
413
|
+
...args?.[1],
|
|
414
|
+
query: args?.[0]
|
|
415
|
+
});
|
|
416
|
+
},
|
|
417
|
+
responseTransformer: ({
|
|
418
|
+
data
|
|
419
|
+
}) => {
|
|
420
|
+
const transformedData = (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
421
|
+
(0, import_transform_paths2.transformPaths)(data, [])
|
|
422
|
+
);
|
|
423
|
+
return {
|
|
424
|
+
items: transformedData?.paymentAcceptanceConfigurations,
|
|
425
|
+
pagingMetadata: transformedData?.pagingMetadata
|
|
426
|
+
};
|
|
427
|
+
},
|
|
428
|
+
errorTransformer: (err) => {
|
|
429
|
+
const transformedError = (0, import_transform_error.transformError)(err, {
|
|
430
|
+
spreadPathsToArguments: {},
|
|
431
|
+
explicitPathsToArguments: { query: "$[0]" },
|
|
432
|
+
singleArgumentUnchanged: false
|
|
433
|
+
});
|
|
434
|
+
throw transformedError;
|
|
435
|
+
},
|
|
436
|
+
pagingMethod: "CURSOR",
|
|
437
|
+
transformationPaths: {}
|
|
438
|
+
});
|
|
439
|
+
}
|
|
440
|
+
async function bulkUpdatePaymentAcceptanceConfigurationTags2(ids, options) {
|
|
441
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
442
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
443
|
+
ids,
|
|
444
|
+
assignTags: options?.assignTags,
|
|
445
|
+
unassignTags: options?.unassignTags
|
|
446
|
+
});
|
|
447
|
+
const reqOpts = bulkUpdatePaymentAcceptanceConfigurationTags(
|
|
448
|
+
payload
|
|
449
|
+
);
|
|
450
|
+
sideEffects?.onSiteCall?.();
|
|
451
|
+
try {
|
|
452
|
+
const result = await httpClient.request(reqOpts);
|
|
453
|
+
sideEffects?.onSuccess?.(result);
|
|
454
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
455
|
+
} catch (err) {
|
|
456
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
457
|
+
err,
|
|
458
|
+
{
|
|
459
|
+
spreadPathsToArguments: {},
|
|
460
|
+
explicitPathsToArguments: {
|
|
461
|
+
ids: "$[0]",
|
|
462
|
+
assignTags: "$[1].assignTags",
|
|
463
|
+
unassignTags: "$[1].unassignTags"
|
|
464
|
+
},
|
|
465
|
+
singleArgumentUnchanged: false
|
|
466
|
+
},
|
|
467
|
+
["ids", "options"]
|
|
468
|
+
);
|
|
469
|
+
sideEffects?.onError?.(err);
|
|
470
|
+
throw transformedError;
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
async function bulkUpdatePaymentAcceptanceConfigurationTagsByFilter2(filter, options) {
|
|
474
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
475
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
476
|
+
filter,
|
|
477
|
+
assignTags: options?.assignTags,
|
|
478
|
+
unassignTags: options?.unassignTags
|
|
479
|
+
});
|
|
480
|
+
const reqOpts = bulkUpdatePaymentAcceptanceConfigurationTagsByFilter(
|
|
481
|
+
payload
|
|
482
|
+
);
|
|
483
|
+
sideEffects?.onSiteCall?.();
|
|
484
|
+
try {
|
|
485
|
+
const result = await httpClient.request(reqOpts);
|
|
486
|
+
sideEffects?.onSuccess?.(result);
|
|
487
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
488
|
+
} catch (err) {
|
|
489
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
490
|
+
err,
|
|
491
|
+
{
|
|
492
|
+
spreadPathsToArguments: {},
|
|
493
|
+
explicitPathsToArguments: {
|
|
494
|
+
filter: "$[0]",
|
|
495
|
+
assignTags: "$[1].assignTags",
|
|
496
|
+
unassignTags: "$[1].unassignTags"
|
|
497
|
+
},
|
|
498
|
+
singleArgumentUnchanged: false
|
|
499
|
+
},
|
|
500
|
+
["filter", "options"]
|
|
501
|
+
);
|
|
502
|
+
sideEffects?.onError?.(err);
|
|
503
|
+
throw transformedError;
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
507
|
+
0 && (module.exports = {
|
|
508
|
+
SortOrder,
|
|
509
|
+
WebhookIdentityType,
|
|
510
|
+
bulkUpdatePaymentAcceptanceConfigurationTags,
|
|
511
|
+
bulkUpdatePaymentAcceptanceConfigurationTagsByFilter,
|
|
512
|
+
createPaymentAcceptanceConfiguration,
|
|
513
|
+
deletePaymentAcceptanceConfiguration,
|
|
514
|
+
getPaymentAcceptanceConfiguration,
|
|
515
|
+
queryPaymentAcceptanceConfigurations,
|
|
516
|
+
updatePaymentAcceptanceConfiguration
|
|
517
|
+
});
|
|
518
|
+
//# sourceMappingURL=index.typings.js.map
|