@wix/auto_sdk_payments_wix-payments-account 1.0.3 → 1.0.4

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/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.context.d.ts +4 -0
  11. package/build/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.context.js +7 -0
  12. package/build/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.context.js.map +1 -0
  13. package/build/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.d.ts +20 -0
  14. package/build/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.js +58 -0
  15. package/build/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.js.map +1 -0
  16. package/build/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.d.ts +13 -0
  17. package/build/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.js +47 -0
  18. package/build/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.js.map +1 -0
  19. package/build/{index.d.ts → cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.public.d.ts} +7 -9
  20. package/build/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.public.js +12 -0
  21. package/build/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.public.js.map +1 -0
  22. package/build/{payments-mcp-v1-wix-payments-account-wix-payments-account.universal-Bz-F3Pf8.d.mts → cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.types.d.ts} +9 -6
  23. package/build/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.types.js +3 -0
  24. package/build/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.types.js.map +1 -0
  25. package/build/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.universal.d.ts +72 -0
  26. package/build/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.universal.js +82 -0
  27. package/build/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/package.json +3 -0
  38. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.context.d.ts +4 -0
  39. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.context.js +4 -0
  40. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.context.js.map +1 -0
  41. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.d.ts +20 -0
  42. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.js +54 -0
  43. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.js.map +1 -0
  44. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.d.ts +13 -0
  45. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.js +20 -0
  46. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.js.map +1 -0
  47. package/build/{internal/index.d.ts → es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.public.d.ts} +7 -9
  48. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.public.js +8 -0
  49. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.public.js.map +1 -0
  50. package/build/{internal/payments-mcp-v1-wix-payments-account-wix-payments-account.universal-Bz-F3Pf8.d.mts → es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.types.d.ts} +9 -6
  51. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.types.js +2 -0
  52. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.types.js.map +1 -0
  53. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.universal.d.ts +72 -0
  54. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.universal.js +55 -0
  55. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.universal.js.map +1 -0
  56. package/build/internal/cjs/index.d.ts +1 -0
  57. package/build/internal/cjs/index.js +18 -0
  58. package/build/internal/cjs/index.js.map +1 -0
  59. package/build/internal/cjs/index.typings.d.ts +1 -0
  60. package/build/internal/cjs/index.typings.js +18 -0
  61. package/build/internal/cjs/index.typings.js.map +1 -0
  62. package/build/internal/cjs/meta.d.ts +1 -0
  63. package/build/internal/cjs/meta.js +18 -0
  64. package/build/internal/cjs/meta.js.map +1 -0
  65. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.context.d.ts +4 -0
  66. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.context.js +7 -0
  67. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.context.js.map +1 -0
  68. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.d.ts +20 -0
  69. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.js +58 -0
  70. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.js.map +1 -0
  71. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.d.ts +13 -0
  72. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.js +47 -0
  73. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.js.map +1 -0
  74. package/build/{index.d.mts → internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.public.d.ts} +7 -9
  75. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.public.js +12 -0
  76. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.public.js.map +1 -0
  77. package/build/{payments-mcp-v1-wix-payments-account-wix-payments-account.universal-Bz-F3Pf8.d.ts → internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.types.d.ts} +9 -6
  78. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.types.js +3 -0
  79. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.types.js.map +1 -0
  80. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.universal.d.ts +72 -0
  81. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.universal.js +82 -0
  82. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.universal.js.map +1 -0
  83. package/build/internal/es/index.d.ts +1 -0
  84. package/build/internal/es/index.js +2 -0
  85. package/build/internal/es/index.js.map +1 -0
  86. package/build/internal/es/index.typings.d.ts +1 -0
  87. package/build/internal/es/index.typings.js +2 -0
  88. package/build/internal/es/index.typings.js.map +1 -0
  89. package/build/internal/es/meta.d.ts +1 -0
  90. package/build/internal/es/meta.js +2 -0
  91. package/build/internal/es/meta.js.map +1 -0
  92. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.context.d.ts +4 -0
  93. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.context.js +4 -0
  94. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.context.js.map +1 -0
  95. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.d.ts +20 -0
  96. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.js +54 -0
  97. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.js.map +1 -0
  98. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.d.ts +13 -0
  99. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.js +20 -0
  100. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.js.map +1 -0
  101. package/build/internal/{index.d.mts → es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.public.d.ts} +7 -9
  102. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.public.js +8 -0
  103. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.public.js.map +1 -0
  104. package/build/internal/{payments-mcp-v1-wix-payments-account-wix-payments-account.universal-Bz-F3Pf8.d.ts → es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.types.d.ts} +9 -6
  105. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.types.js +2 -0
  106. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.types.js.map +1 -0
  107. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.universal.d.ts +72 -0
  108. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.universal.js +55 -0
  109. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.universal.js.map +1 -0
  110. package/package.json +11 -12
  111. package/build/index.js +0 -111
  112. package/build/index.js.map +0 -1
  113. package/build/index.mjs +0 -87
  114. package/build/index.mjs.map +0 -1
  115. package/build/internal/index.js +0 -111
  116. package/build/internal/index.js.map +0 -1
  117. package/build/internal/index.mjs +0 -87
  118. package/build/internal/index.mjs.map +0 -1
  119. package/build/internal/meta.d.mts +0 -51
  120. package/build/internal/meta.d.ts +0 -51
  121. package/build/internal/meta.js +0 -89
  122. package/build/internal/meta.js.map +0 -1
  123. package/build/internal/meta.mjs +0 -62
  124. package/build/internal/meta.mjs.map +0 -1
  125. package/build/meta.d.mts +0 -51
  126. package/build/meta.d.ts +0 -51
  127. package/build/meta.js +0 -89
  128. package/build/meta.js.map +0 -1
  129. package/build/meta.mjs +0 -62
  130. package/build/meta.mjs.map +0 -1
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,13 @@
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>;
@@ -0,0 +1,20 @@
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
@@ -0,0 +1 @@
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 +1,9 @@
1
- import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
2
- import { W as WixPaymentsAccount, C as ConnectWixPaymentsAccountResponse } from './payments-mcp-v1-wix-payments-account-wix-payments-account.universal-Bz-F3Pf8.js';
3
- export { a as ConnectWixPaymentsAccountRequest } from './payments-mcp-v1-wix-payments-account-wix-payments-account.universal-Bz-F3Pf8.js';
4
-
5
- declare function connectWixPaymentsAccount$1(httpClient: HttpClient): ConnectWixPaymentsAccountSignature;
1
+ import { HttpClient } from '@wix/sdk-types';
2
+ import { ConnectWixPaymentsAccountResponse, WixPaymentsAccount } from './payments-mcp-v1-wix-payments-account-wix-payments-account.universal.js';
3
+ export declare const __metadata: {
4
+ PACKAGE_NAME: string;
5
+ };
6
+ export declare function connectWixPaymentsAccount(httpClient: HttpClient): ConnectWixPaymentsAccountSignature;
6
7
  interface ConnectWixPaymentsAccountSignature {
7
8
  /**
8
9
  * Connects a Wix Payments account to the site.
@@ -25,7 +26,4 @@ interface ConnectWixPaymentsAccountSignature {
25
26
  */
26
27
  (account: WixPaymentsAccount): Promise<ConnectWixPaymentsAccountResponse>;
27
28
  }
28
-
29
- declare const connectWixPaymentsAccount: MaybeContext<BuildRESTFunction<typeof connectWixPaymentsAccount$1> & typeof connectWixPaymentsAccount$1>;
30
-
31
- export { ConnectWixPaymentsAccountResponse, WixPaymentsAccount, connectWixPaymentsAccount };
29
+ export { ConnectWixPaymentsAccountRequest, ConnectWixPaymentsAccountResponse, WixPaymentsAccount, } from './payments-mcp-v1-wix-payments-account-wix-payments-account.universal.js';
@@ -0,0 +1,8 @@
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
@@ -0,0 +1 @@
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,CACL,OAGC,EACD,EAAE,CACF,kCAAkC,CAChC,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC"}
@@ -1,11 +1,11 @@
1
1
  /** An account that enables a Wix site to process customer payments. */
2
- interface WixPaymentsAccount {
2
+ export interface WixPaymentsAccount {
3
3
  /**
4
4
  * ID of the Wix Payments account.
5
5
  * @format GUID
6
6
  * @readonly
7
7
  */
8
- _id?: string | null;
8
+ id?: string | null;
9
9
  /**
10
10
  * First name of the Wix Payments account owner.
11
11
  * @maxLength 500
@@ -24,14 +24,17 @@ interface WixPaymentsAccount {
24
24
  * call fails.
25
25
  */
26
26
  tosAccepted?: boolean | null;
27
+ /**
28
+ * Brief description of products or services that will be sold through this Wix Payments account.
29
+ * @maxLength 500
30
+ */
31
+ productsOrServiceDescription?: string | null;
27
32
  }
28
- interface ConnectWixPaymentsAccountRequest {
33
+ export interface ConnectWixPaymentsAccountRequest {
29
34
  /** Wix Payments account to connect to the site. */
30
35
  account: WixPaymentsAccount;
31
36
  }
32
- interface ConnectWixPaymentsAccountResponse {
37
+ export interface ConnectWixPaymentsAccountResponse {
33
38
  /** Connected Wix Payments account. */
34
39
  account?: WixPaymentsAccount;
35
40
  }
36
-
37
- export type { ConnectWixPaymentsAccountResponse as C, WixPaymentsAccount as W, ConnectWixPaymentsAccountRequest as a };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=payments-mcp-v1-wix-payments-account-wix-payments-account.types.js.map
@@ -0,0 +1 @@
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":""}
@@ -0,0 +1,72 @@
1
+ import { NonNullablePaths } from '@wix/sdk-types';
2
+ /** An account that enables a Wix site to process customer payments. */
3
+ export interface WixPaymentsAccount {
4
+ /**
5
+ * ID of the Wix Payments account.
6
+ * @format GUID
7
+ * @readonly
8
+ */
9
+ _id?: string | null;
10
+ /**
11
+ * First name of the Wix Payments account owner.
12
+ * @maxLength 500
13
+ */
14
+ firstName?: string | null;
15
+ /**
16
+ * Last name of the Wix Payments account owner.
17
+ * @maxLength 500
18
+ */
19
+ lastName?: string | null;
20
+ /**
21
+ * Whether the account owner has accepted the
22
+ * [Wix Payments Terms of Service](https://www.wix.com/about/terms-of-payments).
23
+ * The account owner must accept these terms for the account to be created
24
+ * successfully. If the terms aren't accepted, the Connect Wix Payments Account
25
+ * call fails.
26
+ */
27
+ tosAccepted?: boolean | null;
28
+ /**
29
+ * Brief description of products or services that will be sold through this Wix Payments account.
30
+ * @maxLength 500
31
+ */
32
+ productsOrServiceDescription?: string | null;
33
+ }
34
+ export interface ConnectWixPaymentsAccountRequest {
35
+ /** Wix Payments account to connect to the site. */
36
+ account: WixPaymentsAccount;
37
+ }
38
+ export interface ConnectWixPaymentsAccountResponse {
39
+ /** Connected Wix Payments account. */
40
+ account?: WixPaymentsAccount;
41
+ }
42
+ /**
43
+ * Connects a Wix Payments account to the site.
44
+ *
45
+ *
46
+ * The call fails if:
47
+ * - The site's location
48
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/locations/introduction))
49
+ * is outside the USA.
50
+ * - A Wix Payments account is already connected to the site.
51
+ * - You don't specify `{"tosAccepted": true}`.
52
+ *
53
+ * The connected Wix Payments account has the following limitations, which site
54
+ * owners can manage in their dashboard:
55
+ *
56
+ * - By default, customers can only pay via credit card, Apple Pay, or Google Pay.
57
+ * - To receive payments, site owners must complete onboarding to their Wix
58
+ * Payments account in the site's dashboard.
59
+ * @param account - Wix Payments account to connect to the site.
60
+ * @public
61
+ * @documentationMaturity preview
62
+ * @requiredField account
63
+ * @requiredField account.firstName
64
+ * @requiredField account.lastName
65
+ * @requiredField account.tosAccepted
66
+ * @permissionId CASHIER.PROVIDER_ACCOUNTS_CREATE
67
+ * @permissionScope Connect Wix Payments Account
68
+ * @permissionScopeId SCOPE.PAYMENTS.CONNECT-WIX-PAYMENTS-ACCOUNT
69
+ * @applicableIdentity APP
70
+ * @fqn wix.payments.mcp.v1.WixPaymentsAccountService.ConnectWixPaymentsAccount
71
+ */
72
+ export declare function connectWixPaymentsAccount(account: NonNullablePaths<WixPaymentsAccount, `firstName` | `lastName` | `tosAccepted`>): Promise<ConnectWixPaymentsAccountResponse>;
@@ -0,0 +1,55 @@
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
@@ -0,0 +1 @@
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;AA6CpI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,CAAC,KAAK,UAAU,yBAAyB,CAC7C,OAGC;IAED,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"}
@@ -0,0 +1 @@
1
+ export * from './src/payments-mcp-v1-wix-payments-account-wix-payments-account.context.js';
@@ -0,0 +1,18 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6GAA2F"}
@@ -0,0 +1 @@
1
+ export * from './src/payments-mcp-v1-wix-payments-account-wix-payments-account.universal.js';
@@ -0,0 +1,18 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../../index.typings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+GAA6F"}
@@ -0,0 +1 @@
1
+ export * from './src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.js';
@@ -0,0 +1,18 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0GAAwF"}
@@ -0,0 +1,4 @@
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';
@@ -0,0 +1,7 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,20 @@
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>;
@@ -0,0 +1,58 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,13 @@
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>;
@@ -0,0 +1,47 @@
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
@@ -0,0 +1 @@
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,8 +1,9 @@
1
- import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
2
- import { W as WixPaymentsAccount, C as ConnectWixPaymentsAccountResponse } from './payments-mcp-v1-wix-payments-account-wix-payments-account.universal-Bz-F3Pf8.mjs';
3
- export { a as ConnectWixPaymentsAccountRequest } from './payments-mcp-v1-wix-payments-account-wix-payments-account.universal-Bz-F3Pf8.mjs';
4
-
5
- declare function connectWixPaymentsAccount$1(httpClient: HttpClient): ConnectWixPaymentsAccountSignature;
1
+ import { HttpClient } from '@wix/sdk-types';
2
+ import { ConnectWixPaymentsAccountResponse, WixPaymentsAccount } from './payments-mcp-v1-wix-payments-account-wix-payments-account.universal.js';
3
+ export declare const __metadata: {
4
+ PACKAGE_NAME: string;
5
+ };
6
+ export declare function connectWixPaymentsAccount(httpClient: HttpClient): ConnectWixPaymentsAccountSignature;
6
7
  interface ConnectWixPaymentsAccountSignature {
7
8
  /**
8
9
  * Connects a Wix Payments account to the site.
@@ -25,7 +26,4 @@ interface ConnectWixPaymentsAccountSignature {
25
26
  */
26
27
  (account: WixPaymentsAccount): Promise<ConnectWixPaymentsAccountResponse>;
27
28
  }
28
-
29
- declare const connectWixPaymentsAccount: MaybeContext<BuildRESTFunction<typeof connectWixPaymentsAccount$1> & typeof connectWixPaymentsAccount$1>;
30
-
31
- export { ConnectWixPaymentsAccountResponse, WixPaymentsAccount, connectWixPaymentsAccount };
29
+ export { ConnectWixPaymentsAccountRequest, ConnectWixPaymentsAccountResponse, WixPaymentsAccount, } from './payments-mcp-v1-wix-payments-account-wix-payments-account.universal.js';
@@ -0,0 +1,12 @@
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
@@ -0,0 +1 @@
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,CACL,OAGC,EACD,EAAE,CACF,IAAA,kGAAkC,EAChC,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAdD,8DAcC"}
@@ -1,11 +1,11 @@
1
1
  /** An account that enables a Wix site to process customer payments. */
2
- interface WixPaymentsAccount {
2
+ export interface WixPaymentsAccount {
3
3
  /**
4
4
  * ID of the Wix Payments account.
5
5
  * @format GUID
6
6
  * @readonly
7
7
  */
8
- _id?: string | null;
8
+ id?: string | null;
9
9
  /**
10
10
  * First name of the Wix Payments account owner.
11
11
  * @maxLength 500
@@ -24,14 +24,17 @@ interface WixPaymentsAccount {
24
24
  * call fails.
25
25
  */
26
26
  tosAccepted?: boolean | null;
27
+ /**
28
+ * Brief description of products or services that will be sold through this Wix Payments account.
29
+ * @maxLength 500
30
+ */
31
+ productsOrServiceDescription?: string | null;
27
32
  }
28
- interface ConnectWixPaymentsAccountRequest {
33
+ export interface ConnectWixPaymentsAccountRequest {
29
34
  /** Wix Payments account to connect to the site. */
30
35
  account: WixPaymentsAccount;
31
36
  }
32
- interface ConnectWixPaymentsAccountResponse {
37
+ export interface ConnectWixPaymentsAccountResponse {
33
38
  /** Connected Wix Payments account. */
34
39
  account?: WixPaymentsAccount;
35
40
  }
36
-
37
- export type { ConnectWixPaymentsAccountResponse as C, WixPaymentsAccount as W, ConnectWixPaymentsAccountRequest as a };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=payments-mcp-v1-wix-payments-account-wix-payments-account.types.js.map
@@ -0,0 +1 @@
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":""}