@gr4vy/sdk 0.18.12 → 0.18.14
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.
- package/README.md +11 -0
- package/bin/mcp-server.js +1775 -629
- package/bin/mcp-server.js.map +29 -9
- package/docs/sdks/merchantaccounts/README.md +454 -0
- package/funcs/merchantAccountsCreate.d.ts +17 -0
- package/funcs/merchantAccountsCreate.d.ts.map +1 -0
- package/funcs/merchantAccountsCreate.js +133 -0
- package/funcs/merchantAccountsCreate.js.map +1 -0
- package/funcs/merchantAccountsGet.d.ts +17 -0
- package/funcs/merchantAccountsGet.d.ts.map +1 -0
- package/funcs/merchantAccountsGet.js +137 -0
- package/funcs/merchantAccountsGet.js.map +1 -0
- package/funcs/merchantAccountsList.d.ts +20 -0
- package/funcs/merchantAccountsList.d.ts.map +1 -0
- package/funcs/merchantAccountsList.js +162 -0
- package/funcs/merchantAccountsList.js.map +1 -0
- package/funcs/merchantAccountsUpdate.d.ts +17 -0
- package/funcs/merchantAccountsUpdate.d.ts.map +1 -0
- package/funcs/merchantAccountsUpdate.js +137 -0
- package/funcs/merchantAccountsUpdate.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +9 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/merchantAccountsCreate.d.ts +10 -0
- package/mcp-server/tools/merchantAccountsCreate.d.ts.map +1 -0
- package/mcp-server/tools/merchantAccountsCreate.js +56 -0
- package/mcp-server/tools/merchantAccountsCreate.js.map +1 -0
- package/mcp-server/tools/merchantAccountsGet.d.ts +8 -0
- package/mcp-server/tools/merchantAccountsGet.d.ts.map +1 -0
- package/mcp-server/tools/merchantAccountsGet.js +54 -0
- package/mcp-server/tools/merchantAccountsGet.js.map +1 -0
- package/mcp-server/tools/merchantAccountsList.d.ts +10 -0
- package/mcp-server/tools/merchantAccountsList.d.ts.map +1 -0
- package/mcp-server/tools/merchantAccountsList.js +56 -0
- package/mcp-server/tools/merchantAccountsList.js.map +1 -0
- package/mcp-server/tools/merchantAccountsUpdate.d.ts +11 -0
- package/mcp-server/tools/merchantAccountsUpdate.d.ts.map +1 -0
- package/mcp-server/tools/merchantAccountsUpdate.js +57 -0
- package/mcp-server/tools/merchantAccountsUpdate.js.map +1 -0
- package/models/components/collectionmerchantaccount.d.ts +48 -0
- package/models/components/collectionmerchantaccount.d.ts.map +1 -0
- package/models/components/collectionmerchantaccount.js +77 -0
- package/models/components/collectionmerchantaccount.js.map +1 -0
- package/models/components/index.d.ts +4 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +4 -0
- package/models/components/index.js.map +1 -1
- package/models/components/merchantaccount.d.ts +148 -0
- package/models/components/merchantaccount.d.ts.map +1 -0
- package/models/components/merchantaccount.js +159 -0
- package/models/components/merchantaccount.js.map +1 -0
- package/models/components/merchantaccountcreate.d.ts +133 -0
- package/models/components/merchantaccountcreate.d.ts.map +1 -0
- package/models/components/merchantaccountcreate.js +149 -0
- package/models/components/merchantaccountcreate.js.map +1 -0
- package/models/components/merchantaccountupdate.d.ts +128 -0
- package/models/components/merchantaccountupdate.d.ts.map +1 -0
- package/models/components/merchantaccountupdate.js +147 -0
- package/models/components/merchantaccountupdate.js.map +1 -0
- package/models/errors/createmerchantaccount.d.ts +31 -0
- package/models/errors/createmerchantaccount.d.ts.map +1 -0
- package/models/errors/createmerchantaccount.js +66 -0
- package/models/errors/createmerchantaccount.js.map +1 -0
- package/models/errors/getmerchantaccount.d.ts +31 -0
- package/models/errors/getmerchantaccount.d.ts.map +1 -0
- package/models/errors/getmerchantaccount.js +66 -0
- package/models/errors/getmerchantaccount.js.map +1 -0
- package/models/errors/index.d.ts +4 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +4 -0
- package/models/errors/index.js.map +1 -1
- package/models/errors/listmerchantaccounts.d.ts +31 -0
- package/models/errors/listmerchantaccounts.d.ts.map +1 -0
- package/models/errors/listmerchantaccounts.js +66 -0
- package/models/errors/listmerchantaccounts.js.map +1 -0
- package/models/errors/updatemerchantaccount.d.ts +31 -0
- package/models/errors/updatemerchantaccount.d.ts.map +1 -0
- package/models/errors/updatemerchantaccount.js +66 -0
- package/models/errors/updatemerchantaccount.js.map +1 -0
- package/models/operations/createmerchantaccount.d.ts +32 -0
- package/models/operations/createmerchantaccount.d.ts.map +1 -0
- package/models/operations/createmerchantaccount.js +73 -0
- package/models/operations/createmerchantaccount.js.map +1 -0
- package/models/operations/getmerchantaccount.d.ts +29 -0
- package/models/operations/getmerchantaccount.d.ts.map +1 -0
- package/models/operations/getmerchantaccount.js +68 -0
- package/models/operations/getmerchantaccount.js.map +1 -0
- package/models/operations/index.d.ts +4 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +4 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listmerchantaccounts.d.ts +59 -0
- package/models/operations/listmerchantaccounts.d.ts.map +1 -0
- package/models/operations/listmerchantaccounts.js +100 -0
- package/models/operations/listmerchantaccounts.js.map +1 -0
- package/models/operations/updatemerchantaccount.d.ts +34 -0
- package/models/operations/updatemerchantaccount.d.ts.map +1 -0
- package/models/operations/updatemerchantaccount.js +77 -0
- package/models/operations/updatemerchantaccount.js.map +1 -0
- package/package.json +1 -1
- package/sdk/merchantaccounts.d.ts +37 -0
- package/sdk/merchantaccounts.d.ts.map +1 -0
- package/sdk/merchantaccounts.js +53 -0
- package/sdk/merchantaccounts.js.map +1 -0
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/merchantAccountsCreate.ts +243 -0
- package/src/funcs/merchantAccountsGet.ts +249 -0
- package/src/funcs/merchantAccountsList.ts +326 -0
- package/src/funcs/merchantAccountsUpdate.ts +257 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +9 -1
- package/src/mcp-server/tools/merchantAccountsCreate.ts +40 -0
- package/src/mcp-server/tools/merchantAccountsGet.ts +37 -0
- package/src/mcp-server/tools/merchantAccountsList.ts +41 -0
- package/src/mcp-server/tools/merchantAccountsUpdate.ts +42 -0
- package/src/models/components/collectionmerchantaccount.ts +107 -0
- package/src/models/components/index.ts +4 -0
- package/src/models/components/merchantaccount.ts +296 -0
- package/src/models/components/merchantaccountcreate.ts +273 -0
- package/src/models/components/merchantaccountupdate.ts +266 -0
- package/src/models/errors/createmerchantaccount.ts +107 -0
- package/src/models/errors/getmerchantaccount.ts +107 -0
- package/src/models/errors/index.ts +4 -0
- package/src/models/errors/listmerchantaccounts.ts +107 -0
- package/src/models/errors/updatemerchantaccount.ts +107 -0
- package/src/models/operations/createmerchantaccount.ts +84 -0
- package/src/models/operations/getmerchantaccount.ts +75 -0
- package/src/models/operations/index.ts +4 -0
- package/src/models/operations/listmerchantaccounts.ts +146 -0
- package/src/models/operations/updatemerchantaccount.ts +90 -0
- package/src/sdk/merchantaccounts.ts +95 -0
- package/src/sdk/sdk.ts +6 -0
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
CardScheme,
|
|
12
|
+
CardScheme$inboundSchema,
|
|
13
|
+
CardScheme$outboundSchema,
|
|
14
|
+
} from "./cardscheme.js";
|
|
15
|
+
|
|
16
|
+
export type MerchantAccountUpdate = {
|
|
17
|
+
/**
|
|
18
|
+
* Whether the Real-Time Account Updater service is enabled for this merchant account. The Account Updater service is used to update card details when cards are lost, stolen or expired. If the field is not set or if it's set to `false`, the Account Updater service doesn't get called if a payment fails with expired or invalid card details. If the field is set to `true`, the service is called. Please note that for this to work the other `account_updater_* fields` must be set as well.
|
|
19
|
+
*/
|
|
20
|
+
accountUpdaterEnabled?: boolean | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* The public key used to encrypt the request to the Real-Time Account Updater service. The Account Updater service is used to update card details when cards are lost, stolen or expired. If the field is not set or if it's set to `null`, the Account Updater service doesn't get called. If the field is set, the other `account_updater_*` fields must be set as well.
|
|
23
|
+
*/
|
|
24
|
+
accountUpdaterRequestEncryptionKey?: string | null | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* The ID of the key used to encrypt the request to the Real-Time Account Updater service. The Account Updater service is used to update card details when cards are lost, stolen or expired. If the field is not set or if it's set to `null`, the Account Updater service doesn't get called. If the field is set, the other `account_updater_*` fields must be set as well.
|
|
27
|
+
*/
|
|
28
|
+
accountUpdaterRequestEncryptionKeyId?: string | null | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* The key used to decrypt the response from the Real-Time Account Updater service. The Account Updater service is used to update card details when cards are lost, stolen or expired. If the field is not set or if it's set to `null`, the Account Updater service doesn't get called. If the field is set, the other `account_updater_*` fields must be set as well.
|
|
31
|
+
*/
|
|
32
|
+
accountUpdaterResponseDecryptionKey?: string | null | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* The ID of the key used to decrypt the request from the Real-Time Account Updater service. The Account Updater service is used to update card details when cards are lost, stolen or expired. If the field is not set or if it's set to `null`, the Account Updater service doesn't get called. If the field is set, the other `account_updater_*` fields must be set as well.
|
|
35
|
+
*/
|
|
36
|
+
accountUpdaterResponseDecryptionKeyId?: string | null | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* The maximum monetary amount allowed for over-capture, in the smallest currency unit, for example `1299` cents to allow for an over-capture of `$12.99`.
|
|
39
|
+
*/
|
|
40
|
+
overCaptureAmount?: number | null | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* The maximum percentage allowed for over-capture, for example `25` to allow for an over-capture of `25%` of the original transaction amount.
|
|
43
|
+
*/
|
|
44
|
+
overCapturePercentage?: number | null | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* Client key provided by Pagos to authenticate to the Loon API. Loon is the Account Updater service we use and if the field is not set or if it's set to null, the Account Updater service doesn't get configured. If the field is set to `null`, the other `loon_*` fields must be set to null as well.
|
|
47
|
+
*/
|
|
48
|
+
loonClientKey?: string | null | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* Secret key provided by Pagos to authenticate to the Loon API. Loon is the Account Updater service we use and if the field is not set or if it's set to null, the Account Updater service doesn't get configured. If the field is set to `null`, the other `loon_*` fields must be set to null as well.
|
|
51
|
+
*/
|
|
52
|
+
loonSecretKey?: string | null | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* Card schemes accepted when creating jobs using this set of Loon API keys. Loon is the Account Updater service we use and if the field is not set or if it's set to null, the Account Updater service doesn't get configured. If the field is set to `null`, the other `loon_*` fields must be set to null as well.
|
|
55
|
+
*/
|
|
56
|
+
loonAcceptedSchemes?: Array<CardScheme> | null | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Requestor ID provided for Visa after onboarding to use Network Tokens.
|
|
59
|
+
*/
|
|
60
|
+
visaNetworkTokensRequestorId?: string | null | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* Application ID provided for Visa after onboarding to use Network Tokens.
|
|
63
|
+
*/
|
|
64
|
+
visaNetworkTokensAppId?: string | null | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* Requestor ID provided for American Express after onboarding to use Network Tokens.
|
|
67
|
+
*/
|
|
68
|
+
amexNetworkTokensRequestorId?: string | null | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* Application ID provided for American Express after onboarding to use Network Tokens.
|
|
71
|
+
*/
|
|
72
|
+
amexNetworkTokensAppId?: string | null | undefined;
|
|
73
|
+
/**
|
|
74
|
+
* Requestor ID provided for Mastercard after onboarding to use Network Tokens.
|
|
75
|
+
*/
|
|
76
|
+
mastercardNetworkTokensRequestorId?: string | null | undefined;
|
|
77
|
+
/**
|
|
78
|
+
* Application ID provided for Mastercard after onboarding to use Network Tokens.
|
|
79
|
+
*/
|
|
80
|
+
mastercardNetworkTokensAppId?: string | null | undefined;
|
|
81
|
+
/**
|
|
82
|
+
* The display name for the merchant account.
|
|
83
|
+
*/
|
|
84
|
+
displayName?: string | null | undefined;
|
|
85
|
+
/**
|
|
86
|
+
* An optional endpoint URL to deliver webhook notifications to.
|
|
87
|
+
*/
|
|
88
|
+
outboundWebhookUrl?: string | null | undefined;
|
|
89
|
+
/**
|
|
90
|
+
* The optional username to use when `outbound_webhook_url` is configured and requires basic authentication.
|
|
91
|
+
*/
|
|
92
|
+
outboundWebhookUsername?: string | null | undefined;
|
|
93
|
+
/**
|
|
94
|
+
* The optional password to use when `outbound_webhook_url` is configured and requires basic authentication
|
|
95
|
+
*/
|
|
96
|
+
outboundWebhookPassword?: string | null | undefined;
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
/** @internal */
|
|
100
|
+
export const MerchantAccountUpdate$inboundSchema: z.ZodType<
|
|
101
|
+
MerchantAccountUpdate,
|
|
102
|
+
z.ZodTypeDef,
|
|
103
|
+
unknown
|
|
104
|
+
> = z.object({
|
|
105
|
+
account_updater_enabled: z.boolean().default(false),
|
|
106
|
+
account_updater_request_encryption_key: z.nullable(z.string()).optional(),
|
|
107
|
+
account_updater_request_encryption_key_id: z.nullable(z.string()).optional(),
|
|
108
|
+
account_updater_response_decryption_key: z.nullable(z.string()).optional(),
|
|
109
|
+
account_updater_response_decryption_key_id: z.nullable(z.string()).optional(),
|
|
110
|
+
over_capture_amount: z.nullable(z.number().int()).optional(),
|
|
111
|
+
over_capture_percentage: z.nullable(z.number().int()).optional(),
|
|
112
|
+
loon_client_key: z.nullable(z.string()).optional(),
|
|
113
|
+
loon_secret_key: z.nullable(z.string()).optional(),
|
|
114
|
+
loon_accepted_schemes: z.nullable(z.array(CardScheme$inboundSchema))
|
|
115
|
+
.optional(),
|
|
116
|
+
visa_network_tokens_requestor_id: z.nullable(z.string()).optional(),
|
|
117
|
+
visa_network_tokens_app_id: z.nullable(z.string()).optional(),
|
|
118
|
+
amex_network_tokens_requestor_id: z.nullable(z.string()).optional(),
|
|
119
|
+
amex_network_tokens_app_id: z.nullable(z.string()).optional(),
|
|
120
|
+
mastercard_network_tokens_requestor_id: z.nullable(z.string()).optional(),
|
|
121
|
+
mastercard_network_tokens_app_id: z.nullable(z.string()).optional(),
|
|
122
|
+
display_name: z.nullable(z.string()).optional(),
|
|
123
|
+
outbound_webhook_url: z.nullable(z.string()).optional(),
|
|
124
|
+
outbound_webhook_username: z.nullable(z.string()).optional(),
|
|
125
|
+
outbound_webhook_password: z.nullable(z.string()).optional(),
|
|
126
|
+
}).transform((v) => {
|
|
127
|
+
return remap$(v, {
|
|
128
|
+
"account_updater_enabled": "accountUpdaterEnabled",
|
|
129
|
+
"account_updater_request_encryption_key":
|
|
130
|
+
"accountUpdaterRequestEncryptionKey",
|
|
131
|
+
"account_updater_request_encryption_key_id":
|
|
132
|
+
"accountUpdaterRequestEncryptionKeyId",
|
|
133
|
+
"account_updater_response_decryption_key":
|
|
134
|
+
"accountUpdaterResponseDecryptionKey",
|
|
135
|
+
"account_updater_response_decryption_key_id":
|
|
136
|
+
"accountUpdaterResponseDecryptionKeyId",
|
|
137
|
+
"over_capture_amount": "overCaptureAmount",
|
|
138
|
+
"over_capture_percentage": "overCapturePercentage",
|
|
139
|
+
"loon_client_key": "loonClientKey",
|
|
140
|
+
"loon_secret_key": "loonSecretKey",
|
|
141
|
+
"loon_accepted_schemes": "loonAcceptedSchemes",
|
|
142
|
+
"visa_network_tokens_requestor_id": "visaNetworkTokensRequestorId",
|
|
143
|
+
"visa_network_tokens_app_id": "visaNetworkTokensAppId",
|
|
144
|
+
"amex_network_tokens_requestor_id": "amexNetworkTokensRequestorId",
|
|
145
|
+
"amex_network_tokens_app_id": "amexNetworkTokensAppId",
|
|
146
|
+
"mastercard_network_tokens_requestor_id":
|
|
147
|
+
"mastercardNetworkTokensRequestorId",
|
|
148
|
+
"mastercard_network_tokens_app_id": "mastercardNetworkTokensAppId",
|
|
149
|
+
"display_name": "displayName",
|
|
150
|
+
"outbound_webhook_url": "outboundWebhookUrl",
|
|
151
|
+
"outbound_webhook_username": "outboundWebhookUsername",
|
|
152
|
+
"outbound_webhook_password": "outboundWebhookPassword",
|
|
153
|
+
});
|
|
154
|
+
});
|
|
155
|
+
|
|
156
|
+
/** @internal */
|
|
157
|
+
export type MerchantAccountUpdate$Outbound = {
|
|
158
|
+
account_updater_enabled: boolean;
|
|
159
|
+
account_updater_request_encryption_key?: string | null | undefined;
|
|
160
|
+
account_updater_request_encryption_key_id?: string | null | undefined;
|
|
161
|
+
account_updater_response_decryption_key?: string | null | undefined;
|
|
162
|
+
account_updater_response_decryption_key_id?: string | null | undefined;
|
|
163
|
+
over_capture_amount?: number | null | undefined;
|
|
164
|
+
over_capture_percentage?: number | null | undefined;
|
|
165
|
+
loon_client_key?: string | null | undefined;
|
|
166
|
+
loon_secret_key?: string | null | undefined;
|
|
167
|
+
loon_accepted_schemes?: Array<string> | null | undefined;
|
|
168
|
+
visa_network_tokens_requestor_id?: string | null | undefined;
|
|
169
|
+
visa_network_tokens_app_id?: string | null | undefined;
|
|
170
|
+
amex_network_tokens_requestor_id?: string | null | undefined;
|
|
171
|
+
amex_network_tokens_app_id?: string | null | undefined;
|
|
172
|
+
mastercard_network_tokens_requestor_id?: string | null | undefined;
|
|
173
|
+
mastercard_network_tokens_app_id?: string | null | undefined;
|
|
174
|
+
display_name?: string | null | undefined;
|
|
175
|
+
outbound_webhook_url?: string | null | undefined;
|
|
176
|
+
outbound_webhook_username?: string | null | undefined;
|
|
177
|
+
outbound_webhook_password?: string | null | undefined;
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
/** @internal */
|
|
181
|
+
export const MerchantAccountUpdate$outboundSchema: z.ZodType<
|
|
182
|
+
MerchantAccountUpdate$Outbound,
|
|
183
|
+
z.ZodTypeDef,
|
|
184
|
+
MerchantAccountUpdate
|
|
185
|
+
> = z.object({
|
|
186
|
+
accountUpdaterEnabled: z.boolean().default(false),
|
|
187
|
+
accountUpdaterRequestEncryptionKey: z.nullable(z.string()).optional(),
|
|
188
|
+
accountUpdaterRequestEncryptionKeyId: z.nullable(z.string()).optional(),
|
|
189
|
+
accountUpdaterResponseDecryptionKey: z.nullable(z.string()).optional(),
|
|
190
|
+
accountUpdaterResponseDecryptionKeyId: z.nullable(z.string()).optional(),
|
|
191
|
+
overCaptureAmount: z.nullable(z.number().int()).optional(),
|
|
192
|
+
overCapturePercentage: z.nullable(z.number().int()).optional(),
|
|
193
|
+
loonClientKey: z.nullable(z.string()).optional(),
|
|
194
|
+
loonSecretKey: z.nullable(z.string()).optional(),
|
|
195
|
+
loonAcceptedSchemes: z.nullable(z.array(CardScheme$outboundSchema))
|
|
196
|
+
.optional(),
|
|
197
|
+
visaNetworkTokensRequestorId: z.nullable(z.string()).optional(),
|
|
198
|
+
visaNetworkTokensAppId: z.nullable(z.string()).optional(),
|
|
199
|
+
amexNetworkTokensRequestorId: z.nullable(z.string()).optional(),
|
|
200
|
+
amexNetworkTokensAppId: z.nullable(z.string()).optional(),
|
|
201
|
+
mastercardNetworkTokensRequestorId: z.nullable(z.string()).optional(),
|
|
202
|
+
mastercardNetworkTokensAppId: z.nullable(z.string()).optional(),
|
|
203
|
+
displayName: z.nullable(z.string()).optional(),
|
|
204
|
+
outboundWebhookUrl: z.nullable(z.string()).optional(),
|
|
205
|
+
outboundWebhookUsername: z.nullable(z.string()).optional(),
|
|
206
|
+
outboundWebhookPassword: z.nullable(z.string()).optional(),
|
|
207
|
+
}).transform((v) => {
|
|
208
|
+
return remap$(v, {
|
|
209
|
+
accountUpdaterEnabled: "account_updater_enabled",
|
|
210
|
+
accountUpdaterRequestEncryptionKey:
|
|
211
|
+
"account_updater_request_encryption_key",
|
|
212
|
+
accountUpdaterRequestEncryptionKeyId:
|
|
213
|
+
"account_updater_request_encryption_key_id",
|
|
214
|
+
accountUpdaterResponseDecryptionKey:
|
|
215
|
+
"account_updater_response_decryption_key",
|
|
216
|
+
accountUpdaterResponseDecryptionKeyId:
|
|
217
|
+
"account_updater_response_decryption_key_id",
|
|
218
|
+
overCaptureAmount: "over_capture_amount",
|
|
219
|
+
overCapturePercentage: "over_capture_percentage",
|
|
220
|
+
loonClientKey: "loon_client_key",
|
|
221
|
+
loonSecretKey: "loon_secret_key",
|
|
222
|
+
loonAcceptedSchemes: "loon_accepted_schemes",
|
|
223
|
+
visaNetworkTokensRequestorId: "visa_network_tokens_requestor_id",
|
|
224
|
+
visaNetworkTokensAppId: "visa_network_tokens_app_id",
|
|
225
|
+
amexNetworkTokensRequestorId: "amex_network_tokens_requestor_id",
|
|
226
|
+
amexNetworkTokensAppId: "amex_network_tokens_app_id",
|
|
227
|
+
mastercardNetworkTokensRequestorId:
|
|
228
|
+
"mastercard_network_tokens_requestor_id",
|
|
229
|
+
mastercardNetworkTokensAppId: "mastercard_network_tokens_app_id",
|
|
230
|
+
displayName: "display_name",
|
|
231
|
+
outboundWebhookUrl: "outbound_webhook_url",
|
|
232
|
+
outboundWebhookUsername: "outbound_webhook_username",
|
|
233
|
+
outboundWebhookPassword: "outbound_webhook_password",
|
|
234
|
+
});
|
|
235
|
+
});
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* @internal
|
|
239
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
240
|
+
*/
|
|
241
|
+
export namespace MerchantAccountUpdate$ {
|
|
242
|
+
/** @deprecated use `MerchantAccountUpdate$inboundSchema` instead. */
|
|
243
|
+
export const inboundSchema = MerchantAccountUpdate$inboundSchema;
|
|
244
|
+
/** @deprecated use `MerchantAccountUpdate$outboundSchema` instead. */
|
|
245
|
+
export const outboundSchema = MerchantAccountUpdate$outboundSchema;
|
|
246
|
+
/** @deprecated use `MerchantAccountUpdate$Outbound` instead. */
|
|
247
|
+
export type Outbound = MerchantAccountUpdate$Outbound;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
export function merchantAccountUpdateToJSON(
|
|
251
|
+
merchantAccountUpdate: MerchantAccountUpdate,
|
|
252
|
+
): string {
|
|
253
|
+
return JSON.stringify(
|
|
254
|
+
MerchantAccountUpdate$outboundSchema.parse(merchantAccountUpdate),
|
|
255
|
+
);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
export function merchantAccountUpdateFromJSON(
|
|
259
|
+
jsonString: string,
|
|
260
|
+
): SafeParseResult<MerchantAccountUpdate, SDKValidationError> {
|
|
261
|
+
return safeParse(
|
|
262
|
+
jsonString,
|
|
263
|
+
(x) => MerchantAccountUpdate$inboundSchema.parse(JSON.parse(x)),
|
|
264
|
+
`Failed to parse 'MerchantAccountUpdate' from JSON`,
|
|
265
|
+
);
|
|
266
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import {
|
|
9
|
+
Error403,
|
|
10
|
+
Error403$inboundSchema,
|
|
11
|
+
Error403$Outbound,
|
|
12
|
+
Error403$outboundSchema,
|
|
13
|
+
} from "./error403.js";
|
|
14
|
+
import {
|
|
15
|
+
Error403Active,
|
|
16
|
+
Error403Active$inboundSchema,
|
|
17
|
+
Error403Active$Outbound,
|
|
18
|
+
Error403Active$outboundSchema,
|
|
19
|
+
} from "./error403active.js";
|
|
20
|
+
import {
|
|
21
|
+
Error403Forbidden,
|
|
22
|
+
Error403Forbidden$inboundSchema,
|
|
23
|
+
Error403Forbidden$Outbound,
|
|
24
|
+
Error403Forbidden$outboundSchema,
|
|
25
|
+
} from "./error403forbidden.js";
|
|
26
|
+
import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* The credentials were invalid or the caller did not have permission to act on the resource.
|
|
30
|
+
*/
|
|
31
|
+
export type CreateMerchantAccountResponse403CreateMerchantAccount =
|
|
32
|
+
| Error403
|
|
33
|
+
| Error403Forbidden
|
|
34
|
+
| Error403Active;
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const CreateMerchantAccountResponse403CreateMerchantAccount$inboundSchema:
|
|
38
|
+
z.ZodType<
|
|
39
|
+
CreateMerchantAccountResponse403CreateMerchantAccount,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
unknown
|
|
42
|
+
> = z.union([
|
|
43
|
+
Error403$inboundSchema,
|
|
44
|
+
Error403Forbidden$inboundSchema,
|
|
45
|
+
Error403Active$inboundSchema,
|
|
46
|
+
]);
|
|
47
|
+
|
|
48
|
+
/** @internal */
|
|
49
|
+
export type CreateMerchantAccountResponse403CreateMerchantAccount$Outbound =
|
|
50
|
+
| Error403$Outbound
|
|
51
|
+
| Error403Forbidden$Outbound
|
|
52
|
+
| Error403Active$Outbound;
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export const CreateMerchantAccountResponse403CreateMerchantAccount$outboundSchema:
|
|
56
|
+
z.ZodType<
|
|
57
|
+
CreateMerchantAccountResponse403CreateMerchantAccount$Outbound,
|
|
58
|
+
z.ZodTypeDef,
|
|
59
|
+
CreateMerchantAccountResponse403CreateMerchantAccount
|
|
60
|
+
> = z.union([
|
|
61
|
+
Error403$outboundSchema,
|
|
62
|
+
Error403Forbidden$outboundSchema,
|
|
63
|
+
Error403Active$outboundSchema,
|
|
64
|
+
]);
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* @internal
|
|
68
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
69
|
+
*/
|
|
70
|
+
export namespace CreateMerchantAccountResponse403CreateMerchantAccount$ {
|
|
71
|
+
/** @deprecated use `CreateMerchantAccountResponse403CreateMerchantAccount$inboundSchema` instead. */
|
|
72
|
+
export const inboundSchema =
|
|
73
|
+
CreateMerchantAccountResponse403CreateMerchantAccount$inboundSchema;
|
|
74
|
+
/** @deprecated use `CreateMerchantAccountResponse403CreateMerchantAccount$outboundSchema` instead. */
|
|
75
|
+
export const outboundSchema =
|
|
76
|
+
CreateMerchantAccountResponse403CreateMerchantAccount$outboundSchema;
|
|
77
|
+
/** @deprecated use `CreateMerchantAccountResponse403CreateMerchantAccount$Outbound` instead. */
|
|
78
|
+
export type Outbound =
|
|
79
|
+
CreateMerchantAccountResponse403CreateMerchantAccount$Outbound;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function createMerchantAccountResponse403CreateMerchantAccountToJSON(
|
|
83
|
+
createMerchantAccountResponse403CreateMerchantAccount:
|
|
84
|
+
CreateMerchantAccountResponse403CreateMerchantAccount,
|
|
85
|
+
): string {
|
|
86
|
+
return JSON.stringify(
|
|
87
|
+
CreateMerchantAccountResponse403CreateMerchantAccount$outboundSchema.parse(
|
|
88
|
+
createMerchantAccountResponse403CreateMerchantAccount,
|
|
89
|
+
),
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function createMerchantAccountResponse403CreateMerchantAccountFromJSON(
|
|
94
|
+
jsonString: string,
|
|
95
|
+
): SafeParseResult<
|
|
96
|
+
CreateMerchantAccountResponse403CreateMerchantAccount,
|
|
97
|
+
SDKValidationError
|
|
98
|
+
> {
|
|
99
|
+
return safeParse(
|
|
100
|
+
jsonString,
|
|
101
|
+
(x) =>
|
|
102
|
+
CreateMerchantAccountResponse403CreateMerchantAccount$inboundSchema.parse(
|
|
103
|
+
JSON.parse(x),
|
|
104
|
+
),
|
|
105
|
+
`Failed to parse 'CreateMerchantAccountResponse403CreateMerchantAccount' from JSON`,
|
|
106
|
+
);
|
|
107
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import {
|
|
9
|
+
Error403,
|
|
10
|
+
Error403$inboundSchema,
|
|
11
|
+
Error403$Outbound,
|
|
12
|
+
Error403$outboundSchema,
|
|
13
|
+
} from "./error403.js";
|
|
14
|
+
import {
|
|
15
|
+
Error403Active,
|
|
16
|
+
Error403Active$inboundSchema,
|
|
17
|
+
Error403Active$Outbound,
|
|
18
|
+
Error403Active$outboundSchema,
|
|
19
|
+
} from "./error403active.js";
|
|
20
|
+
import {
|
|
21
|
+
Error403Forbidden,
|
|
22
|
+
Error403Forbidden$inboundSchema,
|
|
23
|
+
Error403Forbidden$Outbound,
|
|
24
|
+
Error403Forbidden$outboundSchema,
|
|
25
|
+
} from "./error403forbidden.js";
|
|
26
|
+
import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* The credentials were invalid or the caller did not have permission to act on the resource.
|
|
30
|
+
*/
|
|
31
|
+
export type GetMerchantAccountResponse403GetMerchantAccount =
|
|
32
|
+
| Error403
|
|
33
|
+
| Error403Forbidden
|
|
34
|
+
| Error403Active;
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const GetMerchantAccountResponse403GetMerchantAccount$inboundSchema:
|
|
38
|
+
z.ZodType<
|
|
39
|
+
GetMerchantAccountResponse403GetMerchantAccount,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
unknown
|
|
42
|
+
> = z.union([
|
|
43
|
+
Error403$inboundSchema,
|
|
44
|
+
Error403Forbidden$inboundSchema,
|
|
45
|
+
Error403Active$inboundSchema,
|
|
46
|
+
]);
|
|
47
|
+
|
|
48
|
+
/** @internal */
|
|
49
|
+
export type GetMerchantAccountResponse403GetMerchantAccount$Outbound =
|
|
50
|
+
| Error403$Outbound
|
|
51
|
+
| Error403Forbidden$Outbound
|
|
52
|
+
| Error403Active$Outbound;
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export const GetMerchantAccountResponse403GetMerchantAccount$outboundSchema:
|
|
56
|
+
z.ZodType<
|
|
57
|
+
GetMerchantAccountResponse403GetMerchantAccount$Outbound,
|
|
58
|
+
z.ZodTypeDef,
|
|
59
|
+
GetMerchantAccountResponse403GetMerchantAccount
|
|
60
|
+
> = z.union([
|
|
61
|
+
Error403$outboundSchema,
|
|
62
|
+
Error403Forbidden$outboundSchema,
|
|
63
|
+
Error403Active$outboundSchema,
|
|
64
|
+
]);
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* @internal
|
|
68
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
69
|
+
*/
|
|
70
|
+
export namespace GetMerchantAccountResponse403GetMerchantAccount$ {
|
|
71
|
+
/** @deprecated use `GetMerchantAccountResponse403GetMerchantAccount$inboundSchema` instead. */
|
|
72
|
+
export const inboundSchema =
|
|
73
|
+
GetMerchantAccountResponse403GetMerchantAccount$inboundSchema;
|
|
74
|
+
/** @deprecated use `GetMerchantAccountResponse403GetMerchantAccount$outboundSchema` instead. */
|
|
75
|
+
export const outboundSchema =
|
|
76
|
+
GetMerchantAccountResponse403GetMerchantAccount$outboundSchema;
|
|
77
|
+
/** @deprecated use `GetMerchantAccountResponse403GetMerchantAccount$Outbound` instead. */
|
|
78
|
+
export type Outbound =
|
|
79
|
+
GetMerchantAccountResponse403GetMerchantAccount$Outbound;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function getMerchantAccountResponse403GetMerchantAccountToJSON(
|
|
83
|
+
getMerchantAccountResponse403GetMerchantAccount:
|
|
84
|
+
GetMerchantAccountResponse403GetMerchantAccount,
|
|
85
|
+
): string {
|
|
86
|
+
return JSON.stringify(
|
|
87
|
+
GetMerchantAccountResponse403GetMerchantAccount$outboundSchema.parse(
|
|
88
|
+
getMerchantAccountResponse403GetMerchantAccount,
|
|
89
|
+
),
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function getMerchantAccountResponse403GetMerchantAccountFromJSON(
|
|
94
|
+
jsonString: string,
|
|
95
|
+
): SafeParseResult<
|
|
96
|
+
GetMerchantAccountResponse403GetMerchantAccount,
|
|
97
|
+
SDKValidationError
|
|
98
|
+
> {
|
|
99
|
+
return safeParse(
|
|
100
|
+
jsonString,
|
|
101
|
+
(x) =>
|
|
102
|
+
GetMerchantAccountResponse403GetMerchantAccount$inboundSchema.parse(
|
|
103
|
+
JSON.parse(x),
|
|
104
|
+
),
|
|
105
|
+
`Failed to parse 'GetMerchantAccountResponse403GetMerchantAccount' from JSON`,
|
|
106
|
+
);
|
|
107
|
+
}
|
|
@@ -13,6 +13,7 @@ export * from "./createclicktopaydigitalwalletsession.js";
|
|
|
13
13
|
export * from "./createfulltransactionrefund.js";
|
|
14
14
|
export * from "./creategiftcard.js";
|
|
15
15
|
export * from "./creategooglepaydigitalwalletsession.js";
|
|
16
|
+
export * from "./createmerchantaccount.js";
|
|
16
17
|
export * from "./createpaymentmethod.js";
|
|
17
18
|
export * from "./createpaymentmethodnetworktoken.js";
|
|
18
19
|
export * from "./createpaymentmethodnetworktokencryptogram.js";
|
|
@@ -46,6 +47,7 @@ export * from "./getbuyershippingdetails.js";
|
|
|
46
47
|
export * from "./getcheckoutsession.js";
|
|
47
48
|
export * from "./getdigitalwallet.js";
|
|
48
49
|
export * from "./getgiftcard.js";
|
|
50
|
+
export * from "./getmerchantaccount.js";
|
|
49
51
|
export * from "./getpaymentmethod.js";
|
|
50
52
|
export * from "./getpayout.js";
|
|
51
53
|
export * from "./getrefund.js";
|
|
@@ -63,6 +65,7 @@ export * from "./listcardschemedefinitions.js";
|
|
|
63
65
|
export * from "./listdigitalwallets.js";
|
|
64
66
|
export * from "./listgiftcardbalances.js";
|
|
65
67
|
export * from "./listgiftcards.js";
|
|
68
|
+
export * from "./listmerchantaccounts.js";
|
|
66
69
|
export * from "./listpaymentmethodnetworktokens.js";
|
|
67
70
|
export * from "./listpaymentmethodpaymentservicetokens.js";
|
|
68
71
|
export * from "./listpaymentmethods.js";
|
|
@@ -81,4 +84,5 @@ export * from "./updatebuyer.js";
|
|
|
81
84
|
export * from "./updatebuyershippingdetails.js";
|
|
82
85
|
export * from "./updatecheckoutsession.js";
|
|
83
86
|
export * from "./updatedigitalwallet.js";
|
|
87
|
+
export * from "./updatemerchantaccount.js";
|
|
84
88
|
export * from "./voidtransaction.js";
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import {
|
|
9
|
+
Error403,
|
|
10
|
+
Error403$inboundSchema,
|
|
11
|
+
Error403$Outbound,
|
|
12
|
+
Error403$outboundSchema,
|
|
13
|
+
} from "./error403.js";
|
|
14
|
+
import {
|
|
15
|
+
Error403Active,
|
|
16
|
+
Error403Active$inboundSchema,
|
|
17
|
+
Error403Active$Outbound,
|
|
18
|
+
Error403Active$outboundSchema,
|
|
19
|
+
} from "./error403active.js";
|
|
20
|
+
import {
|
|
21
|
+
Error403Forbidden,
|
|
22
|
+
Error403Forbidden$inboundSchema,
|
|
23
|
+
Error403Forbidden$Outbound,
|
|
24
|
+
Error403Forbidden$outboundSchema,
|
|
25
|
+
} from "./error403forbidden.js";
|
|
26
|
+
import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* The credentials were invalid or the caller did not have permission to act on the resource.
|
|
30
|
+
*/
|
|
31
|
+
export type ListMerchantAccountsResponse403ListMerchantAccounts =
|
|
32
|
+
| Error403
|
|
33
|
+
| Error403Forbidden
|
|
34
|
+
| Error403Active;
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const ListMerchantAccountsResponse403ListMerchantAccounts$inboundSchema:
|
|
38
|
+
z.ZodType<
|
|
39
|
+
ListMerchantAccountsResponse403ListMerchantAccounts,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
unknown
|
|
42
|
+
> = z.union([
|
|
43
|
+
Error403$inboundSchema,
|
|
44
|
+
Error403Forbidden$inboundSchema,
|
|
45
|
+
Error403Active$inboundSchema,
|
|
46
|
+
]);
|
|
47
|
+
|
|
48
|
+
/** @internal */
|
|
49
|
+
export type ListMerchantAccountsResponse403ListMerchantAccounts$Outbound =
|
|
50
|
+
| Error403$Outbound
|
|
51
|
+
| Error403Forbidden$Outbound
|
|
52
|
+
| Error403Active$Outbound;
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export const ListMerchantAccountsResponse403ListMerchantAccounts$outboundSchema:
|
|
56
|
+
z.ZodType<
|
|
57
|
+
ListMerchantAccountsResponse403ListMerchantAccounts$Outbound,
|
|
58
|
+
z.ZodTypeDef,
|
|
59
|
+
ListMerchantAccountsResponse403ListMerchantAccounts
|
|
60
|
+
> = z.union([
|
|
61
|
+
Error403$outboundSchema,
|
|
62
|
+
Error403Forbidden$outboundSchema,
|
|
63
|
+
Error403Active$outboundSchema,
|
|
64
|
+
]);
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* @internal
|
|
68
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
69
|
+
*/
|
|
70
|
+
export namespace ListMerchantAccountsResponse403ListMerchantAccounts$ {
|
|
71
|
+
/** @deprecated use `ListMerchantAccountsResponse403ListMerchantAccounts$inboundSchema` instead. */
|
|
72
|
+
export const inboundSchema =
|
|
73
|
+
ListMerchantAccountsResponse403ListMerchantAccounts$inboundSchema;
|
|
74
|
+
/** @deprecated use `ListMerchantAccountsResponse403ListMerchantAccounts$outboundSchema` instead. */
|
|
75
|
+
export const outboundSchema =
|
|
76
|
+
ListMerchantAccountsResponse403ListMerchantAccounts$outboundSchema;
|
|
77
|
+
/** @deprecated use `ListMerchantAccountsResponse403ListMerchantAccounts$Outbound` instead. */
|
|
78
|
+
export type Outbound =
|
|
79
|
+
ListMerchantAccountsResponse403ListMerchantAccounts$Outbound;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function listMerchantAccountsResponse403ListMerchantAccountsToJSON(
|
|
83
|
+
listMerchantAccountsResponse403ListMerchantAccounts:
|
|
84
|
+
ListMerchantAccountsResponse403ListMerchantAccounts,
|
|
85
|
+
): string {
|
|
86
|
+
return JSON.stringify(
|
|
87
|
+
ListMerchantAccountsResponse403ListMerchantAccounts$outboundSchema.parse(
|
|
88
|
+
listMerchantAccountsResponse403ListMerchantAccounts,
|
|
89
|
+
),
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function listMerchantAccountsResponse403ListMerchantAccountsFromJSON(
|
|
94
|
+
jsonString: string,
|
|
95
|
+
): SafeParseResult<
|
|
96
|
+
ListMerchantAccountsResponse403ListMerchantAccounts,
|
|
97
|
+
SDKValidationError
|
|
98
|
+
> {
|
|
99
|
+
return safeParse(
|
|
100
|
+
jsonString,
|
|
101
|
+
(x) =>
|
|
102
|
+
ListMerchantAccountsResponse403ListMerchantAccounts$inboundSchema.parse(
|
|
103
|
+
JSON.parse(x),
|
|
104
|
+
),
|
|
105
|
+
`Failed to parse 'ListMerchantAccountsResponse403ListMerchantAccounts' from JSON`,
|
|
106
|
+
);
|
|
107
|
+
}
|