@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.
Files changed (58) hide show
  1. package/dist/cjs/resources/billingEngine/public.js +22 -3
  2. package/dist/cjs/resources/checkout/checkoutSessions.js +34 -9
  3. package/dist/cjs/resources/checkout/merchants.js +10 -23
  4. package/dist/cjs/resources/checkout/paymentMethodConfigurations.js +56 -10
  5. package/dist/cjs/resources/connect/balance.js +5 -0
  6. package/dist/cjs/resources/connect/connectedAccounts.js +11 -12
  7. package/dist/cjs/resources/connect/onboarding.js +13 -24
  8. package/dist/cjs/resources/events/webhookDeliveries.js +1 -1
  9. package/dist/cjs/resources/events/webhookEndpoints.js +1 -1
  10. package/dist/cjs/resources/payments/disputes.js +16 -0
  11. package/dist/cjs/resources/payments/paymentIntents.js +39 -2
  12. package/dist/cjs/resources/payments/refunds.js +46 -11
  13. package/dist/cjs/vocabulary/checkout.js +18 -1
  14. package/dist/cjs/vocabulary/errors.js +5 -3
  15. package/dist/cjs/vocabulary/events.js +5 -0
  16. package/dist/cjs/vocabulary/paymentMethodConfigurations.js +24 -4
  17. package/dist/esm/resources/billingEngine/public.js +22 -3
  18. package/dist/esm/resources/checkout/checkoutSessions.js +35 -10
  19. package/dist/esm/resources/checkout/merchants.js +10 -23
  20. package/dist/esm/resources/checkout/paymentMethodConfigurations.js +57 -11
  21. package/dist/esm/resources/connect/balance.js +5 -0
  22. package/dist/esm/resources/connect/connectedAccounts.js +11 -12
  23. package/dist/esm/resources/connect/onboarding.js +12 -23
  24. package/dist/esm/resources/events/webhookDeliveries.js +1 -1
  25. package/dist/esm/resources/events/webhookEndpoints.js +1 -1
  26. package/dist/esm/resources/payments/disputes.js +16 -0
  27. package/dist/esm/resources/payments/paymentIntents.js +39 -2
  28. package/dist/esm/resources/payments/refunds.js +46 -11
  29. package/dist/esm/vocabulary/checkout.js +17 -0
  30. package/dist/esm/vocabulary/errors.js +5 -3
  31. package/dist/esm/vocabulary/events.js +5 -0
  32. package/dist/esm/vocabulary/paymentMethodConfigurations.js +25 -5
  33. package/dist/types/resources/billingEngine/index.d.ts +16 -2
  34. package/dist/types/resources/billingEngine/public.d.ts +32 -3
  35. package/dist/types/resources/checkout/checkoutSessions.d.ts +96 -31
  36. package/dist/types/resources/checkout/index.d.ts +406 -41
  37. package/dist/types/resources/checkout/merchants.d.ts +17 -28
  38. package/dist/types/resources/checkout/paymentMethodConfigurations.d.ts +440 -8
  39. package/dist/types/resources/connect/balance.d.ts +103 -10
  40. package/dist/types/resources/connect/connectedAccounts.d.ts +4 -4
  41. package/dist/types/resources/connect/index.d.ts +105 -14
  42. package/dist/types/resources/connect/onboarding.d.ts +15 -15
  43. package/dist/types/resources/connect/payouts.d.ts +66 -4
  44. package/dist/types/resources/events/index.d.ts +5 -0
  45. package/dist/types/resources/events/webhookEndpoints.d.ts +7 -0
  46. package/dist/types/resources/payments/disputes.d.ts +35 -0
  47. package/dist/types/resources/payments/index.d.ts +382 -0
  48. package/dist/types/resources/payments/paymentIntents.d.ts +380 -0
  49. package/dist/types/resources/payments/refunds.d.ts +56 -5
  50. package/dist/types/resources/payments/testHelpers.d.ts +31 -0
  51. package/dist/types/resources/tax/deadlines.d.ts +3 -3
  52. package/dist/types/resources/tax/index.d.ts +2 -2
  53. package/dist/types/resources/tax/registrations.d.ts +2 -2
  54. package/dist/types/vocabulary/checkout.d.ts +13 -0
  55. package/dist/types/vocabulary/errors.d.ts +5 -3
  56. package/dist/types/vocabulary/events.d.ts +5 -1
  57. package/dist/types/vocabulary/paymentMethodConfigurations.d.ts +21 -7
  58. 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.ZodNullable<z.ZodEnum<{
20
+ network: z.ZodEnum<{
21
21
  mainnet: "mainnet";
22
22
  testnet: "testnet";
23
- }>>;
24
- xpub: z.ZodNullable<z.ZodString>;
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`. The FairCoin half is OPTIONAL — both `network` and
43
- * `xpub`, or neither: a card-only merchant supplies no key for a chain it
44
- * never intends to use.
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 key, network and
60
- * environment never change: addresses already derived from the key, and the
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.ZodNullable<z.ZodEnum<{
160
+ network: z.ZodEnum<{
172
161
  mainnet: "mainnet";
173
162
  testnet: "testnet";
174
- }>>;
175
- xpub: z.ZodNullable<z.ZodString>;
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.ZodNullable<z.ZodEnum<{
193
+ network: z.ZodEnum<{
205
194
  mainnet: "mainnet";
206
195
  testnet: "testnet";
207
- }>>;
208
- xpub: z.ZodNullable<z.ZodString>;
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.ZodNullable<z.ZodEnum<{
233
+ network: z.ZodEnum<{
245
234
  mainnet: "mainnet";
246
235
  testnet: "testnet";
247
- }>>;
248
- xpub: z.ZodNullable<z.ZodString>;
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>;