@wix/auto_sdk_payments_wix-payments-account 1.0.2 → 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 (129) 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/src/payments-mcp-v1-wix-payments-account-wix-payments-account.context.d.ts +4 -0
  38. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.context.js +4 -0
  39. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.context.js.map +1 -0
  40. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.d.ts +20 -0
  41. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.js +54 -0
  42. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.js.map +1 -0
  43. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.d.ts +13 -0
  44. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.js +20 -0
  45. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.js.map +1 -0
  46. package/build/{internal/index.d.ts → es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.public.d.ts} +7 -9
  47. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.public.js +8 -0
  48. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.public.js.map +1 -0
  49. 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
  50. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.types.js +2 -0
  51. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.types.js.map +1 -0
  52. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.universal.d.ts +72 -0
  53. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.universal.js +55 -0
  54. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.universal.js.map +1 -0
  55. package/build/internal/cjs/index.d.ts +1 -0
  56. package/build/internal/cjs/index.js +18 -0
  57. package/build/internal/cjs/index.js.map +1 -0
  58. package/build/internal/cjs/index.typings.d.ts +1 -0
  59. package/build/internal/cjs/index.typings.js +18 -0
  60. package/build/internal/cjs/index.typings.js.map +1 -0
  61. package/build/internal/cjs/meta.d.ts +1 -0
  62. package/build/internal/cjs/meta.js +18 -0
  63. package/build/internal/cjs/meta.js.map +1 -0
  64. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.context.d.ts +4 -0
  65. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.context.js +7 -0
  66. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.context.js.map +1 -0
  67. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.d.ts +20 -0
  68. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.js +58 -0
  69. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.js.map +1 -0
  70. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.d.ts +13 -0
  71. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.js +47 -0
  72. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.js.map +1 -0
  73. package/build/{index.d.mts → internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.public.d.ts} +7 -9
  74. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.public.js +12 -0
  75. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.public.js.map +1 -0
  76. 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
  77. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.types.js +3 -0
  78. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.types.js.map +1 -0
  79. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.universal.d.ts +72 -0
  80. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.universal.js +82 -0
  81. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.universal.js.map +1 -0
  82. package/build/internal/es/index.d.ts +1 -0
  83. package/build/internal/es/index.js +2 -0
  84. package/build/internal/es/index.js.map +1 -0
  85. package/build/internal/es/index.typings.d.ts +1 -0
  86. package/build/internal/es/index.typings.js +2 -0
  87. package/build/internal/es/index.typings.js.map +1 -0
  88. package/build/internal/es/meta.d.ts +1 -0
  89. package/build/internal/es/meta.js +2 -0
  90. package/build/internal/es/meta.js.map +1 -0
  91. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.context.d.ts +4 -0
  92. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.context.js +4 -0
  93. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.context.js.map +1 -0
  94. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.d.ts +20 -0
  95. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.js +54 -0
  96. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.js.map +1 -0
  97. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.d.ts +13 -0
  98. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.js +20 -0
  99. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.js.map +1 -0
  100. package/build/internal/{index.d.mts → es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.public.d.ts} +7 -9
  101. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.public.js +8 -0
  102. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.public.js.map +1 -0
  103. 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
  104. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.types.js +2 -0
  105. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.types.js.map +1 -0
  106. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.universal.d.ts +72 -0
  107. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.universal.js +55 -0
  108. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.universal.js.map +1 -0
  109. package/package.json +11 -12
  110. package/build/index.js +0 -111
  111. package/build/index.js.map +0 -1
  112. package/build/index.mjs +0 -87
  113. package/build/index.mjs.map +0 -1
  114. package/build/internal/index.js +0 -111
  115. package/build/internal/index.js.map +0 -1
  116. package/build/internal/index.mjs +0 -87
  117. package/build/internal/index.mjs.map +0 -1
  118. package/build/internal/meta.d.mts +0 -51
  119. package/build/internal/meta.d.ts +0 -51
  120. package/build/internal/meta.js +0 -89
  121. package/build/internal/meta.js.map +0 -1
  122. package/build/internal/meta.mjs +0 -62
  123. package/build/internal/meta.mjs.map +0 -1
  124. package/build/meta.d.mts +0 -51
  125. package/build/meta.d.ts +0 -51
  126. package/build/meta.js +0 -89
  127. package/build/meta.js.map +0 -1
  128. package/build/meta.mjs +0 -62
  129. package/build/meta.mjs.map +0 -1
@@ -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.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,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":""}
@@ -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,82 @@
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 transform_error_1 = require("@wix/sdk-runtime/transform-error");
28
+ const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys");
29
+ const ambassadorWixPaymentsMcpV1WixPaymentsAccount = __importStar(require("./payments-mcp-v1-wix-payments-account-wix-payments-account.http.js"));
30
+ /**
31
+ * Connects a Wix Payments account to the site.
32
+ *
33
+ *
34
+ * The call fails if:
35
+ * - The site's location
36
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/locations/introduction))
37
+ * is outside the USA.
38
+ * - A Wix Payments account is already connected to the site.
39
+ * - You don't specify `{"tosAccepted": true}`.
40
+ *
41
+ * The connected Wix Payments account has the following limitations, which site
42
+ * owners can manage in their dashboard:
43
+ *
44
+ * - By default, customers can only pay via credit card, Apple Pay, or Google Pay.
45
+ * - To receive payments, site owners must complete onboarding to their Wix
46
+ * Payments account in the site's dashboard.
47
+ * @param account - Wix Payments account to connect to the site.
48
+ * @public
49
+ * @documentationMaturity preview
50
+ * @requiredField account
51
+ * @requiredField account.firstName
52
+ * @requiredField account.lastName
53
+ * @requiredField account.tosAccepted
54
+ * @permissionId CASHIER.PROVIDER_ACCOUNTS_CREATE
55
+ * @permissionScope Connect Wix Payments Account
56
+ * @permissionScopeId SCOPE.PAYMENTS.CONNECT-WIX-PAYMENTS-ACCOUNT
57
+ * @applicableIdentity APP
58
+ * @fqn wix.payments.mcp.v1.WixPaymentsAccountService.ConnectWixPaymentsAccount
59
+ */
60
+ async function connectWixPaymentsAccount(account) {
61
+ // @ts-ignore
62
+ const { httpClient, sideEffects } = arguments[1];
63
+ const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({ account: account });
64
+ const reqOpts = ambassadorWixPaymentsMcpV1WixPaymentsAccount.connectWixPaymentsAccount(payload);
65
+ sideEffects?.onSiteCall?.();
66
+ try {
67
+ const result = await httpClient.request(reqOpts);
68
+ sideEffects?.onSuccess?.(result);
69
+ return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data);
70
+ }
71
+ catch (err) {
72
+ const transformedError = (0, transform_error_1.transformError)(err, {
73
+ spreadPathsToArguments: {},
74
+ explicitPathsToArguments: { account: '$[0]' },
75
+ singleArgumentUnchanged: false,
76
+ }, ['account']);
77
+ sideEffects?.onError?.(err);
78
+ throw transformedError;
79
+ }
80
+ }
81
+ exports.connectWixPaymentsAccount = connectWixPaymentsAccount;
82
+ //# 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,sEAAuF;AACvF,oFAGiD;AAEjD,kJAAoI;AA6CpI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACI,KAAK,UAAU,yBAAyB,CAC7C,OAGC;IAED,aAAa;IACb,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAC;IAEF,MAAM,OAAO,GAAG,IAAA,8DAAqC,EAAC,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,IAAA,gEAAuC,EAAC,MAAM,CAAC,IAAI,CAAE,CAAC;IAC/D,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,IAAA,gCAAiB,EACxC,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;AAvCD,8DAuCC"}
@@ -0,0 +1 @@
1
+ export * from './src/payments-mcp-v1-wix-payments-account-wix-payments-account.context.js';
@@ -0,0 +1,2 @@
1
+ export * from './src/payments-mcp-v1-wix-payments-account-wix-payments-account.context.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,cAAc,4EAA4E,CAAC"}
@@ -0,0 +1 @@
1
+ export * from './src/payments-mcp-v1-wix-payments-account-wix-payments-account.universal.js';
@@ -0,0 +1,2 @@
1
+ export * from './src/payments-mcp-v1-wix-payments-account-wix-payments-account.universal.js';
2
+ //# sourceMappingURL=index.typings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../index.typings.ts"],"names":[],"mappings":"AAAA,cAAc,8EAA8E,CAAC"}
@@ -0,0 +1 @@
1
+ export * from './src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.js';
@@ -0,0 +1,2 @@
1
+ export * from './src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.js';
2
+ //# sourceMappingURL=meta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":"AAAA,cAAc,yEAAyE,CAAC"}
@@ -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,4 @@
1
+ import { connectWixPaymentsAccount as publicConnectWixPaymentsAccount } from './payments-mcp-v1-wix-payments-account-wix-payments-account.public.js';
2
+ import { createRESTModule } from '@wix/sdk-runtime/rest-modules';
3
+ export const connectWixPaymentsAccount = /*#__PURE__*/ createRESTModule(publicConnectWixPaymentsAccount);
4
+ //# 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,OAAO,EAAE,yBAAyB,IAAI,+BAA+B,EAAE,MAAM,uEAAuE,CAAC;AACrJ,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAGjE,MAAM,CAAC,MAAM,yBAAyB,GAGlC,aAAa,CAAC,gBAAgB,CAAC,+BAA+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,54 @@
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
@@ -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"}