@peable.to/shared-types 0.8.0 → 0.9.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/types/billing.d.ts +42 -0
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/types/billing.d.ts
CHANGED
|
@@ -310,3 +310,45 @@ export interface BillingFaircoinFxQuote {
|
|
|
310
310
|
expires_at: number;
|
|
311
311
|
rounding: 'ceil_to_base_unit';
|
|
312
312
|
}
|
|
313
|
+
/** Durable embedded-session reference. Provider secrets are never persisted in it. */
|
|
314
|
+
export interface BillingEmbeddedCheckoutSession {
|
|
315
|
+
id: string;
|
|
316
|
+
presentation: 'embedded';
|
|
317
|
+
expires_at: number;
|
|
318
|
+
}
|
|
319
|
+
/** Ephemeral processor capability released only to the authenticated owning workload. */
|
|
320
|
+
export interface BillingEmbeddedCheckoutAction {
|
|
321
|
+
kind: 'checkout_session';
|
|
322
|
+
provider: 'stripe';
|
|
323
|
+
session_id: string;
|
|
324
|
+
client_secret: string;
|
|
325
|
+
publishable_key: string;
|
|
326
|
+
amount_minor_units: number;
|
|
327
|
+
currency: string;
|
|
328
|
+
}
|
|
329
|
+
export interface BillingEmbeddedCheckoutScope {
|
|
330
|
+
merchant_id: string;
|
|
331
|
+
app_id: string;
|
|
332
|
+
environment: 'development' | 'staging' | 'production';
|
|
333
|
+
mode: 'test' | 'live';
|
|
334
|
+
}
|
|
335
|
+
export interface BillingEmbeddedCheckoutConfiguration {
|
|
336
|
+
scope: BillingEmbeddedCheckoutScope;
|
|
337
|
+
publishable_key: string;
|
|
338
|
+
payment_methods: {
|
|
339
|
+
id: 'card';
|
|
340
|
+
available: boolean;
|
|
341
|
+
}[];
|
|
342
|
+
}
|
|
343
|
+
export interface BillingEmbeddedCheckoutBinding {
|
|
344
|
+
status: 'open' | 'complete' | 'expired';
|
|
345
|
+
action: BillingEmbeddedCheckoutAction | null;
|
|
346
|
+
scope: BillingEmbeddedCheckoutScope & {
|
|
347
|
+
store_id: string;
|
|
348
|
+
plan_id: string;
|
|
349
|
+
provider_customer_id: string;
|
|
350
|
+
provider_price_id: string;
|
|
351
|
+
};
|
|
352
|
+
tax_quote: BillingTaxQuote;
|
|
353
|
+
expires_at: number;
|
|
354
|
+
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export type { AccountLink, ConnectOnboarding, ConnectOnboardingComplete, Registe
|
|
|
13
13
|
export type { PaymentLink, PublicPaymentLink, CreatePaymentLinkParams, UpdatePaymentLinkParams, } from './paymentLink';
|
|
14
14
|
export type { CheckoutSession, CheckoutSessionPublic, CreateCheckoutSessionParams, UpdateCheckoutSessionParams, } from './checkoutSession';
|
|
15
15
|
export { SOCIAL_SOURCE_APP_MAX_LENGTH, SOCIAL_SOURCE_REF_MAX_LENGTH, type SocialPaymentSource, type SocialNextAddressRequest, type SocialNextAddressResponse, type SocialReceiveCursorResponse, type SocialPaymentDirection, type SocialPayment, type SocialPaymentsResponse, type EnrichmentKind, type EnrichmentResult, type EnrichRequest, type EnrichResponse, } from './social';
|
|
16
|
-
export { BILLING_SUBSCRIPTION_STATUSES, type BillingSubscriptionStatus, type CreateBillingTaxQuoteParams, type BillingTaxQuote, type BillingInvoiceAuthoritySource, type BillingFinalInvoice, type BillingFinalInvoiceAuthority, type BillingFaircoinRenewalChoice, type BillingFaircoinRenewalConsent, type BillingFaircoinRenewalRevocation, type BillingCheckoutSession, type BillingCheckoutObservation, type RetrieveBillingCheckoutOperationParams, type BillingCheckoutOperationSource, type BillingCheckoutOperationRecovery, type BillingPaidInvoice, type BillingInvoiceState, type BillingCustomer, type BillingRail, type BillingRailSettlement, type BillingRailOffer, type BillingRailOption, type BillingRailList, type EnsureBillingCustomerParams, type CreateBillingCheckoutParams, type CreateBillingPortalParams, type BillingHostedSession, type BillingSubscription, } from './billing';
|
|
16
|
+
export { BILLING_SUBSCRIPTION_STATUSES, type BillingSubscriptionStatus, type CreateBillingTaxQuoteParams, type BillingTaxQuote, type BillingInvoiceAuthoritySource, type BillingFinalInvoice, type BillingFinalInvoiceAuthority, type BillingFaircoinRenewalChoice, type BillingFaircoinRenewalConsent, type BillingFaircoinRenewalRevocation, type BillingCheckoutSession, type BillingEmbeddedCheckoutSession, type BillingEmbeddedCheckoutConfiguration, type BillingEmbeddedCheckoutBinding, type BillingEmbeddedCheckoutAction, type BillingEmbeddedCheckoutScope, type BillingCheckoutObservation, type RetrieveBillingCheckoutOperationParams, type BillingCheckoutOperationSource, type BillingCheckoutOperationRecovery, type BillingPaidInvoice, type BillingInvoiceState, type BillingCustomer, type BillingRail, type BillingRailSettlement, type BillingRailOffer, type BillingRailOption, type BillingRailList, type EnsureBillingCustomerParams, type CreateBillingCheckoutParams, type CreateBillingPortalParams, type BillingHostedSession, type BillingSubscription, } from './billing';
|
|
17
17
|
export { canonicalBillingAuthority, canonicalBillingTaxQuote, PEABLE_BILLING_AUTHORITY_KEYS, } from './billing-authority';
|
|
18
18
|
export type { BillingFaircoinFxQuote } from './billing';
|
|
19
19
|
export { TAX_REGISTRATION_SCHEMES, TAX_LOCATION_EVIDENCE_TYPES, type TaxRegistrationScheme, type TaxLocationEvidenceType, type TaxBehavior, type TaxAddress, type TaxCode, type TaxCalculationAccount, type TaxSettings, type UpdateTaxSettingsParams, type TaxRegistration, type CreateTaxRegistrationParams, type TaxProductCode, type TaxLocationEvidenceItem, type CreateTaxLocationEvidenceParams, type TaxLocationEvidence, type TaxLineItemParams, type CreateTaxCalculationParams, type TaxBreakdownEntry, type TaxCalculationLineItem, type TaxCalculation, type TaxTransaction, type TaxTransactionList, type TaxTransactionReversal, type CreateTaxReversalParams, type ListTaxTransactionsParams, type TaxReportRow, type TaxReport, type BillingInvoiceTaxLine, } from './tax';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@peable.to/shared-types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "Shared TypeScript types for the Peable Gateway — the wire contract shared by the backend, SDK, and frontend.",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|