@wix/auto_sdk_payments_wix-payments-account 1.0.7 → 1.0.9

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 +57 -0
  14. package/build/internal/meta.d.ts +57 -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-C1SXJ3VZ.d.mts} +6 -4
  20. package/build/{cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.types.d.ts → internal/payments-mcp-v1-wix-payments-account-wix-payments-account.universal-C1SXJ3VZ.d.ts} +6 -4
  21. package/build/meta.d.mts +57 -0
  22. package/build/meta.d.ts +57 -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/{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-C1SXJ3VZ.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-C1SXJ3VZ.d.ts} +6 -4
  29. package/package.json +12 -11
  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 -73
  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 -73
  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 -73
  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 -73
  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,11 +1,11 @@
1
1
  /** An account that enables a Wix site to process customer payments. */
2
- export interface WixPaymentsAccount {
2
+ 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
@@ -31,11 +31,13 @@ export interface WixPaymentsAccount {
31
31
  */
32
32
  productDescription?: string | null;
33
33
  }
34
- export interface ConnectWixPaymentsAccountRequest {
34
+ interface ConnectWixPaymentsAccountRequest {
35
35
  /** Wix Payments account to connect to the site. */
36
36
  account: WixPaymentsAccount;
37
37
  }
38
- export interface ConnectWixPaymentsAccountResponse {
38
+ interface ConnectWixPaymentsAccountResponse {
39
39
  /** Connected Wix Payments account. */
40
40
  account?: WixPaymentsAccount;
41
41
  }
42
+
43
+ export type { ConnectWixPaymentsAccountResponse as C, WixPaymentsAccount as W, ConnectWixPaymentsAccountRequest as a };
@@ -1,11 +1,11 @@
1
1
  /** An account that enables a Wix site to process customer payments. */
2
- export interface WixPaymentsAccount {
2
+ 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
@@ -31,11 +31,13 @@ export interface WixPaymentsAccount {
31
31
  */
32
32
  productDescription?: string | null;
33
33
  }
34
- export interface ConnectWixPaymentsAccountRequest {
34
+ interface ConnectWixPaymentsAccountRequest {
35
35
  /** Wix Payments account to connect to the site. */
36
36
  account: WixPaymentsAccount;
37
37
  }
38
- export interface ConnectWixPaymentsAccountResponse {
38
+ interface ConnectWixPaymentsAccountResponse {
39
39
  /** Connected Wix Payments account. */
40
40
  account?: WixPaymentsAccount;
41
41
  }
42
+
43
+ export type { ConnectWixPaymentsAccountResponse as C, WixPaymentsAccount as W, ConnectWixPaymentsAccountRequest as a };
package/package.json CHANGED
@@ -1,25 +1,25 @@
1
1
  {
2
2
  "name": "@wix/auto_sdk_payments_wix-payments-account",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
7
7
  },
8
8
  "keywords": [],
9
9
  "sideEffects": false,
10
- "main": "./build/cjs/index.js",
11
- "types": "./build/es/index.d.ts",
10
+ "main": "/build/index.js",
11
+ "types": "./build/index.d.mts",
12
12
  "exports": {
13
13
  ".": {
14
- "import": "./build/es/index.js",
15
- "require": "./build/cjs/index.js",
16
- "types": "./build/es/index.d.ts"
14
+ "import": "./build/index.mjs",
15
+ "require": "./build/index.js",
16
+ "types": "./build/index.d.mts"
17
17
  },
18
18
  "./package.json": "./package.json",
19
19
  "./meta": {
20
- "import": "./build/es/meta.js",
21
- "require": "./build/cjs/meta.js",
22
- "types": "./build/es/meta.d.ts"
20
+ "import": "./build/meta.mjs",
21
+ "require": "./build/meta.js",
22
+ "types": "./build/meta.d.mts"
23
23
  }
24
24
  },
25
25
  "files": [
@@ -32,10 +32,11 @@
32
32
  "@wix/sdk-types": "^1.13.28"
33
33
  },
34
34
  "devDependencies": {
35
+ "tsup": "^8.4.0",
35
36
  "typescript": "^5.3.2"
36
37
  },
37
38
  "scripts": {
38
- "build": "tsc -b tsconfig.json tsconfig.esm.json tsconfig.internal.json tsconfig.internal.esm.json",
39
+ "build": "tsup",
39
40
  "test": ":"
40
41
  },
41
42
  "wix": {
@@ -48,5 +49,5 @@
48
49
  "fqdn": "wix.payments.mcp.v1.wix_payments_account"
49
50
  }
50
51
  },
51
- "falconPackageHash": "f95e4605d9c5c14f25a04bdfbef7054b15141a70a585f691d28d84c4"
52
+ "falconPackageHash": "3ae0277617087f8ea8530f517e20a145952330afff993f55f1e0bab4"
52
53
  }
@@ -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';
package/build/cjs/meta.js DELETED
@@ -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,CACL,OAGC,EACD,EAAE,CACF,IAAA,kGAAkC,EAChC,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAdD,8DAcC"}
@@ -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,73 +0,0 @@
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 summary of the types of products and services offered for sale through the Wix Payments account.
30
- * For example, "Sportswear and sport accessories".
31
- * @maxLength 500
32
- */
33
- productDescription?: string | null;
34
- }
35
- export interface ConnectWixPaymentsAccountRequest {
36
- /** Wix Payments account to connect to the site. */
37
- account: WixPaymentsAccount;
38
- }
39
- export interface ConnectWixPaymentsAccountResponse {
40
- /** Connected Wix Payments account. */
41
- account?: WixPaymentsAccount;
42
- }
43
- /**
44
- * Connects a Wix Payments account to the site.
45
- *
46
- *
47
- * The call fails if:
48
- * - The site's location
49
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/locations/introduction))
50
- * is outside the USA.
51
- * - A Wix Payments account is already connected to the site.
52
- * - You don't specify `{"tosAccepted": true}`.
53
- *
54
- * The connected Wix Payments account has the following limitations, which site
55
- * owners can manage in their dashboard:
56
- *
57
- * - By default, customers can only pay via credit card, Apple Pay, or Google Pay.
58
- * - To receive payments, site owners must complete onboarding to their Wix
59
- * Payments account in the site's dashboard.
60
- * @param account - Wix Payments account to connect to the site.
61
- * @public
62
- * @documentationMaturity preview
63
- * @requiredField account
64
- * @requiredField account.firstName
65
- * @requiredField account.lastName
66
- * @requiredField account.tosAccepted
67
- * @permissionId CASHIER.PROVIDER_ACCOUNTS_CREATE
68
- * @permissionScope Connect Wix Payments Account
69
- * @permissionScopeId SCOPE.PAYMENTS.CONNECT-WIX-PAYMENTS-ACCOUNT
70
- * @applicableIdentity APP
71
- * @fqn wix.payments.mcp.v1.WixPaymentsAccountService.ConnectWixPaymentsAccount
72
- */
73
- export declare function connectWixPaymentsAccount(account: NonNullablePaths<WixPaymentsAccount, `firstName` | `lastName` | `tosAccepted`>): Promise<ConnectWixPaymentsAccountResponse>;
@@ -1,82 +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 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
@@ -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,sEAAuF;AACvF,oFAGiD;AAEjD,kJAAoI;AA8CpI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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"}
@@ -1 +0,0 @@
1
- export * from './src/payments-mcp-v1-wix-payments-account-wix-payments-account.context.js';
package/build/es/index.js DELETED
@@ -1,2 +0,0 @@
1
- export * from './src/payments-mcp-v1-wix-payments-account-wix-payments-account.context.js';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,cAAc,4EAA4E,CAAC"}
@@ -1 +0,0 @@
1
- export * from './src/payments-mcp-v1-wix-payments-account-wix-payments-account.universal.js';
@@ -1,2 +0,0 @@
1
- export * from './src/payments-mcp-v1-wix-payments-account-wix-payments-account.universal.js';
2
- //# sourceMappingURL=index.typings.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../index.typings.ts"],"names":[],"mappings":"AAAA,cAAc,8EAA8E,CAAC"}
@@ -1 +0,0 @@
1
- export * from './src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.js';
package/build/es/meta.js DELETED
@@ -1,2 +0,0 @@
1
- export * from './src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.js';
2
- //# sourceMappingURL=meta.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":"AAAA,cAAc,yEAAyE,CAAC"}
@@ -1,3 +0,0 @@
1
- {
2
- "type": "module"
3
- }
@@ -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,4 +0,0 @@
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
@@ -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,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"}
@@ -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>;