@wix/auto_sdk_payments_site-payment-method-types 1.0.1 → 1.0.3
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/src/payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.types.d.ts +74 -10
- package/build/cjs/src/payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.types.js.map +1 -1
- package/build/cjs/src/payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.universal.d.ts +82 -9
- package/build/cjs/src/payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.universal.js +4 -0
- package/build/cjs/src/payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.universal.js.map +1 -1
- package/build/es/src/payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.types.d.ts +74 -10
- package/build/es/src/payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.types.js.map +1 -1
- package/build/es/src/payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.universal.d.ts +82 -9
- package/build/es/src/payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.universal.js +4 -0
- package/build/es/src/payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.universal.js.map +1 -1
- package/build/internal/cjs/src/payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.types.d.ts +74 -10
- package/build/internal/cjs/src/payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.types.js.map +1 -1
- package/build/internal/cjs/src/payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.universal.d.ts +82 -9
- package/build/internal/cjs/src/payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.universal.js +4 -0
- package/build/internal/cjs/src/payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.universal.js.map +1 -1
- package/build/internal/es/src/payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.types.d.ts +74 -10
- package/build/internal/es/src/payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.types.js.map +1 -1
- package/build/internal/es/src/payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.universal.d.ts +82 -9
- package/build/internal/es/src/payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.universal.js +4 -0
- package/build/internal/es/src/payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
/** A way to pay online or offline for goods or services offered by a specific site. */
|
|
2
2
|
export interface SitePaymentMethodType {
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* Payment method type ID.
|
|
5
|
+
* @format GUID
|
|
6
|
+
* @immutable
|
|
7
|
+
*/
|
|
4
8
|
id?: string;
|
|
5
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* Value used buy some legacy APIs to refer to this payment method type. Can be empty.
|
|
11
|
+
* @minLength 1
|
|
12
|
+
* @maxLength 50
|
|
13
|
+
* @immutable
|
|
14
|
+
*/
|
|
6
15
|
legacyId?: string | null;
|
|
7
16
|
/**
|
|
8
17
|
* Payment method type display name, based on locale.
|
|
@@ -11,6 +20,8 @@ export interface SitePaymentMethodType {
|
|
|
11
20
|
*
|
|
12
21
|
* Define your locale by specifying a `country` and `language` when calling `Get Payment Method Type` or `List Payment Method Types`.
|
|
13
22
|
* For more detailed information, see the descriptions for the `country` and `language` parameters for those methods.
|
|
23
|
+
* @minLength 1
|
|
24
|
+
* @maxLength 100
|
|
14
25
|
*/
|
|
15
26
|
displayName?: string | null;
|
|
16
27
|
/**
|
|
@@ -20,6 +31,8 @@ export interface SitePaymentMethodType {
|
|
|
20
31
|
*
|
|
21
32
|
* Define your locale by specifying a `country` and `language` when calling `Get Payment Method Type` or `List Payment Method Types`.
|
|
22
33
|
* For more detailed information, see the descriptions for the `country` and `language` parameters for those methods.
|
|
34
|
+
* @minLength 1
|
|
35
|
+
* @maxLength 1000
|
|
23
36
|
*/
|
|
24
37
|
description?: string | null;
|
|
25
38
|
/** Features supported for this payment method type. */
|
|
@@ -42,10 +55,14 @@ export interface SitePaymentMethodType {
|
|
|
42
55
|
* Time (in seconds after which a transaction is marked as expired if it is not completed.
|
|
43
56
|
*
|
|
44
57
|
* Max: `15552000` (180 days)
|
|
58
|
+
* @min 1
|
|
59
|
+
* @max 15552000
|
|
45
60
|
*/
|
|
46
61
|
transactionExpirationDelayInSeconds?: number | null;
|
|
47
62
|
/** Indicates that payment method type is restricted for the provided currency. */
|
|
48
63
|
currencyRestricted?: boolean;
|
|
64
|
+
/** Indicates the payment method type has currency restriction and it is enabled. */
|
|
65
|
+
currencyRestrictionEnabled?: boolean;
|
|
49
66
|
}
|
|
50
67
|
export interface Features {
|
|
51
68
|
/** Express flow configuration. */
|
|
@@ -108,21 +125,38 @@ export interface Disputes {
|
|
|
108
125
|
export interface Installments {
|
|
109
126
|
/** Whether installments are supported for this payment method type. */
|
|
110
127
|
supported?: boolean;
|
|
111
|
-
/**
|
|
128
|
+
/**
|
|
129
|
+
* Countries for which installments can be enabled.
|
|
130
|
+
* @format COUNTRY
|
|
131
|
+
* @minSize 1
|
|
132
|
+
* @maxSize 200
|
|
133
|
+
*/
|
|
112
134
|
allowedCountries?: string[];
|
|
113
|
-
/**
|
|
135
|
+
/**
|
|
136
|
+
* Max number of installments that can be configured by a provider.
|
|
137
|
+
* @min 2
|
|
138
|
+
* @max 36
|
|
139
|
+
*/
|
|
114
140
|
maxInstallmentLimit?: number | null;
|
|
115
141
|
}
|
|
116
142
|
export interface Refunds {
|
|
117
143
|
/** Whether refunds are supported for this payment method type. */
|
|
118
144
|
supported?: boolean;
|
|
119
|
-
/**
|
|
145
|
+
/**
|
|
146
|
+
* Maximum period in which payments made using this payment method type can be refunded.
|
|
147
|
+
* @min 1
|
|
148
|
+
* @max 365
|
|
149
|
+
*/
|
|
120
150
|
maxRefundabilityPeriodInDays?: number | null;
|
|
121
151
|
}
|
|
122
152
|
export interface AuthCapture {
|
|
123
153
|
/** Whether the authorize and capture flow is supported for this payment method type. */
|
|
124
154
|
supported?: boolean;
|
|
125
|
-
/**
|
|
155
|
+
/**
|
|
156
|
+
* Period to wait for the auth capture to be completed before canceling the transaction.
|
|
157
|
+
* @min 1
|
|
158
|
+
* @max 365
|
|
159
|
+
*/
|
|
126
160
|
maxCapturePeriodInDays?: number | null;
|
|
127
161
|
}
|
|
128
162
|
export interface RegularTokenization {
|
|
@@ -163,11 +197,14 @@ export interface MerchantFlow {
|
|
|
163
197
|
*
|
|
164
198
|
* Define a locale by specifying a `country` and `language` when calling `Get Payment Method Type` or `List Payment Method Types`.
|
|
165
199
|
* For more detailed information, see the method descriptions.
|
|
200
|
+
* @maxSize 200
|
|
166
201
|
*/
|
|
167
202
|
icons?: Icon[];
|
|
168
203
|
/**
|
|
169
204
|
* Priority given to this payment method type in the list shown to the merchant.
|
|
170
205
|
* A lower value relative to other payment method types means a higher position on the list.
|
|
206
|
+
* @min 1
|
|
207
|
+
* @max 10000
|
|
171
208
|
*/
|
|
172
209
|
priority?: number;
|
|
173
210
|
/** Whether the payment method type is promoted. Promoted payment method types are displayed more prominently on the Accept Payments page. */
|
|
@@ -187,15 +224,23 @@ export interface Icon {
|
|
|
187
224
|
/**
|
|
188
225
|
* Icon tag. Payment method types can have multiple icons, and tags are used to differentiate between them.
|
|
189
226
|
* For example, the UI design for multiple payment method types is upgraded, and now they each have an old icon tagged "v1" and a new icon tagged "v2". Developers can then easily choose to display all the original "v1" style of icons, or all the new "v2" style.
|
|
227
|
+
* @minLength 1
|
|
228
|
+
* @maxLength 100
|
|
190
229
|
*/
|
|
191
230
|
tag?: string | null;
|
|
192
231
|
/** Icon image format. */
|
|
193
232
|
format?: Format;
|
|
194
233
|
}
|
|
195
234
|
export interface Image {
|
|
196
|
-
/**
|
|
235
|
+
/**
|
|
236
|
+
* WixMedia image ID.
|
|
237
|
+
* @format GUID
|
|
238
|
+
*/
|
|
197
239
|
id?: string;
|
|
198
|
-
/**
|
|
240
|
+
/**
|
|
241
|
+
* Image URL.
|
|
242
|
+
* @format WEB_URL
|
|
243
|
+
*/
|
|
199
244
|
url?: string;
|
|
200
245
|
/**
|
|
201
246
|
* Original image height.
|
|
@@ -219,11 +264,14 @@ export interface BuyerFlow {
|
|
|
219
264
|
*
|
|
220
265
|
* Define a locale by specifying a `country` and `language` when calling `Get Payment Method Type` or `List Payment Method Types`.
|
|
221
266
|
* For more detailed information, see the method descriptions.
|
|
267
|
+
* @maxSize 200
|
|
222
268
|
*/
|
|
223
269
|
icons?: Icon[];
|
|
224
270
|
/**
|
|
225
271
|
* The priority given to this payment method type in the list of payment method types shown to the buyer.
|
|
226
272
|
* A lower value relative to other payment method types means a higher position on the list.
|
|
273
|
+
* @min 1
|
|
274
|
+
* @max 10000
|
|
227
275
|
*/
|
|
228
276
|
priority?: number;
|
|
229
277
|
/** Whether the merchant cannot choose to accept payments from this payment method type. */
|
|
@@ -233,28 +281,35 @@ export interface BuyerFlow {
|
|
|
233
281
|
/**
|
|
234
282
|
* If set, indicates the minimum payment amount that can be made using this payment method type.
|
|
235
283
|
* If no currency provided, this field will not be set, as the value depends on the currency.
|
|
284
|
+
* @decimalValue options { maxScale:8, gte:0.00 }
|
|
236
285
|
*/
|
|
237
286
|
minPaymentAmount?: string | null;
|
|
238
287
|
}
|
|
239
288
|
export interface GetSitePaymentMethodTypeRequest {
|
|
240
|
-
/**
|
|
289
|
+
/**
|
|
290
|
+
* Payment method type ID.
|
|
291
|
+
* @format GUID
|
|
292
|
+
*/
|
|
241
293
|
sitePaymentMethodTypeId: string;
|
|
242
294
|
/**
|
|
243
295
|
* Language used to determine localized values for fields in the response.
|
|
244
296
|
*
|
|
245
297
|
* Must be a 2-letter language code in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
|
|
298
|
+
* @format LANGUAGE
|
|
246
299
|
*/
|
|
247
300
|
language?: string | null;
|
|
248
301
|
/**
|
|
249
302
|
* Country used to determine localized values for fields in the response.
|
|
250
303
|
*
|
|
251
304
|
* Must be a 2-letter country code in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#officially_assigned_code_elements) format.
|
|
305
|
+
* @format COUNTRY
|
|
252
306
|
*/
|
|
253
307
|
country?: string | null;
|
|
254
308
|
/**
|
|
255
309
|
* Currency used to determine localized values for fields in the response.
|
|
256
310
|
*
|
|
257
311
|
* Must be a 3-letter currency code in [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) format.
|
|
312
|
+
* @format CURRENCY
|
|
258
313
|
*/
|
|
259
314
|
currency?: string | null;
|
|
260
315
|
}
|
|
@@ -263,24 +318,32 @@ export interface GetSitePaymentMethodTypeResponse {
|
|
|
263
318
|
sitePaymentMethodType?: SitePaymentMethodType;
|
|
264
319
|
}
|
|
265
320
|
export interface ListSitePaymentMethodTypesRequest {
|
|
266
|
-
/**
|
|
321
|
+
/**
|
|
322
|
+
* IDs or legacy IDs of payment method types to retrieve.
|
|
323
|
+
* @maxSize 250
|
|
324
|
+
* @minLength 1
|
|
325
|
+
* @maxLength 50
|
|
326
|
+
*/
|
|
267
327
|
ids?: string[];
|
|
268
328
|
/**
|
|
269
329
|
* Language used to determine localized values for fields in the response.
|
|
270
330
|
*
|
|
271
331
|
* Must be a 2-letter language code in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
|
|
332
|
+
* @format LANGUAGE
|
|
272
333
|
*/
|
|
273
334
|
language?: string | null;
|
|
274
335
|
/**
|
|
275
336
|
* Country used to filter payment method types and determine localized values for fields in the response.
|
|
276
337
|
*
|
|
277
338
|
* Must be a 2-letter country code in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#officially_assigned_code_elements) format.
|
|
339
|
+
* @format COUNTRY
|
|
278
340
|
*/
|
|
279
341
|
country?: string | null;
|
|
280
342
|
/**
|
|
281
343
|
* Currency used to determine localized values for fields in the response.
|
|
282
344
|
*
|
|
283
345
|
* Must be a 3-letter currency code in [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) format.
|
|
346
|
+
* @format CURRENCY
|
|
284
347
|
*/
|
|
285
348
|
currency?: string | null;
|
|
286
349
|
}
|
|
@@ -390,6 +453,7 @@ interface SitePaymentMethodTypeNonNullableFields {
|
|
|
390
453
|
velo: boolean;
|
|
391
454
|
inPerson: boolean;
|
|
392
455
|
currencyRestricted: boolean;
|
|
456
|
+
currencyRestrictionEnabled: boolean;
|
|
393
457
|
}
|
|
394
458
|
export interface GetSitePaymentMethodTypeResponseNonNullableFields {
|
|
395
459
|
sitePaymentMethodType?: SitePaymentMethodTypeNonNullableFields;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.types.js","sourceRoot":"","sources":["../../../src/payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.types.js","sourceRoot":"","sources":["../../../src/payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.types.ts"],"names":[],"mappings":";;;AAqRA,IAAY,MAIX;AAJD,WAAY,MAAM;IAChB,2CAAiC,CAAA;IACjC,qBAAW,CAAA;IACX,qBAAW,CAAA;AACb,CAAC,EAJW,MAAM,sBAAN,MAAM,QAIjB"}
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
/** A way to pay online or offline for goods or services offered by a specific site. */
|
|
2
2
|
export interface SitePaymentMethodType {
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* Payment method type ID.
|
|
5
|
+
* @format GUID
|
|
6
|
+
* @immutable
|
|
7
|
+
*/
|
|
4
8
|
_id?: string;
|
|
5
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* Value used buy some legacy APIs to refer to this payment method type. Can be empty.
|
|
11
|
+
* @minLength 1
|
|
12
|
+
* @maxLength 50
|
|
13
|
+
* @immutable
|
|
14
|
+
*/
|
|
6
15
|
legacyId?: string | null;
|
|
7
16
|
/**
|
|
8
17
|
* Payment method type display name, based on locale.
|
|
@@ -11,6 +20,8 @@ export interface SitePaymentMethodType {
|
|
|
11
20
|
*
|
|
12
21
|
* Define your locale by specifying a `country` and `language` when calling `Get Payment Method Type` or `List Payment Method Types`.
|
|
13
22
|
* For more detailed information, see the descriptions for the `country` and `language` parameters for those methods.
|
|
23
|
+
* @minLength 1
|
|
24
|
+
* @maxLength 100
|
|
14
25
|
*/
|
|
15
26
|
displayName?: string | null;
|
|
16
27
|
/**
|
|
@@ -20,6 +31,8 @@ export interface SitePaymentMethodType {
|
|
|
20
31
|
*
|
|
21
32
|
* Define your locale by specifying a `country` and `language` when calling `Get Payment Method Type` or `List Payment Method Types`.
|
|
22
33
|
* For more detailed information, see the descriptions for the `country` and `language` parameters for those methods.
|
|
34
|
+
* @minLength 1
|
|
35
|
+
* @maxLength 1000
|
|
23
36
|
*/
|
|
24
37
|
description?: string | null;
|
|
25
38
|
/** Features supported for this payment method type. */
|
|
@@ -42,10 +55,14 @@ export interface SitePaymentMethodType {
|
|
|
42
55
|
* Time (in seconds after which a transaction is marked as expired if it is not completed.
|
|
43
56
|
*
|
|
44
57
|
* Max: `15552000` (180 days)
|
|
58
|
+
* @min 1
|
|
59
|
+
* @max 15552000
|
|
45
60
|
*/
|
|
46
61
|
transactionExpirationDelayInSeconds?: number | null;
|
|
47
62
|
/** Indicates that payment method type is restricted for the provided currency. */
|
|
48
63
|
currencyRestricted?: boolean;
|
|
64
|
+
/** Indicates the payment method type has currency restriction and it is enabled. */
|
|
65
|
+
currencyRestrictionEnabled?: boolean;
|
|
49
66
|
}
|
|
50
67
|
export interface Features {
|
|
51
68
|
/** Express flow configuration. */
|
|
@@ -108,21 +125,38 @@ export interface Disputes {
|
|
|
108
125
|
export interface Installments {
|
|
109
126
|
/** Whether installments are supported for this payment method type. */
|
|
110
127
|
supported?: boolean;
|
|
111
|
-
/**
|
|
128
|
+
/**
|
|
129
|
+
* Countries for which installments can be enabled.
|
|
130
|
+
* @format COUNTRY
|
|
131
|
+
* @minSize 1
|
|
132
|
+
* @maxSize 200
|
|
133
|
+
*/
|
|
112
134
|
allowedCountries?: string[];
|
|
113
|
-
/**
|
|
135
|
+
/**
|
|
136
|
+
* Max number of installments that can be configured by a provider.
|
|
137
|
+
* @min 2
|
|
138
|
+
* @max 36
|
|
139
|
+
*/
|
|
114
140
|
maxInstallmentLimit?: number | null;
|
|
115
141
|
}
|
|
116
142
|
export interface Refunds {
|
|
117
143
|
/** Whether refunds are supported for this payment method type. */
|
|
118
144
|
supported?: boolean;
|
|
119
|
-
/**
|
|
145
|
+
/**
|
|
146
|
+
* Maximum period in which payments made using this payment method type can be refunded.
|
|
147
|
+
* @min 1
|
|
148
|
+
* @max 365
|
|
149
|
+
*/
|
|
120
150
|
maxRefundabilityPeriodInDays?: number | null;
|
|
121
151
|
}
|
|
122
152
|
export interface AuthCapture {
|
|
123
153
|
/** Whether the authorize and capture flow is supported for this payment method type. */
|
|
124
154
|
supported?: boolean;
|
|
125
|
-
/**
|
|
155
|
+
/**
|
|
156
|
+
* Period to wait for the auth capture to be completed before canceling the transaction.
|
|
157
|
+
* @min 1
|
|
158
|
+
* @max 365
|
|
159
|
+
*/
|
|
126
160
|
maxCapturePeriodInDays?: number | null;
|
|
127
161
|
}
|
|
128
162
|
export interface RegularTokenization {
|
|
@@ -163,11 +197,14 @@ export interface MerchantFlow {
|
|
|
163
197
|
*
|
|
164
198
|
* Define a locale by specifying a `country` and `language` when calling `Get Payment Method Type` or `List Payment Method Types`.
|
|
165
199
|
* For more detailed information, see the method descriptions.
|
|
200
|
+
* @maxSize 200
|
|
166
201
|
*/
|
|
167
202
|
icons?: Icon[];
|
|
168
203
|
/**
|
|
169
204
|
* Priority given to this payment method type in the list shown to the merchant.
|
|
170
205
|
* A lower value relative to other payment method types means a higher position on the list.
|
|
206
|
+
* @min 1
|
|
207
|
+
* @max 10000
|
|
171
208
|
*/
|
|
172
209
|
priority?: number;
|
|
173
210
|
/** Whether the payment method type is promoted. Promoted payment method types are displayed more prominently on the Accept Payments page. */
|
|
@@ -187,6 +224,8 @@ export interface Icon {
|
|
|
187
224
|
/**
|
|
188
225
|
* Icon tag. Payment method types can have multiple icons, and tags are used to differentiate between them.
|
|
189
226
|
* For example, the UI design for multiple payment method types is upgraded, and now they each have an old icon tagged "v1" and a new icon tagged "v2". Developers can then easily choose to display all the original "v1" style of icons, or all the new "v2" style.
|
|
227
|
+
* @minLength 1
|
|
228
|
+
* @maxLength 100
|
|
190
229
|
*/
|
|
191
230
|
tag?: string | null;
|
|
192
231
|
/** Icon image format. */
|
|
@@ -203,11 +242,14 @@ export interface BuyerFlow {
|
|
|
203
242
|
*
|
|
204
243
|
* Define a locale by specifying a `country` and `language` when calling `Get Payment Method Type` or `List Payment Method Types`.
|
|
205
244
|
* For more detailed information, see the method descriptions.
|
|
245
|
+
* @maxSize 200
|
|
206
246
|
*/
|
|
207
247
|
icons?: Icon[];
|
|
208
248
|
/**
|
|
209
249
|
* The priority given to this payment method type in the list of payment method types shown to the buyer.
|
|
210
250
|
* A lower value relative to other payment method types means a higher position on the list.
|
|
251
|
+
* @min 1
|
|
252
|
+
* @max 10000
|
|
211
253
|
*/
|
|
212
254
|
priority?: number;
|
|
213
255
|
/** Whether the merchant cannot choose to accept payments from this payment method type. */
|
|
@@ -217,28 +259,35 @@ export interface BuyerFlow {
|
|
|
217
259
|
/**
|
|
218
260
|
* If set, indicates the minimum payment amount that can be made using this payment method type.
|
|
219
261
|
* If no currency provided, this field will not be set, as the value depends on the currency.
|
|
262
|
+
* @decimalValue options { maxScale:8, gte:0.00 }
|
|
220
263
|
*/
|
|
221
264
|
minPaymentAmount?: string | null;
|
|
222
265
|
}
|
|
223
266
|
export interface GetSitePaymentMethodTypeRequest {
|
|
224
|
-
/**
|
|
267
|
+
/**
|
|
268
|
+
* Payment method type ID.
|
|
269
|
+
* @format GUID
|
|
270
|
+
*/
|
|
225
271
|
sitePaymentMethodTypeId: string;
|
|
226
272
|
/**
|
|
227
273
|
* Language used to determine localized values for fields in the response.
|
|
228
274
|
*
|
|
229
275
|
* Must be a 2-letter language code in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
|
|
276
|
+
* @format LANGUAGE
|
|
230
277
|
*/
|
|
231
278
|
language?: string | null;
|
|
232
279
|
/**
|
|
233
280
|
* Country used to determine localized values for fields in the response.
|
|
234
281
|
*
|
|
235
282
|
* Must be a 2-letter country code in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#officially_assigned_code_elements) format.
|
|
283
|
+
* @format COUNTRY
|
|
236
284
|
*/
|
|
237
285
|
country?: string | null;
|
|
238
286
|
/**
|
|
239
287
|
* Currency used to determine localized values for fields in the response.
|
|
240
288
|
*
|
|
241
289
|
* Must be a 3-letter currency code in [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) format.
|
|
290
|
+
* @format CURRENCY
|
|
242
291
|
*/
|
|
243
292
|
currency?: string | null;
|
|
244
293
|
}
|
|
@@ -247,24 +296,32 @@ export interface GetSitePaymentMethodTypeResponse {
|
|
|
247
296
|
sitePaymentMethodType?: SitePaymentMethodType;
|
|
248
297
|
}
|
|
249
298
|
export interface ListSitePaymentMethodTypesRequest {
|
|
250
|
-
/**
|
|
299
|
+
/**
|
|
300
|
+
* IDs or legacy IDs of payment method types to retrieve.
|
|
301
|
+
* @maxSize 250
|
|
302
|
+
* @minLength 1
|
|
303
|
+
* @maxLength 50
|
|
304
|
+
*/
|
|
251
305
|
ids?: string[];
|
|
252
306
|
/**
|
|
253
307
|
* Language used to determine localized values for fields in the response.
|
|
254
308
|
*
|
|
255
309
|
* Must be a 2-letter language code in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
|
|
310
|
+
* @format LANGUAGE
|
|
256
311
|
*/
|
|
257
312
|
language?: string | null;
|
|
258
313
|
/**
|
|
259
314
|
* Country used to filter payment method types and determine localized values for fields in the response.
|
|
260
315
|
*
|
|
261
316
|
* Must be a 2-letter country code in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#officially_assigned_code_elements) format.
|
|
317
|
+
* @format COUNTRY
|
|
262
318
|
*/
|
|
263
319
|
country?: string | null;
|
|
264
320
|
/**
|
|
265
321
|
* Currency used to determine localized values for fields in the response.
|
|
266
322
|
*
|
|
267
323
|
* Must be a 3-letter currency code in [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) format.
|
|
324
|
+
* @format CURRENCY
|
|
268
325
|
*/
|
|
269
326
|
currency?: string | null;
|
|
270
327
|
}
|
|
@@ -368,6 +425,7 @@ export interface SitePaymentMethodTypeNonNullableFields {
|
|
|
368
425
|
velo: boolean;
|
|
369
426
|
inPerson: boolean;
|
|
370
427
|
currencyRestricted: boolean;
|
|
428
|
+
currencyRestrictionEnabled: boolean;
|
|
371
429
|
}
|
|
372
430
|
export interface GetSitePaymentMethodTypeResponseNonNullableFields {
|
|
373
431
|
sitePaymentMethodType?: SitePaymentMethodTypeNonNullableFields;
|
|
@@ -399,6 +457,8 @@ export interface ListSitePaymentMethodTypesResponseNonNullableFields {
|
|
|
399
457
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
400
458
|
* @permissionScope Manage Restaurants - all permissions
|
|
401
459
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
460
|
+
* @permissionScope Set Up Automations
|
|
461
|
+
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
402
462
|
* @applicableIdentity APP
|
|
403
463
|
* @applicableIdentity VISITOR
|
|
404
464
|
* @returns Requested site payment method type.
|
|
@@ -410,18 +470,21 @@ export interface GetSitePaymentMethodTypeOptions {
|
|
|
410
470
|
* Language used to determine localized values for fields in the response.
|
|
411
471
|
*
|
|
412
472
|
* Must be a 2-letter language code in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
|
|
473
|
+
* @format LANGUAGE
|
|
413
474
|
*/
|
|
414
475
|
language?: string | null;
|
|
415
476
|
/**
|
|
416
477
|
* Country used to determine localized values for fields in the response.
|
|
417
478
|
*
|
|
418
479
|
* Must be a 2-letter country code in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#officially_assigned_code_elements) format.
|
|
480
|
+
* @format COUNTRY
|
|
419
481
|
*/
|
|
420
482
|
country?: string | null;
|
|
421
483
|
/**
|
|
422
484
|
* Currency used to determine localized values for fields in the response.
|
|
423
485
|
*
|
|
424
486
|
* Must be a 3-letter currency code in [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) format.
|
|
487
|
+
* @format CURRENCY
|
|
425
488
|
*/
|
|
426
489
|
currency?: string | null;
|
|
427
490
|
}
|
|
@@ -451,30 +514,40 @@ export interface GetSitePaymentMethodTypeOptions {
|
|
|
451
514
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
452
515
|
* @permissionScope Manage Restaurants - all permissions
|
|
453
516
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
517
|
+
* @permissionScope Set Up Automations
|
|
518
|
+
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
454
519
|
* @applicableIdentity APP
|
|
455
520
|
* @applicableIdentity VISITOR
|
|
456
521
|
* @fqn wix.payments.site_payment_method_types.v1.SitePaymentMethodTypeService.ListSitePaymentMethodTypes
|
|
457
522
|
*/
|
|
458
523
|
export declare function listSitePaymentMethodTypes(options?: ListSitePaymentMethodTypesOptions): Promise<ListSitePaymentMethodTypesResponse & ListSitePaymentMethodTypesResponseNonNullableFields>;
|
|
459
524
|
export interface ListSitePaymentMethodTypesOptions {
|
|
460
|
-
/**
|
|
525
|
+
/**
|
|
526
|
+
* IDs or legacy IDs of payment method types to retrieve.
|
|
527
|
+
* @maxSize 250
|
|
528
|
+
* @minLength 1
|
|
529
|
+
* @maxLength 50
|
|
530
|
+
*/
|
|
461
531
|
ids?: string[];
|
|
462
532
|
/**
|
|
463
533
|
* Language used to determine localized values for fields in the response.
|
|
464
534
|
*
|
|
465
535
|
* Must be a 2-letter language code in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
|
|
536
|
+
* @format LANGUAGE
|
|
466
537
|
*/
|
|
467
538
|
language?: string | null;
|
|
468
539
|
/**
|
|
469
540
|
* Country used to filter payment method types and determine localized values for fields in the response.
|
|
470
541
|
*
|
|
471
542
|
* Must be a 2-letter country code in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#officially_assigned_code_elements) format.
|
|
543
|
+
* @format COUNTRY
|
|
472
544
|
*/
|
|
473
545
|
country?: string | null;
|
|
474
546
|
/**
|
|
475
547
|
* Currency used to determine localized values for fields in the response.
|
|
476
548
|
*
|
|
477
549
|
* Must be a 3-letter currency code in [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) format.
|
|
550
|
+
* @format CURRENCY
|
|
478
551
|
*/
|
|
479
552
|
currency?: string | null;
|
|
480
553
|
}
|
|
@@ -59,6 +59,8 @@ var Format;
|
|
|
59
59
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
60
60
|
* @permissionScope Manage Restaurants - all permissions
|
|
61
61
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
62
|
+
* @permissionScope Set Up Automations
|
|
63
|
+
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
62
64
|
* @applicableIdentity APP
|
|
63
65
|
* @applicableIdentity VISITOR
|
|
64
66
|
* @returns Requested site payment method type.
|
|
@@ -130,6 +132,8 @@ exports.getSitePaymentMethodType = getSitePaymentMethodType;
|
|
|
130
132
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
131
133
|
* @permissionScope Manage Restaurants - all permissions
|
|
132
134
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
135
|
+
* @permissionScope Set Up Automations
|
|
136
|
+
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
133
137
|
* @applicableIdentity APP
|
|
134
138
|
* @applicableIdentity VISITOR
|
|
135
139
|
* @fqn wix.payments.site_payment_method_types.v1.SitePaymentMethodTypeService.ListSitePaymentMethodTypes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.universal.js","sourceRoot":"","sources":["../../../src/payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,oFAGiD;AAEjD,uMAAyL;AACzL,kEAAsF;AACtF,sFAAkF;
|
|
1
|
+
{"version":3,"file":"payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.universal.js","sourceRoot":"","sources":["../../../src/payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,oFAGiD;AAEjD,uMAAyL;AACzL,kEAAsF;AACtF,sFAAkF;AAgQlF,IAAY,MAIX;AAJD,WAAY,MAAM;IAChB,2CAAiC,CAAA;IACjC,qBAAW,CAAA;IACX,qBAAW,CAAA;AACb,CAAC,EAJW,MAAM,sBAAN,MAAM,QAIjB;AAoOD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACI,KAAK,UAAU,wBAAwB,CAC5C,uBAA+B,EAC/B,OAAyC;IAEzC,aAAa;IACb,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAC;IAEF,MAAM,OAAO,GAAG,IAAA,8DAAqC,EAAC;QACpD,uBAAuB,EAAE,uBAAuB;Q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