@peable.to/contracts 0.3.0 → 1.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/common/address.js +81 -0
- package/dist/cjs/common/envelopes.js +101 -0
- package/dist/cjs/common/objects.js +85 -0
- package/dist/cjs/common/params.js +211 -0
- package/dist/cjs/common/primitives.js +39 -0
- package/dist/cjs/contributions.js +22 -0
- package/dist/cjs/index.js +40 -97
- package/dist/cjs/openapi/document.js +297 -0
- package/dist/cjs/openapi/index.js +7 -0
- package/dist/cjs/openapi/webhooks.js +17 -0
- package/dist/cjs/resources/billingEngine/billingPortal.js +237 -0
- package/dist/cjs/resources/billingEngine/creditNotes.js +189 -0
- package/dist/cjs/resources/billingEngine/customerBalanceTransactions.js +90 -0
- package/dist/cjs/resources/billingEngine/index.js +43 -0
- package/dist/cjs/resources/billingEngine/invoiceItems.js +155 -0
- package/dist/cjs/resources/billingEngine/invoices.js +509 -0
- package/dist/cjs/resources/billingEngine/params.js +43 -0
- package/dist/cjs/resources/billingEngine/public.js +326 -0
- package/dist/cjs/resources/billingEngine/subscriptions.js +476 -0
- package/dist/cjs/resources/catalog/billing.js +755 -0
- package/dist/cjs/resources/catalog/billingSettings.js +131 -0
- package/dist/cjs/resources/catalog/coupons.js +222 -0
- package/dist/cjs/resources/catalog/entitlements.js +257 -0
- package/dist/cjs/resources/catalog/index.js +58 -0
- package/dist/cjs/resources/catalog/meters.js +279 -0
- package/dist/cjs/resources/catalog/prices.js +423 -0
- package/dist/cjs/resources/catalog/products.js +228 -0
- package/dist/cjs/resources/catalog/promotionCodes.js +174 -0
- package/dist/cjs/resources/catalog/shared.js +75 -0
- package/dist/cjs/resources/catalog/testClocks.js +127 -0
- package/dist/cjs/resources/checkout/checkoutSessions.js +582 -0
- package/dist/cjs/resources/checkout/contributions.js +172 -0
- package/dist/cjs/resources/checkout/files.js +133 -0
- package/dist/cjs/resources/checkout/index.js +57 -0
- package/dist/cjs/resources/checkout/merchants.js +290 -0
- package/dist/cjs/resources/checkout/paymentLinks.js +330 -0
- package/dist/cjs/resources/checkout/paymentMethodConfigurations.js +262 -0
- package/dist/cjs/resources/checkout/shared.js +368 -0
- package/dist/cjs/resources/connect/account.js +332 -0
- package/dist/cjs/resources/connect/applicationFees.js +113 -0
- package/dist/cjs/resources/connect/balance.js +212 -0
- package/dist/cjs/resources/connect/connectedAccounts.js +260 -0
- package/dist/cjs/resources/connect/index.js +51 -0
- package/dist/cjs/resources/connect/onboarding.js +82 -0
- package/dist/cjs/resources/connect/payouts.js +196 -0
- package/dist/cjs/resources/connect/reporting.js +235 -0
- package/dist/cjs/resources/connect/requestLogs.js +110 -0
- package/dist/cjs/resources/connect/transfers.js +227 -0
- package/dist/cjs/resources/core/customers.js +194 -0
- package/dist/cjs/resources/core/index.js +23 -0
- package/dist/cjs/resources/core/paymentMethods.js +134 -0
- package/dist/cjs/resources/events/events.js +357 -0
- package/dist/cjs/resources/events/index.js +29 -0
- package/dist/cjs/resources/events/webhookDeliveries.js +93 -0
- package/dist/cjs/resources/events/webhookEndpoints.js +215 -0
- package/dist/cjs/resources/payments/charges.js +157 -0
- package/dist/cjs/resources/payments/disputes.js +204 -0
- package/dist/cjs/resources/payments/index.js +41 -0
- package/dist/cjs/resources/payments/paymentIntents.js +529 -0
- package/dist/cjs/resources/payments/refunds.js +245 -0
- package/dist/cjs/resources/payments/setupIntents.js +158 -0
- package/dist/cjs/resources/payments/social.js +182 -0
- package/dist/cjs/resources/payments/testHelpers.js +39 -0
- package/dist/cjs/resources/tax/assessments.js +217 -0
- package/dist/cjs/resources/tax/businessProfile.js +99 -0
- package/dist/cjs/resources/tax/calculations.js +176 -0
- package/dist/cjs/resources/tax/capabilities.js +42 -0
- package/dist/cjs/resources/tax/codes.js +37 -0
- package/dist/cjs/resources/tax/complianceActions.js +56 -0
- package/dist/cjs/resources/tax/deadlines.js +59 -0
- package/dist/cjs/resources/tax/documents.js +128 -0
- package/dist/cjs/resources/tax/index.js +80 -0
- package/dist/cjs/resources/tax/locationEvidence.js +131 -0
- package/dist/cjs/resources/tax/operatingLocations.js +98 -0
- package/dist/cjs/resources/tax/products.js +67 -0
- package/dist/cjs/resources/tax/registrationDeclarations.js +124 -0
- package/dist/cjs/resources/tax/registrations.js +82 -0
- package/dist/cjs/resources/tax/reports.js +92 -0
- package/dist/cjs/resources/tax/reviewItems.js +116 -0
- package/dist/cjs/resources/tax/ruleSet.js +68 -0
- package/dist/cjs/resources/tax/salesDestinations.js +94 -0
- package/dist/cjs/resources/tax/settings.js +104 -0
- package/dist/cjs/resources/tax/shared.js +62 -0
- package/dist/cjs/resources/tax/transactions.js +102 -0
- package/dist/cjs/route.js +22 -0
- package/dist/cjs/routes.js +31 -0
- package/dist/cjs/vocabulary/billingPortal.js +15 -0
- package/dist/cjs/vocabulary/catalog.js +110 -0
- package/dist/cjs/vocabulary/checkout.js +53 -0
- package/dist/cjs/vocabulary/connect.js +95 -0
- package/dist/cjs/vocabulary/errors.js +174 -0
- package/dist/cjs/vocabulary/events.js +176 -0
- package/dist/cjs/vocabulary/files.js +44 -0
- package/dist/cjs/vocabulary/index.js +37 -0
- package/dist/cjs/vocabulary/invoices.js +52 -0
- package/dist/cjs/vocabulary/lists.js +22 -0
- package/dist/cjs/vocabulary/merchants.js +23 -0
- package/dist/cjs/vocabulary/money.js +104 -0
- package/dist/cjs/vocabulary/paymentMethodConfigurations.js +36 -0
- package/dist/cjs/vocabulary/payments.js +195 -0
- package/dist/cjs/vocabulary/reporting.js +27 -0
- package/dist/cjs/vocabulary/subscriptions.js +60 -0
- package/dist/cjs/vocabulary/tax.js +237 -0
- package/dist/cjs/vocabulary/version.js +12 -0
- package/dist/esm/common/address.js +76 -0
- package/dist/esm/common/envelopes.js +95 -0
- package/dist/esm/common/objects.js +74 -0
- package/dist/esm/common/params.js +203 -0
- package/dist/esm/common/primitives.js +35 -0
- package/dist/esm/contributions.js +5 -0
- package/dist/esm/index.js +26 -94
- package/dist/esm/openapi/document.js +294 -0
- package/dist/esm/openapi/index.js +2 -0
- package/dist/esm/openapi/webhooks.js +14 -0
- package/dist/esm/resources/billingEngine/billingPortal.js +234 -0
- package/dist/esm/resources/billingEngine/creditNotes.js +186 -0
- package/dist/esm/resources/billingEngine/customerBalanceTransactions.js +87 -0
- package/dist/esm/resources/billingEngine/index.js +26 -0
- package/dist/esm/resources/billingEngine/invoiceItems.js +152 -0
- package/dist/esm/resources/billingEngine/invoices.js +506 -0
- package/dist/esm/resources/billingEngine/params.js +39 -0
- package/dist/esm/resources/billingEngine/public.js +323 -0
- package/dist/esm/resources/billingEngine/subscriptions.js +473 -0
- package/dist/esm/resources/catalog/billing.js +752 -0
- package/dist/esm/resources/catalog/billingSettings.js +128 -0
- package/dist/esm/resources/catalog/coupons.js +219 -0
- package/dist/esm/resources/catalog/entitlements.js +254 -0
- package/dist/esm/resources/catalog/index.js +38 -0
- package/dist/esm/resources/catalog/meters.js +276 -0
- package/dist/esm/resources/catalog/prices.js +419 -0
- package/dist/esm/resources/catalog/products.js +225 -0
- package/dist/esm/resources/catalog/promotionCodes.js +171 -0
- package/dist/esm/resources/catalog/shared.js +67 -0
- package/dist/esm/resources/catalog/testClocks.js +124 -0
- package/dist/esm/resources/checkout/checkoutSessions.js +579 -0
- package/dist/esm/resources/checkout/contributions.js +167 -0
- package/dist/esm/resources/checkout/files.js +130 -0
- package/dist/esm/resources/checkout/index.js +25 -0
- package/dist/esm/resources/checkout/merchants.js +287 -0
- package/dist/esm/resources/checkout/paymentLinks.js +327 -0
- package/dist/esm/resources/checkout/paymentMethodConfigurations.js +259 -0
- package/dist/esm/resources/checkout/shared.js +363 -0
- package/dist/esm/resources/connect/account.js +329 -0
- package/dist/esm/resources/connect/applicationFees.js +110 -0
- package/dist/esm/resources/connect/balance.js +209 -0
- package/dist/esm/resources/connect/connectedAccounts.js +257 -0
- package/dist/esm/resources/connect/index.js +34 -0
- package/dist/esm/resources/connect/onboarding.js +79 -0
- package/dist/esm/resources/connect/payouts.js +193 -0
- package/dist/esm/resources/connect/reporting.js +232 -0
- package/dist/esm/resources/connect/requestLogs.js +107 -0
- package/dist/esm/resources/connect/transfers.js +224 -0
- package/dist/esm/resources/core/customers.js +191 -0
- package/dist/esm/resources/core/index.js +6 -0
- package/dist/esm/resources/core/paymentMethods.js +131 -0
- package/dist/esm/resources/events/events.js +353 -0
- package/dist/esm/resources/events/index.js +12 -0
- package/dist/esm/resources/events/webhookDeliveries.js +90 -0
- package/dist/esm/resources/events/webhookEndpoints.js +212 -0
- package/dist/esm/resources/payments/charges.js +154 -0
- package/dist/esm/resources/payments/disputes.js +201 -0
- package/dist/esm/resources/payments/index.js +24 -0
- package/dist/esm/resources/payments/paymentIntents.js +526 -0
- package/dist/esm/resources/payments/refunds.js +242 -0
- package/dist/esm/resources/payments/setupIntents.js +155 -0
- package/dist/esm/resources/payments/social.js +179 -0
- package/dist/esm/resources/payments/testHelpers.js +36 -0
- package/dist/esm/resources/tax/assessments.js +214 -0
- package/dist/esm/resources/tax/businessProfile.js +96 -0
- package/dist/esm/resources/tax/calculations.js +173 -0
- package/dist/esm/resources/tax/capabilities.js +39 -0
- package/dist/esm/resources/tax/codes.js +34 -0
- package/dist/esm/resources/tax/complianceActions.js +53 -0
- package/dist/esm/resources/tax/deadlines.js +56 -0
- package/dist/esm/resources/tax/documents.js +125 -0
- package/dist/esm/resources/tax/index.js +63 -0
- package/dist/esm/resources/tax/locationEvidence.js +128 -0
- package/dist/esm/resources/tax/operatingLocations.js +95 -0
- package/dist/esm/resources/tax/products.js +64 -0
- package/dist/esm/resources/tax/registrationDeclarations.js +121 -0
- package/dist/esm/resources/tax/registrations.js +79 -0
- package/dist/esm/resources/tax/reports.js +89 -0
- package/dist/esm/resources/tax/reviewItems.js +113 -0
- package/dist/esm/resources/tax/ruleSet.js +65 -0
- package/dist/esm/resources/tax/salesDestinations.js +91 -0
- package/dist/esm/resources/tax/settings.js +101 -0
- package/dist/esm/resources/tax/shared.js +58 -0
- package/dist/esm/resources/tax/transactions.js +99 -0
- package/dist/esm/route.js +16 -0
- package/dist/esm/routes.js +27 -0
- package/dist/esm/vocabulary/billingPortal.js +12 -0
- package/dist/esm/vocabulary/catalog.js +106 -0
- package/dist/esm/vocabulary/checkout.js +50 -0
- package/dist/esm/vocabulary/connect.js +92 -0
- package/dist/esm/vocabulary/errors.js +169 -0
- package/dist/esm/vocabulary/events.js +173 -0
- package/dist/esm/vocabulary/files.js +41 -0
- package/dist/esm/vocabulary/index.js +21 -0
- package/dist/esm/vocabulary/invoices.js +49 -0
- package/dist/esm/vocabulary/lists.js +19 -0
- package/dist/esm/vocabulary/merchants.js +20 -0
- package/dist/esm/vocabulary/money.js +98 -0
- package/dist/esm/vocabulary/paymentMethodConfigurations.js +33 -0
- package/dist/esm/vocabulary/payments.js +192 -0
- package/dist/esm/vocabulary/reporting.js +24 -0
- package/dist/esm/vocabulary/subscriptions.js +57 -0
- package/dist/esm/vocabulary/tax.js +233 -0
- package/dist/esm/vocabulary/version.js +9 -0
- package/dist/types/common/address.d.ts +62 -0
- package/dist/types/common/envelopes.d.ts +88 -0
- package/dist/types/common/objects.d.ts +107 -0
- package/dist/types/common/params.d.ts +156 -0
- package/dist/types/common/primitives.d.ts +56 -0
- package/dist/types/contributions.d.ts +1 -0
- package/dist/types/index.d.ts +16 -134
- package/dist/types/openapi/document.d.ts +16 -0
- package/dist/types/openapi/index.d.ts +2 -0
- package/dist/types/openapi/webhooks.d.ts +15 -0
- package/dist/types/resources/billingEngine/billingPortal.d.ts +742 -0
- package/dist/types/resources/billingEngine/creditNotes.d.ts +655 -0
- package/dist/types/resources/billingEngine/customerBalanceTransactions.d.ts +282 -0
- package/dist/types/resources/billingEngine/index.d.ts +6071 -0
- package/dist/types/resources/billingEngine/invoiceItems.d.ts +502 -0
- package/dist/types/resources/billingEngine/invoices.d.ts +2547 -0
- package/dist/types/resources/billingEngine/params.d.ts +51 -0
- package/dist/types/resources/billingEngine/public.d.ts +1860 -0
- package/dist/types/resources/billingEngine/subscriptions.d.ts +1519 -0
- package/dist/types/resources/catalog/billing.d.ts +1723 -0
- package/dist/types/resources/catalog/billingSettings.d.ts +160 -0
- package/dist/types/resources/catalog/coupons.d.ts +403 -0
- package/dist/types/resources/catalog/entitlements.d.ts +422 -0
- package/dist/types/resources/catalog/index.d.ts +3155 -0
- package/dist/types/resources/catalog/meters.d.ts +474 -0
- package/dist/types/resources/catalog/prices.d.ts +1091 -0
- package/dist/types/resources/catalog/products.d.ts +430 -0
- package/dist/types/resources/catalog/promotionCodes.d.ts +369 -0
- package/dist/types/resources/catalog/shared.d.ts +34 -0
- package/dist/types/resources/catalog/testClocks.d.ts +220 -0
- package/dist/types/resources/checkout/checkoutSessions.d.ts +3207 -0
- package/dist/types/resources/checkout/contributions.d.ts +375 -0
- package/dist/types/resources/checkout/files.d.ts +280 -0
- package/dist/types/resources/checkout/index.d.ts +5678 -0
- package/dist/types/resources/checkout/merchants.d.ts +395 -0
- package/dist/types/resources/checkout/paymentLinks.d.ts +1728 -0
- package/dist/types/resources/checkout/paymentMethodConfigurations.d.ts +2104 -0
- package/dist/types/resources/checkout/shared.d.ts +419 -0
- package/dist/types/resources/connect/account.d.ts +483 -0
- package/dist/types/resources/connect/applicationFees.d.ts +198 -0
- package/dist/types/resources/connect/balance.d.ts +399 -0
- package/dist/types/resources/connect/connectedAccounts.d.ts +494 -0
- package/dist/types/resources/connect/index.d.ts +2094 -0
- package/dist/types/resources/connect/onboarding.d.ts +95 -0
- package/dist/types/resources/connect/payouts.d.ts +527 -0
- package/dist/types/resources/connect/reporting.d.ts +506 -0
- package/dist/types/resources/connect/requestLogs.d.ts +236 -0
- package/dist/types/resources/connect/transfers.d.ts +436 -0
- package/dist/types/resources/core/customers.d.ts +619 -0
- package/dist/types/resources/core/index.d.ts +679 -0
- package/dist/types/resources/core/paymentMethods.d.ts +336 -0
- package/dist/types/resources/events/events.d.ts +731 -0
- package/dist/types/resources/events/index.d.ts +1727 -0
- package/dist/types/resources/events/webhookDeliveries.d.ts +436 -0
- package/dist/types/resources/events/webhookEndpoints.d.ts +1502 -0
- package/dist/types/resources/payments/charges.d.ts +390 -0
- package/dist/types/resources/payments/disputes.d.ts +822 -0
- package/dist/types/resources/payments/index.d.ts +3517 -0
- package/dist/types/resources/payments/paymentIntents.d.ts +2080 -0
- package/dist/types/resources/payments/refunds.d.ts +684 -0
- package/dist/types/resources/payments/setupIntents.d.ts +391 -0
- package/dist/types/resources/payments/social.d.ts +266 -0
- package/dist/types/resources/payments/testHelpers.d.ts +178 -0
- package/dist/types/resources/tax/assessments.d.ts +787 -0
- package/dist/types/resources/tax/businessProfile.d.ts +134 -0
- package/dist/types/resources/tax/calculations.d.ts +261 -0
- package/dist/types/resources/tax/capabilities.d.ts +81 -0
- package/dist/types/resources/tax/codes.d.ts +29 -0
- package/dist/types/resources/tax/complianceActions.d.ts +97 -0
- package/dist/types/resources/tax/deadlines.d.ts +133 -0
- package/dist/types/resources/tax/documents.d.ts +257 -0
- package/dist/types/resources/tax/index.d.ts +1946 -0
- package/dist/types/resources/tax/locationEvidence.d.ts +246 -0
- package/dist/types/resources/tax/operatingLocations.d.ts +170 -0
- package/dist/types/resources/tax/products.d.ts +68 -0
- package/dist/types/resources/tax/registrationDeclarations.d.ts +270 -0
- package/dist/types/resources/tax/registrations.d.ts +103 -0
- package/dist/types/resources/tax/reports.d.ts +129 -0
- package/dist/types/resources/tax/reviewItems.d.ts +226 -0
- package/dist/types/resources/tax/ruleSet.d.ts +219 -0
- package/dist/types/resources/tax/salesDestinations.d.ts +158 -0
- package/dist/types/resources/tax/settings.d.ts +122 -0
- package/dist/types/resources/tax/shared.d.ts +43 -0
- package/dist/types/resources/tax/transactions.d.ts +404 -0
- package/dist/types/route.d.ts +86 -0
- package/dist/types/routes.d.ts +23 -0
- package/dist/types/vocabulary/billingPortal.d.ts +15 -0
- package/dist/types/vocabulary/catalog.d.ts +97 -0
- package/dist/types/vocabulary/checkout.d.ts +49 -0
- package/dist/types/vocabulary/connect.d.ts +62 -0
- package/dist/types/vocabulary/errors.d.ts +145 -0
- package/dist/types/vocabulary/events.d.ts +171 -0
- package/dist/types/vocabulary/files.d.ts +30 -0
- package/dist/types/vocabulary/index.d.ts +17 -0
- package/dist/types/vocabulary/invoices.d.ts +39 -0
- package/dist/types/vocabulary/lists.d.ts +9 -0
- package/dist/types/vocabulary/merchants.d.ts +9 -0
- package/dist/types/vocabulary/money.d.ts +59 -0
- package/dist/types/vocabulary/paymentMethodConfigurations.d.ts +22 -0
- package/dist/types/vocabulary/payments.d.ts +117 -0
- package/dist/types/vocabulary/reporting.d.ts +18 -0
- package/dist/types/vocabulary/subscriptions.d.ts +45 -0
- package/dist/types/vocabulary/tax.d.ts +163 -0
- package/dist/types/vocabulary/version.d.ts +10 -0
- package/package.json +51 -11
- package/dist/cjs/openapi.js +0 -138
- package/dist/esm/openapi.js +0 -134
- package/dist/types/openapi.d.ts +0 -145
|
@@ -0,0 +1,395 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type Expand } from '../../common/objects';
|
|
3
|
+
/**
|
|
4
|
+
* The merchant (`merch_…`) — one per Oxy application and environment — with
|
|
5
|
+
* its branding and customer-email settings. `next_derivation_index` is never
|
|
6
|
+
* on the wire: it is an internal derivation counter with no meaning to an
|
|
7
|
+
* integration. Where events go is not a merchant field: it is the
|
|
8
|
+
* `webhook_endpoint` resource.
|
|
9
|
+
*/
|
|
10
|
+
export declare const merchantSchema: z.ZodObject<{
|
|
11
|
+
id: z.ZodString;
|
|
12
|
+
object: z.ZodLiteral<"merchant">;
|
|
13
|
+
livemode: z.ZodBoolean;
|
|
14
|
+
oxy_app_id: z.ZodString;
|
|
15
|
+
environment: z.ZodEnum<{
|
|
16
|
+
development: "development";
|
|
17
|
+
staging: "staging";
|
|
18
|
+
production: "production";
|
|
19
|
+
}>;
|
|
20
|
+
network: z.ZodNullable<z.ZodEnum<{
|
|
21
|
+
mainnet: "mainnet";
|
|
22
|
+
testnet: "testnet";
|
|
23
|
+
}>>;
|
|
24
|
+
xpub: z.ZodNullable<z.ZodString>;
|
|
25
|
+
required_confirmations: z.ZodNumber;
|
|
26
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
27
|
+
avatar_file_id: z.ZodOptional<z.ZodString>;
|
|
28
|
+
business_logo: z.ZodOptional<z.ZodString>;
|
|
29
|
+
description: z.ZodOptional<z.ZodString>;
|
|
30
|
+
created: z.ZodNumber;
|
|
31
|
+
updated_at: z.ZodNumber;
|
|
32
|
+
}, z.core.$strict>;
|
|
33
|
+
export type Merchant = Expand<z.output<typeof merchantSchema>>;
|
|
34
|
+
declare module '../../common/objects' {
|
|
35
|
+
interface ObjectMap {
|
|
36
|
+
merchant: Merchant;
|
|
37
|
+
branding_settings: MerchantBranding;
|
|
38
|
+
email_settings: MerchantEmailSettings;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
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.
|
|
45
|
+
*/
|
|
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
|
+
required_confirmations: z.ZodOptional<z.ZodNumber>;
|
|
53
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
54
|
+
avatar_file_id: z.ZodOptional<z.ZodString>;
|
|
55
|
+
description: z.ZodOptional<z.ZodString>;
|
|
56
|
+
}, z.core.$strict>;
|
|
57
|
+
export type RegisterMerchantParams = z.input<typeof registerMerchantParams>;
|
|
58
|
+
/**
|
|
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.
|
|
62
|
+
*/
|
|
63
|
+
export declare const updateMerchantParams: z.ZodObject<{
|
|
64
|
+
required_confirmations: z.ZodOptional<z.ZodNumber>;
|
|
65
|
+
display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
66
|
+
avatar_file_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
67
|
+
business_logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
68
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
69
|
+
}, z.core.$strict>;
|
|
70
|
+
export type UpdateMerchantParams = z.input<typeof updateMerchantParams>;
|
|
71
|
+
/** A merchant's branding: what its hosted checkout, embedded checkout and receipts look like. */
|
|
72
|
+
export declare const merchantBrandingSchema: z.ZodObject<{
|
|
73
|
+
object: z.ZodLiteral<"branding_settings">;
|
|
74
|
+
livemode: z.ZodBoolean;
|
|
75
|
+
use_avatar_as_icon: z.ZodBoolean;
|
|
76
|
+
logo: z.ZodNullable<z.ZodString>;
|
|
77
|
+
primary_color: z.ZodNullable<z.ZodString>;
|
|
78
|
+
accent_color: z.ZodNullable<z.ZodString>;
|
|
79
|
+
font: z.ZodNullable<z.ZodEnum<{
|
|
80
|
+
system: "system";
|
|
81
|
+
inter: "inter";
|
|
82
|
+
roboto: "roboto";
|
|
83
|
+
open_sans: "open_sans";
|
|
84
|
+
lato: "lato";
|
|
85
|
+
source_sans: "source_sans";
|
|
86
|
+
noto_sans: "noto_sans";
|
|
87
|
+
serif: "serif";
|
|
88
|
+
monospace: "monospace";
|
|
89
|
+
}>>;
|
|
90
|
+
border_style: z.ZodNullable<z.ZodEnum<{
|
|
91
|
+
rounded: "rounded";
|
|
92
|
+
rectangular: "rectangular";
|
|
93
|
+
pill: "pill";
|
|
94
|
+
}>>;
|
|
95
|
+
terms_of_service_url: z.ZodNullable<z.ZodString>;
|
|
96
|
+
updated_at: z.ZodNullable<z.ZodNumber>;
|
|
97
|
+
}, z.core.$strict>;
|
|
98
|
+
export type MerchantBranding = z.output<typeof merchantBrandingSchema>;
|
|
99
|
+
export declare const updateMerchantBrandingParams: z.ZodObject<{
|
|
100
|
+
use_avatar_as_icon: z.ZodOptional<z.ZodBoolean>;
|
|
101
|
+
logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
102
|
+
primary_color: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
103
|
+
accent_color: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
104
|
+
font: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
105
|
+
system: "system";
|
|
106
|
+
inter: "inter";
|
|
107
|
+
roboto: "roboto";
|
|
108
|
+
open_sans: "open_sans";
|
|
109
|
+
lato: "lato";
|
|
110
|
+
source_sans: "source_sans";
|
|
111
|
+
noto_sans: "noto_sans";
|
|
112
|
+
serif: "serif";
|
|
113
|
+
monospace: "monospace";
|
|
114
|
+
}>>>;
|
|
115
|
+
border_style: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
116
|
+
rounded: "rounded";
|
|
117
|
+
rectangular: "rectangular";
|
|
118
|
+
pill: "pill";
|
|
119
|
+
}>>>;
|
|
120
|
+
terms_of_service_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
121
|
+
}, z.core.$strict>;
|
|
122
|
+
export type UpdateMerchantBrandingParams = z.input<typeof updateMerchantBrandingParams>;
|
|
123
|
+
/** Which customer emails Peable sends for this merchant. */
|
|
124
|
+
export declare const merchantEmailSettingsSchema: z.ZodObject<{
|
|
125
|
+
object: z.ZodLiteral<"email_settings">;
|
|
126
|
+
livemode: z.ZodBoolean;
|
|
127
|
+
payment_receipts: z.ZodBoolean;
|
|
128
|
+
refund_notices: z.ZodBoolean;
|
|
129
|
+
checkout_confirmations: z.ZodBoolean;
|
|
130
|
+
support_email: z.ZodNullable<z.ZodString>;
|
|
131
|
+
updated_at: z.ZodNullable<z.ZodNumber>;
|
|
132
|
+
}, z.core.$strict>;
|
|
133
|
+
export type MerchantEmailSettings = z.output<typeof merchantEmailSettingsSchema>;
|
|
134
|
+
export declare const updateMerchantEmailSettingsParams: z.ZodObject<{
|
|
135
|
+
payment_receipts: z.ZodOptional<z.ZodBoolean>;
|
|
136
|
+
refund_notices: z.ZodOptional<z.ZodBoolean>;
|
|
137
|
+
checkout_confirmations: z.ZodOptional<z.ZodBoolean>;
|
|
138
|
+
support_email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
139
|
+
}, z.core.$strict>;
|
|
140
|
+
export type UpdateMerchantEmailSettingsParams = z.input<typeof updateMerchantEmailSettingsParams>;
|
|
141
|
+
export declare const merchantRoutes: readonly [{
|
|
142
|
+
readonly operationId: "registerMerchant";
|
|
143
|
+
readonly method: "post";
|
|
144
|
+
readonly path: "/v1/merchants";
|
|
145
|
+
readonly tag: "Merchants";
|
|
146
|
+
readonly summary: "Register the merchant";
|
|
147
|
+
readonly description: "Registers the calling application's merchant in the credential's environment. A non-production credential can register a testnet merchant only. A second registration for the same application and environment answers 409. Outside the generic idempotency layer: the merchant is the scope it keys on.";
|
|
148
|
+
readonly auth: "service";
|
|
149
|
+
readonly scope: "payments:write";
|
|
150
|
+
readonly body: z.ZodObject<{
|
|
151
|
+
network: z.ZodOptional<z.ZodEnum<{
|
|
152
|
+
mainnet: "mainnet";
|
|
153
|
+
testnet: "testnet";
|
|
154
|
+
}>>;
|
|
155
|
+
xpub: z.ZodOptional<z.ZodString>;
|
|
156
|
+
required_confirmations: z.ZodOptional<z.ZodNumber>;
|
|
157
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
158
|
+
avatar_file_id: z.ZodOptional<z.ZodString>;
|
|
159
|
+
description: z.ZodOptional<z.ZodString>;
|
|
160
|
+
}, z.core.$strict>;
|
|
161
|
+
readonly response: z.ZodObject<{
|
|
162
|
+
id: z.ZodString;
|
|
163
|
+
object: z.ZodLiteral<"merchant">;
|
|
164
|
+
livemode: z.ZodBoolean;
|
|
165
|
+
oxy_app_id: z.ZodString;
|
|
166
|
+
environment: z.ZodEnum<{
|
|
167
|
+
development: "development";
|
|
168
|
+
staging: "staging";
|
|
169
|
+
production: "production";
|
|
170
|
+
}>;
|
|
171
|
+
network: z.ZodNullable<z.ZodEnum<{
|
|
172
|
+
mainnet: "mainnet";
|
|
173
|
+
testnet: "testnet";
|
|
174
|
+
}>>;
|
|
175
|
+
xpub: z.ZodNullable<z.ZodString>;
|
|
176
|
+
required_confirmations: z.ZodNumber;
|
|
177
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
178
|
+
avatar_file_id: z.ZodOptional<z.ZodString>;
|
|
179
|
+
business_logo: z.ZodOptional<z.ZodString>;
|
|
180
|
+
description: z.ZodOptional<z.ZodString>;
|
|
181
|
+
created: z.ZodNumber;
|
|
182
|
+
updated_at: z.ZodNumber;
|
|
183
|
+
}, z.core.$strict>;
|
|
184
|
+
readonly status: 201;
|
|
185
|
+
readonly sdk: "merchants.register";
|
|
186
|
+
}, {
|
|
187
|
+
readonly operationId: "retrieveMerchant";
|
|
188
|
+
readonly method: "get";
|
|
189
|
+
readonly path: "/v1/merchants/me";
|
|
190
|
+
readonly tag: "Merchants";
|
|
191
|
+
readonly summary: "Retrieve your merchant";
|
|
192
|
+
readonly auth: "service";
|
|
193
|
+
readonly scope: "payments:read";
|
|
194
|
+
readonly response: z.ZodObject<{
|
|
195
|
+
id: z.ZodString;
|
|
196
|
+
object: z.ZodLiteral<"merchant">;
|
|
197
|
+
livemode: z.ZodBoolean;
|
|
198
|
+
oxy_app_id: z.ZodString;
|
|
199
|
+
environment: z.ZodEnum<{
|
|
200
|
+
development: "development";
|
|
201
|
+
staging: "staging";
|
|
202
|
+
production: "production";
|
|
203
|
+
}>;
|
|
204
|
+
network: z.ZodNullable<z.ZodEnum<{
|
|
205
|
+
mainnet: "mainnet";
|
|
206
|
+
testnet: "testnet";
|
|
207
|
+
}>>;
|
|
208
|
+
xpub: z.ZodNullable<z.ZodString>;
|
|
209
|
+
required_confirmations: z.ZodNumber;
|
|
210
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
211
|
+
avatar_file_id: z.ZodOptional<z.ZodString>;
|
|
212
|
+
business_logo: z.ZodOptional<z.ZodString>;
|
|
213
|
+
description: z.ZodOptional<z.ZodString>;
|
|
214
|
+
created: z.ZodNumber;
|
|
215
|
+
updated_at: z.ZodNumber;
|
|
216
|
+
}, z.core.$strict>;
|
|
217
|
+
readonly sdk: "merchants.retrieve";
|
|
218
|
+
}, {
|
|
219
|
+
readonly operationId: "updateMerchant";
|
|
220
|
+
readonly method: "post";
|
|
221
|
+
readonly path: "/v1/merchants/me";
|
|
222
|
+
readonly tag: "Merchants";
|
|
223
|
+
readonly summary: "Update your merchant";
|
|
224
|
+
readonly auth: "service";
|
|
225
|
+
readonly scope: "payments:write";
|
|
226
|
+
readonly idempotent: true;
|
|
227
|
+
readonly body: z.ZodObject<{
|
|
228
|
+
required_confirmations: z.ZodOptional<z.ZodNumber>;
|
|
229
|
+
display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
230
|
+
avatar_file_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
231
|
+
business_logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
232
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
233
|
+
}, z.core.$strict>;
|
|
234
|
+
readonly response: z.ZodObject<{
|
|
235
|
+
id: z.ZodString;
|
|
236
|
+
object: z.ZodLiteral<"merchant">;
|
|
237
|
+
livemode: z.ZodBoolean;
|
|
238
|
+
oxy_app_id: z.ZodString;
|
|
239
|
+
environment: z.ZodEnum<{
|
|
240
|
+
development: "development";
|
|
241
|
+
staging: "staging";
|
|
242
|
+
production: "production";
|
|
243
|
+
}>;
|
|
244
|
+
network: z.ZodNullable<z.ZodEnum<{
|
|
245
|
+
mainnet: "mainnet";
|
|
246
|
+
testnet: "testnet";
|
|
247
|
+
}>>;
|
|
248
|
+
xpub: z.ZodNullable<z.ZodString>;
|
|
249
|
+
required_confirmations: z.ZodNumber;
|
|
250
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
251
|
+
avatar_file_id: z.ZodOptional<z.ZodString>;
|
|
252
|
+
business_logo: z.ZodOptional<z.ZodString>;
|
|
253
|
+
description: z.ZodOptional<z.ZodString>;
|
|
254
|
+
created: z.ZodNumber;
|
|
255
|
+
updated_at: z.ZodNumber;
|
|
256
|
+
}, z.core.$strict>;
|
|
257
|
+
readonly sdk: "merchants.update";
|
|
258
|
+
}, {
|
|
259
|
+
readonly operationId: "retrieveBrandingSettings";
|
|
260
|
+
readonly method: "get";
|
|
261
|
+
readonly path: "/v1/merchants/me/branding";
|
|
262
|
+
readonly tag: "Merchants";
|
|
263
|
+
readonly summary: "Retrieve your branding";
|
|
264
|
+
readonly auth: "service";
|
|
265
|
+
readonly scope: "payments:read";
|
|
266
|
+
readonly response: z.ZodObject<{
|
|
267
|
+
object: z.ZodLiteral<"branding_settings">;
|
|
268
|
+
livemode: z.ZodBoolean;
|
|
269
|
+
use_avatar_as_icon: z.ZodBoolean;
|
|
270
|
+
logo: z.ZodNullable<z.ZodString>;
|
|
271
|
+
primary_color: z.ZodNullable<z.ZodString>;
|
|
272
|
+
accent_color: z.ZodNullable<z.ZodString>;
|
|
273
|
+
font: z.ZodNullable<z.ZodEnum<{
|
|
274
|
+
system: "system";
|
|
275
|
+
inter: "inter";
|
|
276
|
+
roboto: "roboto";
|
|
277
|
+
open_sans: "open_sans";
|
|
278
|
+
lato: "lato";
|
|
279
|
+
source_sans: "source_sans";
|
|
280
|
+
noto_sans: "noto_sans";
|
|
281
|
+
serif: "serif";
|
|
282
|
+
monospace: "monospace";
|
|
283
|
+
}>>;
|
|
284
|
+
border_style: z.ZodNullable<z.ZodEnum<{
|
|
285
|
+
rounded: "rounded";
|
|
286
|
+
rectangular: "rectangular";
|
|
287
|
+
pill: "pill";
|
|
288
|
+
}>>;
|
|
289
|
+
terms_of_service_url: z.ZodNullable<z.ZodString>;
|
|
290
|
+
updated_at: z.ZodNullable<z.ZodNumber>;
|
|
291
|
+
}, z.core.$strict>;
|
|
292
|
+
readonly sdk: "merchants.branding.retrieve";
|
|
293
|
+
}, {
|
|
294
|
+
readonly operationId: "updateBrandingSettings";
|
|
295
|
+
readonly method: "post";
|
|
296
|
+
readonly path: "/v1/merchants/me/branding";
|
|
297
|
+
readonly tag: "Merchants";
|
|
298
|
+
readonly summary: "Update your branding";
|
|
299
|
+
readonly auth: "service";
|
|
300
|
+
readonly scope: "payments:write";
|
|
301
|
+
readonly idempotent: true;
|
|
302
|
+
readonly body: z.ZodObject<{
|
|
303
|
+
use_avatar_as_icon: z.ZodOptional<z.ZodBoolean>;
|
|
304
|
+
logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
305
|
+
primary_color: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
306
|
+
accent_color: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
307
|
+
font: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
308
|
+
system: "system";
|
|
309
|
+
inter: "inter";
|
|
310
|
+
roboto: "roboto";
|
|
311
|
+
open_sans: "open_sans";
|
|
312
|
+
lato: "lato";
|
|
313
|
+
source_sans: "source_sans";
|
|
314
|
+
noto_sans: "noto_sans";
|
|
315
|
+
serif: "serif";
|
|
316
|
+
monospace: "monospace";
|
|
317
|
+
}>>>;
|
|
318
|
+
border_style: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
319
|
+
rounded: "rounded";
|
|
320
|
+
rectangular: "rectangular";
|
|
321
|
+
pill: "pill";
|
|
322
|
+
}>>>;
|
|
323
|
+
terms_of_service_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
324
|
+
}, z.core.$strict>;
|
|
325
|
+
readonly response: z.ZodObject<{
|
|
326
|
+
object: z.ZodLiteral<"branding_settings">;
|
|
327
|
+
livemode: z.ZodBoolean;
|
|
328
|
+
use_avatar_as_icon: z.ZodBoolean;
|
|
329
|
+
logo: z.ZodNullable<z.ZodString>;
|
|
330
|
+
primary_color: z.ZodNullable<z.ZodString>;
|
|
331
|
+
accent_color: z.ZodNullable<z.ZodString>;
|
|
332
|
+
font: z.ZodNullable<z.ZodEnum<{
|
|
333
|
+
system: "system";
|
|
334
|
+
inter: "inter";
|
|
335
|
+
roboto: "roboto";
|
|
336
|
+
open_sans: "open_sans";
|
|
337
|
+
lato: "lato";
|
|
338
|
+
source_sans: "source_sans";
|
|
339
|
+
noto_sans: "noto_sans";
|
|
340
|
+
serif: "serif";
|
|
341
|
+
monospace: "monospace";
|
|
342
|
+
}>>;
|
|
343
|
+
border_style: z.ZodNullable<z.ZodEnum<{
|
|
344
|
+
rounded: "rounded";
|
|
345
|
+
rectangular: "rectangular";
|
|
346
|
+
pill: "pill";
|
|
347
|
+
}>>;
|
|
348
|
+
terms_of_service_url: z.ZodNullable<z.ZodString>;
|
|
349
|
+
updated_at: z.ZodNullable<z.ZodNumber>;
|
|
350
|
+
}, z.core.$strict>;
|
|
351
|
+
readonly sdk: "merchants.branding.update";
|
|
352
|
+
}, {
|
|
353
|
+
readonly operationId: "retrieveEmailSettings";
|
|
354
|
+
readonly method: "get";
|
|
355
|
+
readonly path: "/v1/merchants/me/email_settings";
|
|
356
|
+
readonly tag: "Merchants";
|
|
357
|
+
readonly summary: "Retrieve your customer email settings";
|
|
358
|
+
readonly auth: "service";
|
|
359
|
+
readonly scope: "payments:read";
|
|
360
|
+
readonly response: z.ZodObject<{
|
|
361
|
+
object: z.ZodLiteral<"email_settings">;
|
|
362
|
+
livemode: z.ZodBoolean;
|
|
363
|
+
payment_receipts: z.ZodBoolean;
|
|
364
|
+
refund_notices: z.ZodBoolean;
|
|
365
|
+
checkout_confirmations: z.ZodBoolean;
|
|
366
|
+
support_email: z.ZodNullable<z.ZodString>;
|
|
367
|
+
updated_at: z.ZodNullable<z.ZodNumber>;
|
|
368
|
+
}, z.core.$strict>;
|
|
369
|
+
readonly sdk: "merchants.emailSettings.retrieve";
|
|
370
|
+
}, {
|
|
371
|
+
readonly operationId: "updateEmailSettings";
|
|
372
|
+
readonly method: "post";
|
|
373
|
+
readonly path: "/v1/merchants/me/email_settings";
|
|
374
|
+
readonly tag: "Merchants";
|
|
375
|
+
readonly summary: "Update your customer email settings";
|
|
376
|
+
readonly auth: "service";
|
|
377
|
+
readonly scope: "payments:write";
|
|
378
|
+
readonly idempotent: true;
|
|
379
|
+
readonly body: z.ZodObject<{
|
|
380
|
+
payment_receipts: z.ZodOptional<z.ZodBoolean>;
|
|
381
|
+
refund_notices: z.ZodOptional<z.ZodBoolean>;
|
|
382
|
+
checkout_confirmations: z.ZodOptional<z.ZodBoolean>;
|
|
383
|
+
support_email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
384
|
+
}, z.core.$strict>;
|
|
385
|
+
readonly response: z.ZodObject<{
|
|
386
|
+
object: z.ZodLiteral<"email_settings">;
|
|
387
|
+
livemode: z.ZodBoolean;
|
|
388
|
+
payment_receipts: z.ZodBoolean;
|
|
389
|
+
refund_notices: z.ZodBoolean;
|
|
390
|
+
checkout_confirmations: z.ZodBoolean;
|
|
391
|
+
support_email: z.ZodNullable<z.ZodString>;
|
|
392
|
+
updated_at: z.ZodNullable<z.ZodNumber>;
|
|
393
|
+
}, z.core.$strict>;
|
|
394
|
+
readonly sdk: "merchants.emailSettings.update";
|
|
395
|
+
}];
|