@peable.to/contracts 3.0.0 → 4.0.0
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/dist/cjs/resources/billingEngine/public.js +22 -3
- package/dist/cjs/resources/checkout/checkoutSessions.js +34 -9
- package/dist/cjs/resources/checkout/merchants.js +10 -23
- package/dist/cjs/resources/checkout/paymentMethodConfigurations.js +56 -10
- package/dist/cjs/resources/connect/balance.js +5 -0
- package/dist/cjs/resources/connect/connectedAccounts.js +11 -12
- package/dist/cjs/resources/connect/onboarding.js +13 -24
- package/dist/cjs/resources/events/webhookDeliveries.js +1 -1
- package/dist/cjs/resources/events/webhookEndpoints.js +1 -1
- package/dist/cjs/resources/payments/disputes.js +16 -0
- package/dist/cjs/resources/payments/paymentIntents.js +39 -2
- package/dist/cjs/resources/payments/refunds.js +46 -11
- package/dist/cjs/vocabulary/checkout.js +18 -1
- package/dist/cjs/vocabulary/errors.js +5 -3
- package/dist/cjs/vocabulary/events.js +5 -0
- package/dist/cjs/vocabulary/paymentMethodConfigurations.js +24 -4
- package/dist/esm/resources/billingEngine/public.js +22 -3
- package/dist/esm/resources/checkout/checkoutSessions.js +35 -10
- package/dist/esm/resources/checkout/merchants.js +10 -23
- package/dist/esm/resources/checkout/paymentMethodConfigurations.js +57 -11
- package/dist/esm/resources/connect/balance.js +5 -0
- package/dist/esm/resources/connect/connectedAccounts.js +11 -12
- package/dist/esm/resources/connect/onboarding.js +12 -23
- package/dist/esm/resources/events/webhookDeliveries.js +1 -1
- package/dist/esm/resources/events/webhookEndpoints.js +1 -1
- package/dist/esm/resources/payments/disputes.js +16 -0
- package/dist/esm/resources/payments/paymentIntents.js +39 -2
- package/dist/esm/resources/payments/refunds.js +46 -11
- package/dist/esm/vocabulary/checkout.js +17 -0
- package/dist/esm/vocabulary/errors.js +5 -3
- package/dist/esm/vocabulary/events.js +5 -0
- package/dist/esm/vocabulary/paymentMethodConfigurations.js +25 -5
- package/dist/types/resources/billingEngine/index.d.ts +16 -2
- package/dist/types/resources/billingEngine/public.d.ts +32 -3
- package/dist/types/resources/checkout/checkoutSessions.d.ts +96 -31
- package/dist/types/resources/checkout/index.d.ts +406 -41
- package/dist/types/resources/checkout/merchants.d.ts +17 -28
- package/dist/types/resources/checkout/paymentMethodConfigurations.d.ts +440 -8
- package/dist/types/resources/connect/balance.d.ts +103 -10
- package/dist/types/resources/connect/connectedAccounts.d.ts +4 -4
- package/dist/types/resources/connect/index.d.ts +105 -14
- package/dist/types/resources/connect/onboarding.d.ts +15 -15
- package/dist/types/resources/connect/payouts.d.ts +66 -4
- package/dist/types/resources/events/index.d.ts +5 -0
- package/dist/types/resources/events/webhookEndpoints.d.ts +7 -0
- package/dist/types/resources/payments/disputes.d.ts +35 -0
- package/dist/types/resources/payments/index.d.ts +382 -0
- package/dist/types/resources/payments/paymentIntents.d.ts +380 -0
- package/dist/types/resources/payments/refunds.d.ts +56 -5
- package/dist/types/resources/payments/testHelpers.d.ts +31 -0
- package/dist/types/resources/tax/deadlines.d.ts +3 -3
- package/dist/types/resources/tax/index.d.ts +2 -2
- package/dist/types/resources/tax/registrations.d.ts +2 -2
- package/dist/types/vocabulary/checkout.d.ts +13 -0
- package/dist/types/vocabulary/errors.d.ts +5 -3
- package/dist/types/vocabulary/events.d.ts +5 -1
- package/dist/types/vocabulary/paymentMethodConfigurations.d.ts +21 -7
- package/package.json +1 -1
|
@@ -17,11 +17,11 @@ export declare const merchantSchema: z.ZodObject<{
|
|
|
17
17
|
staging: "staging";
|
|
18
18
|
production: "production";
|
|
19
19
|
}>;
|
|
20
|
-
network: z.
|
|
20
|
+
network: z.ZodEnum<{
|
|
21
21
|
mainnet: "mainnet";
|
|
22
22
|
testnet: "testnet";
|
|
23
|
-
}
|
|
24
|
-
|
|
23
|
+
}>;
|
|
24
|
+
owner_account: z.ZodNullable<z.ZodString>;
|
|
25
25
|
required_confirmations: z.ZodNumber;
|
|
26
26
|
display_name: z.ZodOptional<z.ZodString>;
|
|
27
27
|
avatar_file_id: z.ZodOptional<z.ZodString>;
|
|
@@ -39,16 +39,11 @@ declare module '../../common/objects' {
|
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
/**
|
|
42
|
-
* `POST /v1/merchants`.
|
|
43
|
-
*
|
|
44
|
-
*
|
|
42
|
+
* `POST /v1/merchants`. No FairCoin key and no network: the network is the
|
|
43
|
+
* environment's, and FairCoin is received into the Peable wallet of the
|
|
44
|
+
* account that owns the application (ADR 0021 D5).
|
|
45
45
|
*/
|
|
46
46
|
export declare const registerMerchantParams: z.ZodObject<{
|
|
47
|
-
network: z.ZodOptional<z.ZodEnum<{
|
|
48
|
-
mainnet: "mainnet";
|
|
49
|
-
testnet: "testnet";
|
|
50
|
-
}>>;
|
|
51
|
-
xpub: z.ZodOptional<z.ZodString>;
|
|
52
47
|
required_confirmations: z.ZodOptional<z.ZodNumber>;
|
|
53
48
|
display_name: z.ZodOptional<z.ZodString>;
|
|
54
49
|
avatar_file_id: z.ZodOptional<z.ZodString>;
|
|
@@ -56,9 +51,8 @@ export declare const registerMerchantParams: z.ZodObject<{
|
|
|
56
51
|
}, z.core.$strict>;
|
|
57
52
|
export type RegisterMerchantParams = z.input<typeof registerMerchantParams>;
|
|
58
53
|
/**
|
|
59
|
-
* `POST /v1/merchants/me`. `null` clears a field. The
|
|
60
|
-
*
|
|
61
|
-
* test/live firewall, depend on them.
|
|
54
|
+
* `POST /v1/merchants/me`. `null` clears a field. The network and environment
|
|
55
|
+
* never change: the test/live firewall depends on them.
|
|
62
56
|
*/
|
|
63
57
|
export declare const updateMerchantParams: z.ZodObject<{
|
|
64
58
|
required_confirmations: z.ZodOptional<z.ZodNumber>;
|
|
@@ -148,11 +142,6 @@ export declare const merchantRoutes: readonly [{
|
|
|
148
142
|
readonly auth: "service";
|
|
149
143
|
readonly scope: "payments:write";
|
|
150
144
|
readonly body: z.ZodObject<{
|
|
151
|
-
network: z.ZodOptional<z.ZodEnum<{
|
|
152
|
-
mainnet: "mainnet";
|
|
153
|
-
testnet: "testnet";
|
|
154
|
-
}>>;
|
|
155
|
-
xpub: z.ZodOptional<z.ZodString>;
|
|
156
145
|
required_confirmations: z.ZodOptional<z.ZodNumber>;
|
|
157
146
|
display_name: z.ZodOptional<z.ZodString>;
|
|
158
147
|
avatar_file_id: z.ZodOptional<z.ZodString>;
|
|
@@ -168,11 +157,11 @@ export declare const merchantRoutes: readonly [{
|
|
|
168
157
|
staging: "staging";
|
|
169
158
|
production: "production";
|
|
170
159
|
}>;
|
|
171
|
-
network: z.
|
|
160
|
+
network: z.ZodEnum<{
|
|
172
161
|
mainnet: "mainnet";
|
|
173
162
|
testnet: "testnet";
|
|
174
|
-
}
|
|
175
|
-
|
|
163
|
+
}>;
|
|
164
|
+
owner_account: z.ZodNullable<z.ZodString>;
|
|
176
165
|
required_confirmations: z.ZodNumber;
|
|
177
166
|
display_name: z.ZodOptional<z.ZodString>;
|
|
178
167
|
avatar_file_id: z.ZodOptional<z.ZodString>;
|
|
@@ -201,11 +190,11 @@ export declare const merchantRoutes: readonly [{
|
|
|
201
190
|
staging: "staging";
|
|
202
191
|
production: "production";
|
|
203
192
|
}>;
|
|
204
|
-
network: z.
|
|
193
|
+
network: z.ZodEnum<{
|
|
205
194
|
mainnet: "mainnet";
|
|
206
195
|
testnet: "testnet";
|
|
207
|
-
}
|
|
208
|
-
|
|
196
|
+
}>;
|
|
197
|
+
owner_account: z.ZodNullable<z.ZodString>;
|
|
209
198
|
required_confirmations: z.ZodNumber;
|
|
210
199
|
display_name: z.ZodOptional<z.ZodString>;
|
|
211
200
|
avatar_file_id: z.ZodOptional<z.ZodString>;
|
|
@@ -241,11 +230,11 @@ export declare const merchantRoutes: readonly [{
|
|
|
241
230
|
staging: "staging";
|
|
242
231
|
production: "production";
|
|
243
232
|
}>;
|
|
244
|
-
network: z.
|
|
233
|
+
network: z.ZodEnum<{
|
|
245
234
|
mainnet: "mainnet";
|
|
246
235
|
testnet: "testnet";
|
|
247
|
-
}
|
|
248
|
-
|
|
236
|
+
}>;
|
|
237
|
+
owner_account: z.ZodNullable<z.ZodString>;
|
|
249
238
|
required_confirmations: z.ZodNumber;
|
|
250
239
|
display_name: z.ZodOptional<z.ZodString>;
|
|
251
240
|
avatar_file_id: z.ZodOptional<z.ZodString>;
|