@wix/auto_sdk_payments_wix-payments-account 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/build/{cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.public.d.ts → index.d.mts} +9 -7
  2. package/build/{internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.public.d.ts → index.d.ts} +9 -7
  3. package/build/index.js +111 -0
  4. package/build/index.js.map +1 -0
  5. package/build/index.mjs +87 -0
  6. package/build/index.mjs.map +1 -0
  7. package/build/internal/{es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.public.d.ts → index.d.mts} +9 -7
  8. package/build/{es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.public.d.ts → internal/index.d.ts} +9 -7
  9. package/build/internal/index.js +111 -0
  10. package/build/internal/index.js.map +1 -0
  11. package/build/internal/index.mjs +87 -0
  12. package/build/internal/index.mjs.map +1 -0
  13. package/build/internal/meta.d.mts +51 -0
  14. package/build/internal/meta.d.ts +51 -0
  15. package/build/internal/meta.js +89 -0
  16. package/build/internal/meta.js.map +1 -0
  17. package/build/internal/meta.mjs +62 -0
  18. package/build/internal/meta.mjs.map +1 -0
  19. package/build/{es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.types.d.ts → internal/payments-mcp-v1-wix-payments-account-wix-payments-account.universal-Bz-F3Pf8.d.mts} +6 -4
  20. package/build/internal/{cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.types.d.ts → payments-mcp-v1-wix-payments-account-wix-payments-account.universal-Bz-F3Pf8.d.ts} +6 -4
  21. package/build/meta.d.mts +51 -0
  22. package/build/meta.d.ts +51 -0
  23. package/build/meta.js +89 -0
  24. package/build/meta.js.map +1 -0
  25. package/build/meta.mjs +62 -0
  26. package/build/meta.mjs.map +1 -0
  27. package/build/{cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.types.d.ts → payments-mcp-v1-wix-payments-account-wix-payments-account.universal-Bz-F3Pf8.d.mts} +6 -4
  28. package/build/{internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.types.d.ts → payments-mcp-v1-wix-payments-account-wix-payments-account.universal-Bz-F3Pf8.d.ts} +6 -4
  29. package/package.json +13 -12
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.context.d.ts +0 -4
  40. package/build/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.context.js +0 -7
  41. package/build/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.context.js.map +0 -1
  42. package/build/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.d.ts +0 -20
  43. package/build/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.js +0 -58
  44. package/build/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.js.map +0 -1
  45. package/build/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.d.ts +0 -13
  46. package/build/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.js +0 -47
  47. package/build/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.js.map +0 -1
  48. package/build/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.public.js +0 -12
  49. package/build/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.public.js.map +0 -1
  50. package/build/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.types.js +0 -3
  51. package/build/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.types.js.map +0 -1
  52. package/build/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.universal.d.ts +0 -66
  53. package/build/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.universal.js +0 -82
  54. package/build/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.universal.js.map +0 -1
  55. package/build/es/index.d.ts +0 -1
  56. package/build/es/index.js +0 -2
  57. package/build/es/index.js.map +0 -1
  58. package/build/es/index.typings.d.ts +0 -1
  59. package/build/es/index.typings.js +0 -2
  60. package/build/es/index.typings.js.map +0 -1
  61. package/build/es/meta.d.ts +0 -1
  62. package/build/es/meta.js +0 -2
  63. package/build/es/meta.js.map +0 -1
  64. package/build/es/package.json +0 -3
  65. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.context.d.ts +0 -4
  66. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.context.js +0 -4
  67. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.context.js.map +0 -1
  68. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.d.ts +0 -20
  69. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.js +0 -54
  70. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.js.map +0 -1
  71. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.d.ts +0 -13
  72. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.js +0 -20
  73. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.js.map +0 -1
  74. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.public.js +0 -8
  75. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.public.js.map +0 -1
  76. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.types.js +0 -2
  77. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.types.js.map +0 -1
  78. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.universal.d.ts +0 -66
  79. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.universal.js +0 -55
  80. package/build/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.universal.js.map +0 -1
  81. package/build/internal/cjs/index.d.ts +0 -1
  82. package/build/internal/cjs/index.js +0 -18
  83. package/build/internal/cjs/index.js.map +0 -1
  84. package/build/internal/cjs/index.typings.d.ts +0 -1
  85. package/build/internal/cjs/index.typings.js +0 -18
  86. package/build/internal/cjs/index.typings.js.map +0 -1
  87. package/build/internal/cjs/meta.d.ts +0 -1
  88. package/build/internal/cjs/meta.js +0 -18
  89. package/build/internal/cjs/meta.js.map +0 -1
  90. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.context.d.ts +0 -4
  91. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.context.js +0 -7
  92. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.context.js.map +0 -1
  93. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.d.ts +0 -20
  94. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.js +0 -58
  95. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.js.map +0 -1
  96. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.d.ts +0 -13
  97. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.js +0 -47
  98. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.js.map +0 -1
  99. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.public.js +0 -12
  100. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.public.js.map +0 -1
  101. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.types.js +0 -3
  102. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.types.js.map +0 -1
  103. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.universal.d.ts +0 -66
  104. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.universal.js +0 -82
  105. package/build/internal/cjs/src/payments-mcp-v1-wix-payments-account-wix-payments-account.universal.js.map +0 -1
  106. package/build/internal/es/index.d.ts +0 -1
  107. package/build/internal/es/index.js +0 -2
  108. package/build/internal/es/index.js.map +0 -1
  109. package/build/internal/es/index.typings.d.ts +0 -1
  110. package/build/internal/es/index.typings.js +0 -2
  111. package/build/internal/es/index.typings.js.map +0 -1
  112. package/build/internal/es/meta.d.ts +0 -1
  113. package/build/internal/es/meta.js +0 -2
  114. package/build/internal/es/meta.js.map +0 -1
  115. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.context.d.ts +0 -4
  116. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.context.js +0 -4
  117. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.context.js.map +0 -1
  118. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.d.ts +0 -20
  119. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.js +0 -54
  120. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.js.map +0 -1
  121. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.d.ts +0 -13
  122. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.js +0 -20
  123. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.js.map +0 -1
  124. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.public.js +0 -8
  125. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.public.js.map +0 -1
  126. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.types.js +0 -2
  127. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.types.js.map +0 -1
  128. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.universal.d.ts +0 -66
  129. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.universal.js +0 -55
  130. package/build/internal/es/src/payments-mcp-v1-wix-payments-account-wix-payments-account.universal.js.map +0 -1
@@ -0,0 +1,51 @@
1
+ import { a as ConnectWixPaymentsAccountRequest$1, C as ConnectWixPaymentsAccountResponse$1 } from './payments-mcp-v1-wix-payments-account-wix-payments-account.universal-Bz-F3Pf8.mjs';
2
+
3
+ /** An account that enables a Wix site to process customer payments. */
4
+ interface WixPaymentsAccount {
5
+ /**
6
+ * ID of the Wix Payments account.
7
+ * @format GUID
8
+ * @readonly
9
+ */
10
+ id?: string | null;
11
+ /**
12
+ * First name of the Wix Payments account owner.
13
+ * @maxLength 500
14
+ */
15
+ firstName?: string | null;
16
+ /**
17
+ * Last name of the Wix Payments account owner.
18
+ * @maxLength 500
19
+ */
20
+ lastName?: string | null;
21
+ /**
22
+ * Whether the account owner has accepted the
23
+ * [Wix Payments Terms of Service](https://www.wix.com/about/terms-of-payments).
24
+ * The account owner must accept these terms for the account to be created
25
+ * successfully. If the terms aren't accepted, the Connect Wix Payments Account
26
+ * call fails.
27
+ */
28
+ tosAccepted?: boolean | null;
29
+ }
30
+ interface ConnectWixPaymentsAccountRequest {
31
+ /** Wix Payments account to connect to the site. */
32
+ account: WixPaymentsAccount;
33
+ }
34
+ interface ConnectWixPaymentsAccountResponse {
35
+ /** Connected Wix Payments account. */
36
+ account?: WixPaymentsAccount;
37
+ }
38
+
39
+ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
40
+ getUrl: (context: any) => string;
41
+ httpMethod: K;
42
+ path: string;
43
+ pathParams: M;
44
+ __requestType: T;
45
+ __originalRequestType: S;
46
+ __responseType: Q;
47
+ __originalResponseType: R;
48
+ };
49
+ declare function connectWixPaymentsAccount(): __PublicMethodMetaInfo<'POST', {}, ConnectWixPaymentsAccountRequest$1, ConnectWixPaymentsAccountRequest, ConnectWixPaymentsAccountResponse$1, ConnectWixPaymentsAccountResponse>;
50
+
51
+ export { type __PublicMethodMetaInfo, connectWixPaymentsAccount };
@@ -0,0 +1,51 @@
1
+ import { a as ConnectWixPaymentsAccountRequest$1, C as ConnectWixPaymentsAccountResponse$1 } from './payments-mcp-v1-wix-payments-account-wix-payments-account.universal-Bz-F3Pf8.js';
2
+
3
+ /** An account that enables a Wix site to process customer payments. */
4
+ interface WixPaymentsAccount {
5
+ /**
6
+ * ID of the Wix Payments account.
7
+ * @format GUID
8
+ * @readonly
9
+ */
10
+ id?: string | null;
11
+ /**
12
+ * First name of the Wix Payments account owner.
13
+ * @maxLength 500
14
+ */
15
+ firstName?: string | null;
16
+ /**
17
+ * Last name of the Wix Payments account owner.
18
+ * @maxLength 500
19
+ */
20
+ lastName?: string | null;
21
+ /**
22
+ * Whether the account owner has accepted the
23
+ * [Wix Payments Terms of Service](https://www.wix.com/about/terms-of-payments).
24
+ * The account owner must accept these terms for the account to be created
25
+ * successfully. If the terms aren't accepted, the Connect Wix Payments Account
26
+ * call fails.
27
+ */
28
+ tosAccepted?: boolean | null;
29
+ }
30
+ interface ConnectWixPaymentsAccountRequest {
31
+ /** Wix Payments account to connect to the site. */
32
+ account: WixPaymentsAccount;
33
+ }
34
+ interface ConnectWixPaymentsAccountResponse {
35
+ /** Connected Wix Payments account. */
36
+ account?: WixPaymentsAccount;
37
+ }
38
+
39
+ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
40
+ getUrl: (context: any) => string;
41
+ httpMethod: K;
42
+ path: string;
43
+ pathParams: M;
44
+ __requestType: T;
45
+ __originalRequestType: S;
46
+ __responseType: Q;
47
+ __originalResponseType: R;
48
+ };
49
+ declare function connectWixPaymentsAccount(): __PublicMethodMetaInfo<'POST', {}, ConnectWixPaymentsAccountRequest$1, ConnectWixPaymentsAccountRequest, ConnectWixPaymentsAccountResponse$1, ConnectWixPaymentsAccountResponse>;
50
+
51
+ export { type __PublicMethodMetaInfo, connectWixPaymentsAccount };
@@ -0,0 +1,89 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // meta.ts
21
+ var meta_exports = {};
22
+ __export(meta_exports, {
23
+ connectWixPaymentsAccount: () => connectWixPaymentsAccount2
24
+ });
25
+ module.exports = __toCommonJS(meta_exports);
26
+
27
+ // src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.ts
28
+ var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
29
+ function resolveWixPaymentsMcpV1WixPaymentsAccountServiceUrl(opts) {
30
+ const domainToMappings = {
31
+ "www.wixapis.com": [
32
+ {
33
+ srcPath: "/payments/v1/wix-payments-account",
34
+ destPath: "/v1/wix-payments-account"
35
+ },
36
+ {
37
+ srcPath: "/payments/mcp/v1/wix-payments-account",
38
+ destPath: "/v1/wix-payments-account"
39
+ }
40
+ ]
41
+ };
42
+ return (0, import_rest_modules.resolveUrl)(Object.assign(opts, { domainToMappings }));
43
+ }
44
+ var PACKAGE_NAME = "@wix/auto_sdk_payments_wix-payments-account";
45
+ function connectWixPaymentsAccount(payload) {
46
+ function __connectWixPaymentsAccount({ host }) {
47
+ const metadata = {
48
+ entityFqdn: "wix.payments.mcp.v1.wix_payments_account",
49
+ method: "POST",
50
+ methodFqn: "wix.payments.mcp.v1.WixPaymentsAccountService.ConnectWixPaymentsAccount",
51
+ packageName: PACKAGE_NAME,
52
+ url: resolveWixPaymentsMcpV1WixPaymentsAccountServiceUrl({
53
+ protoPath: "/v1/wix-payments-account/connect",
54
+ data: payload,
55
+ host
56
+ }),
57
+ data: payload
58
+ };
59
+ return metadata;
60
+ }
61
+ return __connectWixPaymentsAccount;
62
+ }
63
+
64
+ // src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.ts
65
+ function connectWixPaymentsAccount2() {
66
+ const payload = {};
67
+ const getRequestOptions = connectWixPaymentsAccount(
68
+ payload
69
+ );
70
+ const getUrl = (context) => {
71
+ const { url } = getRequestOptions(context);
72
+ return url;
73
+ };
74
+ return {
75
+ getUrl,
76
+ httpMethod: "POST",
77
+ path: "/v1/wix-payments-account/connect",
78
+ pathParams: {},
79
+ __requestType: null,
80
+ __originalRequestType: null,
81
+ __responseType: null,
82
+ __originalResponseType: null
83
+ };
84
+ }
85
+ // Annotate the CommonJS export names for ESM import in node:
86
+ 0 && (module.exports = {
87
+ connectWixPaymentsAccount
88
+ });
89
+ //# sourceMappingURL=meta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../meta.ts","../../src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.ts","../../src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.ts"],"sourcesContent":["export * from './src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.js';\n","import { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixPaymentsMcpV1WixPaymentsAccountServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www.wixapis.com': [\n {\n srcPath: '/payments/v1/wix-payments-account',\n destPath: '/v1/wix-payments-account',\n },\n {\n srcPath: '/payments/mcp/v1/wix-payments-account',\n destPath: '/v1/wix-payments-account',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_payments_wix-payments-account';\n\n/**\n * Connects a Wix Payments account to the site.\n *\n *\n * The call fails if:\n * - The site's location\n * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/locations/introduction))\n * is outside the USA.\n * - A Wix Payments account is already connected to the site.\n * - You don't specify `{\"tosAccepted\": true}`.\n *\n * The connected Wix Payments account has the following limitations, which site\n * owners can manage in their dashboard:\n *\n * - By default, customers can only pay via credit card, Apple Pay, or Google Pay.\n * - To receive payments, site owners must complete onboarding to their Wix\n * Payments account in the site's dashboard.\n */\nexport function connectWixPaymentsAccount(\n payload: object\n): RequestOptionsFactory<any> {\n function __connectWixPaymentsAccount({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.payments.mcp.v1.wix_payments_account',\n method: 'POST' as any,\n methodFqn:\n 'wix.payments.mcp.v1.WixPaymentsAccountService.ConnectWixPaymentsAccount',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsMcpV1WixPaymentsAccountServiceUrl({\n protoPath: '/v1/wix-payments-account/connect',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __connectWixPaymentsAccount;\n}\n","import * as ambassadorWixPaymentsMcpV1WixPaymentsAccount from './payments-mcp-v1-wix-payments-account-wix-payments-account.http.js';\nimport * as ambassadorWixPaymentsMcpV1WixPaymentsAccountTypes from './payments-mcp-v1-wix-payments-account-wix-payments-account.types.js';\nimport * as ambassadorWixPaymentsMcpV1WixPaymentsAccountUniversalTypes from './payments-mcp-v1-wix-payments-account-wix-payments-account.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function connectWixPaymentsAccount(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPaymentsMcpV1WixPaymentsAccountUniversalTypes.ConnectWixPaymentsAccountRequest,\n ambassadorWixPaymentsMcpV1WixPaymentsAccountTypes.ConnectWixPaymentsAccountRequest,\n ambassadorWixPaymentsMcpV1WixPaymentsAccountUniversalTypes.ConnectWixPaymentsAccountResponse,\n ambassadorWixPaymentsMcpV1WixPaymentsAccountTypes.ConnectWixPaymentsAccountResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsMcpV1WixPaymentsAccount.connectWixPaymentsAccount(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/wix-payments-account/connect',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,mCAAAA;AAAA;AAAA;;;ACAA,0BAA2B;AAI3B,SAAS,oDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,aAAO,gCAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAoBd,SAAS,0BACd,SAC4B;AAC5B,WAAS,4BAA4B,EAAE,KAAK,GAAQ;AAClD,UAAM,WAAW;AAAA,MACf,YAAY;AAAA,MACZ,QAAQ;AAAA,MACR,WACE;AAAA,MACF,aAAa;AAAA,MACb,KAAK,oDAAoD;AAAA,QACvD,WAAW;AAAA,QACX,MAAM;AAAA,QACN;AAAA,MACF,CAAC;AAAA,MACD,MAAM;AAAA,IACR;AAEA,WAAO;AAAA,EACT;AAEA,SAAO;AACT;;;AC3CO,SAASC,6BAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACyC;AAAA,IAC3C;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["connectWixPaymentsAccount","connectWixPaymentsAccount"]}
@@ -0,0 +1,62 @@
1
+ // src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.ts
2
+ import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
3
+ function resolveWixPaymentsMcpV1WixPaymentsAccountServiceUrl(opts) {
4
+ const domainToMappings = {
5
+ "www.wixapis.com": [
6
+ {
7
+ srcPath: "/payments/v1/wix-payments-account",
8
+ destPath: "/v1/wix-payments-account"
9
+ },
10
+ {
11
+ srcPath: "/payments/mcp/v1/wix-payments-account",
12
+ destPath: "/v1/wix-payments-account"
13
+ }
14
+ ]
15
+ };
16
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
17
+ }
18
+ var PACKAGE_NAME = "@wix/auto_sdk_payments_wix-payments-account";
19
+ function connectWixPaymentsAccount(payload) {
20
+ function __connectWixPaymentsAccount({ host }) {
21
+ const metadata = {
22
+ entityFqdn: "wix.payments.mcp.v1.wix_payments_account",
23
+ method: "POST",
24
+ methodFqn: "wix.payments.mcp.v1.WixPaymentsAccountService.ConnectWixPaymentsAccount",
25
+ packageName: PACKAGE_NAME,
26
+ url: resolveWixPaymentsMcpV1WixPaymentsAccountServiceUrl({
27
+ protoPath: "/v1/wix-payments-account/connect",
28
+ data: payload,
29
+ host
30
+ }),
31
+ data: payload
32
+ };
33
+ return metadata;
34
+ }
35
+ return __connectWixPaymentsAccount;
36
+ }
37
+
38
+ // src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.ts
39
+ function connectWixPaymentsAccount2() {
40
+ const payload = {};
41
+ const getRequestOptions = connectWixPaymentsAccount(
42
+ payload
43
+ );
44
+ const getUrl = (context) => {
45
+ const { url } = getRequestOptions(context);
46
+ return url;
47
+ };
48
+ return {
49
+ getUrl,
50
+ httpMethod: "POST",
51
+ path: "/v1/wix-payments-account/connect",
52
+ pathParams: {},
53
+ __requestType: null,
54
+ __originalRequestType: null,
55
+ __responseType: null,
56
+ __originalResponseType: null
57
+ };
58
+ }
59
+ export {
60
+ connectWixPaymentsAccount2 as connectWixPaymentsAccount
61
+ };
62
+ //# sourceMappingURL=meta.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.ts","../../src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.ts"],"sourcesContent":["import { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixPaymentsMcpV1WixPaymentsAccountServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www.wixapis.com': [\n {\n srcPath: '/payments/v1/wix-payments-account',\n destPath: '/v1/wix-payments-account',\n },\n {\n srcPath: '/payments/mcp/v1/wix-payments-account',\n destPath: '/v1/wix-payments-account',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_payments_wix-payments-account';\n\n/**\n * Connects a Wix Payments account to the site.\n *\n *\n * The call fails if:\n * - The site's location\n * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/locations/introduction))\n * is outside the USA.\n * - A Wix Payments account is already connected to the site.\n * - You don't specify `{\"tosAccepted\": true}`.\n *\n * The connected Wix Payments account has the following limitations, which site\n * owners can manage in their dashboard:\n *\n * - By default, customers can only pay via credit card, Apple Pay, or Google Pay.\n * - To receive payments, site owners must complete onboarding to their Wix\n * Payments account in the site's dashboard.\n */\nexport function connectWixPaymentsAccount(\n payload: object\n): RequestOptionsFactory<any> {\n function __connectWixPaymentsAccount({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.payments.mcp.v1.wix_payments_account',\n method: 'POST' as any,\n methodFqn:\n 'wix.payments.mcp.v1.WixPaymentsAccountService.ConnectWixPaymentsAccount',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsMcpV1WixPaymentsAccountServiceUrl({\n protoPath: '/v1/wix-payments-account/connect',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __connectWixPaymentsAccount;\n}\n","import * as ambassadorWixPaymentsMcpV1WixPaymentsAccount from './payments-mcp-v1-wix-payments-account-wix-payments-account.http.js';\nimport * as ambassadorWixPaymentsMcpV1WixPaymentsAccountTypes from './payments-mcp-v1-wix-payments-account-wix-payments-account.types.js';\nimport * as ambassadorWixPaymentsMcpV1WixPaymentsAccountUniversalTypes from './payments-mcp-v1-wix-payments-account-wix-payments-account.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function connectWixPaymentsAccount(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPaymentsMcpV1WixPaymentsAccountUniversalTypes.ConnectWixPaymentsAccountRequest,\n ambassadorWixPaymentsMcpV1WixPaymentsAccountTypes.ConnectWixPaymentsAccountRequest,\n ambassadorWixPaymentsMcpV1WixPaymentsAccountUniversalTypes.ConnectWixPaymentsAccountResponse,\n ambassadorWixPaymentsMcpV1WixPaymentsAccountTypes.ConnectWixPaymentsAccountResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsMcpV1WixPaymentsAccount.connectWixPaymentsAccount(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/wix-payments-account/connect',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";AAAA,SAAS,kBAAkB;AAI3B,SAAS,oDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,SAAO,WAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAoBd,SAAS,0BACd,SAC4B;AAC5B,WAAS,4BAA4B,EAAE,KAAK,GAAQ;AAClD,UAAM,WAAW;AAAA,MACf,YAAY;AAAA,MACZ,QAAQ;AAAA,MACR,WACE;AAAA,MACF,aAAa;AAAA,MACb,KAAK,oDAAoD;AAAA,QACvD,WAAW;AAAA,QACX,MAAM;AAAA,QACN;AAAA,MACF,CAAC;AAAA,MACD,MAAM;AAAA,IACR;AAEA,WAAO;AAAA,EACT;AAEA,SAAO;AACT;;;AC3CO,SAASA,6BAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACyC;AAAA,IAC3C;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["connectWixPaymentsAccount"]}
@@ -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
@@ -25,11 +25,13 @@ export interface WixPaymentsAccount {
25
25
  */
26
26
  tosAccepted?: boolean | null;
27
27
  }
28
- export interface ConnectWixPaymentsAccountRequest {
28
+ interface ConnectWixPaymentsAccountRequest {
29
29
  /** Wix Payments account to connect to the site. */
30
30
  account: WixPaymentsAccount;
31
31
  }
32
- export interface ConnectWixPaymentsAccountResponse {
32
+ interface ConnectWixPaymentsAccountResponse {
33
33
  /** Connected Wix Payments account. */
34
34
  account?: WixPaymentsAccount;
35
35
  }
36
+
37
+ 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
@@ -25,11 +25,13 @@ export interface WixPaymentsAccount {
25
25
  */
26
26
  tosAccepted?: boolean | null;
27
27
  }
28
- export interface ConnectWixPaymentsAccountRequest {
28
+ interface ConnectWixPaymentsAccountRequest {
29
29
  /** Wix Payments account to connect to the site. */
30
30
  account: WixPaymentsAccount;
31
31
  }
32
- export interface ConnectWixPaymentsAccountResponse {
32
+ interface ConnectWixPaymentsAccountResponse {
33
33
  /** Connected Wix Payments account. */
34
34
  account?: WixPaymentsAccount;
35
35
  }
36
+
37
+ export type { ConnectWixPaymentsAccountResponse as C, WixPaymentsAccount as W, ConnectWixPaymentsAccountRequest as a };
@@ -0,0 +1,51 @@
1
+ import { a as ConnectWixPaymentsAccountRequest$1, C as ConnectWixPaymentsAccountResponse$1 } from './payments-mcp-v1-wix-payments-account-wix-payments-account.universal-Bz-F3Pf8.mjs';
2
+
3
+ /** An account that enables a Wix site to process customer payments. */
4
+ interface WixPaymentsAccount {
5
+ /**
6
+ * ID of the Wix Payments account.
7
+ * @format GUID
8
+ * @readonly
9
+ */
10
+ id?: string | null;
11
+ /**
12
+ * First name of the Wix Payments account owner.
13
+ * @maxLength 500
14
+ */
15
+ firstName?: string | null;
16
+ /**
17
+ * Last name of the Wix Payments account owner.
18
+ * @maxLength 500
19
+ */
20
+ lastName?: string | null;
21
+ /**
22
+ * Whether the account owner has accepted the
23
+ * [Wix Payments Terms of Service](https://www.wix.com/about/terms-of-payments).
24
+ * The account owner must accept these terms for the account to be created
25
+ * successfully. If the terms aren't accepted, the Connect Wix Payments Account
26
+ * call fails.
27
+ */
28
+ tosAccepted?: boolean | null;
29
+ }
30
+ interface ConnectWixPaymentsAccountRequest {
31
+ /** Wix Payments account to connect to the site. */
32
+ account: WixPaymentsAccount;
33
+ }
34
+ interface ConnectWixPaymentsAccountResponse {
35
+ /** Connected Wix Payments account. */
36
+ account?: WixPaymentsAccount;
37
+ }
38
+
39
+ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
40
+ getUrl: (context: any) => string;
41
+ httpMethod: K;
42
+ path: string;
43
+ pathParams: M;
44
+ __requestType: T;
45
+ __originalRequestType: S;
46
+ __responseType: Q;
47
+ __originalResponseType: R;
48
+ };
49
+ declare function connectWixPaymentsAccount(): __PublicMethodMetaInfo<'POST', {}, ConnectWixPaymentsAccountRequest$1, ConnectWixPaymentsAccountRequest, ConnectWixPaymentsAccountResponse$1, ConnectWixPaymentsAccountResponse>;
50
+
51
+ export { type __PublicMethodMetaInfo, connectWixPaymentsAccount };
@@ -0,0 +1,51 @@
1
+ import { a as ConnectWixPaymentsAccountRequest$1, C as ConnectWixPaymentsAccountResponse$1 } from './payments-mcp-v1-wix-payments-account-wix-payments-account.universal-Bz-F3Pf8.js';
2
+
3
+ /** An account that enables a Wix site to process customer payments. */
4
+ interface WixPaymentsAccount {
5
+ /**
6
+ * ID of the Wix Payments account.
7
+ * @format GUID
8
+ * @readonly
9
+ */
10
+ id?: string | null;
11
+ /**
12
+ * First name of the Wix Payments account owner.
13
+ * @maxLength 500
14
+ */
15
+ firstName?: string | null;
16
+ /**
17
+ * Last name of the Wix Payments account owner.
18
+ * @maxLength 500
19
+ */
20
+ lastName?: string | null;
21
+ /**
22
+ * Whether the account owner has accepted the
23
+ * [Wix Payments Terms of Service](https://www.wix.com/about/terms-of-payments).
24
+ * The account owner must accept these terms for the account to be created
25
+ * successfully. If the terms aren't accepted, the Connect Wix Payments Account
26
+ * call fails.
27
+ */
28
+ tosAccepted?: boolean | null;
29
+ }
30
+ interface ConnectWixPaymentsAccountRequest {
31
+ /** Wix Payments account to connect to the site. */
32
+ account: WixPaymentsAccount;
33
+ }
34
+ interface ConnectWixPaymentsAccountResponse {
35
+ /** Connected Wix Payments account. */
36
+ account?: WixPaymentsAccount;
37
+ }
38
+
39
+ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
40
+ getUrl: (context: any) => string;
41
+ httpMethod: K;
42
+ path: string;
43
+ pathParams: M;
44
+ __requestType: T;
45
+ __originalRequestType: S;
46
+ __responseType: Q;
47
+ __originalResponseType: R;
48
+ };
49
+ declare function connectWixPaymentsAccount(): __PublicMethodMetaInfo<'POST', {}, ConnectWixPaymentsAccountRequest$1, ConnectWixPaymentsAccountRequest, ConnectWixPaymentsAccountResponse$1, ConnectWixPaymentsAccountResponse>;
50
+
51
+ export { type __PublicMethodMetaInfo, connectWixPaymentsAccount };
package/build/meta.js ADDED
@@ -0,0 +1,89 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // meta.ts
21
+ var meta_exports = {};
22
+ __export(meta_exports, {
23
+ connectWixPaymentsAccount: () => connectWixPaymentsAccount2
24
+ });
25
+ module.exports = __toCommonJS(meta_exports);
26
+
27
+ // src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.ts
28
+ var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
29
+ function resolveWixPaymentsMcpV1WixPaymentsAccountServiceUrl(opts) {
30
+ const domainToMappings = {
31
+ "www.wixapis.com": [
32
+ {
33
+ srcPath: "/payments/v1/wix-payments-account",
34
+ destPath: "/v1/wix-payments-account"
35
+ },
36
+ {
37
+ srcPath: "/payments/mcp/v1/wix-payments-account",
38
+ destPath: "/v1/wix-payments-account"
39
+ }
40
+ ]
41
+ };
42
+ return (0, import_rest_modules.resolveUrl)(Object.assign(opts, { domainToMappings }));
43
+ }
44
+ var PACKAGE_NAME = "@wix/auto_sdk_payments_wix-payments-account";
45
+ function connectWixPaymentsAccount(payload) {
46
+ function __connectWixPaymentsAccount({ host }) {
47
+ const metadata = {
48
+ entityFqdn: "wix.payments.mcp.v1.wix_payments_account",
49
+ method: "POST",
50
+ methodFqn: "wix.payments.mcp.v1.WixPaymentsAccountService.ConnectWixPaymentsAccount",
51
+ packageName: PACKAGE_NAME,
52
+ url: resolveWixPaymentsMcpV1WixPaymentsAccountServiceUrl({
53
+ protoPath: "/v1/wix-payments-account/connect",
54
+ data: payload,
55
+ host
56
+ }),
57
+ data: payload
58
+ };
59
+ return metadata;
60
+ }
61
+ return __connectWixPaymentsAccount;
62
+ }
63
+
64
+ // src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.ts
65
+ function connectWixPaymentsAccount2() {
66
+ const payload = {};
67
+ const getRequestOptions = connectWixPaymentsAccount(
68
+ payload
69
+ );
70
+ const getUrl = (context) => {
71
+ const { url } = getRequestOptions(context);
72
+ return url;
73
+ };
74
+ return {
75
+ getUrl,
76
+ httpMethod: "POST",
77
+ path: "/v1/wix-payments-account/connect",
78
+ pathParams: {},
79
+ __requestType: null,
80
+ __originalRequestType: null,
81
+ __responseType: null,
82
+ __originalResponseType: null
83
+ };
84
+ }
85
+ // Annotate the CommonJS export names for ESM import in node:
86
+ 0 && (module.exports = {
87
+ connectWixPaymentsAccount
88
+ });
89
+ //# sourceMappingURL=meta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../meta.ts","../src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.ts","../src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.ts"],"sourcesContent":["export * from './src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.js';\n","import { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixPaymentsMcpV1WixPaymentsAccountServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www.wixapis.com': [\n {\n srcPath: '/payments/v1/wix-payments-account',\n destPath: '/v1/wix-payments-account',\n },\n {\n srcPath: '/payments/mcp/v1/wix-payments-account',\n destPath: '/v1/wix-payments-account',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_payments_wix-payments-account';\n\n/**\n * Connects a Wix Payments account to the site.\n *\n *\n * The call fails if:\n * - The site's location\n * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/locations/introduction))\n * is outside the USA.\n * - A Wix Payments account is already connected to the site.\n * - You don't specify `{\"tosAccepted\": true}`.\n *\n * The connected Wix Payments account has the following limitations, which site\n * owners can manage in their dashboard:\n *\n * - By default, customers can only pay via credit card, Apple Pay, or Google Pay.\n * - To receive payments, site owners must complete onboarding to their Wix\n * Payments account in the site's dashboard.\n */\nexport function connectWixPaymentsAccount(\n payload: object\n): RequestOptionsFactory<any> {\n function __connectWixPaymentsAccount({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.payments.mcp.v1.wix_payments_account',\n method: 'POST' as any,\n methodFqn:\n 'wix.payments.mcp.v1.WixPaymentsAccountService.ConnectWixPaymentsAccount',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsMcpV1WixPaymentsAccountServiceUrl({\n protoPath: '/v1/wix-payments-account/connect',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __connectWixPaymentsAccount;\n}\n","import * as ambassadorWixPaymentsMcpV1WixPaymentsAccount from './payments-mcp-v1-wix-payments-account-wix-payments-account.http.js';\nimport * as ambassadorWixPaymentsMcpV1WixPaymentsAccountTypes from './payments-mcp-v1-wix-payments-account-wix-payments-account.types.js';\nimport * as ambassadorWixPaymentsMcpV1WixPaymentsAccountUniversalTypes from './payments-mcp-v1-wix-payments-account-wix-payments-account.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function connectWixPaymentsAccount(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPaymentsMcpV1WixPaymentsAccountUniversalTypes.ConnectWixPaymentsAccountRequest,\n ambassadorWixPaymentsMcpV1WixPaymentsAccountTypes.ConnectWixPaymentsAccountRequest,\n ambassadorWixPaymentsMcpV1WixPaymentsAccountUniversalTypes.ConnectWixPaymentsAccountResponse,\n ambassadorWixPaymentsMcpV1WixPaymentsAccountTypes.ConnectWixPaymentsAccountResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsMcpV1WixPaymentsAccount.connectWixPaymentsAccount(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/wix-payments-account/connect',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,mCAAAA;AAAA;AAAA;;;ACAA,0BAA2B;AAI3B,SAAS,oDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,aAAO,gCAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAoBd,SAAS,0BACd,SAC4B;AAC5B,WAAS,4BAA4B,EAAE,KAAK,GAAQ;AAClD,UAAM,WAAW;AAAA,MACf,YAAY;AAAA,MACZ,QAAQ;AAAA,MACR,WACE;AAAA,MACF,aAAa;AAAA,MACb,KAAK,oDAAoD;AAAA,QACvD,WAAW;AAAA,QACX,MAAM;AAAA,QACN;AAAA,MACF,CAAC;AAAA,MACD,MAAM;AAAA,IACR;AAEA,WAAO;AAAA,EACT;AAEA,SAAO;AACT;;;AC3CO,SAASC,6BAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACyC;AAAA,IAC3C;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["connectWixPaymentsAccount","connectWixPaymentsAccount"]}
package/build/meta.mjs ADDED
@@ -0,0 +1,62 @@
1
+ // src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.ts
2
+ import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
3
+ function resolveWixPaymentsMcpV1WixPaymentsAccountServiceUrl(opts) {
4
+ const domainToMappings = {
5
+ "www.wixapis.com": [
6
+ {
7
+ srcPath: "/payments/v1/wix-payments-account",
8
+ destPath: "/v1/wix-payments-account"
9
+ },
10
+ {
11
+ srcPath: "/payments/mcp/v1/wix-payments-account",
12
+ destPath: "/v1/wix-payments-account"
13
+ }
14
+ ]
15
+ };
16
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
17
+ }
18
+ var PACKAGE_NAME = "@wix/auto_sdk_payments_wix-payments-account";
19
+ function connectWixPaymentsAccount(payload) {
20
+ function __connectWixPaymentsAccount({ host }) {
21
+ const metadata = {
22
+ entityFqdn: "wix.payments.mcp.v1.wix_payments_account",
23
+ method: "POST",
24
+ methodFqn: "wix.payments.mcp.v1.WixPaymentsAccountService.ConnectWixPaymentsAccount",
25
+ packageName: PACKAGE_NAME,
26
+ url: resolveWixPaymentsMcpV1WixPaymentsAccountServiceUrl({
27
+ protoPath: "/v1/wix-payments-account/connect",
28
+ data: payload,
29
+ host
30
+ }),
31
+ data: payload
32
+ };
33
+ return metadata;
34
+ }
35
+ return __connectWixPaymentsAccount;
36
+ }
37
+
38
+ // src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.ts
39
+ function connectWixPaymentsAccount2() {
40
+ const payload = {};
41
+ const getRequestOptions = connectWixPaymentsAccount(
42
+ payload
43
+ );
44
+ const getUrl = (context) => {
45
+ const { url } = getRequestOptions(context);
46
+ return url;
47
+ };
48
+ return {
49
+ getUrl,
50
+ httpMethod: "POST",
51
+ path: "/v1/wix-payments-account/connect",
52
+ pathParams: {},
53
+ __requestType: null,
54
+ __originalRequestType: null,
55
+ __responseType: null,
56
+ __originalResponseType: null
57
+ };
58
+ }
59
+ export {
60
+ connectWixPaymentsAccount2 as connectWixPaymentsAccount
61
+ };
62
+ //# sourceMappingURL=meta.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/payments-mcp-v1-wix-payments-account-wix-payments-account.http.ts","../src/payments-mcp-v1-wix-payments-account-wix-payments-account.meta.ts"],"sourcesContent":["import { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixPaymentsMcpV1WixPaymentsAccountServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www.wixapis.com': [\n {\n srcPath: '/payments/v1/wix-payments-account',\n destPath: '/v1/wix-payments-account',\n },\n {\n srcPath: '/payments/mcp/v1/wix-payments-account',\n destPath: '/v1/wix-payments-account',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_payments_wix-payments-account';\n\n/**\n * Connects a Wix Payments account to the site.\n *\n *\n * The call fails if:\n * - The site's location\n * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/locations/introduction))\n * is outside the USA.\n * - A Wix Payments account is already connected to the site.\n * - You don't specify `{\"tosAccepted\": true}`.\n *\n * The connected Wix Payments account has the following limitations, which site\n * owners can manage in their dashboard:\n *\n * - By default, customers can only pay via credit card, Apple Pay, or Google Pay.\n * - To receive payments, site owners must complete onboarding to their Wix\n * Payments account in the site's dashboard.\n */\nexport function connectWixPaymentsAccount(\n payload: object\n): RequestOptionsFactory<any> {\n function __connectWixPaymentsAccount({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.payments.mcp.v1.wix_payments_account',\n method: 'POST' as any,\n methodFqn:\n 'wix.payments.mcp.v1.WixPaymentsAccountService.ConnectWixPaymentsAccount',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsMcpV1WixPaymentsAccountServiceUrl({\n protoPath: '/v1/wix-payments-account/connect',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __connectWixPaymentsAccount;\n}\n","import * as ambassadorWixPaymentsMcpV1WixPaymentsAccount from './payments-mcp-v1-wix-payments-account-wix-payments-account.http.js';\nimport * as ambassadorWixPaymentsMcpV1WixPaymentsAccountTypes from './payments-mcp-v1-wix-payments-account-wix-payments-account.types.js';\nimport * as ambassadorWixPaymentsMcpV1WixPaymentsAccountUniversalTypes from './payments-mcp-v1-wix-payments-account-wix-payments-account.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function connectWixPaymentsAccount(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPaymentsMcpV1WixPaymentsAccountUniversalTypes.ConnectWixPaymentsAccountRequest,\n ambassadorWixPaymentsMcpV1WixPaymentsAccountTypes.ConnectWixPaymentsAccountRequest,\n ambassadorWixPaymentsMcpV1WixPaymentsAccountUniversalTypes.ConnectWixPaymentsAccountResponse,\n ambassadorWixPaymentsMcpV1WixPaymentsAccountTypes.ConnectWixPaymentsAccountResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsMcpV1WixPaymentsAccount.connectWixPaymentsAccount(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/wix-payments-account/connect',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";AAAA,SAAS,kBAAkB;AAI3B,SAAS,oDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,SAAO,WAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAoBd,SAAS,0BACd,SAC4B;AAC5B,WAAS,4BAA4B,EAAE,KAAK,GAAQ;AAClD,UAAM,WAAW;AAAA,MACf,YAAY;AAAA,MACZ,QAAQ;AAAA,MACR,WACE;AAAA,MACF,aAAa;AAAA,MACb,KAAK,oDAAoD;AAAA,QACvD,WAAW;AAAA,QACX,MAAM;AAAA,QACN;AAAA,MACF,CAAC;AAAA,MACD,MAAM;AAAA,IACR;AAEA,WAAO;AAAA,EACT;AAEA,SAAO;AACT;;;AC3CO,SAASA,6BAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACyC;AAAA,IAC3C;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["connectWixPaymentsAccount"]}
@@ -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
@@ -25,11 +25,13 @@ export interface WixPaymentsAccount {
25
25
  */
26
26
  tosAccepted?: boolean | null;
27
27
  }
28
- export interface ConnectWixPaymentsAccountRequest {
28
+ interface ConnectWixPaymentsAccountRequest {
29
29
  /** Wix Payments account to connect to the site. */
30
30
  account: WixPaymentsAccount;
31
31
  }
32
- export interface ConnectWixPaymentsAccountResponse {
32
+ interface ConnectWixPaymentsAccountResponse {
33
33
  /** Connected Wix Payments account. */
34
34
  account?: WixPaymentsAccount;
35
35
  }
36
+
37
+ export type { ConnectWixPaymentsAccountResponse as C, WixPaymentsAccount as W, ConnectWixPaymentsAccountRequest as a };