@peable.to/contracts 1.2.0 → 3.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 (43) hide show
  1. package/dist/cjs/resources/catalog/index.js +1 -5
  2. package/dist/cjs/resources/checkout/checkoutSessions.js +0 -4
  3. package/dist/cjs/resources/events/events.js +1 -32
  4. package/dist/cjs/resources/tax/calculations.js +33 -30
  5. package/dist/cjs/resources/tax/reports.js +4 -4
  6. package/dist/cjs/resources/tax/shared.js +7 -11
  7. package/dist/cjs/resources/tax/transactions.js +7 -10
  8. package/dist/cjs/vocabulary/catalog.js +1 -17
  9. package/dist/cjs/vocabulary/errors.js +0 -13
  10. package/dist/cjs/vocabulary/events.js +0 -1
  11. package/dist/esm/resources/catalog/index.js +1 -5
  12. package/dist/esm/resources/checkout/checkoutSessions.js +0 -4
  13. package/dist/esm/resources/events/events.js +0 -31
  14. package/dist/esm/resources/tax/calculations.js +29 -26
  15. package/dist/esm/resources/tax/reports.js +6 -6
  16. package/dist/esm/resources/tax/shared.js +6 -10
  17. package/dist/esm/resources/tax/transactions.js +8 -11
  18. package/dist/esm/vocabulary/catalog.js +0 -16
  19. package/dist/esm/vocabulary/errors.js +0 -13
  20. package/dist/esm/vocabulary/events.js +0 -1
  21. package/dist/types/resources/catalog/index.d.ts +1 -851
  22. package/dist/types/resources/checkout/checkoutSessions.d.ts +13 -61
  23. package/dist/types/resources/checkout/index.d.ts +10 -46
  24. package/dist/types/resources/events/events.d.ts +0 -22
  25. package/dist/types/resources/events/index.d.ts +2 -15
  26. package/dist/types/resources/events/webhookDeliveries.d.ts +0 -3
  27. package/dist/types/resources/events/webhookEndpoints.d.ts +4 -16
  28. package/dist/types/resources/payments/index.d.ts +10 -10
  29. package/dist/types/resources/payments/paymentIntents.d.ts +10 -10
  30. package/dist/types/resources/payments/testHelpers.d.ts +1 -1
  31. package/dist/types/resources/tax/calculations.d.ts +37 -37
  32. package/dist/types/resources/tax/index.d.ts +57 -57
  33. package/dist/types/resources/tax/registrations.d.ts +2 -2
  34. package/dist/types/resources/tax/reports.d.ts +6 -6
  35. package/dist/types/resources/tax/shared.d.ts +6 -7
  36. package/dist/types/resources/tax/transactions.d.ts +61 -61
  37. package/dist/types/vocabulary/catalog.d.ts +0 -9
  38. package/dist/types/vocabulary/errors.d.ts +0 -13
  39. package/dist/types/vocabulary/events.d.ts +0 -1
  40. package/package.json +1 -1
  41. package/dist/cjs/resources/catalog/billing.js +0 -755
  42. package/dist/esm/resources/catalog/billing.js +0 -752
  43. package/dist/types/resources/catalog/billing.d.ts +0 -1723
@@ -21,19 +21,15 @@ export declare const ERROR_CODE_DESCRIPTIONS: {
21
21
  readonly account_invalid: "The `Peable-Account` header names no connected account of this platform.";
22
22
  readonly account_missing: "The merchant has no account object yet.";
23
23
  readonly amount_not_representable: "The amount does not fit the currency or the rail.";
24
- readonly billing_not_enabled: "Billing is not enabled for this merchant.";
25
- readonly billing_provider_unavailable: "The billing provider could not be reached; retry.";
26
24
  readonly domain_taken: "The domain is already registered by another merchant.";
27
25
  readonly file_too_large: "The uploaded file is larger than its purpose allows.";
28
26
  readonly file_unavailable: "The file exists but its contents cannot be served right now.";
29
27
  readonly idempotency_error: "The `Idempotency-Key` was used with a different request, or its first request is still running.";
30
28
  readonly idempotency_key_invalid: "The `Idempotency-Key` header is not a valid key.";
31
29
  readonly insufficient_scope: "The credential is valid but was not granted the Oxy scope this route requires (`payments:read`, `payments:write`, …); `message` names it.";
32
- readonly invalid_billing_request: "The billing request is not valid for this subscription or offer.";
33
30
  readonly keyless_recipient: "The recipient has no receive key, so no address can be derived for them.";
34
31
  readonly link_not_found: "The link does not exist or is no longer active.";
35
32
  readonly live_payments_gated: "Live payments are not enabled for this application yet.";
36
- readonly local_test_request_required: "This test helper only answers a local test request.";
37
33
  readonly parameter_invalid: "A parameter is invalid; `param` names it.";
38
34
  readonly parameter_missing: "A required parameter is missing; `param` names it.";
39
35
  readonly parameter_unknown: "The request carries a parameter this route does not accept; `param` names it.";
@@ -62,10 +58,7 @@ export declare const ERROR_CODE_DESCRIPTIONS: {
62
58
  readonly customer_location_invalid: "The tax provider could not use the customer's location.";
63
59
  readonly dispute_already_submitted: "Evidence for this dispute has already been submitted; it is one shot.";
64
60
  readonly dispute_not_answerable: "The dispute is in a status that no longer accepts evidence.";
65
- readonly idempotency_conflict: "The same operation key was used for a different billing request.";
66
- readonly identity_conflict: "The billing identity already belongs to another customer or subscription.";
67
61
  readonly in_progress: "The same operation is still running; retry with the same key.";
68
- readonly invalid_provider_response: "The provider answered with something Peable cannot trust; the operation was not applied.";
69
62
  readonly invalid_registration: "The tax registration is not valid.";
70
63
  readonly invalid_registration_declaration: "The tax registration declaration is not valid.";
71
64
  readonly invalid_tax_code: "The tax code does not exist.";
@@ -80,12 +73,9 @@ export declare const ERROR_CODE_DESCRIPTIONS: {
80
73
  readonly product_in_use: "The product is referenced by a subscription or a link.";
81
74
  readonly promotion_code_invalid: "The promotion code does not exist, is inactive or does not apply.";
82
75
  readonly promotion_code_taken: "Another active promotion code already uses this `code`.";
83
- readonly provider_unavailable: "The payment provider could not be reached; retry.";
84
76
  readonly rail_unavailable: "The payment rail this request needs is not available.";
85
- readonly reconciliation_required: "The billing operation has an unknown outcome at the provider and is being reconciled.";
86
77
  readonly registration_immutable: "An approved or ended tax registration cannot be deleted or changed this way; end it instead.";
87
78
  readonly resource_already_exists: "An object with this identity already exists.";
88
- readonly result_expired: "The stored result of this operation has expired.";
89
79
  readonly review_item_not_open: "The review item is already resolved or dismissed.";
90
80
  readonly rule_set_version_unavailable: "The tax rule set version is not available.";
91
81
  readonly subscription_line_invalid: "A subscription line item is not valid for Checkout.";
@@ -93,9 +83,6 @@ export declare const ERROR_CODE_DESCRIPTIONS: {
93
83
  readonly tax_calculation_unavailable: "Tax could not be calculated; a covered sale fails closed.";
94
84
  readonly tax_provider_registration_mismatch: "The provider's registrations disagree with the ones Peable has approved.";
95
85
  readonly tax_settings_not_active: "Tax settings are not active for this merchant.";
96
- readonly local_test_unavailable: "The local test checkout is not available.";
97
- readonly local_test_configuration_unavailable: "The local test checkout has no provider configuration.";
98
- readonly local_test_subscription_unavailable: "The local test subscription cannot be read.";
99
86
  readonly rail_mismatch: "The operation does not apply to the rail this payment uses.";
100
87
  readonly checkout_session_changed: "The Checkout Session changed while this request ran (a price, a discount, its tax); read it again and retry.";
101
88
  readonly checkout_session_locked: "The Checkout Session is being confirmed and cannot change.";
@@ -54,7 +54,6 @@ export declare const WEBHOOK_EVENT_OBJECTS: {
54
54
  readonly 'setup_intent.succeeded': "setup_intent";
55
55
  readonly 'setup_intent.setup_failed': "setup_intent";
56
56
  readonly 'setup_intent.canceled': "setup_intent";
57
- readonly 'billing.observation.updated': "billing_observation";
58
57
  readonly 'connected_account.updated': "connected_account";
59
58
  readonly 'product.created': "product";
60
59
  readonly 'product.updated': "product";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peable.to/contracts",
3
- "version": "1.2.0",
3
+ "version": "3.0.0",
4
4
  "description": "The Peable wire, declared once: Zod contracts of every public route, the OpenAPI 3.1 generator and the closed value sets (ADR 0014 D5).",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",