@wix/auto_sdk_payments_site-payment-method-types 1.0.29 → 1.0.30
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/meta.d.ts +1 -1
- package/build/cjs/meta.js +17 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/meta.d.mts +1 -1
- package/build/es/meta.mjs +15 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/meta.d.ts +1 -1
- package/build/internal/cjs/meta.js +17 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/meta.d.mts +1 -1
- package/build/internal/es/meta.mjs +15 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +3 -3
package/build/cjs/meta.d.ts
CHANGED
|
@@ -409,4 +409,4 @@ declare function getSitePaymentMethodType(): __PublicMethodMetaInfo<'GET', {
|
|
|
409
409
|
}, GetSitePaymentMethodTypeRequest$1, GetSitePaymentMethodTypeRequest, GetSitePaymentMethodTypeResponse$1, GetSitePaymentMethodTypeResponse>;
|
|
410
410
|
declare function listSitePaymentMethodTypes(): __PublicMethodMetaInfo<'GET', {}, ListSitePaymentMethodTypesRequest$1, ListSitePaymentMethodTypesRequest, ListSitePaymentMethodTypesResponse$1, ListSitePaymentMethodTypesResponse>;
|
|
411
411
|
|
|
412
|
-
export { type __PublicMethodMetaInfo, getSitePaymentMethodType, listSitePaymentMethodTypes };
|
|
412
|
+
export { type AuthCapture as AuthCaptureOriginal, type Barcode as BarcodeOriginal, type BuyerFlow as BuyerFlowOriginal, type CredentialOnFile as CredentialOnFileOriginal, type CustomTokenization as CustomTokenizationOriginal, type Disputes as DisputesOriginal, type ExpressFlow as ExpressFlowOriginal, type Features as FeaturesOriginal, Format as FormatOriginal, type FormatWithLiterals as FormatWithLiteralsOriginal, type FullPageRedirect as FullPageRedirectOriginal, type GetSitePaymentMethodTypeRequest as GetSitePaymentMethodTypeRequestOriginal, type GetSitePaymentMethodTypeResponse as GetSitePaymentMethodTypeResponseOriginal, type IFrame as IFrameOriginal, type Icon as IconOriginal, type Image as ImageOriginal, type Installments as InstallmentsOriginal, type ListSitePaymentMethodTypesRequest as ListSitePaymentMethodTypesRequestOriginal, type ListSitePaymentMethodTypesResponse as ListSitePaymentMethodTypesResponseOriginal, type MerchantFlow as MerchantFlowOriginal, type Moto as MotoOriginal, type NewTab as NewTabOriginal, type NextAction as NextActionOriginal, type PaymentBrand as PaymentBrandOriginal, type PromotionalMessages as PromotionalMessagesOriginal, type QrCode as QrCodeOriginal, type Refunds as RefundsOriginal, type RegularFlow as RegularFlowOriginal, type RegularTokenization as RegularTokenizationOriginal, RequestedFields as RequestedFieldsOriginal, type RequestedFieldsWithLiterals as RequestedFieldsWithLiteralsOriginal, type SitePaymentMethodType as SitePaymentMethodTypeOriginal, type __PublicMethodMetaInfo, getSitePaymentMethodType, listSitePaymentMethodTypes };
|
package/build/cjs/meta.js
CHANGED
|
@@ -20,6 +20,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// meta.ts
|
|
21
21
|
var meta_exports = {};
|
|
22
22
|
__export(meta_exports, {
|
|
23
|
+
FormatOriginal: () => Format,
|
|
24
|
+
RequestedFieldsOriginal: () => RequestedFields,
|
|
23
25
|
getSitePaymentMethodType: () => getSitePaymentMethodType2,
|
|
24
26
|
listSitePaymentMethodTypes: () => listSitePaymentMethodTypes2
|
|
25
27
|
});
|
|
@@ -239,6 +241,19 @@ function listSitePaymentMethodTypes(payload) {
|
|
|
239
241
|
return __listSitePaymentMethodTypes;
|
|
240
242
|
}
|
|
241
243
|
|
|
244
|
+
// src/payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.types.ts
|
|
245
|
+
var Format = /* @__PURE__ */ ((Format2) => {
|
|
246
|
+
Format2["UNKNOWN_FORMAT"] = "UNKNOWN_FORMAT";
|
|
247
|
+
Format2["SVG"] = "SVG";
|
|
248
|
+
Format2["PNG"] = "PNG";
|
|
249
|
+
return Format2;
|
|
250
|
+
})(Format || {});
|
|
251
|
+
var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
|
|
252
|
+
RequestedFields2["UNKNOWN_REQUESTED_FIELD"] = "UNKNOWN_REQUESTED_FIELD";
|
|
253
|
+
RequestedFields2["ALLOWED_CURRENCIES"] = "ALLOWED_CURRENCIES";
|
|
254
|
+
return RequestedFields2;
|
|
255
|
+
})(RequestedFields || {});
|
|
256
|
+
|
|
242
257
|
// src/payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.meta.ts
|
|
243
258
|
function getSitePaymentMethodType2() {
|
|
244
259
|
const payload = {
|
|
@@ -284,6 +299,8 @@ function listSitePaymentMethodTypes2() {
|
|
|
284
299
|
}
|
|
285
300
|
// Annotate the CommonJS export names for ESM import in node:
|
|
286
301
|
0 && (module.exports = {
|
|
302
|
+
FormatOriginal,
|
|
303
|
+
RequestedFieldsOriginal,
|
|
287
304
|
getSitePaymentMethodType,
|
|
288
305
|
listSitePaymentMethodTypes
|
|
289
306
|
});
|
package/build/cjs/meta.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../meta.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.meta.ts"],"sourcesContent":["export * from './src/payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.meta.js';\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 `languageCode` or `countryCode` 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 `merchantFlow` and `buyerFlow`.\n * `currencyCode` is used to determine the eligibility of payment method types for the provided currency.\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 `languageCode` or `countryCode` parameters in the request.\n * If `languageCode` or `countryCode` 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 `merchantFlow` and `buyerFlow`.\n * `currencyCode` 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 migrationOptions: {\n optInTransformResponse: true,\n },\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 * as ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodType from './payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.http.js';\nimport * as ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeTypes from './payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.types.js';\nimport * as ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeUniversalTypes from './payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function getSitePaymentMethodType(): __PublicMethodMetaInfo<\n 'GET',\n { sitePaymentMethodTypeId: string },\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeUniversalTypes.GetSitePaymentMethodTypeRequest,\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeTypes.GetSitePaymentMethodTypeRequest,\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeUniversalTypes.GetSitePaymentMethodTypeResponse,\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeTypes.GetSitePaymentMethodTypeResponse\n> {\n const payload = {\n sitePaymentMethodTypeId: ':sitePaymentMethodTypeId',\n } as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodType.getSitePaymentMethodType(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/site-payment-method-types/{sitePaymentMethodTypeId}',\n pathParams: { sitePaymentMethodTypeId: 'sitePaymentMethodTypeId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function listSitePaymentMethodTypes(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeUniversalTypes.ListSitePaymentMethodTypesRequest,\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeTypes.ListSitePaymentMethodTypesRequest,\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeUniversalTypes.ListSitePaymentMethodTypesResponse,\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeTypes.ListSitePaymentMethodTypesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodType.listSitePaymentMethodTypes(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/site-payment-method-types',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,kCAAAA;AAAA,EAAA,kCAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,IAAAC,uBAA2B;AAI3B,SAAS,0EACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,oBAAoB;AAAA,MAClB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,YAAY;AAAA,MACV;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,cAAc;AAAA,MACZ;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF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,SAAS,KAAK;AAAA,MACpE;AAAA,MACA,YAAQ,uCAAkB,OAAO;AAAA,IACnC;AAEA,WAAO;AAAA,EACT;AAEA,SAAO;AACT;;;AC7OO,SAASC,4BAOd;AACA,QAAM,UAAU;AAAA,IACd,yBAAyB;AAAA,EAC3B;AAEA,QAAM,oBAC+D;AAAA,IACjE;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,yBAAyB,0BAA0B;AAAA,IACjE,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,8BAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC+D;AAAA,IACjE;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["getSitePaymentMethodType","listSitePaymentMethodTypes","import_rest_modules","getSitePaymentMethodType","listSitePaymentMethodTypes"]}
|
|
1
|
+
{"version":3,"sources":["../../meta.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.types.ts","../../src/payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.meta.ts"],"sourcesContent":["export * from './src/payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.meta.js';\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 `languageCode` or `countryCode` 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 `merchantFlow` and `buyerFlow`.\n * `currencyCode` is used to determine the eligibility of payment method types for the provided currency.\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 `languageCode` or `countryCode` parameters in the request.\n * If `languageCode` or `countryCode` 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 `merchantFlow` and `buyerFlow`.\n * `currencyCode` 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 migrationOptions: {\n optInTransformResponse: true,\n },\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","/** 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 `countryCode` and `languageCode` when calling `Get Payment Method Type` or `List Payment Method Types`.\n * For more detailed information, see the descriptions for the `countryCode` and `languageCode` 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 `countryCode` and `languageCode` when calling `Get Payment Method Type` or `List Payment Method Types`.\n * For more detailed information, see the descriptions for the `countryCode` and `languageCode` 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 `currencyCode`. */\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 * List of supported payment brands.\n * These brands are represented by other site payment method types.\n * The purpose of this list is to support the display of the brands' icons next to the payment method type.\n * @maxSize 100\n */\n paymentBrands?: PaymentBrand[];\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 `countryCode` and `languageCode` 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?: Image;\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 interface Image {\n /**\n * WixMedia image ID.\n * @format GUID\n */\n id?: string;\n /**\n * Image URL.\n * @format WEB_URL\n */\n url?: string;\n /**\n * Original image height.\n * @readonly\n */\n height?: number;\n /**\n * Original image width.\n * @readonly\n */\n width?: number;\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 `countryCode` and `languageCode` 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 `currencyCode`, 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 PaymentBrand {\n /**\n * ID of a payment method type representing a payment brand.\n * @format GUID\n */\n paymentBrandId?: string;\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 /** Return `allowedCurrencyCodes`. */\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","import * as ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodType from './payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.http.js';\nimport * as ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeTypes from './payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.types.js';\nimport * as ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeUniversalTypes from './payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function getSitePaymentMethodType(): __PublicMethodMetaInfo<\n 'GET',\n { sitePaymentMethodTypeId: string },\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeUniversalTypes.GetSitePaymentMethodTypeRequest,\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeTypes.GetSitePaymentMethodTypeRequest,\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeUniversalTypes.GetSitePaymentMethodTypeResponse,\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeTypes.GetSitePaymentMethodTypeResponse\n> {\n const payload = {\n sitePaymentMethodTypeId: ':sitePaymentMethodTypeId',\n } as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodType.getSitePaymentMethodType(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/site-payment-method-types/{sitePaymentMethodTypeId}',\n pathParams: { sitePaymentMethodTypeId: 'sitePaymentMethodTypeId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function listSitePaymentMethodTypes(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeUniversalTypes.ListSitePaymentMethodTypesRequest,\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeTypes.ListSitePaymentMethodTypesRequest,\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeUniversalTypes.ListSitePaymentMethodTypesResponse,\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeTypes.ListSitePaymentMethodTypesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodType.listSitePaymentMethodTypes(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/site-payment-method-types',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n SitePaymentMethodType as SitePaymentMethodTypeOriginal,\n Features as FeaturesOriginal,\n IFrame as IFrameOriginal,\n NewTab as NewTabOriginal,\n FullPageRedirect as FullPageRedirectOriginal,\n Barcode as BarcodeOriginal,\n QrCode as QrCodeOriginal,\n ExpressFlow as ExpressFlowOriginal,\n RegularFlow as RegularFlowOriginal,\n Disputes as DisputesOriginal,\n Installments as InstallmentsOriginal,\n Refunds as RefundsOriginal,\n AuthCapture as AuthCaptureOriginal,\n RegularTokenization as RegularTokenizationOriginal,\n CustomTokenization as CustomTokenizationOriginal,\n NextAction as NextActionOriginal,\n CredentialOnFile as CredentialOnFileOriginal,\n Moto as MotoOriginal,\n PromotionalMessages as PromotionalMessagesOriginal,\n MerchantFlow as MerchantFlowOriginal,\n Icon as IconOriginal,\n Image as ImageOriginal,\n Format as FormatOriginal,\n FormatWithLiterals as FormatWithLiteralsOriginal,\n BuyerFlow as BuyerFlowOriginal,\n PaymentBrand as PaymentBrandOriginal,\n GetSitePaymentMethodTypeRequest as GetSitePaymentMethodTypeRequestOriginal,\n RequestedFields as RequestedFieldsOriginal,\n RequestedFieldsWithLiterals as RequestedFieldsWithLiteralsOriginal,\n GetSitePaymentMethodTypeResponse as GetSitePaymentMethodTypeResponseOriginal,\n ListSitePaymentMethodTypesRequest as ListSitePaymentMethodTypesRequestOriginal,\n ListSitePaymentMethodTypesResponse as ListSitePaymentMethodTypesResponseOriginal,\n} from './payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.types.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA,kCAAAA;AAAA,EAAA,kCAAAC;AAAA;AAAA;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AAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,yBAAyB,0BAA0B;AAAA,IACjE,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,8BAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC+D;AAAA,IACjE;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["getSitePaymentMethodType","listSitePaymentMethodTypes","import_rest_modules","Format","RequestedFields","getSitePaymentMethodType","listSitePaymentMethodTypes"]}
|
package/build/es/meta.d.mts
CHANGED
|
@@ -409,4 +409,4 @@ declare function getSitePaymentMethodType(): __PublicMethodMetaInfo<'GET', {
|
|
|
409
409
|
}, GetSitePaymentMethodTypeRequest$1, GetSitePaymentMethodTypeRequest, GetSitePaymentMethodTypeResponse$1, GetSitePaymentMethodTypeResponse>;
|
|
410
410
|
declare function listSitePaymentMethodTypes(): __PublicMethodMetaInfo<'GET', {}, ListSitePaymentMethodTypesRequest$1, ListSitePaymentMethodTypesRequest, ListSitePaymentMethodTypesResponse$1, ListSitePaymentMethodTypesResponse>;
|
|
411
411
|
|
|
412
|
-
export { type __PublicMethodMetaInfo, getSitePaymentMethodType, listSitePaymentMethodTypes };
|
|
412
|
+
export { type AuthCapture as AuthCaptureOriginal, type Barcode as BarcodeOriginal, type BuyerFlow as BuyerFlowOriginal, type CredentialOnFile as CredentialOnFileOriginal, type CustomTokenization as CustomTokenizationOriginal, type Disputes as DisputesOriginal, type ExpressFlow as ExpressFlowOriginal, type Features as FeaturesOriginal, Format as FormatOriginal, type FormatWithLiterals as FormatWithLiteralsOriginal, type FullPageRedirect as FullPageRedirectOriginal, type GetSitePaymentMethodTypeRequest as GetSitePaymentMethodTypeRequestOriginal, type GetSitePaymentMethodTypeResponse as GetSitePaymentMethodTypeResponseOriginal, type IFrame as IFrameOriginal, type Icon as IconOriginal, type Image as ImageOriginal, type Installments as InstallmentsOriginal, type ListSitePaymentMethodTypesRequest as ListSitePaymentMethodTypesRequestOriginal, type ListSitePaymentMethodTypesResponse as ListSitePaymentMethodTypesResponseOriginal, type MerchantFlow as MerchantFlowOriginal, type Moto as MotoOriginal, type NewTab as NewTabOriginal, type NextAction as NextActionOriginal, type PaymentBrand as PaymentBrandOriginal, type PromotionalMessages as PromotionalMessagesOriginal, type QrCode as QrCodeOriginal, type Refunds as RefundsOriginal, type RegularFlow as RegularFlowOriginal, type RegularTokenization as RegularTokenizationOriginal, RequestedFields as RequestedFieldsOriginal, type RequestedFieldsWithLiterals as RequestedFieldsWithLiteralsOriginal, type SitePaymentMethodType as SitePaymentMethodTypeOriginal, type __PublicMethodMetaInfo, getSitePaymentMethodType, listSitePaymentMethodTypes };
|
package/build/es/meta.mjs
CHANGED
|
@@ -212,6 +212,19 @@ function listSitePaymentMethodTypes(payload) {
|
|
|
212
212
|
return __listSitePaymentMethodTypes;
|
|
213
213
|
}
|
|
214
214
|
|
|
215
|
+
// src/payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.types.ts
|
|
216
|
+
var Format = /* @__PURE__ */ ((Format2) => {
|
|
217
|
+
Format2["UNKNOWN_FORMAT"] = "UNKNOWN_FORMAT";
|
|
218
|
+
Format2["SVG"] = "SVG";
|
|
219
|
+
Format2["PNG"] = "PNG";
|
|
220
|
+
return Format2;
|
|
221
|
+
})(Format || {});
|
|
222
|
+
var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
|
|
223
|
+
RequestedFields2["UNKNOWN_REQUESTED_FIELD"] = "UNKNOWN_REQUESTED_FIELD";
|
|
224
|
+
RequestedFields2["ALLOWED_CURRENCIES"] = "ALLOWED_CURRENCIES";
|
|
225
|
+
return RequestedFields2;
|
|
226
|
+
})(RequestedFields || {});
|
|
227
|
+
|
|
215
228
|
// src/payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.meta.ts
|
|
216
229
|
function getSitePaymentMethodType2() {
|
|
217
230
|
const payload = {
|
|
@@ -256,6 +269,8 @@ function listSitePaymentMethodTypes2() {
|
|
|
256
269
|
};
|
|
257
270
|
}
|
|
258
271
|
export {
|
|
272
|
+
Format as FormatOriginal,
|
|
273
|
+
RequestedFields as RequestedFieldsOriginal,
|
|
259
274
|
getSitePaymentMethodType2 as getSitePaymentMethodType,
|
|
260
275
|
listSitePaymentMethodTypes2 as listSitePaymentMethodTypes
|
|
261
276
|
};
|
package/build/es/meta.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../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.meta.ts"],"sourcesContent":["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 `languageCode` or `countryCode` 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 `merchantFlow` and `buyerFlow`.\n * `currencyCode` is used to determine the eligibility of payment method types for the provided currency.\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 `languageCode` or `countryCode` parameters in the request.\n * If `languageCode` or `countryCode` 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 `merchantFlow` and `buyerFlow`.\n * `currencyCode` 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 migrationOptions: {\n optInTransformResponse: true,\n },\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 * as ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodType from './payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.http.js';\nimport * as ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeTypes from './payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.types.js';\nimport * as ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeUniversalTypes from './payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function getSitePaymentMethodType(): __PublicMethodMetaInfo<\n 'GET',\n { sitePaymentMethodTypeId: string },\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeUniversalTypes.GetSitePaymentMethodTypeRequest,\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeTypes.GetSitePaymentMethodTypeRequest,\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeUniversalTypes.GetSitePaymentMethodTypeResponse,\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeTypes.GetSitePaymentMethodTypeResponse\n> {\n const payload = {\n sitePaymentMethodTypeId: ':sitePaymentMethodTypeId',\n } as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodType.getSitePaymentMethodType(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/site-payment-method-types/{sitePaymentMethodTypeId}',\n pathParams: { sitePaymentMethodTypeId: 'sitePaymentMethodTypeId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function listSitePaymentMethodTypes(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeUniversalTypes.ListSitePaymentMethodTypesRequest,\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeTypes.ListSitePaymentMethodTypesRequest,\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeUniversalTypes.ListSitePaymentMethodTypesResponse,\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeTypes.ListSitePaymentMethodTypesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodType.listSitePaymentMethodTypes(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/site-payment-method-types',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,kBAAkB;AAI3B,SAAS,0EACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,oBAAoB;AAAA,MAClB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,YAAY;AAAA,MACV;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,cAAc;AAAA,MACZ;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,uBAAuB;AAAA,MACrB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QAC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AAA,IACjE;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,yBAAyB,0BAA0B;AAAA,IACjE,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,8BAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC+D;AAAA,IACjE;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["getSitePaymentMethodType","listSitePaymentMethodTypes"]}
|
|
1
|
+
{"version":3,"sources":["../../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.types.ts","../../src/payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.meta.ts"],"sourcesContent":["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 `languageCode` or `countryCode` 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 `merchantFlow` and `buyerFlow`.\n * `currencyCode` is used to determine the eligibility of payment method types for the provided currency.\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 `languageCode` or `countryCode` parameters in the request.\n * If `languageCode` or `countryCode` 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 `merchantFlow` and `buyerFlow`.\n * `currencyCode` 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 migrationOptions: {\n optInTransformResponse: true,\n },\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","/** 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 `countryCode` and `languageCode` when calling `Get Payment Method Type` or `List Payment Method Types`.\n * For more detailed information, see the descriptions for the `countryCode` and `languageCode` 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 `countryCode` and `languageCode` when calling `Get Payment Method Type` or `List Payment Method Types`.\n * For more detailed information, see the descriptions for the `countryCode` and `languageCode` 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 `currencyCode`. */\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 * List of supported payment brands.\n * These brands are represented by other site payment method types.\n * The purpose of this list is to support the display of the brands' icons next to the payment method type.\n * @maxSize 100\n */\n paymentBrands?: PaymentBrand[];\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 `countryCode` and `languageCode` 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?: Image;\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 interface Image {\n /**\n * WixMedia image ID.\n * @format GUID\n */\n id?: string;\n /**\n * Image URL.\n * @format WEB_URL\n */\n url?: string;\n /**\n * Original image height.\n * @readonly\n */\n height?: number;\n /**\n * Original image width.\n * @readonly\n */\n width?: number;\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 `countryCode` and `languageCode` 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 `currencyCode`, 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 PaymentBrand {\n /**\n * ID of a payment method type representing a payment brand.\n * @format GUID\n */\n paymentBrandId?: string;\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 /** Return `allowedCurrencyCodes`. */\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","import * as ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodType from './payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.http.js';\nimport * as ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeTypes from './payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.types.js';\nimport * as ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeUniversalTypes from './payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function getSitePaymentMethodType(): __PublicMethodMetaInfo<\n 'GET',\n { sitePaymentMethodTypeId: string },\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeUniversalTypes.GetSitePaymentMethodTypeRequest,\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeTypes.GetSitePaymentMethodTypeRequest,\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeUniversalTypes.GetSitePaymentMethodTypeResponse,\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeTypes.GetSitePaymentMethodTypeResponse\n> {\n const payload = {\n sitePaymentMethodTypeId: ':sitePaymentMethodTypeId',\n } as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodType.getSitePaymentMethodType(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/site-payment-method-types/{sitePaymentMethodTypeId}',\n pathParams: { sitePaymentMethodTypeId: 'sitePaymentMethodTypeId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function listSitePaymentMethodTypes(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeUniversalTypes.ListSitePaymentMethodTypesRequest,\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeTypes.ListSitePaymentMethodTypesRequest,\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeUniversalTypes.ListSitePaymentMethodTypesResponse,\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeTypes.ListSitePaymentMethodTypesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodType.listSitePaymentMethodTypes(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/site-payment-method-types',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n SitePaymentMethodType as SitePaymentMethodTypeOriginal,\n Features as FeaturesOriginal,\n IFrame as IFrameOriginal,\n NewTab as NewTabOriginal,\n FullPageRedirect as FullPageRedirectOriginal,\n Barcode as BarcodeOriginal,\n QrCode as QrCodeOriginal,\n ExpressFlow as ExpressFlowOriginal,\n RegularFlow as RegularFlowOriginal,\n Disputes as DisputesOriginal,\n Installments as InstallmentsOriginal,\n Refunds as RefundsOriginal,\n AuthCapture as AuthCaptureOriginal,\n RegularTokenization as RegularTokenizationOriginal,\n CustomTokenization as CustomTokenizationOriginal,\n NextAction as NextActionOriginal,\n CredentialOnFile as CredentialOnFileOriginal,\n Moto as MotoOriginal,\n PromotionalMessages as PromotionalMessagesOriginal,\n MerchantFlow as MerchantFlowOriginal,\n Icon as IconOriginal,\n Image as ImageOriginal,\n Format as FormatOriginal,\n FormatWithLiterals as FormatWithLiteralsOriginal,\n BuyerFlow as BuyerFlowOriginal,\n PaymentBrand as PaymentBrandOriginal,\n GetSitePaymentMethodTypeRequest as GetSitePaymentMethodTypeRequestOriginal,\n RequestedFields as RequestedFieldsOriginal,\n RequestedFieldsWithLiterals as RequestedFieldsWithLiteralsOriginal,\n GetSitePaymentMethodTypeResponse as GetSitePaymentMethodTypeResponseOriginal,\n ListSitePaymentMethodTypesRequest as ListSitePaymentMethodTypesRequestOriginal,\n ListSitePaymentMethodTypesResponse as ListSitePaymentMethodTypesResponseOriginal,\n} from './payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.types.js';\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,kBAAkB;AAI3B,SAAS,0EACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,oBAAoB;AAAA,MAClB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,YAAY;AAAA,MACV;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,cAAc;AAAA,MACZ;AAAA,QACE,SAAS;AAAA,QACT,UA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BAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["Format","RequestedFields","getSitePaymentMethodType","listSitePaymentMethodTypes"]}
|
|
@@ -409,4 +409,4 @@ declare function getSitePaymentMethodType(): __PublicMethodMetaInfo<'GET', {
|
|
|
409
409
|
}, GetSitePaymentMethodTypeRequest$1, GetSitePaymentMethodTypeRequest, GetSitePaymentMethodTypeResponse$1, GetSitePaymentMethodTypeResponse>;
|
|
410
410
|
declare function listSitePaymentMethodTypes(): __PublicMethodMetaInfo<'GET', {}, ListSitePaymentMethodTypesRequest$1, ListSitePaymentMethodTypesRequest, ListSitePaymentMethodTypesResponse$1, ListSitePaymentMethodTypesResponse>;
|
|
411
411
|
|
|
412
|
-
export { type __PublicMethodMetaInfo, getSitePaymentMethodType, listSitePaymentMethodTypes };
|
|
412
|
+
export { type AuthCapture as AuthCaptureOriginal, type Barcode as BarcodeOriginal, type BuyerFlow as BuyerFlowOriginal, type CredentialOnFile as CredentialOnFileOriginal, type CustomTokenization as CustomTokenizationOriginal, type Disputes as DisputesOriginal, type ExpressFlow as ExpressFlowOriginal, type Features as FeaturesOriginal, Format as FormatOriginal, type FormatWithLiterals as FormatWithLiteralsOriginal, type FullPageRedirect as FullPageRedirectOriginal, type GetSitePaymentMethodTypeRequest as GetSitePaymentMethodTypeRequestOriginal, type GetSitePaymentMethodTypeResponse as GetSitePaymentMethodTypeResponseOriginal, type IFrame as IFrameOriginal, type Icon as IconOriginal, type Image as ImageOriginal, type Installments as InstallmentsOriginal, type ListSitePaymentMethodTypesRequest as ListSitePaymentMethodTypesRequestOriginal, type ListSitePaymentMethodTypesResponse as ListSitePaymentMethodTypesResponseOriginal, type MerchantFlow as MerchantFlowOriginal, type Moto as MotoOriginal, type NewTab as NewTabOriginal, type NextAction as NextActionOriginal, type PaymentBrand as PaymentBrandOriginal, type PromotionalMessages as PromotionalMessagesOriginal, type QrCode as QrCodeOriginal, type Refunds as RefundsOriginal, type RegularFlow as RegularFlowOriginal, type RegularTokenization as RegularTokenizationOriginal, RequestedFields as RequestedFieldsOriginal, type RequestedFieldsWithLiterals as RequestedFieldsWithLiteralsOriginal, type SitePaymentMethodType as SitePaymentMethodTypeOriginal, type __PublicMethodMetaInfo, getSitePaymentMethodType, listSitePaymentMethodTypes };
|
|
@@ -20,6 +20,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// meta.ts
|
|
21
21
|
var meta_exports = {};
|
|
22
22
|
__export(meta_exports, {
|
|
23
|
+
FormatOriginal: () => Format,
|
|
24
|
+
RequestedFieldsOriginal: () => RequestedFields,
|
|
23
25
|
getSitePaymentMethodType: () => getSitePaymentMethodType2,
|
|
24
26
|
listSitePaymentMethodTypes: () => listSitePaymentMethodTypes2
|
|
25
27
|
});
|
|
@@ -239,6 +241,19 @@ function listSitePaymentMethodTypes(payload) {
|
|
|
239
241
|
return __listSitePaymentMethodTypes;
|
|
240
242
|
}
|
|
241
243
|
|
|
244
|
+
// src/payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.types.ts
|
|
245
|
+
var Format = /* @__PURE__ */ ((Format2) => {
|
|
246
|
+
Format2["UNKNOWN_FORMAT"] = "UNKNOWN_FORMAT";
|
|
247
|
+
Format2["SVG"] = "SVG";
|
|
248
|
+
Format2["PNG"] = "PNG";
|
|
249
|
+
return Format2;
|
|
250
|
+
})(Format || {});
|
|
251
|
+
var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
|
|
252
|
+
RequestedFields2["UNKNOWN_REQUESTED_FIELD"] = "UNKNOWN_REQUESTED_FIELD";
|
|
253
|
+
RequestedFields2["ALLOWED_CURRENCIES"] = "ALLOWED_CURRENCIES";
|
|
254
|
+
return RequestedFields2;
|
|
255
|
+
})(RequestedFields || {});
|
|
256
|
+
|
|
242
257
|
// src/payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.meta.ts
|
|
243
258
|
function getSitePaymentMethodType2() {
|
|
244
259
|
const payload = {
|
|
@@ -284,6 +299,8 @@ function listSitePaymentMethodTypes2() {
|
|
|
284
299
|
}
|
|
285
300
|
// Annotate the CommonJS export names for ESM import in node:
|
|
286
301
|
0 && (module.exports = {
|
|
302
|
+
FormatOriginal,
|
|
303
|
+
RequestedFieldsOriginal,
|
|
287
304
|
getSitePaymentMethodType,
|
|
288
305
|
listSitePaymentMethodTypes
|
|
289
306
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../meta.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.meta.ts"],"sourcesContent":["export * from './src/payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.meta.js';\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 `languageCode` or `countryCode` 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 `merchantFlow` and `buyerFlow`.\n * `currencyCode` is used to determine the eligibility of payment method types for the provided currency.\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 `languageCode` or `countryCode` parameters in the request.\n * If `languageCode` or `countryCode` 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 `merchantFlow` and `buyerFlow`.\n * `currencyCode` 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 migrationOptions: {\n optInTransformResponse: true,\n },\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 * as ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodType from './payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.http.js';\nimport * as ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeTypes from './payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.types.js';\nimport * as ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeUniversalTypes from './payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function getSitePaymentMethodType(): __PublicMethodMetaInfo<\n 'GET',\n { sitePaymentMethodTypeId: string },\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeUniversalTypes.GetSitePaymentMethodTypeRequest,\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeTypes.GetSitePaymentMethodTypeRequest,\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeUniversalTypes.GetSitePaymentMethodTypeResponse,\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeTypes.GetSitePaymentMethodTypeResponse\n> {\n const payload = {\n sitePaymentMethodTypeId: ':sitePaymentMethodTypeId',\n } as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodType.getSitePaymentMethodType(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/site-payment-method-types/{sitePaymentMethodTypeId}',\n pathParams: { sitePaymentMethodTypeId: 'sitePaymentMethodTypeId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function listSitePaymentMethodTypes(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeUniversalTypes.ListSitePaymentMethodTypesRequest,\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeTypes.ListSitePaymentMethodTypesRequest,\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeUniversalTypes.ListSitePaymentMethodTypesResponse,\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeTypes.ListSitePaymentMethodTypesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodType.listSitePaymentMethodTypes(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/site-payment-method-types',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,kCAAAA;AAAA,EAAA,kCAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,IAAAC,uBAA2B;AAI3B,SAAS,0EACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,oBAAoB;AAAA,MAClB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,YAAY;AAAA,MACV;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,cAAc;AAAA,MACZ;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,uBAAuB;AAAA,MACrB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,kCAAkC;AAAA,MACh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UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,yBAAyB,0BAA0B;AAAA,IACjE,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,8BAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC+D;AAAA,IACjE;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["getSitePaymentMethodType","listSitePaymentMethodTypes","import_rest_modules","getSitePaymentMethodType","listSitePaymentMethodTypes"]}
|
|
1
|
+
{"version":3,"sources":["../../../meta.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.types.ts","../../../src/payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.meta.ts"],"sourcesContent":["export * from './src/payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.meta.js';\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 `languageCode` or `countryCode` 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 `merchantFlow` and `buyerFlow`.\n * `currencyCode` is used to determine the eligibility of payment method types for the provided currency.\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 `languageCode` or `countryCode` parameters in the request.\n * If `languageCode` or `countryCode` 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 `merchantFlow` and `buyerFlow`.\n * `currencyCode` 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 migrationOptions: {\n optInTransformResponse: true,\n },\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","/** 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 `countryCode` and `languageCode` when calling `Get Payment Method Type` or `List Payment Method Types`.\n * For more detailed information, see the descriptions for the `countryCode` and `languageCode` 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 `countryCode` and `languageCode` when calling `Get Payment Method Type` or `List Payment Method Types`.\n * For more detailed information, see the descriptions for the `countryCode` and `languageCode` 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 `currencyCode`. */\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 * List of supported payment brands.\n * These brands are represented by other site payment method types.\n * The purpose of this list is to support the display of the brands' icons next to the payment method type.\n * @maxSize 100\n */\n paymentBrands?: PaymentBrand[];\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 `countryCode` and `languageCode` 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?: Image;\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 interface Image {\n /**\n * WixMedia image ID.\n * @format GUID\n */\n id?: string;\n /**\n * Image URL.\n * @format WEB_URL\n */\n url?: string;\n /**\n * Original image height.\n * @readonly\n */\n height?: number;\n /**\n * Original image width.\n * @readonly\n */\n width?: number;\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 `countryCode` and `languageCode` 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 `currencyCode`, 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 PaymentBrand {\n /**\n * ID of a payment method type representing a payment brand.\n * @format GUID\n */\n paymentBrandId?: string;\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 /** Return `allowedCurrencyCodes`. */\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","import * as ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodType from './payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.http.js';\nimport * as ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeTypes from './payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.types.js';\nimport * as ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeUniversalTypes from './payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function getSitePaymentMethodType(): __PublicMethodMetaInfo<\n 'GET',\n { sitePaymentMethodTypeId: string },\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeUniversalTypes.GetSitePaymentMethodTypeRequest,\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeTypes.GetSitePaymentMethodTypeRequest,\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeUniversalTypes.GetSitePaymentMethodTypeResponse,\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeTypes.GetSitePaymentMethodTypeResponse\n> {\n const payload = {\n sitePaymentMethodTypeId: ':sitePaymentMethodTypeId',\n } as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodType.getSitePaymentMethodType(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/site-payment-method-types/{sitePaymentMethodTypeId}',\n pathParams: { sitePaymentMethodTypeId: 'sitePaymentMethodTypeId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function listSitePaymentMethodTypes(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeUniversalTypes.ListSitePaymentMethodTypesRequest,\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeTypes.ListSitePaymentMethodTypesRequest,\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeUniversalTypes.ListSitePaymentMethodTypesResponse,\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeTypes.ListSitePaymentMethodTypesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodType.listSitePaymentMethodTypes(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/site-payment-method-types',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n SitePaymentMethodType as SitePaymentMethodTypeOriginal,\n Features as FeaturesOriginal,\n IFrame as IFrameOriginal,\n NewTab as NewTabOriginal,\n FullPageRedirect as FullPageRedirectOriginal,\n Barcode as BarcodeOriginal,\n QrCode as QrCodeOriginal,\n ExpressFlow as ExpressFlowOriginal,\n RegularFlow as RegularFlowOriginal,\n Disputes as DisputesOriginal,\n Installments as InstallmentsOriginal,\n Refunds as RefundsOriginal,\n AuthCapture as AuthCaptureOriginal,\n RegularTokenization as RegularTokenizationOriginal,\n CustomTokenization as CustomTokenizationOriginal,\n NextAction as NextActionOriginal,\n CredentialOnFile as CredentialOnFileOriginal,\n Moto as MotoOriginal,\n PromotionalMessages as PromotionalMessagesOriginal,\n MerchantFlow as MerchantFlowOriginal,\n Icon as IconOriginal,\n Image as ImageOriginal,\n Format as FormatOriginal,\n FormatWithLiterals as FormatWithLiteralsOriginal,\n BuyerFlow as BuyerFlowOriginal,\n PaymentBrand as PaymentBrandOriginal,\n GetSitePaymentMethodTypeRequest as GetSitePaymentMethodTypeRequestOriginal,\n RequestedFields as RequestedFieldsOriginal,\n RequestedFieldsWithLiterals as RequestedFieldsWithLiteralsOriginal,\n GetSitePaymentMethodTypeResponse as GetSitePaymentMethodTypeResponseOriginal,\n ListSitePaymentMethodTypesRequest as ListSitePaymentMethodTypesRequestOriginal,\n ListSitePaymentMethodTypesResponse as ListSitePaymentMethodTypesResponseOriginal,\n} from './payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.types.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA,kCAAAA;AAAA,EAAA,kCAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,IAAAC,uBAA2B;AAI3B,SAAS,0EACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,oBAAoB;AAAA,MAClB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF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O,SAASC,8BAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC+D;AAAA,IACjE;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["getSitePaymentMethodType","listSitePaymentMethodTypes","import_rest_modules","Format","RequestedFields","getSitePaymentMethodType","listSitePaymentMethodTypes"]}
|
|
@@ -409,4 +409,4 @@ declare function getSitePaymentMethodType(): __PublicMethodMetaInfo<'GET', {
|
|
|
409
409
|
}, GetSitePaymentMethodTypeRequest$1, GetSitePaymentMethodTypeRequest, GetSitePaymentMethodTypeResponse$1, GetSitePaymentMethodTypeResponse>;
|
|
410
410
|
declare function listSitePaymentMethodTypes(): __PublicMethodMetaInfo<'GET', {}, ListSitePaymentMethodTypesRequest$1, ListSitePaymentMethodTypesRequest, ListSitePaymentMethodTypesResponse$1, ListSitePaymentMethodTypesResponse>;
|
|
411
411
|
|
|
412
|
-
export { type __PublicMethodMetaInfo, getSitePaymentMethodType, listSitePaymentMethodTypes };
|
|
412
|
+
export { type AuthCapture as AuthCaptureOriginal, type Barcode as BarcodeOriginal, type BuyerFlow as BuyerFlowOriginal, type CredentialOnFile as CredentialOnFileOriginal, type CustomTokenization as CustomTokenizationOriginal, type Disputes as DisputesOriginal, type ExpressFlow as ExpressFlowOriginal, type Features as FeaturesOriginal, Format as FormatOriginal, type FormatWithLiterals as FormatWithLiteralsOriginal, type FullPageRedirect as FullPageRedirectOriginal, type GetSitePaymentMethodTypeRequest as GetSitePaymentMethodTypeRequestOriginal, type GetSitePaymentMethodTypeResponse as GetSitePaymentMethodTypeResponseOriginal, type IFrame as IFrameOriginal, type Icon as IconOriginal, type Image as ImageOriginal, type Installments as InstallmentsOriginal, type ListSitePaymentMethodTypesRequest as ListSitePaymentMethodTypesRequestOriginal, type ListSitePaymentMethodTypesResponse as ListSitePaymentMethodTypesResponseOriginal, type MerchantFlow as MerchantFlowOriginal, type Moto as MotoOriginal, type NewTab as NewTabOriginal, type NextAction as NextActionOriginal, type PaymentBrand as PaymentBrandOriginal, type PromotionalMessages as PromotionalMessagesOriginal, type QrCode as QrCodeOriginal, type Refunds as RefundsOriginal, type RegularFlow as RegularFlowOriginal, type RegularTokenization as RegularTokenizationOriginal, RequestedFields as RequestedFieldsOriginal, type RequestedFieldsWithLiterals as RequestedFieldsWithLiteralsOriginal, type SitePaymentMethodType as SitePaymentMethodTypeOriginal, type __PublicMethodMetaInfo, getSitePaymentMethodType, listSitePaymentMethodTypes };
|
|
@@ -212,6 +212,19 @@ function listSitePaymentMethodTypes(payload) {
|
|
|
212
212
|
return __listSitePaymentMethodTypes;
|
|
213
213
|
}
|
|
214
214
|
|
|
215
|
+
// src/payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.types.ts
|
|
216
|
+
var Format = /* @__PURE__ */ ((Format2) => {
|
|
217
|
+
Format2["UNKNOWN_FORMAT"] = "UNKNOWN_FORMAT";
|
|
218
|
+
Format2["SVG"] = "SVG";
|
|
219
|
+
Format2["PNG"] = "PNG";
|
|
220
|
+
return Format2;
|
|
221
|
+
})(Format || {});
|
|
222
|
+
var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
|
|
223
|
+
RequestedFields2["UNKNOWN_REQUESTED_FIELD"] = "UNKNOWN_REQUESTED_FIELD";
|
|
224
|
+
RequestedFields2["ALLOWED_CURRENCIES"] = "ALLOWED_CURRENCIES";
|
|
225
|
+
return RequestedFields2;
|
|
226
|
+
})(RequestedFields || {});
|
|
227
|
+
|
|
215
228
|
// src/payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.meta.ts
|
|
216
229
|
function getSitePaymentMethodType2() {
|
|
217
230
|
const payload = {
|
|
@@ -256,6 +269,8 @@ function listSitePaymentMethodTypes2() {
|
|
|
256
269
|
};
|
|
257
270
|
}
|
|
258
271
|
export {
|
|
272
|
+
Format as FormatOriginal,
|
|
273
|
+
RequestedFields as RequestedFieldsOriginal,
|
|
259
274
|
getSitePaymentMethodType2 as getSitePaymentMethodType,
|
|
260
275
|
listSitePaymentMethodTypes2 as listSitePaymentMethodTypes
|
|
261
276
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../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.meta.ts"],"sourcesContent":["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 `languageCode` or `countryCode` 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 `merchantFlow` and `buyerFlow`.\n * `currencyCode` is used to determine the eligibility of payment method types for the provided currency.\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 `languageCode` or `countryCode` parameters in the request.\n * If `languageCode` or `countryCode` 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 `merchantFlow` and `buyerFlow`.\n * `currencyCode` 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 migrationOptions: {\n optInTransformResponse: true,\n },\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 * as ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodType from './payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.http.js';\nimport * as ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeTypes from './payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.types.js';\nimport * as ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeUniversalTypes from './payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function getSitePaymentMethodType(): __PublicMethodMetaInfo<\n 'GET',\n { sitePaymentMethodTypeId: string },\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeUniversalTypes.GetSitePaymentMethodTypeRequest,\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeTypes.GetSitePaymentMethodTypeRequest,\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeUniversalTypes.GetSitePaymentMethodTypeResponse,\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeTypes.GetSitePaymentMethodTypeResponse\n> {\n const payload = {\n sitePaymentMethodTypeId: ':sitePaymentMethodTypeId',\n } as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodType.getSitePaymentMethodType(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/site-payment-method-types/{sitePaymentMethodTypeId}',\n pathParams: { sitePaymentMethodTypeId: 'sitePaymentMethodTypeId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function listSitePaymentMethodTypes(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeUniversalTypes.ListSitePaymentMethodTypesRequest,\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeTypes.ListSitePaymentMethodTypesRequest,\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeUniversalTypes.ListSitePaymentMethodTypesResponse,\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeTypes.ListSitePaymentMethodTypesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodType.listSitePaymentMethodTypes(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/site-payment-method-types',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";AAAA,SAAS,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BAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC+D;AAAA,IACjE;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["getSitePaymentMethodType","listSitePaymentMethodTypes"]}
|
|
1
|
+
{"version":3,"sources":["../../../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.types.ts","../../../src/payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.meta.ts"],"sourcesContent":["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 `languageCode` or `countryCode` 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 `merchantFlow` and `buyerFlow`.\n * `currencyCode` is used to determine the eligibility of payment method types for the provided currency.\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 `languageCode` or `countryCode` parameters in the request.\n * If `languageCode` or `countryCode` 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 `merchantFlow` and `buyerFlow`.\n * `currencyCode` 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 migrationOptions: {\n optInTransformResponse: true,\n },\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","/** 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 `countryCode` and `languageCode` when calling `Get Payment Method Type` or `List Payment Method Types`.\n * For more detailed information, see the descriptions for the `countryCode` and `languageCode` 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 `countryCode` and `languageCode` when calling `Get Payment Method Type` or `List Payment Method Types`.\n * For more detailed information, see the descriptions for the `countryCode` and `languageCode` 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 `currencyCode`. */\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 * List of supported payment brands.\n * These brands are represented by other site payment method types.\n * The purpose of this list is to support the display of the brands' icons next to the payment method type.\n * @maxSize 100\n */\n paymentBrands?: PaymentBrand[];\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 `countryCode` and `languageCode` 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?: Image;\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 interface Image {\n /**\n * WixMedia image ID.\n * @format GUID\n */\n id?: string;\n /**\n * Image URL.\n * @format WEB_URL\n */\n url?: string;\n /**\n * Original image height.\n * @readonly\n */\n height?: number;\n /**\n * Original image width.\n * @readonly\n */\n width?: number;\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 `countryCode` and `languageCode` 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 `currencyCode`, 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 PaymentBrand {\n /**\n * ID of a payment method type representing a payment brand.\n * @format GUID\n */\n paymentBrandId?: string;\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 /** Return `allowedCurrencyCodes`. */\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","import * as ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodType from './payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.http.js';\nimport * as ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeTypes from './payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.types.js';\nimport * as ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeUniversalTypes from './payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function getSitePaymentMethodType(): __PublicMethodMetaInfo<\n 'GET',\n { sitePaymentMethodTypeId: string },\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeUniversalTypes.GetSitePaymentMethodTypeRequest,\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeTypes.GetSitePaymentMethodTypeRequest,\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeUniversalTypes.GetSitePaymentMethodTypeResponse,\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeTypes.GetSitePaymentMethodTypeResponse\n> {\n const payload = {\n sitePaymentMethodTypeId: ':sitePaymentMethodTypeId',\n } as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodType.getSitePaymentMethodType(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/site-payment-method-types/{sitePaymentMethodTypeId}',\n pathParams: { sitePaymentMethodTypeId: 'sitePaymentMethodTypeId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function listSitePaymentMethodTypes(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeUniversalTypes.ListSitePaymentMethodTypesRequest,\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeTypes.ListSitePaymentMethodTypesRequest,\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeUniversalTypes.ListSitePaymentMethodTypesResponse,\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodTypeTypes.ListSitePaymentMethodTypesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsSitePaymentMethodTypesV1SitePaymentMethodType.listSitePaymentMethodTypes(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/site-payment-method-types',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n SitePaymentMethodType as SitePaymentMethodTypeOriginal,\n Features as FeaturesOriginal,\n IFrame as IFrameOriginal,\n NewTab as NewTabOriginal,\n FullPageRedirect as FullPageRedirectOriginal,\n Barcode as BarcodeOriginal,\n QrCode as QrCodeOriginal,\n ExpressFlow as ExpressFlowOriginal,\n RegularFlow as RegularFlowOriginal,\n Disputes as DisputesOriginal,\n Installments as InstallmentsOriginal,\n Refunds as RefundsOriginal,\n AuthCapture as AuthCaptureOriginal,\n RegularTokenization as RegularTokenizationOriginal,\n CustomTokenization as CustomTokenizationOriginal,\n NextAction as NextActionOriginal,\n CredentialOnFile as CredentialOnFileOriginal,\n Moto as MotoOriginal,\n PromotionalMessages as PromotionalMessagesOriginal,\n MerchantFlow as MerchantFlowOriginal,\n Icon as IconOriginal,\n Image as ImageOriginal,\n Format as FormatOriginal,\n FormatWithLiterals as FormatWithLiteralsOriginal,\n BuyerFlow as BuyerFlowOriginal,\n PaymentBrand as PaymentBrandOriginal,\n GetSitePaymentMethodTypeRequest as GetSitePaymentMethodTypeRequestOriginal,\n RequestedFields as RequestedFieldsOriginal,\n RequestedFieldsWithLiterals as RequestedFieldsWithLiteralsOriginal,\n GetSitePaymentMethodTypeResponse as GetSitePaymentMethodTypeResponseOriginal,\n ListSitePaymentMethodTypesRequest as ListSitePaymentMethodTypesRequestOriginal,\n ListSitePaymentMethodTypesResponse as ListSitePaymentMethodTypesResponseOriginal,\n} from './payments-site-payment-method-types-v1-site-payment-method-type-site-payment-method-types.types.js';\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,kBAAkB;AAI3B,SAAS,0EACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,oBAAoB;AAAA,MAClB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,YAAY;AAAA,MACV;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,cAAc;AAAA,MACZ;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,y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AAA,MACpE;AAAA,MACA,QAAQ,kBAAkB,OAAO;AAAA,IACnC;AAEA,WAAO;AAAA,EACT;AAEA,SAAO;AACT;;;AC+BO,IAAK,SAAL,kBAAKA,YAAL;AACL,EAAAA,QAAA,oBAAiB;AACjB,EAAAA,QAAA,SAAM;AACN,EAAAA,QAAA,SAAM;AAHI,SAAAA;AAAA,GAAA;AA+EL,IAAK,kBAAL,kBAAKC,qBAAL;AACL,EAAAA,iBAAA,6BAA0B;AAE1B,EAAAA,iBAAA,wBAAqB;AAHX,SAAAA;AAAA,GAAA;;;AC3VL,SAASC,4BAOd;AACA,QAAM,UAAU;AAAA,IACd,yBAAyB;AAAA,EAC3B;AAEA,QAAM,oBAC+D;AAAA,IACjE;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,yBAAyB,0BAA0B;AAAA,IACjE,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,8BAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC+D;AAAA,IACjE;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["Format","RequestedFields","getSitePaymentMethodType","listSitePaymentMethodTypes"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_payments_site-payment-method-types",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.30",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"service-plugins"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@wix/sdk-runtime": "^0.
|
|
32
|
+
"@wix/sdk-runtime": "^0.5.0",
|
|
33
33
|
"@wix/sdk-types": "^1.13.35"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"fqdn": "wix.payments.site_payment_method_types.v1.site_payment_method_type"
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
|
-
"falconPackageHash": "
|
|
53
|
+
"falconPackageHash": "f7b2ca120ce98c303b37435be499bf48c0d990060eb358496f729a76"
|
|
54
54
|
}
|