@wix/auto_sdk_payments_wix-payments-account 1.0.0 → 1.0.1

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.
Files changed (130) hide show
  1. package/build/{cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.public.d.ts → index.d.mts} +9 -7
  2. package/build/{internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.public.d.ts → index.d.ts} +9 -7
  3. package/build/index.js +111 -0
  4. package/build/index.js.map +1 -0
  5. package/build/index.mjs +87 -0
  6. package/build/index.mjs.map +1 -0
  7. package/build/internal/{es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.public.d.ts → index.d.mts} +9 -7
  8. package/build/{es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.public.d.ts → internal/index.d.ts} +9 -7
  9. package/build/internal/index.js +111 -0
  10. package/build/internal/index.js.map +1 -0
  11. package/build/internal/index.mjs +87 -0
  12. package/build/internal/index.mjs.map +1 -0
  13. package/build/internal/meta.d.mts +51 -0
  14. package/build/internal/meta.d.ts +51 -0
  15. package/build/internal/meta.js +89 -0
  16. package/build/internal/meta.js.map +1 -0
  17. package/build/internal/meta.mjs +62 -0
  18. package/build/internal/meta.mjs.map +1 -0
  19. package/build/{es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.types.d.ts → internal/payments-mcp-v1-wix-payments-account-wix-payments-account.universal-Bz-F3Pf8.d.mts} +6 -4
  20. package/build/internal/{cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.types.d.ts → payments-mcp-v1-wix-payments-account-wix-payments-account.universal-Bz-F3Pf8.d.ts} +6 -4
  21. package/build/meta.d.mts +51 -0
  22. package/build/meta.d.ts +51 -0
  23. package/build/meta.js +89 -0
  24. package/build/meta.js.map +1 -0
  25. package/build/meta.mjs +62 -0
  26. package/build/meta.mjs.map +1 -0
  27. package/build/{cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.types.d.ts → payments-mcp-v1-wix-payments-account-wix-payments-account.universal-Bz-F3Pf8.d.mts} +6 -4
  28. package/build/{internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.types.d.ts → payments-mcp-v1-wix-payments-account-wix-payments-account.universal-Bz-F3Pf8.d.ts} +6 -4
  29. package/package.json +13 -12
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.context.d.ts +0 -4
  40. package/build/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.context.js +0 -7
  41. package/build/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.context.js.map +0 -1
  42. package/build/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.d.ts +0 -20
  43. package/build/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.js +0 -58
  44. package/build/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.js.map +0 -1
  45. package/build/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.d.ts +0 -13
  46. package/build/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.js +0 -47
  47. package/build/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.js.map +0 -1
  48. package/build/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.public.js +0 -12
  49. package/build/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.public.js.map +0 -1
  50. package/build/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.types.js +0 -3
  51. package/build/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.types.js.map +0 -1
  52. package/build/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.universal.d.ts +0 -66
  53. package/build/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.universal.js +0 -82
  54. package/build/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.universal.js.map +0 -1
  55. package/build/es/index.d.ts +0 -1
  56. package/build/es/index.js +0 -2
  57. package/build/es/index.js.map +0 -1
  58. package/build/es/index.typings.d.ts +0 -1
  59. package/build/es/index.typings.js +0 -2
  60. package/build/es/index.typings.js.map +0 -1
  61. package/build/es/meta.d.ts +0 -1
  62. package/build/es/meta.js +0 -2
  63. package/build/es/meta.js.map +0 -1
  64. package/build/es/package.json +0 -3
  65. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.context.d.ts +0 -4
  66. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.context.js +0 -4
  67. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.context.js.map +0 -1
  68. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.d.ts +0 -20
  69. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.js +0 -54
  70. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.js.map +0 -1
  71. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.d.ts +0 -13
  72. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.js +0 -20
  73. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.js.map +0 -1
  74. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.public.js +0 -8
  75. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.public.js.map +0 -1
  76. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.types.js +0 -2
  77. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.types.js.map +0 -1
  78. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.universal.d.ts +0 -66
  79. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.universal.js +0 -55
  80. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.universal.js.map +0 -1
  81. package/build/internal/cjs/index.d.ts +0 -1
  82. package/build/internal/cjs/index.js +0 -18
  83. package/build/internal/cjs/index.js.map +0 -1
  84. package/build/internal/cjs/index.typings.d.ts +0 -1
  85. package/build/internal/cjs/index.typings.js +0 -18
  86. package/build/internal/cjs/index.typings.js.map +0 -1
  87. package/build/internal/cjs/meta.d.ts +0 -1
  88. package/build/internal/cjs/meta.js +0 -18
  89. package/build/internal/cjs/meta.js.map +0 -1
  90. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.context.d.ts +0 -4
  91. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.context.js +0 -7
  92. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.context.js.map +0 -1
  93. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.d.ts +0 -20
  94. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.js +0 -58
  95. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.js.map +0 -1
  96. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.d.ts +0 -13
  97. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.js +0 -47
  98. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.js.map +0 -1
  99. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.public.js +0 -12
  100. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.public.js.map +0 -1
  101. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.types.js +0 -3
  102. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.types.js.map +0 -1
  103. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.universal.d.ts +0 -66
  104. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.universal.js +0 -82
  105. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.universal.js.map +0 -1
  106. package/build/internal/es/index.d.ts +0 -1
  107. package/build/internal/es/index.js +0 -2
  108. package/build/internal/es/index.js.map +0 -1
  109. package/build/internal/es/index.typings.d.ts +0 -1
  110. package/build/internal/es/index.typings.js +0 -2
  111. package/build/internal/es/index.typings.js.map +0 -1
  112. package/build/internal/es/meta.d.ts +0 -1
  113. package/build/internal/es/meta.js +0 -2
  114. package/build/internal/es/meta.js.map +0 -1
  115. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.context.d.ts +0 -4
  116. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.context.js +0 -4
  117. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.context.js.map +0 -1
  118. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.d.ts +0 -20
  119. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.js +0 -54
  120. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.js.map +0 -1
  121. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.d.ts +0 -13
  122. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.js +0 -20
  123. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.js.map +0 -1
  124. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.public.js +0 -8
  125. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.public.js.map +0 -1
  126. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.types.js +0 -2
  127. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.types.js.map +0 -1
  128. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.universal.d.ts +0 -66
  129. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.universal.js +0 -55
  130. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.universal.js.map +0 -1
@@ -1,54 +0,0 @@
1
- import { resolveUrl } from '@wix/sdk-runtime/rest-modules';
2
- function resolveWixPaymentsMcpV1WixPaymentsAccountServiceUrl(opts) {
3
- const domainToMappings = {
4
- 'www.wixapis.com': [
5
- {
6
- srcPath: '/payments/v1/wix-payments-account',
7
- destPath: '/v1/wix-payments-account',
8
- },
9
- {
10
- srcPath: '/payments/mcp/v1/wix-payments-account',
11
- destPath: '/v1/wix-payments-account',
12
- },
13
- ],
14
- };
15
- return resolveUrl(Object.assign(opts, { domainToMappings }));
16
- }
17
- const PACKAGE_NAME = '@wix/auto_sdk_payments_wix-payments-account';
18
- /**
19
- * Connects a Wix Payments account to the site.
20
- *
21
- *
22
- * The call fails if:
23
- * - The site's location
24
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/locations/introduction))
25
- * is outside the USA.
26
- * - A Wix Payments account is already connected to the site.
27
- * - You don't specify `{"tosAccepted": true}`.
28
- *
29
- * The connected Wix Payments account has the following limitations, which site
30
- * owners can manage in their dashboard:
31
- *
32
- * - By default, customers can only pay via credit card, Apple Pay, or Google Pay.
33
- * - To receive payments, site owners must complete onboarding to their Wix
34
- * Payments account in the site's dashboard.
35
- */
36
- export function connectWixPaymentsAccount(payload) {
37
- function __connectWixPaymentsAccount({ host }) {
38
- const metadata = {
39
- entityFqdn: 'wix.payments.mcp.v1.wix_payments_account',
40
- method: 'POST',
41
- methodFqn: 'wix.payments.mcp.v1.WixPaymentsAccountService.ConnectWixPaymentsAccount',
42
- packageName: PACKAGE_NAME,
43
- url: resolveWixPaymentsMcpV1WixPaymentsAccountServiceUrl({
44
- protoPath: '/v1/wix-payments-account/connect',
45
- data: payload,
46
- host,
47
- }),
48
- data: payload,
49
- };
50
- return metadata;
51
- }
52
- return __connectWixPaymentsAccount;
53
- }
54
- //# sourceMappingURL=payments-mcp-v1-wix-payments-account-wix-payments-account.http.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"payments-mcp-v1-wix-payments-account-wix-payments-account.http.js","sourceRoot":"","sources":["../../../src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAI3D,SAAS,mDAAmD,CAC1D,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,iBAAiB,EAAE;YACjB;gBACE,OAAO,EAAE,mCAAmC;gBAC5C,QAAQ,EAAE,0BAA0B;aACrC;YACD;gBACE,OAAO,EAAE,uCAAuC;gBAChD,QAAQ,EAAE,0BAA0B;aACrC;SACF;KACF,CAAC;IAEF,OAAO,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED,MAAM,YAAY,GAAG,6CAA6C,CAAC;AAEnE;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,UAAU,yBAAyB,CACvC,OAAe;IAEf,SAAS,2BAA2B,CAAC,EAAE,IAAI,EAAO;QAChD,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,0CAA0C;YACtD,MAAM,EAAE,MAAa;YACrB,SAAS,EACP,yEAAyE;YAC3E,WAAW,EAAE,YAAY;YACzB,GAAG,EAAE,mDAAmD,CAAC;gBACvD,SAAS,EAAE,kCAAkC;gBAC7C,IAAI,EAAE,OAAO;gBACb,IAAI;aACL,CAAC;YACF,IAAI,EAAE,OAAO;SACd,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,2BAA2B,CAAC;AACrC,CAAC"}
@@ -1,13 +0,0 @@
1
- import * as ambassadorWixPaymentsMcpV1WixPaymentsAccountTypes from './payments-mcp-v1-wix-payments-account-wix-payments-account.types.js';
2
- import * as ambassadorWixPaymentsMcpV1WixPaymentsAccountUniversalTypes from './payments-mcp-v1-wix-payments-account-wix-payments-account.universal.js';
3
- export type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
4
- getUrl: (context: any) => string;
5
- httpMethod: K;
6
- path: string;
7
- pathParams: M;
8
- __requestType: T;
9
- __originalRequestType: S;
10
- __responseType: Q;
11
- __originalResponseType: R;
12
- };
13
- export declare function connectWixPaymentsAccount(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixPaymentsMcpV1WixPaymentsAccountUniversalTypes.ConnectWixPaymentsAccountRequest, ambassadorWixPaymentsMcpV1WixPaymentsAccountTypes.ConnectWixPaymentsAccountRequest, ambassadorWixPaymentsMcpV1WixPaymentsAccountUniversalTypes.ConnectWixPaymentsAccountResponse, ambassadorWixPaymentsMcpV1WixPaymentsAccountTypes.ConnectWixPaymentsAccountResponse>;
@@ -1,20 +0,0 @@
1
- import * as ambassadorWixPaymentsMcpV1WixPaymentsAccount from './payments-mcp-v1-wix-payments-account-wix-payments-account.http.js';
2
- export function connectWixPaymentsAccount() {
3
- const payload = {};
4
- const getRequestOptions = ambassadorWixPaymentsMcpV1WixPaymentsAccount.connectWixPaymentsAccount(payload);
5
- const getUrl = (context) => {
6
- const { url } = getRequestOptions(context);
7
- return url;
8
- };
9
- return {
10
- getUrl,
11
- httpMethod: 'POST',
12
- path: '/v1/wix-payments-account/connect',
13
- pathParams: {},
14
- __requestType: null,
15
- __originalRequestType: null,
16
- __responseType: null,
17
- __originalResponseType: null,
18
- };
19
- }
20
- //# sourceMappingURL=payments-mcp-v1-wix-payments-account-wix-payments-account.meta.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"payments-mcp-v1-wix-payments-account-wix-payments-account.meta.js","sourceRoot":"","sources":["../../../src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,4CAA4C,MAAM,qEAAqE,CAAC;AAsBpI,MAAM,UAAU,yBAAyB;IAQvC,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,4CAA4C,CAAC,yBAAyB,CACpE,OAAO,CACR,CAAC;IAEJ,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,kCAAkC;QACxC,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC"}
@@ -1,8 +0,0 @@
1
- import { connectWixPaymentsAccount as universalConnectWixPaymentsAccount, } from './payments-mcp-v1-wix-payments-account-wix-payments-account.universal.js';
2
- export const __metadata = { PACKAGE_NAME: '@wix/payments' };
3
- export function connectWixPaymentsAccount(httpClient) {
4
- return (account) => universalConnectWixPaymentsAccount(account,
5
- // @ts-ignore
6
- { httpClient });
7
- }
8
- //# sourceMappingURL=payments-mcp-v1-wix-payments-account-wix-payments-account.public.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"payments-mcp-v1-wix-payments-account-wix-payments-account.public.js","sourceRoot":"","sources":["../../../src/payments-mcp-v1-wix-payments-account-wix-payments-account.public.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,yBAAyB,IAAI,kCAAkC,GAChE,MAAM,0EAA0E,CAAC;AAElF,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;AAE5D,MAAM,UAAU,yBAAyB,CACvC,UAAsB;IAEtB,OAAO,CAAC,OAA2B,EAAE,EAAE,CACrC,kCAAkC,CAChC,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=payments-mcp-v1-wix-payments-account-wix-payments-account.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"payments-mcp-v1-wix-payments-account-wix-payments-account.types.js","sourceRoot":"","sources":["../../../src/payments-mcp-v1-wix-payments-account-wix-payments-account.types.ts"],"names":[],"mappings":""}
@@ -1,66 +0,0 @@
1
- /** An account that enables a Wix site to process customer payments. */
2
- export interface WixPaymentsAccount {
3
- /**
4
- * ID of the Wix Payments account.
5
- * @format GUID
6
- * @readonly
7
- */
8
- _id?: string | null;
9
- /**
10
- * First name of the Wix Payments account owner.
11
- * @maxLength 500
12
- */
13
- firstName?: string | null;
14
- /**
15
- * Last name of the Wix Payments account owner.
16
- * @maxLength 500
17
- */
18
- lastName?: string | null;
19
- /**
20
- * Whether the account owner has accepted the
21
- * [Wix Payments Terms of Service](https://www.wix.com/about/terms-of-payments).
22
- * The account owner must accept these terms for the account to be created
23
- * successfully. If the terms aren't accepted, the Connect Wix Payments Account
24
- * call fails.
25
- */
26
- tosAccepted?: boolean | null;
27
- }
28
- export interface ConnectWixPaymentsAccountRequest {
29
- /** Wix Payments account to connect to the site. */
30
- account: WixPaymentsAccount;
31
- }
32
- export interface ConnectWixPaymentsAccountResponse {
33
- /** Connected Wix Payments account. */
34
- account?: WixPaymentsAccount;
35
- }
36
- /**
37
- * Connects a Wix Payments account to the site.
38
- *
39
- *
40
- * The call fails if:
41
- * - The site's location
42
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/locations/introduction))
43
- * is outside the USA.
44
- * - A Wix Payments account is already connected to the site.
45
- * - You don't specify `{"tosAccepted": true}`.
46
- *
47
- * The connected Wix Payments account has the following limitations, which site
48
- * owners can manage in their dashboard:
49
- *
50
- * - By default, customers can only pay via credit card, Apple Pay, or Google Pay.
51
- * - To receive payments, site owners must complete onboarding to their Wix
52
- * Payments account in the site's dashboard.
53
- * @param account - Wix Payments account to connect to the site.
54
- * @public
55
- * @documentationMaturity preview
56
- * @requiredField account
57
- * @requiredField account.firstName
58
- * @requiredField account.lastName
59
- * @requiredField account.tosAccepted
60
- * @permissionId CASHIER.PROVIDER_ACCOUNTS_CREATE
61
- * @permissionScope Connect Wix Payments Account
62
- * @permissionScopeId SCOPE.PAYMENTS.CONNECT-WIX-PAYMENTS-ACCOUNT
63
- * @applicableIdentity APP
64
- * @fqn wix.payments.mcp.v1.WixPaymentsAccountService.ConnectWixPaymentsAccount
65
- */
66
- export declare function connectWixPaymentsAccount(account: WixPaymentsAccount): Promise<ConnectWixPaymentsAccountResponse>;
@@ -1,55 +0,0 @@
1
- import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';
2
- import { renameKeysFromSDKRequestToRESTRequest, renameKeysFromRESTResponseToSDKResponse, } from '@wix/sdk-runtime/rename-all-nested-keys';
3
- import * as ambassadorWixPaymentsMcpV1WixPaymentsAccount from './payments-mcp-v1-wix-payments-account-wix-payments-account.http.js';
4
- /**
5
- * Connects a Wix Payments account to the site.
6
- *
7
- *
8
- * The call fails if:
9
- * - The site's location
10
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/locations/introduction))
11
- * is outside the USA.
12
- * - A Wix Payments account is already connected to the site.
13
- * - You don't specify `{"tosAccepted": true}`.
14
- *
15
- * The connected Wix Payments account has the following limitations, which site
16
- * owners can manage in their dashboard:
17
- *
18
- * - By default, customers can only pay via credit card, Apple Pay, or Google Pay.
19
- * - To receive payments, site owners must complete onboarding to their Wix
20
- * Payments account in the site's dashboard.
21
- * @param account - Wix Payments account to connect to the site.
22
- * @public
23
- * @documentationMaturity preview
24
- * @requiredField account
25
- * @requiredField account.firstName
26
- * @requiredField account.lastName
27
- * @requiredField account.tosAccepted
28
- * @permissionId CASHIER.PROVIDER_ACCOUNTS_CREATE
29
- * @permissionScope Connect Wix Payments Account
30
- * @permissionScopeId SCOPE.PAYMENTS.CONNECT-WIX-PAYMENTS-ACCOUNT
31
- * @applicableIdentity APP
32
- * @fqn wix.payments.mcp.v1.WixPaymentsAccountService.ConnectWixPaymentsAccount
33
- */
34
- export async function connectWixPaymentsAccount(account) {
35
- // @ts-ignore
36
- const { httpClient, sideEffects } = arguments[1];
37
- const payload = renameKeysFromSDKRequestToRESTRequest({ account: account });
38
- const reqOpts = ambassadorWixPaymentsMcpV1WixPaymentsAccount.connectWixPaymentsAccount(payload);
39
- sideEffects?.onSiteCall?.();
40
- try {
41
- const result = await httpClient.request(reqOpts);
42
- sideEffects?.onSuccess?.(result);
43
- return renameKeysFromRESTResponseToSDKResponse(result.data);
44
- }
45
- catch (err) {
46
- const transformedError = sdkTransformError(err, {
47
- spreadPathsToArguments: {},
48
- explicitPathsToArguments: { account: '$[0]' },
49
- singleArgumentUnchanged: false,
50
- }, ['account']);
51
- sideEffects?.onError?.(err);
52
- throw transformedError;
53
- }
54
- }
55
- //# sourceMappingURL=payments-mcp-v1-wix-payments-account-wix-payments-account.universal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"payments-mcp-v1-wix-payments-account-wix-payments-account.universal.js","sourceRoot":"","sources":["../../../src/payments-mcp-v1-wix-payments-account-wix-payments-account.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,4CAA4C,MAAM,qEAAqE,CAAC;AAwCpI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,CAAC,KAAK,UAAU,yBAAyB,CAC7C,OAA2B;IAE3B,aAAa;IACb,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAC;IAEF,MAAM,OAAO,GAAG,qCAAqC,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC;IAE5E,MAAM,OAAO,GACX,4CAA4C,CAAC,yBAAyB,CACpE,OAAO,CACR,CAAC;IAEJ,WAAW,EAAE,UAAU,EAAE,EAAE,CAAC;IAC5B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACjD,WAAW,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;QAEjC,OAAO,uCAAuC,CAAC,MAAM,CAAC,IAAI,CAAE,CAAC;IAC/D,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,iBAAiB,CACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;YAC7C,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,SAAS,CAAC,CACZ,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC"}
@@ -1 +0,0 @@
1
- export * from './src/payments-mcp-v1-wix-payments-account-wix-payments-account.context.js';
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./src/payments-mcp-v1-wix-payments-account-wix-payments-account.context.js"), exports);
18
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6GAA2F"}
@@ -1 +0,0 @@
1
- export * from './src/payments-mcp-v1-wix-payments-account-wix-payments-account.universal.js';
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./src/payments-mcp-v1-wix-payments-account-wix-payments-account.universal.js"), exports);
18
- //# sourceMappingURL=index.typings.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../../index.typings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+GAA6F"}
@@ -1 +0,0 @@
1
- export * from './src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.js';
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.js"), exports);
18
- //# sourceMappingURL=meta.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0GAAwF"}
@@ -1,4 +0,0 @@
1
- import { connectWixPaymentsAccount as publicConnectWixPaymentsAccount } from './payments-mcp-v1-wix-payments-account-wix-payments-account.public.js';
2
- import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
3
- export declare const connectWixPaymentsAccount: MaybeContext<BuildRESTFunction<typeof publicConnectWixPaymentsAccount> & typeof publicConnectWixPaymentsAccount>;
4
- export { WixPaymentsAccount, ConnectWixPaymentsAccountRequest, ConnectWixPaymentsAccountResponse, } from './payments-mcp-v1-wix-payments-account-wix-payments-account.universal.js';
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.connectWixPaymentsAccount = void 0;
4
- const payments_mcp_v1_wix_payments_account_wix_payments_account_public_js_1 = require("./payments-mcp-v1-wix-payments-account-wix-payments-account.public.js");
5
- const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
6
- exports.connectWixPaymentsAccount = (0, rest_modules_1.createRESTModule)(payments_mcp_v1_wix_payments_account_wix_payments_account_public_js_1.connectWixPaymentsAccount);
7
- //# sourceMappingURL=payments-mcp-v1-wix-payments-account-wix-payments-account.context.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"payments-mcp-v1-wix-payments-account-wix-payments-account.context.js","sourceRoot":"","sources":["../../../../src/payments-mcp-v1-wix-payments-account-wix-payments-account.context.ts"],"names":[],"mappings":";;;AAAA,+JAAqJ;AACrJ,gEAAiE;AAGpD,QAAA,yBAAyB,GAGpB,IAAA,+BAAgB,EAAC,+FAA+B,CAAC,CAAC"}
@@ -1,20 +0,0 @@
1
- import { RequestOptionsFactory } from '@wix/sdk-types';
2
- /**
3
- * Connects a Wix Payments account to the site.
4
- *
5
- *
6
- * The call fails if:
7
- * - The site's location
8
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/locations/introduction))
9
- * is outside the USA.
10
- * - A Wix Payments account is already connected to the site.
11
- * - You don't specify `{"tosAccepted": true}`.
12
- *
13
- * The connected Wix Payments account has the following limitations, which site
14
- * owners can manage in their dashboard:
15
- *
16
- * - By default, customers can only pay via credit card, Apple Pay, or Google Pay.
17
- * - To receive payments, site owners must complete onboarding to their Wix
18
- * Payments account in the site's dashboard.
19
- */
20
- export declare function connectWixPaymentsAccount(payload: object): RequestOptionsFactory<any>;
@@ -1,58 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.connectWixPaymentsAccount = void 0;
4
- const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
5
- function resolveWixPaymentsMcpV1WixPaymentsAccountServiceUrl(opts) {
6
- const domainToMappings = {
7
- 'www.wixapis.com': [
8
- {
9
- srcPath: '/payments/v1/wix-payments-account',
10
- destPath: '/v1/wix-payments-account',
11
- },
12
- {
13
- srcPath: '/payments/mcp/v1/wix-payments-account',
14
- destPath: '/v1/wix-payments-account',
15
- },
16
- ],
17
- };
18
- return (0, rest_modules_1.resolveUrl)(Object.assign(opts, { domainToMappings }));
19
- }
20
- const PACKAGE_NAME = '@wix/auto_sdk_payments_wix-payments-account';
21
- /**
22
- * Connects a Wix Payments account to the site.
23
- *
24
- *
25
- * The call fails if:
26
- * - The site's location
27
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/locations/introduction))
28
- * is outside the USA.
29
- * - A Wix Payments account is already connected to the site.
30
- * - You don't specify `{"tosAccepted": true}`.
31
- *
32
- * The connected Wix Payments account has the following limitations, which site
33
- * owners can manage in their dashboard:
34
- *
35
- * - By default, customers can only pay via credit card, Apple Pay, or Google Pay.
36
- * - To receive payments, site owners must complete onboarding to their Wix
37
- * Payments account in the site's dashboard.
38
- */
39
- function connectWixPaymentsAccount(payload) {
40
- function __connectWixPaymentsAccount({ host }) {
41
- const metadata = {
42
- entityFqdn: 'wix.payments.mcp.v1.wix_payments_account',
43
- method: 'POST',
44
- methodFqn: 'wix.payments.mcp.v1.WixPaymentsAccountService.ConnectWixPaymentsAccount',
45
- packageName: PACKAGE_NAME,
46
- url: resolveWixPaymentsMcpV1WixPaymentsAccountServiceUrl({
47
- protoPath: '/v1/wix-payments-account/connect',
48
- data: payload,
49
- host,
50
- }),
51
- data: payload,
52
- };
53
- return metadata;
54
- }
55
- return __connectWixPaymentsAccount;
56
- }
57
- exports.connectWixPaymentsAccount = connectWixPaymentsAccount;
58
- //# sourceMappingURL=payments-mcp-v1-wix-payments-account-wix-payments-account.http.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"payments-mcp-v1-wix-payments-account-wix-payments-account.http.js","sourceRoot":"","sources":["../../../../src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.ts"],"names":[],"mappings":";;;AAAA,gEAA2D;AAI3D,SAAS,mDAAmD,CAC1D,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,iBAAiB,EAAE;YACjB;gBACE,OAAO,EAAE,mCAAmC;gBAC5C,QAAQ,EAAE,0BAA0B;aACrC;YACD;gBACE,OAAO,EAAE,uCAAuC;gBAChD,QAAQ,EAAE,0BAA0B;aACrC;SACF;KACF,CAAC;IAEF,OAAO,IAAA,yBAAU,EAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED,MAAM,YAAY,GAAG,6CAA6C,CAAC;AAEnE;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,yBAAyB,CACvC,OAAe;IAEf,SAAS,2BAA2B,CAAC,EAAE,IAAI,EAAO;QAChD,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,0CAA0C;YACtD,MAAM,EAAE,MAAa;YACrB,SAAS,EACP,yEAAyE;YAC3E,WAAW,EAAE,YAAY;YACzB,GAAG,EAAE,mDAAmD,CAAC;gBACvD,SAAS,EAAE,kCAAkC;gBAC7C,IAAI,EAAE,OAAO;gBACb,IAAI;aACL,CAAC;YACF,IAAI,EAAE,OAAO;SACd,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,2BAA2B,CAAC;AACrC,CAAC;AAtBD,8DAsBC"}
@@ -1,13 +0,0 @@
1
- import * as ambassadorWixPaymentsMcpV1WixPaymentsAccountTypes from './payments-mcp-v1-wix-payments-account-wix-payments-account.types.js';
2
- import * as ambassadorWixPaymentsMcpV1WixPaymentsAccountUniversalTypes from './payments-mcp-v1-wix-payments-account-wix-payments-account.universal.js';
3
- export type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
4
- getUrl: (context: any) => string;
5
- httpMethod: K;
6
- path: string;
7
- pathParams: M;
8
- __requestType: T;
9
- __originalRequestType: S;
10
- __responseType: Q;
11
- __originalResponseType: R;
12
- };
13
- export declare function connectWixPaymentsAccount(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixPaymentsMcpV1WixPaymentsAccountUniversalTypes.ConnectWixPaymentsAccountRequest, ambassadorWixPaymentsMcpV1WixPaymentsAccountTypes.ConnectWixPaymentsAccountRequest, ambassadorWixPaymentsMcpV1WixPaymentsAccountUniversalTypes.ConnectWixPaymentsAccountResponse, ambassadorWixPaymentsMcpV1WixPaymentsAccountTypes.ConnectWixPaymentsAccountResponse>;
@@ -1,47 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.connectWixPaymentsAccount = void 0;
27
- const ambassadorWixPaymentsMcpV1WixPaymentsAccount = __importStar(require("./payments-mcp-v1-wix-payments-account-wix-payments-account.http.js"));
28
- function connectWixPaymentsAccount() {
29
- const payload = {};
30
- const getRequestOptions = ambassadorWixPaymentsMcpV1WixPaymentsAccount.connectWixPaymentsAccount(payload);
31
- const getUrl = (context) => {
32
- const { url } = getRequestOptions(context);
33
- return url;
34
- };
35
- return {
36
- getUrl,
37
- httpMethod: 'POST',
38
- path: '/v1/wix-payments-account/connect',
39
- pathParams: {},
40
- __requestType: null,
41
- __originalRequestType: null,
42
- __responseType: null,
43
- __originalResponseType: null,
44
- };
45
- }
46
- exports.connectWixPaymentsAccount = connectWixPaymentsAccount;
47
- //# sourceMappingURL=payments-mcp-v1-wix-payments-account-wix-payments-account.meta.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"payments-mcp-v1-wix-payments-account-wix-payments-account.meta.js","sourceRoot":"","sources":["../../../../src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kJAAoI;AAsBpI,SAAgB,yBAAyB;IAQvC,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,4CAA4C,CAAC,yBAAyB,CACpE,OAAO,CACR,CAAC;IAEJ,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,kCAAkC;QACxC,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AA9BD,8DA8BC"}
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.connectWixPaymentsAccount = exports.__metadata = void 0;
4
- const payments_mcp_v1_wix_payments_account_wix_payments_account_universal_js_1 = require("./payments-mcp-v1-wix-payments-account-wix-payments-account.universal.js");
5
- exports.__metadata = { PACKAGE_NAME: '@wix/payments' };
6
- function connectWixPaymentsAccount(httpClient) {
7
- return (account) => (0, payments_mcp_v1_wix_payments_account_wix_payments_account_universal_js_1.connectWixPaymentsAccount)(account,
8
- // @ts-ignore
9
- { httpClient });
10
- }
11
- exports.connectWixPaymentsAccount = connectWixPaymentsAccount;
12
- //# sourceMappingURL=payments-mcp-v1-wix-payments-account-wix-payments-account.public.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"payments-mcp-v1-wix-payments-account-wix-payments-account.public.js","sourceRoot":"","sources":["../../../../src/payments-mcp-v1-wix-payments-account-wix-payments-account.public.ts"],"names":[],"mappings":";;;AACA,qKAIkF;AAErE,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;AAE5D,SAAgB,yBAAyB,CACvC,UAAsB;IAEtB,OAAO,CAAC,OAA2B,EAAE,EAAE,CACrC,IAAA,kGAAkC,EAChC,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,8DASC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=payments-mcp-v1-wix-payments-account-wix-payments-account.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"payments-mcp-v1-wix-payments-account-wix-payments-account.types.js","sourceRoot":"","sources":["../../../../src/payments-mcp-v1-wix-payments-account-wix-payments-account.types.ts"],"names":[],"mappings":""}
@@ -1,66 +0,0 @@
1
- /** An account that enables a Wix site to process customer payments. */
2
- export interface WixPaymentsAccount {
3
- /**
4
- * ID of the Wix Payments account.
5
- * @format GUID
6
- * @readonly
7
- */
8
- _id?: string | null;
9
- /**
10
- * First name of the Wix Payments account owner.
11
- * @maxLength 500
12
- */
13
- firstName?: string | null;
14
- /**
15
- * Last name of the Wix Payments account owner.
16
- * @maxLength 500
17
- */
18
- lastName?: string | null;
19
- /**
20
- * Whether the account owner has accepted the
21
- * [Wix Payments Terms of Service](https://www.wix.com/about/terms-of-payments).
22
- * The account owner must accept these terms for the account to be created
23
- * successfully. If the terms aren't accepted, the Connect Wix Payments Account
24
- * call fails.
25
- */
26
- tosAccepted?: boolean | null;
27
- }
28
- export interface ConnectWixPaymentsAccountRequest {
29
- /** Wix Payments account to connect to the site. */
30
- account: WixPaymentsAccount;
31
- }
32
- export interface ConnectWixPaymentsAccountResponse {
33
- /** Connected Wix Payments account. */
34
- account?: WixPaymentsAccount;
35
- }
36
- /**
37
- * Connects a Wix Payments account to the site.
38
- *
39
- *
40
- * The call fails if:
41
- * - The site's location
42
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/locations/introduction))
43
- * is outside the USA.
44
- * - A Wix Payments account is already connected to the site.
45
- * - You don't specify `{"tosAccepted": true}`.
46
- *
47
- * The connected Wix Payments account has the following limitations, which site
48
- * owners can manage in their dashboard:
49
- *
50
- * - By default, customers can only pay via credit card, Apple Pay, or Google Pay.
51
- * - To receive payments, site owners must complete onboarding to their Wix
52
- * Payments account in the site's dashboard.
53
- * @param account - Wix Payments account to connect to the site.
54
- * @public
55
- * @documentationMaturity preview
56
- * @requiredField account
57
- * @requiredField account.firstName
58
- * @requiredField account.lastName
59
- * @requiredField account.tosAccepted
60
- * @permissionId CASHIER.PROVIDER_ACCOUNTS_CREATE
61
- * @permissionScope Connect Wix Payments Account
62
- * @permissionScopeId SCOPE.PAYMENTS.CONNECT-WIX-PAYMENTS-ACCOUNT
63
- * @applicableIdentity APP
64
- * @fqn wix.payments.mcp.v1.WixPaymentsAccountService.ConnectWixPaymentsAccount
65
- */
66
- export declare function connectWixPaymentsAccount(account: WixPaymentsAccount): Promise<ConnectWixPaymentsAccountResponse>;