@wix/auto_sdk_payments_site-payment-method-types 1.0.19 → 1.0.21
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 +3 -3
- package/build/cjs/index.js +12 -12
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/{payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.universal-C_XBiFRa.d.ts → index.typings.d.ts} +80 -34
- package/build/cjs/index.typings.js +357 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +28 -27
- package/build/es/index.d.mts +3 -3
- package/build/es/index.mjs +12 -12
- package/build/es/index.mjs.map +1 -1
- package/build/es/{payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.universal-C_XBiFRa.d.mts → index.typings.d.mts} +80 -34
- package/build/es/index.typings.mjs +330 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +28 -27
- package/build/internal/cjs/index.d.ts +3 -3
- package/build/internal/cjs/index.js +12 -12
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/{payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.universal-C_XBiFRa.d.ts → index.typings.d.ts} +80 -34
- package/build/internal/cjs/index.typings.js +357 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +28 -27
- package/build/internal/es/index.d.mts +3 -3
- package/build/internal/es/index.mjs +12 -12
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/{payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.universal-C_XBiFRa.d.mts → index.typings.d.mts} +80 -34
- package/build/internal/es/index.typings.mjs +330 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +28 -27
- package/package.json +3 -3
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
2
|
+
import { GetSitePaymentMethodTypeOptions, SitePaymentMethodType, ListSitePaymentMethodTypesOptions, ListSitePaymentMethodTypesResponse } from './index.typings.js';
|
|
3
|
+
export { AuthCapture, Barcode, BuyerFlow, CredentialOnFile, CustomTokenization, Disputes, ExpressFlow, Features, Format, FullPageRedirect, GetSitePaymentMethodTypeRequest, GetSitePaymentMethodTypeResponse, IFrame, Icon, Installments, ListSitePaymentMethodTypesRequest, MerchantFlow, Moto, NewTab, NextAction, PromotionalMessages, QrCode, Refunds, RegularFlow, RegularTokenization, RequestedFields } from './index.typings.js';
|
|
4
4
|
|
|
5
5
|
declare function getSitePaymentMethodType$1(httpClient: HttpClient): GetSitePaymentMethodTypeSignature;
|
|
6
6
|
interface GetSitePaymentMethodTypeSignature {
|
|
@@ -13,7 +13,7 @@ interface GetSitePaymentMethodTypeSignature {
|
|
|
13
13
|
*
|
|
14
14
|
* Language and country are used to determine localized values for the `displayName`, `description` fields.
|
|
15
15
|
* Country is used to determine localized values for the `priority` and `promoted` fields in both `merchantFlow` and `buyerFlow`.
|
|
16
|
-
* @param -
|
|
16
|
+
* @param - Site payment method type ID.
|
|
17
17
|
* @returns Requested site payment method type.
|
|
18
18
|
*/
|
|
19
19
|
(sitePaymentMethodTypeId: string, options?: GetSitePaymentMethodTypeOptions | undefined): Promise<SitePaymentMethodType>;
|
package/build/cjs/index.js
CHANGED
|
@@ -257,9 +257,9 @@ async function getSitePaymentMethodType2(sitePaymentMethodTypeId, options) {
|
|
|
257
257
|
const { httpClient, sideEffects } = arguments[2];
|
|
258
258
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
259
259
|
sitePaymentMethodTypeId,
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
260
|
+
languageCode: options?.languageCode,
|
|
261
|
+
countryCode: options?.countryCode,
|
|
262
|
+
currencyCode: options?.currencyCode,
|
|
263
263
|
requestedFields: options?.requestedFields
|
|
264
264
|
});
|
|
265
265
|
const reqOpts = getSitePaymentMethodType(
|
|
@@ -287,9 +287,9 @@ async function getSitePaymentMethodType2(sitePaymentMethodTypeId, options) {
|
|
|
287
287
|
spreadPathsToArguments: {},
|
|
288
288
|
explicitPathsToArguments: {
|
|
289
289
|
sitePaymentMethodTypeId: "$[0]",
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
290
|
+
languageCode: "$[1].languageCode",
|
|
291
|
+
countryCode: "$[1].countryCode",
|
|
292
|
+
currencyCode: "$[1].currencyCode",
|
|
293
293
|
requestedFields: "$[1].requestedFields"
|
|
294
294
|
},
|
|
295
295
|
singleArgumentUnchanged: false
|
|
@@ -304,9 +304,9 @@ async function listSitePaymentMethodTypes2(options) {
|
|
|
304
304
|
const { httpClient, sideEffects } = arguments[1];
|
|
305
305
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
306
306
|
ids: options?.ids,
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
307
|
+
languageCode: options?.languageCode,
|
|
308
|
+
countryCode: options?.countryCode,
|
|
309
|
+
currencyCode: options?.currencyCode,
|
|
310
310
|
requestedFields: options?.requestedFields
|
|
311
311
|
});
|
|
312
312
|
const reqOpts = listSitePaymentMethodTypes(
|
|
@@ -334,9 +334,9 @@ async function listSitePaymentMethodTypes2(options) {
|
|
|
334
334
|
spreadPathsToArguments: {},
|
|
335
335
|
explicitPathsToArguments: {
|
|
336
336
|
ids: "$[0].ids",
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
337
|
+
languageCode: "$[0].languageCode",
|
|
338
|
+
countryCode: "$[0].countryCode",
|
|
339
|
+
currencyCode: "$[0].currencyCode",
|
|
340
340
|
requestedFields: "$[0].requestedFields"
|
|
341
341
|
},
|
|
342
342
|
singleArgumentUnchanged: false
|
package/build/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../index.ts","../../src/payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.universal.ts","../../src/payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.http.ts","../../src/payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.public.ts","../../src/payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.context.ts"],"sourcesContent":["export * from './src/payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.context.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodType from './payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.http.js';\nimport { transformRESTImageToSDKImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\n/** A way to pay online or offline for goods or services offered by a specific site. */\nexport interface SitePaymentMethodType {\n /**\n * Payment method type ID.\n * @format GUID\n * @immutable\n */\n _id?: string;\n /**\n * Value used buy some legacy APIs to refer to this payment method type. Can be empty.\n * @minLength 1\n * @maxLength 50\n * @immutable\n */\n legacyId?: string | null;\n /**\n * Payment method type display name, based on locale.\n *\n * Used by Wix when displaying the payment method type, such as in the payment settings page for merchants, or the checkout page for buyers.\n *\n * Define your locale by specifying a `country` and `language` when calling `Get Payment Method Type` or `List Payment Method Types`.\n * For more detailed information, see the descriptions for the `country` and `language` parameters for those methods.\n * @minLength 1\n * @maxLength 100\n */\n displayName?: string | null;\n /**\n * Payment method type description, based on locale.\n *\n * Used by Wix when displaying the payment method type, such as in the payment settings page for merchants, or the checkout page for buyers.\n *\n * Define your locale by specifying a `country` and `language` when calling `Get Payment Method Type` or `List Payment Method Types`.\n * For more detailed information, see the descriptions for the `country` and `language` parameters for those methods.\n * @minLength 1\n * @maxLength 1000\n */\n description?: string | null;\n /** Features supported for this payment method type. */\n features?: Features;\n /** Settings that determine if and how to display this payment method type in the merchant flow. The merchant flow is the process a merchant goes through to configure which payment method types they accept on their site. */\n merchantFlow?: MerchantFlow;\n /** Settings that determine if and how to display this payment method type in the buyer flow. The buyer flow is the process a buyer goes through to make a purchase att checkout. */\n buyerFlow?: BuyerFlow;\n /**\n * Whether this payment method type is only used to represent a supported payment brand for another payment method type.\n *\n * For example, a Visa payment method is used to indicate that Visa can be used for credit card transactions. But the Visa payment method type is not used to accept payments. Instead, the credit card payment method type is used.\n *\n * Brand-only payment method types cannot be used to accept payments, and are not listed as a payment method type in a site's dashboard.\n */\n brandOnly?: boolean;\n /** Whether the payment method type can only be used for in-person payments, such as cash, point-of-sale payments, and card readers. */\n inPerson?: boolean;\n /**\n * Time (in seconds after which a transaction is marked as expired if it is not completed.\n *\n * Max: `15552000` (180 days)\n * @min 1\n * @max 15552000\n */\n transactionExpirationDelayInSeconds?: number | null;\n /** Indicates that payment method type is restricted for the provided currency. */\n currencyRestricted?: boolean;\n /** Indicates the payment method type has currency restriction and it is enabled. */\n currencyRestrictionEnabled?: boolean;\n /**\n * allowed currencies\n * @maxSize 100\n * @format CURRENCY\n */\n allowedCurrencies?: string[];\n}\n\nexport interface Features {\n /** Express flow configuration. */\n expressFlow?: ExpressFlow;\n /** Regular flow configuration. */\n regularFlow?: RegularFlow;\n /** Disputes configuration. */\n disputes?: Disputes;\n /** Installments configuration. */\n installments?: Installments;\n /** Refunds configuration. */\n refunds?: Refunds;\n /** Authorize and capture configuration. */\n authCapture?: AuthCapture;\n /** Regular tokenization configuration. */\n regularTokenization?: RegularTokenization;\n /** Custom tokenization configuration. */\n customTokenization?: CustomTokenization;\n /** Next action configuration. */\n nextAction?: NextAction;\n /** Credential-on-File (CoF) configuration. */\n credentialOnFile?: CredentialOnFile;\n /** Mail Order/Telephone Order (MOTO) configuration. */\n moto?: Moto;\n /** Promotional message configuration. */\n promotionalMessages?: PromotionalMessages;\n}\n\nexport interface IFrame {\n /** Whether the next payment action can be shown in an iframe. */\n supported?: boolean;\n}\n\nexport interface NewTab {\n /** Whether the next payment action can be shown in a new tab. */\n supported?: boolean;\n}\n\nexport interface FullPageRedirect {\n /** Whether the next payment action can be shown by redirecting to a new page. */\n supported?: boolean;\n}\n\nexport interface Barcode {\n /** Whether the next payment action can be shown as a barcode to scan. */\n supported?: boolean;\n}\n\nexport interface QrCode {\n /** Whether the next payment action can be shown as a QR code to scan. */\n supported?: boolean;\n}\n\nexport interface ExpressFlow {\n /** Whether this payment method type can be used in an express flow on checkout. */\n supported?: boolean;\n}\n\nexport interface RegularFlow {\n /** Whether this payment method type can be used in a regular flow on checkout. */\n supported?: boolean;\n}\n\nexport interface Disputes {\n /** Whether disputes are supported for this payment method type. */\n supported?: boolean;\n}\n\nexport interface Installments {\n /** Whether installments are supported for this payment method type. */\n supported?: boolean;\n /**\n * Countries for which installments can be enabled.\n * @format COUNTRY\n * @minSize 1\n * @maxSize 200\n */\n allowedCountries?: string[];\n /**\n * Max number of installments that can be configured by a provider.\n * @min 2\n * @max 36\n */\n maxInstallmentLimit?: number | null;\n}\n\nexport interface Refunds {\n /** Whether refunds are supported for this payment method type. */\n supported?: boolean;\n /**\n * Maximum period in which payments made using this payment method type can be refunded.\n * @min 1\n * @max 365\n */\n maxRefundabilityPeriodInDays?: number | null;\n}\n\nexport interface AuthCapture {\n /** Whether the authorize and capture flow is supported for this payment method type. */\n supported?: boolean;\n /**\n * Period to wait for the auth capture to be completed before canceling the transaction.\n * @min 1\n * @max 365\n */\n maxCapturePeriodInDays?: number | null;\n}\n\nexport interface RegularTokenization {\n /** Whether the default tokenization mechanism can be configured for this payment method type. */\n supported?: boolean;\n}\n\nexport interface CustomTokenization {\n /** Whether a custom tokenization mechanism can be configured for this payment method type, such as a provider-specific tokenization method. */\n supported?: boolean;\n}\n\nexport interface NextAction {\n /** iframe configuration. */\n iframe?: IFrame;\n /** New tab configuration. */\n newTab?: NewTab;\n /** Full page redirect configuration. */\n fullPageRedirect?: FullPageRedirect;\n /** Barcode configuration. */\n barcode?: Barcode;\n /** QR code configuration. */\n qrCode?: QrCode;\n}\n\nexport interface CredentialOnFile {\n /** Whether the Credential-on-File (CoF) feature is supported for this payment method type. */\n supported?: boolean;\n}\n\nexport interface Moto {\n /** Whether Mail Order/Telephone Order (MOTO) is supported for this payment method type. */\n supported?: boolean;\n}\n\nexport interface PromotionalMessages {\n /** Whether promotional messages is supported for this payment method type. */\n supported?: boolean;\n}\n\nexport interface MerchantFlow {\n /**\n * Details about the icons to display for this payment method type on the merchant's Accept Payments page in the site dashboard. Icons are localized according to the locale of the call.\n *\n * Define a locale by specifying a `country` and `language` when calling `Get Payment Method Type` or `List Payment Method Types`.\n * For more detailed information, see the method descriptions.\n * @maxSize 200\n */\n icons?: Icon[];\n /**\n * Priority given to this payment method type in the list shown to the merchant.\n * A lower value relative to other payment method types means a higher position on the list.\n * @min 1\n * @max 10000\n */\n priority?: number;\n /** Whether the payment method type is promoted. Promoted payment method types are displayed more prominently on the Accept Payments page. */\n promoted?: boolean;\n /** Whether the merchant cannot choose to accept payments from this payment method type. */\n hidden?: boolean;\n /** Indicates that payment method type is restricted in provided country. */\n countryRestricted?: boolean;\n}\n\n/**\n * Example url:\n * http://images-wixmp-6613fa290e8c1ac70a0297b6.wixmp.com/payment-methods/{domain}/{extension}/{id}.{extension}\n */\nexport interface Icon {\n /** Icon image. */\n image?: string;\n /**\n * Icon tag. Payment method types can have multiple icons, and tags are used to differentiate between them.\n * 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.\n * @minLength 1\n * @maxLength 100\n */\n tag?: string | null;\n /** Icon image format. */\n format?: FormatWithLiterals;\n}\n\nexport enum Format {\n UNKNOWN_FORMAT = 'UNKNOWN_FORMAT',\n SVG = 'SVG',\n PNG = 'PNG',\n}\n\n/** @enumType */\nexport type FormatWithLiterals = Format | 'UNKNOWN_FORMAT' | 'SVG' | 'PNG';\n\nexport interface BuyerFlow {\n /**\n * Details about the icons to display for this payment method type on a site's checkout page. Icons are localized according to the locale of the call.\n *\n * Define a locale by specifying a `country` and `language` when calling `Get Payment Method Type` or `List Payment Method Types`.\n * For more detailed information, see the method descriptions.\n * @maxSize 200\n */\n icons?: Icon[];\n /**\n * The priority given to this payment method type in the list of payment method types shown to the buyer.\n * A lower value relative to other payment method types means a higher position on the list.\n * @min 1\n * @max 10000\n */\n priority?: number;\n /** Whether the merchant cannot choose to accept payments from this payment method type. */\n hidden?: boolean;\n /** Indicates that payment method type is restricted in provided country. */\n countryRestricted?: boolean;\n /**\n * If set, indicates the minimum payment amount that can be made using this payment method type.\n * If no currency provided, this field will not be set, as the value depends on the currency.\n * @decimalValue options { maxScale:8, gte:0.00 }\n */\n minPaymentAmount?: string | null;\n}\n\nexport interface GetSitePaymentMethodTypeRequest {\n /**\n * Payment method type ID.\n * @format GUID\n */\n sitePaymentMethodTypeId: string;\n /**\n * Language used to determine localized values for fields in the response.\n *\n * Must be a 2-letter language code in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.\n * @format LANGUAGE\n */\n language?: string | null;\n /**\n * Country used to determine localized values for fields in the response.\n *\n * 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.\n * @format COUNTRY\n */\n country?: string | null;\n /**\n * Currency used to determine localized values for fields in the response.\n *\n * Must be a 3-letter currency code in [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) format.\n * @format CURRENCY\n */\n currency?: string | null;\n /**\n * Requested additional fields\n * @maxSize 2\n */\n requestedFields?: RequestedFieldsWithLiterals[];\n}\n\nexport enum RequestedFields {\n UNKNOWN_REQUESTED_FIELD = 'UNKNOWN_REQUESTED_FIELD',\n ALLOWED_CURRENCIES = 'ALLOWED_CURRENCIES',\n}\n\n/** @enumType */\nexport type RequestedFieldsWithLiterals =\n | RequestedFields\n | 'UNKNOWN_REQUESTED_FIELD'\n | 'ALLOWED_CURRENCIES';\n\nexport interface GetSitePaymentMethodTypeResponse {\n /** Requested site payment method type. */\n sitePaymentMethodType?: SitePaymentMethodType;\n}\n\nexport interface ListSitePaymentMethodTypesRequest {\n /**\n * IDs or legacy IDs of payment method types to retrieve.\n * @maxSize 250\n * @minLength 1\n * @maxLength 50\n */\n ids?: string[];\n /**\n * Language used to determine localized values for fields in the response.\n *\n * Must be a 2-letter language code in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.\n * @format LANGUAGE\n */\n language?: string | null;\n /**\n * Country used to filter payment method types and determine localized values for fields in the response.\n *\n * 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.\n * @format COUNTRY\n */\n country?: string | null;\n /**\n * Currency used to determine localized values for fields in the response.\n *\n * Must be a 3-letter currency code in [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) format.\n * @format CURRENCY\n */\n currency?: string | null;\n /**\n * Requested additional fields\n * @maxSize 2\n */\n requestedFields?: RequestedFieldsWithLiterals[];\n}\n\nexport interface ListSitePaymentMethodTypesResponse {\n /** List of site payment method types. */\n sitePaymentMethodTypes?: SitePaymentMethodType[];\n}\n\ntype SitePaymentMethodTypeNonNullablePaths =\n | `_id`\n | `features.expressFlow.supported`\n | `features.regularFlow.supported`\n | `features.disputes.supported`\n | `features.installments.supported`\n | `features.installments.allowedCountries`\n | `features.refunds.supported`\n | `features.authCapture.supported`\n | `features.regularTokenization.supported`\n | `features.customTokenization.supported`\n | `features.nextAction.iframe.supported`\n | `features.nextAction.newTab.supported`\n | `features.nextAction.fullPageRedirect.supported`\n | `features.nextAction.barcode.supported`\n | `features.nextAction.qrCode.supported`\n | `features.credentialOnFile.supported`\n | `features.moto.supported`\n | `features.promotionalMessages.supported`\n | `merchantFlow.icons`\n | `merchantFlow.icons.${number}.format`\n | `merchantFlow.priority`\n | `merchantFlow.promoted`\n | `merchantFlow.hidden`\n | `merchantFlow.countryRestricted`\n | `buyerFlow.icons`\n | `buyerFlow.icons.${number}.format`\n | `buyerFlow.priority`\n | `buyerFlow.hidden`\n | `buyerFlow.countryRestricted`\n | `brandOnly`\n | `inPerson`\n | `currencyRestricted`\n | `currencyRestrictionEnabled`\n | `allowedCurrencies`;\n\n/**\n * Retrieves a payment method type, with some fields localized according to the caller's language and country.\n *\n * The callers language and country are taken from the `language` or `country` parameters in the request.\n * If these parameters are not specified, the values are taken from context of the call if possible. For example, if this method is called from a Wix site, the selected language on that site will be used.\n * If language or country can't be determined, the method doesn't perform any filtering or localization.\n *\n * Language and country are used to determine localized values for the `displayName`, `description` fields.\n * Country is used to determine localized values for the `priority` and `promoted` fields in both `merchantFlow` and `buyerFlow`.\n * @param sitePaymentMethodTypeId - Payment method type ID.\n * @public\n * @documentationMaturity preview\n * @requiredField sitePaymentMethodTypeId\n * @permissionId PAYMENTS.SITE_PAYMENT_METHOD_TYPE_READ\n * @applicableIdentity APP\n * @applicableIdentity VISITOR\n * @returns Requested site payment method type.\n * @fqn wix.payments.site_payment_method_types.v1.SitePaymentMethodTypeService.GetSitePaymentMethodType\n */\nexport async function getSitePaymentMethodType(\n sitePaymentMethodTypeId: string,\n options?: GetSitePaymentMethodTypeOptions\n): Promise<\n NonNullablePaths<SitePaymentMethodType, SitePaymentMethodTypeNonNullablePaths>\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n sitePaymentMethodTypeId: sitePaymentMethodTypeId,\n language: options?.language,\n country: options?.country,\n currency: options?.currency,\n requestedFields: options?.requestedFields,\n });\n\n const reqOpts =\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodType.getSitePaymentMethodType(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'sitePaymentMethodType.merchantFlow.icons.image' },\n { path: 'sitePaymentMethodType.buyerFlow.icons.image' },\n ],\n },\n ])\n )?.sitePaymentMethodType!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n sitePaymentMethodTypeId: '$[0]',\n language: '$[1].language',\n country: '$[1].country',\n currency: '$[1].currency',\n requestedFields: '$[1].requestedFields',\n },\n singleArgumentUnchanged: false,\n },\n ['sitePaymentMethodTypeId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetSitePaymentMethodTypeOptions {\n /**\n * Language used to determine localized values for fields in the response.\n *\n * Must be a 2-letter language code in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.\n * @format LANGUAGE\n */\n language?: string | null;\n /**\n * Country used to determine localized values for fields in the response.\n *\n * 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.\n * @format COUNTRY\n */\n country?: string | null;\n /**\n * Currency used to determine localized values for fields in the response.\n *\n * Must be a 3-letter currency code in [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) format.\n * @format CURRENCY\n */\n currency?: string | null;\n /**\n * Requested additional fields\n * @maxSize 2\n */\n requestedFields?: RequestedFieldsWithLiterals[];\n}\n\n/**\n * Retrieves a list of payment method types.\n *\n * If an `ids` array is specified, only payment method types with matching IDs or legacy IDs are returned.\n * If no `ids` are specified, all payment method types available in the caller's country are returned, with some fields localized according to the caller's language and country.\n *\n * The caller's language and country are taken from the `language` or `country` parameters in the request.\n * If `language` or `country` are not specified, the values are taken from context of the call if possible. For example, if this method is called from a Wix site, the selected language on that site will be used.\n * If language or country can't be determined, the method doesn't perform any filtering or localization.\n *\n * Language and country are used to determine localized values for the `displayName`, `description` fields.\n * Country is used to determine localized values for the `priority` and `promoted` fields in both `merchantFlow` and `buyerFlow`.\n * `currency` is used to determine the eligibility of payment method types for the provided currency.\n * @public\n * @documentationMaturity preview\n * @permissionId PAYMENTS.SITE_PAYMENT_METHOD_TYPE_READ\n * @applicableIdentity APP\n * @applicableIdentity VISITOR\n * @fqn wix.payments.site_payment_method_types.v1.SitePaymentMethodTypeService.ListSitePaymentMethodTypes\n */\nexport async function listSitePaymentMethodTypes(\n options?: ListSitePaymentMethodTypesOptions\n): Promise<\n NonNullablePaths<\n ListSitePaymentMethodTypesResponse,\n {\n [P in SitePaymentMethodTypeNonNullablePaths]: `sitePaymentMethodTypes.${number}.${P}`;\n }[SitePaymentMethodTypeNonNullablePaths]\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n ids: options?.ids,\n language: options?.language,\n country: options?.country,\n currency: options?.currency,\n requestedFields: options?.requestedFields,\n });\n\n const reqOpts =\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodType.listSitePaymentMethodTypes(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'sitePaymentMethodTypes.merchantFlow.icons.image' },\n { path: 'sitePaymentMethodTypes.buyerFlow.icons.image' },\n ],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n ids: '$[0].ids',\n language: '$[0].language',\n country: '$[0].country',\n currency: '$[0].currency',\n requestedFields: '$[0].requestedFields',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ListSitePaymentMethodTypesOptions {\n /**\n * IDs or legacy IDs of payment method types to retrieve.\n * @maxSize 250\n * @minLength 1\n * @maxLength 50\n */\n ids?: string[];\n /**\n * Language used to determine localized values for fields in the response.\n *\n * Must be a 2-letter language code in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.\n * @format LANGUAGE\n */\n language?: string | null;\n /**\n * Country used to filter payment method types and determine localized values for fields in the response.\n *\n * 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.\n * @format COUNTRY\n */\n country?: string | null;\n /**\n * Currency used to determine localized values for fields in the response.\n *\n * Must be a 3-letter currency code in [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) format.\n * @format CURRENCY\n */\n currency?: string | null;\n /**\n * Requested additional fields\n * @maxSize 2\n */\n requestedFields?: RequestedFieldsWithLiterals[];\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._api_base_domain_': [\n {\n srcPath: '/payment-method-types',\n destPath: '',\n },\n ],\n 'bo._base_domain_': [\n {\n srcPath: '/_api/payment-method-types',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/_api/payment-method-types',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/_api/payment-method-types',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/payment-method-types',\n destPath: '',\n },\n {\n srcPath: '/_api/payments/payment-method-types',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/payments/site-payment-method-types',\n destPath: '',\n },\n {\n srcPath: '/_api/payments/payment-method-types',\n destPath: '',\n },\n ],\n 'cashier._base_domain_': [\n {\n srcPath: '/_api/payment-method-types',\n destPath: '',\n },\n ],\n 'cashier.wixapps.net': [\n {\n srcPath: '/_api/payments/payment-method-types',\n destPath: '',\n },\n {\n srcPath: '/_api/payment-method-types',\n destPath: '',\n },\n ],\n 'cashier-services._base_domain_': [\n {\n srcPath: '/_api/payment-method-types',\n destPath: '',\n },\n ],\n 'events._base_domain_': [\n {\n srcPath: '/_api/payment-method-types',\n destPath: '',\n },\n ],\n 'events.wixapps.net': [\n {\n srcPath: '/_api/payment-method-types',\n destPath: '',\n },\n ],\n 'invoices._base_domain_': [\n {\n srcPath: '/_api/payment-method-types',\n destPath: '',\n },\n ],\n 'premium._base_domain_': [\n {\n srcPath: '/_api/payment-method-types',\n destPath: '',\n },\n ],\n 'pricing-plans.wixapps.net': [\n {\n srcPath: '/_api/payment-method-types',\n destPath: '',\n },\n ],\n 'vod-server._base_domain_': [\n {\n srcPath: '/_api/payment-method-types',\n destPath: '',\n },\n ],\n 'www.wixhotels.com': [\n {\n srcPath: '/_api/payment-method-types',\n destPath: '',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/_api/payments/payment-method-types',\n destPath: '',\n },\n ],\n 'tpa.wixapps.net': [\n {\n srcPath: '/_api/payments/payment-method-types',\n destPath: '',\n },\n ],\n 'apps._base_domain_': [\n {\n srcPath: '/_api/payments/payment-method-types',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/payments/payment-method-types',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/payments/payment-method-types',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/payments/payment-method-types',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/payments/payment-method-types',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath:\n '/payments/site-payment-method-types/v1/site-payment-method-types',\n destPath: '/v1/site-payment-method-types',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath:\n '/payments/site-payment-method-types/v1/site-payment-method-types',\n destPath: '/v1/site-payment-method-types',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_payments_site-payment-method-types';\n\n/**\n * Retrieves a payment method type, with some fields localized according to the caller's language and country.\n *\n * The callers language and country are taken from the `language` or `country` parameters in the request.\n * If these parameters are not specified, the values are taken from context of the call if possible. For example, if this method is called from a Wix site, the selected language on that site will be used.\n * If language or country can't be determined, the method doesn't perform any filtering or localization.\n *\n * Language and country are used to determine localized values for the `displayName`, `description` fields.\n * Country is used to determine localized values for the `priority` and `promoted` fields in both `merchantFlow` and `buyerFlow`.\n */\nexport function getSitePaymentMethodType(\n payload: object\n): RequestOptionsFactory<any> {\n function __getSitePaymentMethodType({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.site_payment_method_types.v1.site_payment_method_type',\n method: 'GET' as any,\n methodFqn:\n 'wix.payments.site_payment_method_types.v1.SitePaymentMethodTypeService.GetSitePaymentMethodType',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeServiceUrl(\n {\n protoPath: '/v1/site-payment-method-types/{sitePaymentMethodTypeId}',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getSitePaymentMethodType;\n}\n\n/**\n * Retrieves a list of payment method types.\n *\n * If an `ids` array is specified, only payment method types with matching IDs or legacy IDs are returned.\n * If no `ids` are specified, all payment method types available in the caller's country are returned, with some fields localized according to the caller's language and country.\n *\n * The caller's language and country are taken from the `language` or `country` parameters in the request.\n * If `language` or `country` are not specified, the values are taken from context of the call if possible. For example, if this method is called from a Wix site, the selected language on that site will be used.\n * If language or country can't be determined, the method doesn't perform any filtering or localization.\n *\n * Language and country are used to determine localized values for the `displayName`, `description` fields.\n * Country is used to determine localized values for the `priority` and `promoted` fields in both `merchantFlow` and `buyerFlow`.\n * `currency` is used to determine the eligibility of payment method types for the provided currency.\n */\nexport function listSitePaymentMethodTypes(\n payload: object\n): RequestOptionsFactory<any> {\n function __listSitePaymentMethodTypes({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.site_payment_method_types.v1.site_payment_method_type',\n method: 'GET' as any,\n methodFqn:\n 'wix.payments.site_payment_method_types.v1.SitePaymentMethodTypeService.ListSitePaymentMethodTypes',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeServiceUrl(\n { protoPath: '/v1/site-payment-method-types', data: payload, host }\n ),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __listSitePaymentMethodTypes;\n}\n","import { HttpClient } from '@wix/sdk-types';\nimport {\n GetSitePaymentMethodTypeOptions,\n ListSitePaymentMethodTypesOptions,\n ListSitePaymentMethodTypesResponse,\n SitePaymentMethodType,\n getSitePaymentMethodType as universalGetSitePaymentMethodType,\n listSitePaymentMethodTypes as universalListSitePaymentMethodTypes,\n} from './payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/payments' };\n\nexport function getSitePaymentMethodType(\n httpClient: HttpClient\n): GetSitePaymentMethodTypeSignature {\n return (\n sitePaymentMethodTypeId: string,\n options?: GetSitePaymentMethodTypeOptions\n ) =>\n universalGetSitePaymentMethodType(\n sitePaymentMethodTypeId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetSitePaymentMethodTypeSignature {\n /**\n * Retrieves a payment method type, with some fields localized according to the caller's language and country.\n *\n * The callers language and country are taken from the `language` or `country` parameters in the request.\n * If these parameters are not specified, the values are taken from context of the call if possible. For example, if this method is called from a Wix site, the selected language on that site will be used.\n * If language or country can't be determined, the method doesn't perform any filtering or localization.\n *\n * Language and country are used to determine localized values for the `displayName`, `description` fields.\n * Country is used to determine localized values for the `priority` and `promoted` fields in both `merchantFlow` and `buyerFlow`.\n * @param - Payment method type ID.\n * @returns Requested site payment method type.\n */\n (\n sitePaymentMethodTypeId: string,\n options?: GetSitePaymentMethodTypeOptions | undefined\n ): Promise<SitePaymentMethodType>;\n}\n\nexport function listSitePaymentMethodTypes(\n httpClient: HttpClient\n): ListSitePaymentMethodTypesSignature {\n return (options?: ListSitePaymentMethodTypesOptions) =>\n universalListSitePaymentMethodTypes(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ListSitePaymentMethodTypesSignature {\n /**\n * Retrieves a list of payment method types.\n *\n * If an `ids` array is specified, only payment method types with matching IDs or legacy IDs are returned.\n * If no `ids` are specified, all payment method types available in the caller's country are returned, with some fields localized according to the caller's language and country.\n *\n * The caller's language and country are taken from the `language` or `country` parameters in the request.\n * If `language` or `country` are not specified, the values are taken from context of the call if possible. For example, if this method is called from a Wix site, the selected language on that site will be used.\n * If language or country can't be determined, the method doesn't perform any filtering or localization.\n *\n * Language and country are used to determine localized values for the `displayName`, `description` fields.\n * Country is used to determine localized values for the `priority` and `promoted` fields in both `merchantFlow` and `buyerFlow`.\n * `currency` is used to determine the eligibility of payment method types for the provided currency.\n */\n (\n options?: ListSitePaymentMethodTypesOptions | undefined\n ): Promise<ListSitePaymentMethodTypesResponse>;\n}\n\nexport {\n AuthCapture,\n Barcode,\n BuyerFlow,\n CredentialOnFile,\n CustomTokenization,\n Disputes,\n ExpressFlow,\n Features,\n Format,\n FullPageRedirect,\n GetSitePaymentMethodTypeOptions,\n GetSitePaymentMethodTypeRequest,\n GetSitePaymentMethodTypeResponse,\n IFrame,\n Icon,\n Installments,\n ListSitePaymentMethodTypesOptions,\n ListSitePaymentMethodTypesRequest,\n ListSitePaymentMethodTypesResponse,\n MerchantFlow,\n Moto,\n NewTab,\n NextAction,\n PromotionalMessages,\n QrCode,\n Refunds,\n RegularFlow,\n RegularTokenization,\n RequestedFields,\n SitePaymentMethodType,\n} from './payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.universal.js';\n","import {\n getSitePaymentMethodType as publicGetSitePaymentMethodType,\n listSitePaymentMethodTypes as publicListSitePaymentMethodTypes,\n} from './payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const getSitePaymentMethodType: MaybeContext<\n BuildRESTFunction<typeof publicGetSitePaymentMethodType> &\n typeof publicGetSitePaymentMethodType\n> = /*#__PURE__*/ createRESTModule(publicGetSitePaymentMethodType);\nexport const listSitePaymentMethodTypes: MaybeContext<\n BuildRESTFunction<typeof publicListSitePaymentMethodTypes> &\n typeof publicListSitePaymentMethodTypes\n> = /*#__PURE__*/ createRESTModule(publicListSitePaymentMethodTypes);\n\nexport {\n Format,\n RequestedFields,\n} from './payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.universal.js';\nexport {\n SitePaymentMethodType,\n Features,\n IFrame,\n NewTab,\n FullPageRedirect,\n Barcode,\n QrCode,\n ExpressFlow,\n RegularFlow,\n Disputes,\n Installments,\n Refunds,\n AuthCapture,\n RegularTokenization,\n CustomTokenization,\n NextAction,\n CredentialOnFile,\n Moto,\n PromotionalMessages,\n MerchantFlow,\n Icon,\n BuyerFlow,\n GetSitePaymentMethodTypeRequest,\n GetSitePaymentMethodTypeResponse,\n ListSitePaymentMethodTypesRequest,\n ListSitePaymentMethodTypesResponse,\n GetSitePaymentMethodTypeOptions,\n ListSitePaymentMethodTypesOptions,\n} from './payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA,kCAAAA;AAAA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Aa;AAAA,UACb,OAAO;AAAA,YACL,EAAE,MAAM,kDAAkD;AAAA,YAC1D,EAAE,MAAM,+CAA+C;AAAA,UACzD;AAAA,QACF;AAAA,MACF,CAAC;AAAA,IACH;AAAA,EACF,SAAS,KAAU;AACjB,UAAM,uBAAmB,uBAAAD;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B;AAAA,UACxB,KAAK;AAAA,UACL,UAAU;AAAA,UACV,SAAS;AAAA,UACT,UAAU;AAAA,UACV,iBAAiB;AAAA,QACnB;AAAA,QACA,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,SAAS;AAAA,IACZ;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;;;AE1mBO,SAASE,0BACd,YACmC;AACnC,SAAO,CACL,yBACA,YAEAA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAqBO,SAASC,4BACd,YACqC;AACrC,SAAO,CAAC,YACNA;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;;;ACnDA,IAAAC,uBAAiC;AAG1B,IAAMC,4BAGK,2DAAiBA,yBAA8B;AAC1D,IAAMC,8BAGK,2DAAiBA,2BAAgC;","names":["getSitePaymentMethodType","listSitePaymentMethodTypes","import_rest_modules","Format","RequestedFields","getSitePaymentMethodType","sdkTransformError","listSitePaymentMethodTypes","getSitePaymentMethodType","listSitePaymentMethodTypes","import_rest_modules","getSitePaymentMethodType","listSitePaymentMethodTypes"]}
|
|
1
|
+
{"version":3,"sources":["../../index.ts","../../src/payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.universal.ts","../../src/payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.http.ts","../../src/payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.public.ts","../../src/payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.context.ts"],"sourcesContent":["export * from './src/payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.context.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodType from './payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.http.js';\nimport { transformRESTImageToSDKImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\n/** A way to pay online or offline for goods or services offered by a specific site. */\nexport interface SitePaymentMethodType {\n /**\n * Payment method type ID.\n * @format GUID\n * @immutable\n */\n _id?: string;\n /**\n * Value used buy some legacy APIs to refer to this payment method type. Can be empty.\n * @minLength 1\n * @maxLength 50\n * @immutable\n */\n legacyId?: string | null;\n /**\n * Payment method type display name, based on locale.\n *\n * Used by Wix when displaying the payment method type, such as in the payment settings page for merchants, or the checkout page for buyers.\n *\n * Define your locale by specifying a `country_code` and `language_code` when calling `Get Payment Method Type` or `List Payment Method Types`.\n * For more detailed information, see the descriptions for the `country_code` and `language_code` parameters for those methods.\n * @minLength 1\n * @maxLength 100\n */\n displayName?: string | null;\n /**\n * Payment method type description, based on locale.\n *\n * Used by Wix when displaying the payment method type, such as in the payment settings page for merchants, or the checkout page for buyers.\n *\n * Define your locale by specifying a `country_code` and `language_code` when calling `Get Payment Method Type` or `List Payment Method Types`.\n * For more detailed information, see the descriptions for the `country_code` and `language_code` parameters for those methods.\n * @minLength 1\n * @maxLength 1000\n */\n description?: string | null;\n /** Features supported for this payment method type. */\n features?: Features;\n /** Settings that determine if and how to display this payment method type in the merchant flow. The merchant flow is the process a merchant goes through to configure which payment method types they accept on their site. */\n merchantFlow?: MerchantFlow;\n /** Settings that determine if and how to display this payment method type in the buyer flow. The buyer flow is the process a buyer goes through to make a purchase att checkout. */\n buyerFlow?: BuyerFlow;\n /**\n * Whether this payment method type is only used to represent a supported payment brand for another payment method type.\n *\n * For example, a Visa payment method is used to indicate that Visa can be used for credit card transactions. But the Visa payment method type is not used to accept payments. Instead, the credit card payment method type is used.\n *\n * Brand-only payment method types cannot be used to accept payments, and are not listed as a payment method type in a site's dashboard.\n */\n brandOnly?: boolean;\n /** Whether the payment method type can only be used for in-person payments, such as cash, point-of-sale payments, and card readers. */\n inPerson?: boolean;\n /**\n * Time (in seconds after which a transaction is marked as expired if it is not completed.\n *\n * Max: `15552000` (180 days)\n * @min 1\n * @max 15552000\n */\n transactionExpirationDelayInSeconds?: number | null;\n /** Indicates that payment method type is restricted for the provided `currency_code`. */\n currencyRestricted?: boolean;\n /** Indicates the payment method type has currency restriction and it is enabled. */\n currencyRestrictionEnabled?: boolean;\n /**\n * Allowed currencies\n * @maxSize 100\n * @format CURRENCY\n */\n allowedCurrencyCodes?: string[];\n}\n\nexport interface Features {\n /** Express flow configuration. */\n expressFlow?: ExpressFlow;\n /** Regular flow configuration. */\n regularFlow?: RegularFlow;\n /** Disputes configuration. */\n disputes?: Disputes;\n /** Installments configuration. */\n installments?: Installments;\n /** Refunds configuration. */\n refunds?: Refunds;\n /** Authorize and capture configuration. */\n authCapture?: AuthCapture;\n /** Regular tokenization configuration. */\n regularTokenization?: RegularTokenization;\n /** Custom tokenization configuration. */\n customTokenization?: CustomTokenization;\n /** Next action configuration. */\n nextAction?: NextAction;\n /** Credential-on-File (CoF) configuration. */\n credentialOnFile?: CredentialOnFile;\n /** Mail Order/Telephone Order (MOTO) configuration. */\n moto?: Moto;\n /** Promotional message configuration. */\n promotionalMessages?: PromotionalMessages;\n}\n\nexport interface IFrame {\n /** Whether the next payment action can be shown in an iframe. */\n supported?: boolean;\n}\n\nexport interface NewTab {\n /** Whether the next payment action can be shown in a new tab. */\n supported?: boolean;\n}\n\nexport interface FullPageRedirect {\n /** Whether the next payment action can be shown by redirecting to a new page. */\n supported?: boolean;\n}\n\nexport interface Barcode {\n /** Whether the next payment action can be shown as a barcode to scan. */\n supported?: boolean;\n}\n\nexport interface QrCode {\n /** Whether the next payment action can be shown as a QR code to scan. */\n supported?: boolean;\n}\n\nexport interface ExpressFlow {\n /** Whether this payment method type can be used in an express flow on checkout. */\n supported?: boolean;\n}\n\nexport interface RegularFlow {\n /** Whether this payment method type can be used in a regular flow on checkout. */\n supported?: boolean;\n}\n\nexport interface Disputes {\n /** Whether disputes are supported for this payment method type. */\n supported?: boolean;\n}\n\nexport interface Installments {\n /** Whether installments are supported for this payment method type. */\n supported?: boolean;\n /**\n * Max number of installments that can be configured by a provider.\n * @min 2\n * @max 36\n */\n maxInstallmentLimit?: number | null;\n /**\n * Countries for which installments can be enabled.\n * @format COUNTRY\n * @minSize 1\n * @maxSize 200\n */\n allowedCountryCodes?: string[];\n}\n\nexport interface Refunds {\n /** Whether refunds are supported for this payment method type. */\n supported?: boolean;\n /**\n * Maximum period in which payments made using this payment method type can be refunded.\n * @min 1\n * @max 365\n */\n maxRefundabilityPeriodInDays?: number | null;\n}\n\nexport interface AuthCapture {\n /** Whether the authorize and capture flow is supported for this payment method type. */\n supported?: boolean;\n /**\n * Period to wait for the auth capture to be completed before canceling the transaction.\n * @min 1\n * @max 365\n */\n maxCapturePeriodInDays?: number | null;\n}\n\nexport interface RegularTokenization {\n /** Whether the default tokenization mechanism can be configured for this payment method type. */\n supported?: boolean;\n}\n\nexport interface CustomTokenization {\n /** Whether a custom tokenization mechanism can be configured for this payment method type, such as a provider-specific tokenization method. */\n supported?: boolean;\n}\n\nexport interface NextAction {\n /** iframe configuration. */\n iframe?: IFrame;\n /** New tab configuration. */\n newTab?: NewTab;\n /** Full page redirect configuration. */\n fullPageRedirect?: FullPageRedirect;\n /** Barcode configuration. */\n barcode?: Barcode;\n /** QR code configuration. */\n qrCode?: QrCode;\n}\n\nexport interface CredentialOnFile {\n /** Whether the Credential-on-File (CoF) feature is supported for this payment method type. */\n supported?: boolean;\n}\n\nexport interface Moto {\n /** Whether Mail Order/Telephone Order (MOTO) is supported for this payment method type. */\n supported?: boolean;\n}\n\nexport interface PromotionalMessages {\n /** Whether promotional messages is supported for this payment method type. */\n supported?: boolean;\n}\n\nexport interface MerchantFlow {\n /**\n * Details about the icons to display for this payment method type on the merchant's Accept Payments page in the site dashboard. Icons are localized according to the locale of the call.\n *\n * Define a locale by specifying a `country_code` and `language_code` when calling `Get Payment Method Type` or `List Payment Method Types`.\n * For more detailed information, see the method descriptions.\n * @maxSize 200\n */\n icons?: Icon[];\n /**\n * Priority given to this payment method type in the list shown to the merchant.\n * A lower value relative to other payment method types means a higher position on the list.\n * @min 1\n * @max 10000\n */\n priority?: number;\n /** Whether the payment method type is promoted. Promoted payment method types are displayed more prominently on the Accept Payments page. */\n promoted?: boolean;\n /** Whether the merchant cannot choose to accept payments from this payment method type. */\n hidden?: boolean;\n /** Indicates that payment method type is restricted in provided country. */\n countryRestricted?: boolean;\n}\n\n/**\n * Example url:\n * http://images-wixmp-6613fa290e8c1ac70a0297b6.wixmp.com/payment-methods/{domain}/{extension}/{id}.{extension}\n */\nexport interface Icon {\n /** Icon image. */\n image?: string;\n /**\n * Icon tag. Payment method types can have multiple icons, and tags are used to differentiate between them.\n * 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.\n * @minLength 1\n * @maxLength 100\n */\n tag?: string | null;\n /** Icon image format. */\n format?: FormatWithLiterals;\n}\n\nexport enum Format {\n UNKNOWN_FORMAT = 'UNKNOWN_FORMAT',\n SVG = 'SVG',\n PNG = 'PNG',\n}\n\n/** @enumType */\nexport type FormatWithLiterals = Format | 'UNKNOWN_FORMAT' | 'SVG' | 'PNG';\n\nexport interface BuyerFlow {\n /**\n * Details about the icons to display for this payment method type on a site's checkout page. Icons are localized according to the locale of the call.\n *\n * Define a locale by specifying a `country_code` and `language_code` when calling `Get Payment Method Type` or `List Payment Method Types`.\n * For more detailed information, see the method descriptions.\n * @maxSize 200\n */\n icons?: Icon[];\n /**\n * The priority given to this payment method type in the list of payment method types shown to the buyer.\n * A lower value relative to other payment method types means a higher position on the list.\n * @min 1\n * @max 10000\n */\n priority?: number;\n /** Whether the merchant cannot choose to accept payments from this payment method type. */\n hidden?: boolean;\n /** Indicates that payment method type is restricted in provided country. */\n countryRestricted?: boolean;\n /**\n * Minimum payment amount that can be made with this payment method type.\n * If the request omits `currency_code`, the field is not set because its value depends on the currency.\n * @decimalValue options { maxScale:8, gte:0.00 }\n */\n minPaymentAmount?: string | null;\n}\n\nexport interface GetSitePaymentMethodTypeRequest {\n /**\n * Site payment method type ID.\n * @format GUID\n */\n sitePaymentMethodTypeId: string;\n /**\n * Language used to determine localized values for fields in the response.\n *\n * Must be a 2-letter language code in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.\n * @format LANGUAGE\n */\n languageCode?: string | null;\n /**\n * Country used to determine localized values for fields in the response.\n *\n * 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.\n * @format COUNTRY\n */\n countryCode?: string | null;\n /**\n * Currency used to determine localized values for fields in the response.\n *\n * Must be a 3-letter currency code in [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) format.\n * @format CURRENCY\n */\n currencyCode?: string | null;\n /**\n * Requested additional fields\n * @maxSize 2\n */\n requestedFields?: RequestedFieldsWithLiterals[];\n}\n\nexport enum RequestedFields {\n UNKNOWN_REQUESTED_FIELD = 'UNKNOWN_REQUESTED_FIELD',\n ALLOWED_CURRENCIES = 'ALLOWED_CURRENCIES',\n}\n\n/** @enumType */\nexport type RequestedFieldsWithLiterals =\n | RequestedFields\n | 'UNKNOWN_REQUESTED_FIELD'\n | 'ALLOWED_CURRENCIES';\n\nexport interface GetSitePaymentMethodTypeResponse {\n /** Requested site payment method type. */\n sitePaymentMethodType?: SitePaymentMethodType;\n}\n\nexport interface ListSitePaymentMethodTypesRequest {\n /**\n * IDs or legacy IDs of site payment method types to retrieve.\n * @maxSize 250\n * @minLength 1\n * @maxLength 50\n */\n ids?: string[];\n /**\n * Language used to determine localized values for fields in the response.\n *\n * Must be a 2-letter language code in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.\n * @format LANGUAGE\n */\n languageCode?: string | null;\n /**\n * Country used to filter payment method types and determine localized values for fields in the response.\n *\n * 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.\n * @format COUNTRY\n */\n countryCode?: string | null;\n /**\n * Currency used to determine localized values for fields in the response.\n *\n * Must be a 3-letter currency code in [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) format.\n * @format CURRENCY\n */\n currencyCode?: string | null;\n /**\n * Requested additional fields\n * @maxSize 2\n */\n requestedFields?: RequestedFieldsWithLiterals[];\n}\n\nexport interface ListSitePaymentMethodTypesResponse {\n /** List of site payment method types. */\n sitePaymentMethodTypes?: SitePaymentMethodType[];\n}\n\ntype SitePaymentMethodTypeNonNullablePaths =\n | `_id`\n | `features.expressFlow.supported`\n | `features.regularFlow.supported`\n | `features.disputes.supported`\n | `features.installments.supported`\n | `features.installments.allowedCountryCodes`\n | `features.refunds.supported`\n | `features.authCapture.supported`\n | `features.regularTokenization.supported`\n | `features.customTokenization.supported`\n | `features.nextAction.iframe.supported`\n | `features.nextAction.newTab.supported`\n | `features.nextAction.fullPageRedirect.supported`\n | `features.nextAction.barcode.supported`\n | `features.nextAction.qrCode.supported`\n | `features.credentialOnFile.supported`\n | `features.moto.supported`\n | `features.promotionalMessages.supported`\n | `merchantFlow.icons`\n | `merchantFlow.icons.${number}.format`\n | `merchantFlow.priority`\n | `merchantFlow.promoted`\n | `merchantFlow.hidden`\n | `merchantFlow.countryRestricted`\n | `buyerFlow.icons`\n | `buyerFlow.icons.${number}.format`\n | `buyerFlow.priority`\n | `buyerFlow.hidden`\n | `buyerFlow.countryRestricted`\n | `brandOnly`\n | `inPerson`\n | `currencyRestricted`\n | `currencyRestrictionEnabled`\n | `allowedCurrencyCodes`;\n\n/**\n * Retrieves a payment method type, with some fields localized according to the caller's language and country.\n *\n * The callers language and country are taken from the `language` or `country` parameters in the request.\n * If these parameters are not specified, the values are taken from context of the call if possible. For example, if this method is called from a Wix site, the selected language on that site will be used.\n * If language or country can't be determined, the method doesn't perform any filtering or localization.\n *\n * Language and country are used to determine localized values for the `displayName`, `description` fields.\n * Country is used to determine localized values for the `priority` and `promoted` fields in both `merchantFlow` and `buyerFlow`.\n * @param sitePaymentMethodTypeId - Site payment method type ID.\n * @public\n * @documentationMaturity preview\n * @requiredField sitePaymentMethodTypeId\n * @permissionId PAYMENTS.SITE_PAYMENT_METHOD_TYPE_READ\n * @applicableIdentity APP\n * @applicableIdentity VISITOR\n * @returns Requested site payment method type.\n * @fqn wix.payments.site_payment_method_types.v1.SitePaymentMethodTypeService.GetSitePaymentMethodType\n */\nexport async function getSitePaymentMethodType(\n sitePaymentMethodTypeId: string,\n options?: GetSitePaymentMethodTypeOptions\n): Promise<\n NonNullablePaths<SitePaymentMethodType, SitePaymentMethodTypeNonNullablePaths>\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n sitePaymentMethodTypeId: sitePaymentMethodTypeId,\n languageCode: options?.languageCode,\n countryCode: options?.countryCode,\n currencyCode: options?.currencyCode,\n requestedFields: options?.requestedFields,\n });\n\n const reqOpts =\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodType.getSitePaymentMethodType(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'sitePaymentMethodType.merchantFlow.icons.image' },\n { path: 'sitePaymentMethodType.buyerFlow.icons.image' },\n ],\n },\n ])\n )?.sitePaymentMethodType!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n sitePaymentMethodTypeId: '$[0]',\n languageCode: '$[1].languageCode',\n countryCode: '$[1].countryCode',\n currencyCode: '$[1].currencyCode',\n requestedFields: '$[1].requestedFields',\n },\n singleArgumentUnchanged: false,\n },\n ['sitePaymentMethodTypeId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetSitePaymentMethodTypeOptions {\n /**\n * Language used to determine localized values for fields in the response.\n *\n * Must be a 2-letter language code in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.\n * @format LANGUAGE\n */\n languageCode?: string | null;\n /**\n * Country used to determine localized values for fields in the response.\n *\n * 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.\n * @format COUNTRY\n */\n countryCode?: string | null;\n /**\n * Currency used to determine localized values for fields in the response.\n *\n * Must be a 3-letter currency code in [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) format.\n * @format CURRENCY\n */\n currencyCode?: string | null;\n /**\n * Requested additional fields\n * @maxSize 2\n */\n requestedFields?: RequestedFieldsWithLiterals[];\n}\n\n/**\n * Retrieves a list of payment method types.\n *\n * If an `ids` array is specified, only payment method types with matching IDs or legacy IDs are returned.\n * If no `ids` are specified, all payment method types available in the caller's country are returned, with some fields localized according to the caller's language and country.\n *\n * The caller's language and country are taken from the `language` or `country` parameters in the request.\n * If `language` or `country` are not specified, the values are taken from context of the call if possible. For example, if this method is called from a Wix site, the selected language on that site will be used.\n * If language or country can't be determined, the method doesn't perform any filtering or localization.\n *\n * Language and country are used to determine localized values for the `displayName`, `description` fields.\n * Country is used to determine localized values for the `priority` and `promoted` fields in both `merchantFlow` and `buyerFlow`.\n * `currency` is used to determine the eligibility of payment method types for the provided currency.\n * @public\n * @documentationMaturity preview\n * @permissionId PAYMENTS.SITE_PAYMENT_METHOD_TYPE_READ\n * @applicableIdentity APP\n * @applicableIdentity VISITOR\n * @fqn wix.payments.site_payment_method_types.v1.SitePaymentMethodTypeService.ListSitePaymentMethodTypes\n */\nexport async function listSitePaymentMethodTypes(\n options?: ListSitePaymentMethodTypesOptions\n): Promise<\n NonNullablePaths<\n ListSitePaymentMethodTypesResponse,\n {\n [P in SitePaymentMethodTypeNonNullablePaths]: `sitePaymentMethodTypes.${number}.${P}`;\n }[SitePaymentMethodTypeNonNullablePaths]\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n ids: options?.ids,\n languageCode: options?.languageCode,\n countryCode: options?.countryCode,\n currencyCode: options?.currencyCode,\n requestedFields: options?.requestedFields,\n });\n\n const reqOpts =\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodType.listSitePaymentMethodTypes(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'sitePaymentMethodTypes.merchantFlow.icons.image' },\n { path: 'sitePaymentMethodTypes.buyerFlow.icons.image' },\n ],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n ids: '$[0].ids',\n languageCode: '$[0].languageCode',\n countryCode: '$[0].countryCode',\n currencyCode: '$[0].currencyCode',\n requestedFields: '$[0].requestedFields',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ListSitePaymentMethodTypesOptions {\n /**\n * IDs or legacy IDs of site payment method types to retrieve.\n * @maxSize 250\n * @minLength 1\n * @maxLength 50\n */\n ids?: string[];\n /**\n * Language used to determine localized values for fields in the response.\n *\n * Must be a 2-letter language code in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.\n * @format LANGUAGE\n */\n languageCode?: string | null;\n /**\n * Country used to filter payment method types and determine localized values for fields in the response.\n *\n * 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.\n * @format COUNTRY\n */\n countryCode?: string | null;\n /**\n * Currency used to determine localized values for fields in the response.\n *\n * Must be a 3-letter currency code in [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) format.\n * @format CURRENCY\n */\n currencyCode?: string | null;\n /**\n * Requested additional fields\n * @maxSize 2\n */\n requestedFields?: RequestedFieldsWithLiterals[];\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._api_base_domain_': [\n {\n srcPath: '/payment-method-types',\n destPath: '',\n },\n ],\n 'bo._base_domain_': [\n {\n srcPath: '/_api/payment-method-types',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/_api/payment-method-types',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/_api/payment-method-types',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/payment-method-types',\n destPath: '',\n },\n {\n srcPath: '/_api/payments/payment-method-types',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/payments/site-payment-method-types',\n destPath: '',\n },\n {\n srcPath: '/_api/payments/payment-method-types',\n destPath: '',\n },\n ],\n 'cashier._base_domain_': [\n {\n srcPath: '/_api/payment-method-types',\n destPath: '',\n },\n ],\n 'cashier.wixapps.net': [\n {\n srcPath: '/_api/payments/payment-method-types',\n destPath: '',\n },\n {\n srcPath: '/_api/payment-method-types',\n destPath: '',\n },\n ],\n 'cashier-services._base_domain_': [\n {\n srcPath: '/_api/payment-method-types',\n destPath: '',\n },\n ],\n 'events._base_domain_': [\n {\n srcPath: '/_api/payment-method-types',\n destPath: '',\n },\n ],\n 'events.wixapps.net': [\n {\n srcPath: '/_api/payment-method-types',\n destPath: '',\n },\n ],\n 'invoices._base_domain_': [\n {\n srcPath: '/_api/payment-method-types',\n destPath: '',\n },\n ],\n 'premium._base_domain_': [\n {\n srcPath: '/_api/payment-method-types',\n destPath: '',\n },\n ],\n 'pricing-plans.wixapps.net': [\n {\n srcPath: '/_api/payment-method-types',\n destPath: '',\n },\n ],\n 'vod-server._base_domain_': [\n {\n srcPath: '/_api/payment-method-types',\n destPath: '',\n },\n ],\n 'www.wixhotels.com': [\n {\n srcPath: '/_api/payment-method-types',\n destPath: '',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/_api/payments/payment-method-types',\n destPath: '',\n },\n ],\n 'tpa.wixapps.net': [\n {\n srcPath: '/_api/payments/payment-method-types',\n destPath: '',\n },\n ],\n 'apps._base_domain_': [\n {\n srcPath: '/_api/payments/payment-method-types',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/payments/payment-method-types',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/payments/payment-method-types',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/payments/payment-method-types',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/payments/payment-method-types',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath:\n '/payments/site-payment-method-types/v1/site-payment-method-types',\n destPath: '/v1/site-payment-method-types',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath:\n '/payments/site-payment-method-types/v1/site-payment-method-types',\n destPath: '/v1/site-payment-method-types',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_payments_site-payment-method-types';\n\n/**\n * Retrieves a payment method type, with some fields localized according to the caller's language and country.\n *\n * The callers language and country are taken from the `language` or `country` parameters in the request.\n * If these parameters are not specified, the values are taken from context of the call if possible. For example, if this method is called from a Wix site, the selected language on that site will be used.\n * If language or country can't be determined, the method doesn't perform any filtering or localization.\n *\n * Language and country are used to determine localized values for the `displayName`, `description` fields.\n * Country is used to determine localized values for the `priority` and `promoted` fields in both `merchantFlow` and `buyerFlow`.\n */\nexport function getSitePaymentMethodType(\n payload: object\n): RequestOptionsFactory<any> {\n function __getSitePaymentMethodType({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.site_payment_method_types.v1.site_payment_method_type',\n method: 'GET' as any,\n methodFqn:\n 'wix.payments.site_payment_method_types.v1.SitePaymentMethodTypeService.GetSitePaymentMethodType',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeServiceUrl(\n {\n protoPath: '/v1/site-payment-method-types/{sitePaymentMethodTypeId}',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getSitePaymentMethodType;\n}\n\n/**\n * Retrieves a list of payment method types.\n *\n * If an `ids` array is specified, only payment method types with matching IDs or legacy IDs are returned.\n * If no `ids` are specified, all payment method types available in the caller's country are returned, with some fields localized according to the caller's language and country.\n *\n * The caller's language and country are taken from the `language` or `country` parameters in the request.\n * If `language` or `country` are not specified, the values are taken from context of the call if possible. For example, if this method is called from a Wix site, the selected language on that site will be used.\n * If language or country can't be determined, the method doesn't perform any filtering or localization.\n *\n * Language and country are used to determine localized values for the `displayName`, `description` fields.\n * Country is used to determine localized values for the `priority` and `promoted` fields in both `merchantFlow` and `buyerFlow`.\n * `currency` is used to determine the eligibility of payment method types for the provided currency.\n */\nexport function listSitePaymentMethodTypes(\n payload: object\n): RequestOptionsFactory<any> {\n function __listSitePaymentMethodTypes({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.site_payment_method_types.v1.site_payment_method_type',\n method: 'GET' as any,\n methodFqn:\n 'wix.payments.site_payment_method_types.v1.SitePaymentMethodTypeService.ListSitePaymentMethodTypes',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeServiceUrl(\n { protoPath: '/v1/site-payment-method-types', data: payload, host }\n ),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __listSitePaymentMethodTypes;\n}\n","import { HttpClient } from '@wix/sdk-types';\nimport {\n GetSitePaymentMethodTypeOptions,\n ListSitePaymentMethodTypesOptions,\n ListSitePaymentMethodTypesResponse,\n SitePaymentMethodType,\n getSitePaymentMethodType as universalGetSitePaymentMethodType,\n listSitePaymentMethodTypes as universalListSitePaymentMethodTypes,\n} from './payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/payments' };\n\nexport function getSitePaymentMethodType(\n httpClient: HttpClient\n): GetSitePaymentMethodTypeSignature {\n return (\n sitePaymentMethodTypeId: string,\n options?: GetSitePaymentMethodTypeOptions\n ) =>\n universalGetSitePaymentMethodType(\n sitePaymentMethodTypeId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetSitePaymentMethodTypeSignature {\n /**\n * Retrieves a payment method type, with some fields localized according to the caller's language and country.\n *\n * The callers language and country are taken from the `language` or `country` parameters in the request.\n * If these parameters are not specified, the values are taken from context of the call if possible. For example, if this method is called from a Wix site, the selected language on that site will be used.\n * If language or country can't be determined, the method doesn't perform any filtering or localization.\n *\n * Language and country are used to determine localized values for the `displayName`, `description` fields.\n * Country is used to determine localized values for the `priority` and `promoted` fields in both `merchantFlow` and `buyerFlow`.\n * @param - Site payment method type ID.\n * @returns Requested site payment method type.\n */\n (\n sitePaymentMethodTypeId: string,\n options?: GetSitePaymentMethodTypeOptions | undefined\n ): Promise<SitePaymentMethodType>;\n}\n\nexport function listSitePaymentMethodTypes(\n httpClient: HttpClient\n): ListSitePaymentMethodTypesSignature {\n return (options?: ListSitePaymentMethodTypesOptions) =>\n universalListSitePaymentMethodTypes(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ListSitePaymentMethodTypesSignature {\n /**\n * Retrieves a list of payment method types.\n *\n * If an `ids` array is specified, only payment method types with matching IDs or legacy IDs are returned.\n * If no `ids` are specified, all payment method types available in the caller's country are returned, with some fields localized according to the caller's language and country.\n *\n * The caller's language and country are taken from the `language` or `country` parameters in the request.\n * If `language` or `country` are not specified, the values are taken from context of the call if possible. For example, if this method is called from a Wix site, the selected language on that site will be used.\n * If language or country can't be determined, the method doesn't perform any filtering or localization.\n *\n * Language and country are used to determine localized values for the `displayName`, `description` fields.\n * Country is used to determine localized values for the `priority` and `promoted` fields in both `merchantFlow` and `buyerFlow`.\n * `currency` is used to determine the eligibility of payment method types for the provided currency.\n */\n (\n options?: ListSitePaymentMethodTypesOptions | undefined\n ): Promise<ListSitePaymentMethodTypesResponse>;\n}\n\nexport {\n AuthCapture,\n Barcode,\n BuyerFlow,\n CredentialOnFile,\n CustomTokenization,\n Disputes,\n ExpressFlow,\n Features,\n Format,\n FullPageRedirect,\n GetSitePaymentMethodTypeOptions,\n GetSitePaymentMethodTypeRequest,\n GetSitePaymentMethodTypeResponse,\n IFrame,\n Icon,\n Installments,\n ListSitePaymentMethodTypesOptions,\n ListSitePaymentMethodTypesRequest,\n ListSitePaymentMethodTypesResponse,\n MerchantFlow,\n Moto,\n NewTab,\n NextAction,\n PromotionalMessages,\n QrCode,\n Refunds,\n RegularFlow,\n RegularTokenization,\n RequestedFields,\n SitePaymentMethodType,\n} from './payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.universal.js';\n","import {\n getSitePaymentMethodType as publicGetSitePaymentMethodType,\n listSitePaymentMethodTypes as publicListSitePaymentMethodTypes,\n} from './payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const getSitePaymentMethodType: MaybeContext<\n BuildRESTFunction<typeof publicGetSitePaymentMethodType> &\n typeof publicGetSitePaymentMethodType\n> = /*#__PURE__*/ createRESTModule(publicGetSitePaymentMethodType);\nexport const listSitePaymentMethodTypes: MaybeContext<\n BuildRESTFunction<typeof publicListSitePaymentMethodTypes> &\n typeof publicListSitePaymentMethodTypes\n> = /*#__PURE__*/ createRESTModule(publicListSitePaymentMethodTypes);\n\nexport {\n Format,\n RequestedFields,\n} from './payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.universal.js';\nexport {\n SitePaymentMethodType,\n Features,\n IFrame,\n NewTab,\n FullPageRedirect,\n Barcode,\n QrCode,\n ExpressFlow,\n RegularFlow,\n Disputes,\n Installments,\n Refunds,\n AuthCapture,\n RegularTokenization,\n CustomTokenization,\n NextAction,\n CredentialOnFile,\n Moto,\n PromotionalMessages,\n MerchantFlow,\n Icon,\n BuyerFlow,\n GetSitePaymentMethodTypeRequest,\n GetSitePaymentMethodTypeResponse,\n ListSitePaymentMethodTypesRequest,\n ListSitePaymentMethodTypesResponse,\n GetSitePaymentMethodTypeOptions,\n ListSitePaymentMethodTypesOptions,\n} from './payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA,kCAAAA;AAAA,EAAA,kCAAAC;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,oCA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AA,YAC1D,EAAE,MAAM,+CAA+C;AAAA,UACzD;AAAA,QACF;AAAA,MACF,CAAC;AAAA,IACH;AAAA,EACF,SAAS,KAAU;AACjB,UAAM,uBAAmB,uBAAAD;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B;AAAA,UACxB,KAAK;AAAA,UACL,cAAc;AAAA,UACd,aAAa;AAAA,UACb,cAAc;AAAA,UACd,iBAAiB;AAAA,QACnB;AAAA,QACA,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,SAAS;AAAA,IACZ;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;;;AE1mBO,SAASE,0BACd,YACmC;AACnC,SAAO,CACL,yBACA,YAEAA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAqBO,SAASC,4BACd,YACqC;AACrC,SAAO,CAAC,YACNA;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;;;ACnDA,IAAAC,uBAAiC;AAG1B,IAAMC,4BAGK,2DAAiBA,yBAA8B;AAC1D,IAAMC,8BAGK,2DAAiBA,2BAAgC;","names":["getSitePaymentMethodType","listSitePaymentMethodTypes","import_rest_modules","Format","RequestedFields","getSitePaymentMethodType","sdkTransformError","listSitePaymentMethodTypes","getSitePaymentMethodType","listSitePaymentMethodTypes","import_rest_modules","getSitePaymentMethodType","listSitePaymentMethodTypes"]}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { NonNullablePaths } from '@wix/sdk-types';
|
|
2
|
+
|
|
1
3
|
/** A way to pay online or offline for goods or services offered by a specific site. */
|
|
2
4
|
interface SitePaymentMethodType {
|
|
3
5
|
/**
|
|
@@ -18,8 +20,8 @@ interface SitePaymentMethodType {
|
|
|
18
20
|
*
|
|
19
21
|
* Used by Wix when displaying the payment method type, such as in the payment settings page for merchants, or the checkout page for buyers.
|
|
20
22
|
*
|
|
21
|
-
* Define your locale by specifying a `
|
|
22
|
-
* For more detailed information, see the descriptions for the `
|
|
23
|
+
* Define your locale by specifying a `country_code` and `language_code` when calling `Get Payment Method Type` or `List Payment Method Types`.
|
|
24
|
+
* For more detailed information, see the descriptions for the `country_code` and `language_code` parameters for those methods.
|
|
23
25
|
* @minLength 1
|
|
24
26
|
* @maxLength 100
|
|
25
27
|
*/
|
|
@@ -29,8 +31,8 @@ interface SitePaymentMethodType {
|
|
|
29
31
|
*
|
|
30
32
|
* Used by Wix when displaying the payment method type, such as in the payment settings page for merchants, or the checkout page for buyers.
|
|
31
33
|
*
|
|
32
|
-
* Define your locale by specifying a `
|
|
33
|
-
* For more detailed information, see the descriptions for the `
|
|
34
|
+
* Define your locale by specifying a `country_code` and `language_code` when calling `Get Payment Method Type` or `List Payment Method Types`.
|
|
35
|
+
* For more detailed information, see the descriptions for the `country_code` and `language_code` parameters for those methods.
|
|
34
36
|
* @minLength 1
|
|
35
37
|
* @maxLength 1000
|
|
36
38
|
*/
|
|
@@ -59,16 +61,16 @@ interface SitePaymentMethodType {
|
|
|
59
61
|
* @max 15552000
|
|
60
62
|
*/
|
|
61
63
|
transactionExpirationDelayInSeconds?: number | null;
|
|
62
|
-
/** Indicates that payment method type is restricted for the provided
|
|
64
|
+
/** Indicates that payment method type is restricted for the provided `currency_code`. */
|
|
63
65
|
currencyRestricted?: boolean;
|
|
64
66
|
/** Indicates the payment method type has currency restriction and it is enabled. */
|
|
65
67
|
currencyRestrictionEnabled?: boolean;
|
|
66
68
|
/**
|
|
67
|
-
*
|
|
69
|
+
* Allowed currencies
|
|
68
70
|
* @maxSize 100
|
|
69
71
|
* @format CURRENCY
|
|
70
72
|
*/
|
|
71
|
-
|
|
73
|
+
allowedCurrencyCodes?: string[];
|
|
72
74
|
}
|
|
73
75
|
interface Features {
|
|
74
76
|
/** Express flow configuration. */
|
|
@@ -131,19 +133,19 @@ interface Disputes {
|
|
|
131
133
|
interface Installments {
|
|
132
134
|
/** Whether installments are supported for this payment method type. */
|
|
133
135
|
supported?: boolean;
|
|
134
|
-
/**
|
|
135
|
-
* Countries for which installments can be enabled.
|
|
136
|
-
* @format COUNTRY
|
|
137
|
-
* @minSize 1
|
|
138
|
-
* @maxSize 200
|
|
139
|
-
*/
|
|
140
|
-
allowedCountries?: string[];
|
|
141
136
|
/**
|
|
142
137
|
* Max number of installments that can be configured by a provider.
|
|
143
138
|
* @min 2
|
|
144
139
|
* @max 36
|
|
145
140
|
*/
|
|
146
141
|
maxInstallmentLimit?: number | null;
|
|
142
|
+
/**
|
|
143
|
+
* Countries for which installments can be enabled.
|
|
144
|
+
* @format COUNTRY
|
|
145
|
+
* @minSize 1
|
|
146
|
+
* @maxSize 200
|
|
147
|
+
*/
|
|
148
|
+
allowedCountryCodes?: string[];
|
|
147
149
|
}
|
|
148
150
|
interface Refunds {
|
|
149
151
|
/** Whether refunds are supported for this payment method type. */
|
|
@@ -201,7 +203,7 @@ interface MerchantFlow {
|
|
|
201
203
|
/**
|
|
202
204
|
* Details about the icons to display for this payment method type on the merchant's Accept Payments page in the site dashboard. Icons are localized according to the locale of the call.
|
|
203
205
|
*
|
|
204
|
-
* Define a locale by specifying a `
|
|
206
|
+
* Define a locale by specifying a `country_code` and `language_code` when calling `Get Payment Method Type` or `List Payment Method Types`.
|
|
205
207
|
* For more detailed information, see the method descriptions.
|
|
206
208
|
* @maxSize 200
|
|
207
209
|
*/
|
|
@@ -248,7 +250,7 @@ interface BuyerFlow {
|
|
|
248
250
|
/**
|
|
249
251
|
* Details about the icons to display for this payment method type on a site's checkout page. Icons are localized according to the locale of the call.
|
|
250
252
|
*
|
|
251
|
-
* Define a locale by specifying a `
|
|
253
|
+
* Define a locale by specifying a `country_code` and `language_code` when calling `Get Payment Method Type` or `List Payment Method Types`.
|
|
252
254
|
* For more detailed information, see the method descriptions.
|
|
253
255
|
* @maxSize 200
|
|
254
256
|
*/
|
|
@@ -265,15 +267,15 @@ interface BuyerFlow {
|
|
|
265
267
|
/** Indicates that payment method type is restricted in provided country. */
|
|
266
268
|
countryRestricted?: boolean;
|
|
267
269
|
/**
|
|
268
|
-
*
|
|
269
|
-
* If
|
|
270
|
+
* Minimum payment amount that can be made with this payment method type.
|
|
271
|
+
* If the request omits `currency_code`, the field is not set because its value depends on the currency.
|
|
270
272
|
* @decimalValue options { maxScale:8, gte:0.00 }
|
|
271
273
|
*/
|
|
272
274
|
minPaymentAmount?: string | null;
|
|
273
275
|
}
|
|
274
276
|
interface GetSitePaymentMethodTypeRequest {
|
|
275
277
|
/**
|
|
276
|
-
*
|
|
278
|
+
* Site payment method type ID.
|
|
277
279
|
* @format GUID
|
|
278
280
|
*/
|
|
279
281
|
sitePaymentMethodTypeId: string;
|
|
@@ -283,21 +285,21 @@ interface GetSitePaymentMethodTypeRequest {
|
|
|
283
285
|
* Must be a 2-letter language code in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
|
|
284
286
|
* @format LANGUAGE
|
|
285
287
|
*/
|
|
286
|
-
|
|
288
|
+
languageCode?: string | null;
|
|
287
289
|
/**
|
|
288
290
|
* Country used to determine localized values for fields in the response.
|
|
289
291
|
*
|
|
290
292
|
* 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.
|
|
291
293
|
* @format COUNTRY
|
|
292
294
|
*/
|
|
293
|
-
|
|
295
|
+
countryCode?: string | null;
|
|
294
296
|
/**
|
|
295
297
|
* Currency used to determine localized values for fields in the response.
|
|
296
298
|
*
|
|
297
299
|
* Must be a 3-letter currency code in [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) format.
|
|
298
300
|
* @format CURRENCY
|
|
299
301
|
*/
|
|
300
|
-
|
|
302
|
+
currencyCode?: string | null;
|
|
301
303
|
/**
|
|
302
304
|
* Requested additional fields
|
|
303
305
|
* @maxSize 2
|
|
@@ -316,7 +318,7 @@ interface GetSitePaymentMethodTypeResponse {
|
|
|
316
318
|
}
|
|
317
319
|
interface ListSitePaymentMethodTypesRequest {
|
|
318
320
|
/**
|
|
319
|
-
* IDs or legacy IDs of payment method types to retrieve.
|
|
321
|
+
* IDs or legacy IDs of site payment method types to retrieve.
|
|
320
322
|
* @maxSize 250
|
|
321
323
|
* @minLength 1
|
|
322
324
|
* @maxLength 50
|
|
@@ -328,21 +330,21 @@ interface ListSitePaymentMethodTypesRequest {
|
|
|
328
330
|
* Must be a 2-letter language code in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
|
|
329
331
|
* @format LANGUAGE
|
|
330
332
|
*/
|
|
331
|
-
|
|
333
|
+
languageCode?: string | null;
|
|
332
334
|
/**
|
|
333
335
|
* Country used to filter payment method types and determine localized values for fields in the response.
|
|
334
336
|
*
|
|
335
337
|
* 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.
|
|
336
338
|
* @format COUNTRY
|
|
337
339
|
*/
|
|
338
|
-
|
|
340
|
+
countryCode?: string | null;
|
|
339
341
|
/**
|
|
340
342
|
* Currency used to determine localized values for fields in the response.
|
|
341
343
|
*
|
|
342
344
|
* Must be a 3-letter currency code in [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) format.
|
|
343
345
|
* @format CURRENCY
|
|
344
346
|
*/
|
|
345
|
-
|
|
347
|
+
currencyCode?: string | null;
|
|
346
348
|
/**
|
|
347
349
|
* Requested additional fields
|
|
348
350
|
* @maxSize 2
|
|
@@ -353,6 +355,27 @@ interface ListSitePaymentMethodTypesResponse {
|
|
|
353
355
|
/** List of site payment method types. */
|
|
354
356
|
sitePaymentMethodTypes?: SitePaymentMethodType[];
|
|
355
357
|
}
|
|
358
|
+
type SitePaymentMethodTypeNonNullablePaths = `_id` | `features.expressFlow.supported` | `features.regularFlow.supported` | `features.disputes.supported` | `features.installments.supported` | `features.installments.allowedCountryCodes` | `features.refunds.supported` | `features.authCapture.supported` | `features.regularTokenization.supported` | `features.customTokenization.supported` | `features.nextAction.iframe.supported` | `features.nextAction.newTab.supported` | `features.nextAction.fullPageRedirect.supported` | `features.nextAction.barcode.supported` | `features.nextAction.qrCode.supported` | `features.credentialOnFile.supported` | `features.moto.supported` | `features.promotionalMessages.supported` | `merchantFlow.icons` | `merchantFlow.icons.${number}.format` | `merchantFlow.priority` | `merchantFlow.promoted` | `merchantFlow.hidden` | `merchantFlow.countryRestricted` | `buyerFlow.icons` | `buyerFlow.icons.${number}.format` | `buyerFlow.priority` | `buyerFlow.hidden` | `buyerFlow.countryRestricted` | `brandOnly` | `inPerson` | `currencyRestricted` | `currencyRestrictionEnabled` | `allowedCurrencyCodes`;
|
|
359
|
+
/**
|
|
360
|
+
* Retrieves a payment method type, with some fields localized according to the caller's language and country.
|
|
361
|
+
*
|
|
362
|
+
* The callers language and country are taken from the `language` or `country` parameters in the request.
|
|
363
|
+
* If these parameters are not specified, the values are taken from context of the call if possible. For example, if this method is called from a Wix site, the selected language on that site will be used.
|
|
364
|
+
* If language or country can't be determined, the method doesn't perform any filtering or localization.
|
|
365
|
+
*
|
|
366
|
+
* Language and country are used to determine localized values for the `displayName`, `description` fields.
|
|
367
|
+
* Country is used to determine localized values for the `priority` and `promoted` fields in both `merchantFlow` and `buyerFlow`.
|
|
368
|
+
* @param sitePaymentMethodTypeId - Site payment method type ID.
|
|
369
|
+
* @public
|
|
370
|
+
* @documentationMaturity preview
|
|
371
|
+
* @requiredField sitePaymentMethodTypeId
|
|
372
|
+
* @permissionId PAYMENTS.SITE_PAYMENT_METHOD_TYPE_READ
|
|
373
|
+
* @applicableIdentity APP
|
|
374
|
+
* @applicableIdentity VISITOR
|
|
375
|
+
* @returns Requested site payment method type.
|
|
376
|
+
* @fqn wix.payments.site_payment_method_types.v1.SitePaymentMethodTypeService.GetSitePaymentMethodType
|
|
377
|
+
*/
|
|
378
|
+
declare function getSitePaymentMethodType(sitePaymentMethodTypeId: string, options?: GetSitePaymentMethodTypeOptions): Promise<NonNullablePaths<SitePaymentMethodType, SitePaymentMethodTypeNonNullablePaths>>;
|
|
356
379
|
interface GetSitePaymentMethodTypeOptions {
|
|
357
380
|
/**
|
|
358
381
|
* Language used to determine localized values for fields in the response.
|
|
@@ -360,30 +383,53 @@ interface GetSitePaymentMethodTypeOptions {
|
|
|
360
383
|
* Must be a 2-letter language code in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
|
|
361
384
|
* @format LANGUAGE
|
|
362
385
|
*/
|
|
363
|
-
|
|
386
|
+
languageCode?: string | null;
|
|
364
387
|
/**
|
|
365
388
|
* Country used to determine localized values for fields in the response.
|
|
366
389
|
*
|
|
367
390
|
* 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.
|
|
368
391
|
* @format COUNTRY
|
|
369
392
|
*/
|
|
370
|
-
|
|
393
|
+
countryCode?: string | null;
|
|
371
394
|
/**
|
|
372
395
|
* Currency used to determine localized values for fields in the response.
|
|
373
396
|
*
|
|
374
397
|
* Must be a 3-letter currency code in [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) format.
|
|
375
398
|
* @format CURRENCY
|
|
376
399
|
*/
|
|
377
|
-
|
|
400
|
+
currencyCode?: string | null;
|
|
378
401
|
/**
|
|
379
402
|
* Requested additional fields
|
|
380
403
|
* @maxSize 2
|
|
381
404
|
*/
|
|
382
405
|
requestedFields?: RequestedFieldsWithLiterals[];
|
|
383
406
|
}
|
|
407
|
+
/**
|
|
408
|
+
* Retrieves a list of payment method types.
|
|
409
|
+
*
|
|
410
|
+
* If an `ids` array is specified, only payment method types with matching IDs or legacy IDs are returned.
|
|
411
|
+
* If no `ids` are specified, all payment method types available in the caller's country are returned, with some fields localized according to the caller's language and country.
|
|
412
|
+
*
|
|
413
|
+
* The caller's language and country are taken from the `language` or `country` parameters in the request.
|
|
414
|
+
* If `language` or `country` are not specified, the values are taken from context of the call if possible. For example, if this method is called from a Wix site, the selected language on that site will be used.
|
|
415
|
+
* If language or country can't be determined, the method doesn't perform any filtering or localization.
|
|
416
|
+
*
|
|
417
|
+
* Language and country are used to determine localized values for the `displayName`, `description` fields.
|
|
418
|
+
* Country is used to determine localized values for the `priority` and `promoted` fields in both `merchantFlow` and `buyerFlow`.
|
|
419
|
+
* `currency` is used to determine the eligibility of payment method types for the provided currency.
|
|
420
|
+
* @public
|
|
421
|
+
* @documentationMaturity preview
|
|
422
|
+
* @permissionId PAYMENTS.SITE_PAYMENT_METHOD_TYPE_READ
|
|
423
|
+
* @applicableIdentity APP
|
|
424
|
+
* @applicableIdentity VISITOR
|
|
425
|
+
* @fqn wix.payments.site_payment_method_types.v1.SitePaymentMethodTypeService.ListSitePaymentMethodTypes
|
|
426
|
+
*/
|
|
427
|
+
declare function listSitePaymentMethodTypes(options?: ListSitePaymentMethodTypesOptions): Promise<NonNullablePaths<ListSitePaymentMethodTypesResponse, {
|
|
428
|
+
[P in SitePaymentMethodTypeNonNullablePaths]: `sitePaymentMethodTypes.${number}.${P}`;
|
|
429
|
+
}[SitePaymentMethodTypeNonNullablePaths]>>;
|
|
384
430
|
interface ListSitePaymentMethodTypesOptions {
|
|
385
431
|
/**
|
|
386
|
-
* IDs or legacy IDs of payment method types to retrieve.
|
|
432
|
+
* IDs or legacy IDs of site payment method types to retrieve.
|
|
387
433
|
* @maxSize 250
|
|
388
434
|
* @minLength 1
|
|
389
435
|
* @maxLength 50
|
|
@@ -395,21 +441,21 @@ interface ListSitePaymentMethodTypesOptions {
|
|
|
395
441
|
* Must be a 2-letter language code in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
|
|
396
442
|
* @format LANGUAGE
|
|
397
443
|
*/
|
|
398
|
-
|
|
444
|
+
languageCode?: string | null;
|
|
399
445
|
/**
|
|
400
446
|
* Country used to filter payment method types and determine localized values for fields in the response.
|
|
401
447
|
*
|
|
402
448
|
* 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.
|
|
403
449
|
* @format COUNTRY
|
|
404
450
|
*/
|
|
405
|
-
|
|
451
|
+
countryCode?: string | null;
|
|
406
452
|
/**
|
|
407
453
|
* Currency used to determine localized values for fields in the response.
|
|
408
454
|
*
|
|
409
455
|
* Must be a 3-letter currency code in [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) format.
|
|
410
456
|
* @format CURRENCY
|
|
411
457
|
*/
|
|
412
|
-
|
|
458
|
+
currencyCode?: string | null;
|
|
413
459
|
/**
|
|
414
460
|
* Requested additional fields
|
|
415
461
|
* @maxSize 2
|
|
@@ -417,4 +463,4 @@ interface ListSitePaymentMethodTypesOptions {
|
|
|
417
463
|
requestedFields?: RequestedFieldsWithLiterals[];
|
|
418
464
|
}
|
|
419
465
|
|
|
420
|
-
export { type AuthCapture
|
|
466
|
+
export { type AuthCapture, type Barcode, type BuyerFlow, type CredentialOnFile, type CustomTokenization, type Disputes, type ExpressFlow, type Features, Format, type FormatWithLiterals, type FullPageRedirect, type GetSitePaymentMethodTypeOptions, type GetSitePaymentMethodTypeRequest, type GetSitePaymentMethodTypeResponse, type IFrame, type Icon, type Installments, type ListSitePaymentMethodTypesOptions, type ListSitePaymentMethodTypesRequest, type ListSitePaymentMethodTypesResponse, type MerchantFlow, type Moto, type NewTab, type NextAction, type PromotionalMessages, type QrCode, type Refunds, type RegularFlow, type RegularTokenization, RequestedFields, type RequestedFieldsWithLiterals, type SitePaymentMethodType, getSitePaymentMethodType, listSitePaymentMethodTypes };
|