@happyvertical/smrt-commerce 0.57.10 → 0.57.12

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 (63) hide show
  1. package/AGENTS.md +1 -0
  2. package/README.md +61 -0
  3. package/agents/connected-payments.md +135 -0
  4. package/agents/contract-billing-schedules.md +6 -0
  5. package/agents/money-upgrade.md +5 -0
  6. package/dist/chunks/{ContractLineItemCollection-DQZqRiZi.js → ContractLineItemCollection-DkBeBR7a.js} +4 -4
  7. package/dist/chunks/{ContractLineItemCollection-DQZqRiZi.js.map → ContractLineItemCollection-DkBeBR7a.js.map} +1 -1
  8. package/dist/chunks/{DocumentTaxCollection-Dg942m_Z.js → DocumentTaxCollection-D85ut-Fo.js} +14 -10
  9. package/dist/chunks/{DocumentTaxCollection-Dg942m_Z.js.map → DocumentTaxCollection-D85ut-Fo.js.map} +1 -1
  10. package/dist/chunks/{InvoiceCollection-XPcPyibo.js → InvoiceCollection-Datg_eZM.js} +9 -9
  11. package/dist/chunks/{InvoiceCollection-XPcPyibo.js.map → InvoiceCollection-Datg_eZM.js.map} +1 -1
  12. package/dist/chunks/{TaxCodeCollection-CbTBWO8z.js → TaxCodeCollection-CIC1skxr.js} +2 -2
  13. package/dist/chunks/{TaxCodeCollection-CbTBWO8z.js.map → TaxCodeCollection-CIC1skxr.js.map} +1 -1
  14. package/dist/chunks/{TaxComponentCollection-VZ_cGr2n.js → TaxComponentCollection-BHBV-_1J.js} +3 -3
  15. package/dist/chunks/{TaxComponentCollection-VZ_cGr2n.js.map → TaxComponentCollection-BHBV-_1J.js.map} +1 -1
  16. package/dist/chunks/{allocation-integrity-Kr8uceRx.js → allocation-integrity-B2SyO1mu.js} +6 -6
  17. package/dist/chunks/{allocation-integrity-Kr8uceRx.js.map → allocation-integrity-B2SyO1mu.js.map} +1 -1
  18. package/dist/chunks/{contract-money-DGNqQwf0.js → contract-money-C61kGBkU.js} +7 -6
  19. package/dist/chunks/contract-money-C61kGBkU.js.map +1 -0
  20. package/dist/chunks/{invoice-posting-DVSkfSUm.js → invoice-posting-uLfdyLIi.js} +3 -3
  21. package/dist/chunks/{invoice-posting-DVSkfSUm.js.map → invoice-posting-uLfdyLIi.js.map} +1 -1
  22. package/dist/chunks/{retention-accounting-Ct5Df6xx.js → retention-accounting-DGuXzt9g.js} +149 -11
  23. package/dist/chunks/retention-accounting-DGuXzt9g.js.map +1 -0
  24. package/dist/chunks/{tenant-money-barrier-CG78Xxja.js → tenant-money-barrier-DXnJWxiZ.js} +3 -3
  25. package/dist/chunks/{tenant-money-barrier-CG78Xxja.js.map → tenant-money-barrier-DXnJWxiZ.js.map} +1 -1
  26. package/dist/chunks/types-Bbm0Xflc.js.map +1 -1
  27. package/dist/collections/TenantPaymentAccountCollection.d.ts +28 -0
  28. package/dist/collections/TenantPaymentAccountCollection.d.ts.map +1 -0
  29. package/dist/collections/index.d.ts +1 -0
  30. package/dist/collections/index.d.ts.map +1 -1
  31. package/dist/connected-payments-internal.d.ts +5 -0
  32. package/dist/connected-payments-internal.d.ts.map +1 -0
  33. package/dist/connected-payments.d.ts +361 -0
  34. package/dist/connected-payments.d.ts.map +1 -0
  35. package/dist/contract-money.d.ts.map +1 -1
  36. package/dist/index.d.ts +3 -2
  37. package/dist/index.d.ts.map +1 -1
  38. package/dist/index.js +1241 -160
  39. package/dist/index.js.map +1 -1
  40. package/dist/invoices.js +1 -1
  41. package/dist/manifest.json +1404 -129
  42. package/dist/models/Contract.d.ts +5 -1
  43. package/dist/models/Contract.d.ts.map +1 -1
  44. package/dist/models/Payment.d.ts +33 -0
  45. package/dist/models/Payment.d.ts.map +1 -1
  46. package/dist/models/PaymentIntent.d.ts +35 -0
  47. package/dist/models/PaymentIntent.d.ts.map +1 -1
  48. package/dist/models/TenantPaymentAccount.d.ts +121 -0
  49. package/dist/models/TenantPaymentAccount.d.ts.map +1 -0
  50. package/dist/models/TenantPaymentWebhookEvent.d.ts +50 -0
  51. package/dist/models/TenantPaymentWebhookEvent.d.ts.map +1 -0
  52. package/dist/models/index.d.ts +2 -0
  53. package/dist/models/index.d.ts.map +1 -1
  54. package/dist/recipes.d.ts +15 -0
  55. package/dist/recipes.d.ts.map +1 -1
  56. package/dist/smrt-knowledge.json +622 -27
  57. package/dist/types/index.d.ts +16 -0
  58. package/dist/types/index.d.ts.map +1 -1
  59. package/dist/upgrade/money-v2.d.ts +2 -0
  60. package/dist/upgrade/money-v2.d.ts.map +1 -1
  61. package/package.json +16 -16
  62. package/dist/chunks/contract-money-DGNqQwf0.js.map +0 -1
  63. package/dist/chunks/retention-accounting-Ct5Df6xx.js.map +0 -1
@@ -0,0 +1,361 @@
1
+ /**
2
+ * Tenant-owned connected payment accounts (#3831).
3
+ *
4
+ * A tenant (for example a co-op) is paid into its own Stripe Connect Standard
5
+ * account: checkouts are direct charges on that account and the platform's
6
+ * share is an application fee, so the platform never holds the tenant's
7
+ * money. These commands are the only writers of {@link TenantPaymentAccount}
8
+ * and of the connected fields on `PaymentIntent` / `Payment`.
9
+ *
10
+ * Every command takes an explicit `tenantId` and checks ownership against it,
11
+ * so a privileged or system caller cannot act on another tenant's account,
12
+ * payment or quote by accident. There is no fallback to the platform account.
13
+ * See `agents/connected-payments.md`.
14
+ *
15
+ * @packageDocumentation
16
+ */
17
+ import { type StripeAdapter, type StripeAdapterOptions, type StripeApplicationFee } from '@happyvertical/payments/stripe';
18
+ import type { DatabaseInterface } from '@happyvertical/sql';
19
+ import type { Payment } from './models/Payment.js';
20
+ import type { PaymentIntent } from './models/PaymentIntent.js';
21
+ import { type TenantPaymentAccount, type TenantPaymentEnvironment } from './models/TenantPaymentAccount.js';
22
+ import { type TenantPaymentWebhookOutcome } from './models/TenantPaymentWebhookEvent.js';
23
+ /** Default backend id: the payments SDK's Stripe adapter. */
24
+ export declare const CONNECTED_PAYMENTS_DEFAULT_BACKEND = "stripe";
25
+ /**
26
+ * The provider calls connected payments makes. A `StripeAdapter` from
27
+ * `@happyvertical/payments/stripe` satisfies it; build one with
28
+ * {@link createStripeConnectGateway}. It must not be scoped to a connected
29
+ * account: the account is chosen per call from the tenant's record.
30
+ */
31
+ export type ConnectedPaymentGateway = Pick<StripeAdapter, 'createPaymentOption' | 'getStatus' | 'refundPayment' | 'resolveConnectWebhookEvent' | 'createStandardAccount' | 'createOnboardingLink' | 'getAccountCapabilities'>;
32
+ /** Why a connected-payments command refused. Messages never carry secrets. */
33
+ export type ConnectedPaymentErrorCode = 'INVALID_INPUT' | 'CONFIGURATION' | 'NO_ENABLED_ACCOUNT' | 'ACCOUNT_ALREADY_LINKED' | 'ACCOUNT_IN_USE' | 'ACCOUNT_NOT_OWNED' | 'QUOTE_NOT_OWNED' | 'QUOTE_CLOSED' | 'PAYMENT_NOT_OWNED' | 'ENVIRONMENT_MISMATCH' | 'AMOUNT_MISMATCH' | 'REFUND_EXCEEDS_PAYMENT' | 'REFUND_FAILED' | 'REFUND_NOT_RECORDED';
34
+ /** A refused connected-payments command. */
35
+ export declare class ConnectedPaymentError extends Error {
36
+ readonly code: ConnectedPaymentErrorCode;
37
+ constructor(code: ConnectedPaymentErrorCode, message: string, options?: {
38
+ cause?: unknown;
39
+ });
40
+ }
41
+ /** Ledger accounts a tenant's connected payments settle into. */
42
+ export interface ConnectedSettlementAccounts {
43
+ ledgerId: string;
44
+ /** Cash/bank account the connected account pays out to (debit). */
45
+ cashAccountId: string;
46
+ /** Receivables account (credit). */
47
+ receivablesAccountId: string;
48
+ /** Expense account for the platform's application fee (debit). */
49
+ applicationFeeAccountId: string;
50
+ }
51
+ /** Host lookup of a tenant's settlement accounts. */
52
+ export type ResolveConnectedSettlementAccounts = (args: {
53
+ tenantId: string;
54
+ currency: string;
55
+ }) => ConnectedSettlementAccounts | Promise<ConnectedSettlementAccounts>;
56
+ /** Which tenant account a command acts on. */
57
+ export interface TenantPaymentAccountKey {
58
+ db: DatabaseInterface;
59
+ tenantId: string;
60
+ environment: TenantPaymentEnvironment;
61
+ /** Defaults to {@link CONNECTED_PAYMENTS_DEFAULT_BACKEND}. */
62
+ backendId?: string;
63
+ }
64
+ /**
65
+ * The tenant's payment account for a backend and environment, or `null`.
66
+ *
67
+ * @param args - Database, tenant, environment and optional backend
68
+ * @returns The account or null
69
+ */
70
+ export declare function getTenantPaymentAccount(args: TenantPaymentAccountKey): Promise<TenantPaymentAccount | null>;
71
+ /**
72
+ * The tenant's enabled payment account. Throws `NO_ENABLED_ACCOUNT` when the
73
+ * tenant has none or it cannot take charges; never falls back to the
74
+ * platform account.
75
+ *
76
+ * @param args - Database, tenant, environment and optional backend
77
+ * @returns The enabled account
78
+ */
79
+ export declare function requireEnabledTenantPaymentAccount(args: TenantPaymentAccountKey): Promise<TenantPaymentAccount>;
80
+ /** Input to {@link onboardTenantPaymentAccount}. */
81
+ export interface OnboardTenantPaymentAccountInput extends TenantPaymentAccountKey {
82
+ gateway: ConnectedPaymentGateway;
83
+ /** Two-letter ISO country of the account holder. */
84
+ country?: string;
85
+ /** Prefills the account holder's email in provider onboarding. */
86
+ email?: string;
87
+ businessType?: 'individual' | 'company' | 'non_profit' | 'government_entity';
88
+ feePolicyRef?: string;
89
+ }
90
+ /**
91
+ * Create the tenant's Standard connected account and store it. Idempotent:
92
+ * a tenant that already has an account gets it back, and the provider call
93
+ * carries a per-tenant idempotency key.
94
+ *
95
+ * @param input - Tenant, environment, gateway and onboarding prefill
96
+ * @returns The tenant's account (usually `pending` until onboarding ends)
97
+ */
98
+ export declare function onboardTenantPaymentAccount(input: OnboardTenantPaymentAccountInput): Promise<TenantPaymentAccount>;
99
+ /** Input to {@link createTenantOnboardingLink}. */
100
+ export interface CreateTenantOnboardingLinkInput extends TenantPaymentAccountKey {
101
+ gateway: ConnectedPaymentGateway;
102
+ returnUrl: string;
103
+ /** Visited when the link expires or is reused; should mint a new link. */
104
+ refreshUrl: string;
105
+ collect?: 'currently_due' | 'eventually_due';
106
+ }
107
+ /**
108
+ * A single-use provider onboarding link for the tenant's account. The URL is
109
+ * a bearer secret: redirect to it, never log or store it.
110
+ *
111
+ * @param input - Tenant, environment, gateway and return/refresh URLs
112
+ * @returns The link URL and expiry
113
+ */
114
+ export declare function createTenantOnboardingLink(input: CreateTenantOnboardingLinkInput): Promise<{
115
+ url: string;
116
+ expiresAt?: Date;
117
+ }>;
118
+ /** Input to {@link linkTenantPaymentAccount}. */
119
+ export interface LinkTenantPaymentAccountInput extends TenantPaymentAccountKey {
120
+ gateway: ConnectedPaymentGateway;
121
+ /** Existing provider account id, for example a Stripe `acct_...`. */
122
+ providerAccountId: string;
123
+ /**
124
+ * Replace the tenant's current account with this one. Open checkouts and
125
+ * refunds on the old account stop working, so this must be explicit.
126
+ */
127
+ replace?: boolean;
128
+ /**
129
+ * The host proved this tenant controls the account (for example through
130
+ * Stripe's OAuth connect flow). Required for an account whose metadata does
131
+ * not already name the tenant; accounts made by
132
+ * {@link onboardTenantPaymentAccount} carry that metadata.
133
+ */
134
+ ownershipVerified?: boolean;
135
+ feePolicyRef?: string;
136
+ }
137
+ /**
138
+ * Link (or, with `replace`, relink) an existing provider account to the
139
+ * tenant. Refused when the account belongs to another tenant, whoever the
140
+ * caller is.
141
+ *
142
+ * @param input - Tenant, environment, gateway and provider account id
143
+ * @returns The tenant's account
144
+ */
145
+ export declare function linkTenantPaymentAccount(input: LinkTenantPaymentAccountInput): Promise<TenantPaymentAccount>;
146
+ /**
147
+ * Re-read the account's capabilities from the provider and re-derive its
148
+ * status.
149
+ *
150
+ * @param input - Tenant, environment and gateway
151
+ * @returns The refreshed account
152
+ */
153
+ export declare function refreshTenantPaymentAccount(input: TenantPaymentAccountKey & {
154
+ gateway: ConnectedPaymentGateway;
155
+ }): Promise<TenantPaymentAccount>;
156
+ /**
157
+ * Switch the tenant's account off (operator action) or back on. A disabled
158
+ * account takes no charges and capability refreshes keep it disabled; when
159
+ * re-enabled its status is re-derived from the last snapshot.
160
+ *
161
+ * @param input - Tenant, environment, the new state and a reason
162
+ * @returns The account
163
+ */
164
+ export declare function setTenantPaymentAccountDisabled(input: TenantPaymentAccountKey & {
165
+ disabled: boolean;
166
+ reason?: string;
167
+ }): Promise<TenantPaymentAccount>;
168
+ /**
169
+ * Set the fee policy reference the host uses to price the platform's
170
+ * application fee for this tenant.
171
+ *
172
+ * @param input - Tenant, environment and the fee policy reference
173
+ * @returns The account
174
+ */
175
+ export declare function setTenantPaymentFeePolicy(input: TenantPaymentAccountKey & {
176
+ feePolicyRef: string;
177
+ }): Promise<TenantPaymentAccount>;
178
+ /** Input to {@link createConnectedCheckout}. */
179
+ export interface CreateConnectedCheckoutInput extends TenantPaymentAccountKey {
180
+ gateway: ConnectedPaymentGateway;
181
+ /** Idempotency scope (see `PaymentIntent.offeringRef`). Required. */
182
+ offeringRef: string;
183
+ /** Buyer email. Required. */
184
+ licenseeEmail: string;
185
+ /** Caller retry key; a retry returns the same intent and checkout. */
186
+ idempotencyKey: string;
187
+ /** Price in integer minor units of `currency`. */
188
+ amount: number;
189
+ /** ISO 4217 currency code. */
190
+ currency: string;
191
+ /**
192
+ * Platform application fee in integer minor units of `currency`, from the
193
+ * tenant's fee policy or agreement (`account.feePolicyRef`). Required;
194
+ * pass `0` for no fee. Never derive it from a float.
195
+ */
196
+ applicationFeeAmount: number;
197
+ /** Checkout expiry; Stripe accepts 30 minutes to 24 hours. Default 60 minutes. */
198
+ expiresAt?: Date;
199
+ successUrl?: string;
200
+ cancelUrl?: string;
201
+ description?: string;
202
+ skuId?: string;
203
+ customerId?: string;
204
+ /** USD reporting value in cents; defaults to `amount` for USD prices, else 0. */
205
+ usdPriceLocked?: number;
206
+ }
207
+ /** Result of {@link createConnectedCheckout}. */
208
+ export interface ConnectedCheckout {
209
+ intent: PaymentIntent;
210
+ /** Hosted checkout URL to redirect the buyer to. */
211
+ checkoutUrl: string;
212
+ /** Whether this call created the intent (false on an idempotent retry). */
213
+ created: boolean;
214
+ /**
215
+ * The checkout is already paid (`PAID`, `ISSUED` or `RETIRED`): a retry
216
+ * returns it instead of a session, and the host must not charge again.
217
+ * `checkoutUrl` is then empty.
218
+ */
219
+ settled: boolean;
220
+ }
221
+ /**
222
+ * Create a checkout that charges the tenant's own connected account directly,
223
+ * with the platform's application fee, and record it as a `PaymentIntent`
224
+ * carrying `connectedAccountId` and `applicationFeeCents`. Refuses with
225
+ * `NO_ENABLED_ACCOUNT` when the tenant has no enabled account.
226
+ *
227
+ * @param input - Tenant, price, fee, idempotency natural key and gateway
228
+ * @returns The intent and its hosted checkout URL
229
+ */
230
+ export declare function createConnectedCheckout(input: CreateConnectedCheckoutInput): Promise<ConnectedCheckout>;
231
+ /** Input to {@link handleConnectedPaymentWebhook}. */
232
+ export interface HandleConnectedPaymentWebhookInput {
233
+ db: DatabaseInterface;
234
+ gateway: ConnectedPaymentGateway;
235
+ environment: TenantPaymentEnvironment;
236
+ backendId?: string;
237
+ /**
238
+ * `connect` (default) for the Connect endpoint; `platform` for the
239
+ * platform endpoint, which carries `application_fee.*` events.
240
+ */
241
+ endpoint?: 'connect' | 'platform';
242
+ /** Raw request body, exactly as received. */
243
+ payload: string;
244
+ /** `Stripe-Signature` header. */
245
+ signature: string | undefined;
246
+ /** Ledger accounts a tenant's settlements post into. */
247
+ resolveSettlementAccounts: ResolveConnectedSettlementAccounts;
248
+ }
249
+ /** What {@link handleConnectedPaymentWebhook} did. */
250
+ export interface ConnectedPaymentWebhookResult {
251
+ outcome: TenantPaymentWebhookOutcome;
252
+ /** True when this event id was already processed. */
253
+ duplicate: boolean;
254
+ eventId: string;
255
+ eventType: string;
256
+ tenantId: string;
257
+ providerAccountId: string;
258
+ paymentIntentId?: string;
259
+ paymentId?: string;
260
+ applicationFee?: Omit<StripeApplicationFee, 'raw'>;
261
+ }
262
+ /**
263
+ * Handle a provider webhook for connected accounts. The SDK verifies the
264
+ * signature before anything is routed; the event's connected account is then
265
+ * mapped to its tenant through {@link TenantPaymentAccount} (an unknown
266
+ * account is rejected with the SDK's `PaymentNotOwnedError`). A payment event
267
+ * settles only a quote that belongs to that tenant and account, after
268
+ * re-reading the checkout from the provider, so delivery order never
269
+ * matters. Processed event ids are stored, so a redelivery is reported as a
270
+ * duplicate across restarts and replicas.
271
+ *
272
+ * Throws on any refusal; respond with a non-2xx status so nothing is
273
+ * acknowledged that was not processed.
274
+ *
275
+ * @param input - Raw delivery, environment, gateway and settlement accounts
276
+ * @returns What was done
277
+ */
278
+ export declare function handleConnectedPaymentWebhook(input: HandleConnectedPaymentWebhookInput): Promise<ConnectedPaymentWebhookResult>;
279
+ /** Input to {@link refundConnectedPayment}. */
280
+ export interface RefundConnectedPaymentInput extends TenantPaymentAccountKey {
281
+ gateway: ConnectedPaymentGateway;
282
+ /** The settled connected `Payment` to refund. */
283
+ paymentId: string;
284
+ /** Integer minor units; defaults to everything not yet refunded. */
285
+ amount?: number;
286
+ /**
287
+ * Whether the platform's application fee is refunded too (in proportion,
288
+ * by the provider). Required: the choice is always explicit.
289
+ */
290
+ refundApplicationFee: boolean;
291
+ /** Caller retry key; a retry returns the same refund. */
292
+ idempotencyKey: string;
293
+ reason?: 'duplicate' | 'fraudulent' | 'requested_by_customer';
294
+ resolveSettlementAccounts: ResolveConnectedSettlementAccounts;
295
+ }
296
+ /** Result of {@link refundConnectedPayment}. */
297
+ export interface ConnectedRefund {
298
+ refund: Payment;
299
+ payment: Payment;
300
+ /** Minor units still refundable after this refund. */
301
+ remaining: number;
302
+ /**
303
+ * Provider state: `succeeded` refunds are journaled; `pending` (or
304
+ * `requested`, when the provider's answer was lost) holds its amount and is
305
+ * booked when the provider's refund update arrives; `failed` releases it.
306
+ */
307
+ state: 'requested' | 'pending' | 'succeeded' | 'failed';
308
+ /** Whether this call created the refund (false on an idempotent retry). */
309
+ created: boolean;
310
+ }
311
+ /**
312
+ * Refund a connected charge on the tenant's own account. Refused when the
313
+ * payment is not the tenant's, or was made on an account the tenant does not
314
+ * hold now — whoever the caller is. A full refund marks the payment
315
+ * `REFUNDED` and retires its intent.
316
+ *
317
+ * @param input - Tenant, payment, amount, fee-refund flag and retry key
318
+ * @returns The refund and remaining refundable amount
319
+ */
320
+ export declare function refundConnectedPayment(input: RefundConnectedPaymentInput): Promise<ConnectedRefund>;
321
+ /**
322
+ * Reads installation secrets; `SecretService` from
323
+ * `@happyvertical/smrt-secrets` satisfies it.
324
+ */
325
+ export interface ConnectedPaymentSecretReader {
326
+ retrieveForTenant(tenantId: string, name: string): Promise<{
327
+ value: string;
328
+ }>;
329
+ }
330
+ /** Input to {@link createStripeConnectGateway}. */
331
+ export interface CreateStripeConnectGatewayInput {
332
+ secrets: ConnectedPaymentSecretReader;
333
+ /** Tenant that holds the installation's (platform) Stripe secrets. */
334
+ secretsTenantId: string;
335
+ environment: TenantPaymentEnvironment;
336
+ /** Override the default secret names (see {@link stripeConnectSecretNames}). */
337
+ secretNames?: Partial<ReturnType<typeof stripeConnectSecretNames>>;
338
+ /** Other adapter options; account scope and secrets are not accepted here. */
339
+ adapterOptions?: Omit<StripeAdapterOptions, 'secretKey' | 'webhookSecret' | 'connectWebhookSecret' | 'stripeAccount'>;
340
+ }
341
+ /**
342
+ * Default smrt-secrets names for an environment's platform Stripe secrets.
343
+ *
344
+ * @param environment - `test` or `live`
345
+ * @returns Secret names for the API key and the two webhook endpoints
346
+ */
347
+ export declare function stripeConnectSecretNames(environment: TenantPaymentEnvironment): {
348
+ secretKey: string;
349
+ webhookSecret: string;
350
+ connectWebhookSecret: string;
351
+ };
352
+ /**
353
+ * Build the platform's Stripe gateway for connected payments from
354
+ * smrt-secrets. The secret key must be a key of the requested environment.
355
+ * Secret values never appear in errors.
356
+ *
357
+ * @param input - Secret reader, holder tenant, environment and adapter options
358
+ * @returns A `StripeAdapter` for the platform (no account scope)
359
+ */
360
+ export declare function createStripeConnectGateway(input: CreateStripeConnectGatewayInput): Promise<StripeAdapter>;
361
+ //# sourceMappingURL=connected-payments.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connected-payments.d.ts","sourceRoot":"","sources":["../src/connected-payments.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;G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,4DAA4D;AAC5D,wBAAsB,yBAAyB,CAC7C,QAAQ,EAAE,QAAQ,GACjB,OAAO,CAAC,IAAI,CAAC,CAEf;AAED,wFAAwF;AACxF,wBAAsB,cAAc,CAClC,KAAK,EAAE,QAAQ,EACf,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,IAAI,CAAC,CAyBf"}
package/dist/index.d.ts CHANGED
@@ -64,9 +64,10 @@ import './__smrt-register__.js';
64
64
  export * from './billing/index.js';
65
65
  export { HistoricalCustomerFundsAllocationCollection, HistoricalCustomerFundsCollection, } from './collections/HistoricalCustomerFundsCollections.js';
66
66
  export { HistoricalSalesLineCollection } from './collections/HistoricalSalesLineCollection.js';
67
- export { ContractCollection, ContractLineItemCollection, type CreatePayoutFromPaymentArgs, CustomerCollection, DocumentTaxCollection, type DocumentTaxReportFact, type DocumentTaxReportFactsOptions, FulfillmentCollection, FulfillmentLineItemCollection, InvoiceCollection, InvoiceLineItemCollection, type InvoiceNumberOptions, type InvoiceTaxReportFact, type InvoiceTaxReportFactsOptions, PaymentAllocationCollection, PaymentCollection, PaymentInstrumentCollection, PaymentIntentCollection, type PaymentIntentIdempotencyArgs, type PaymentIntentSeed, PayoutCollection, PurchaseContractCollection, type RefreshTaxSummaryReportOptions, SalesContractCollection, TaxCodeCollection, TaxComponentCollection, TaxSettingsCollection, type TaxSummaryContributorDrilldown, type TaxSummaryContributorDrilldownOptions, type TaxSummaryDrilldownContributor, type TaxSummaryDrilldownPending, type TaxSummaryExpenseSource, type TaxSummaryInvoiceDrilldownOptions, type TaxSummaryLedgerDrilldownFact, type TaxSummaryLedgerDrilldownSource, type TaxSummaryLedgerSource, TaxSummaryReportCollection, type TaxSummaryReportMeasure, type TaxSummaryReportRefreshResult, UNPAID_STATUSES, VendorCollection, } from './collections/index.js';
67
+ export { ContractCollection, ContractLineItemCollection, type CreatePayoutFromPaymentArgs, CustomerCollection, DocumentTaxCollection, type DocumentTaxReportFact, type DocumentTaxReportFactsOptions, FulfillmentCollection, FulfillmentLineItemCollection, InvoiceCollection, InvoiceLineItemCollection, type InvoiceNumberOptions, type InvoiceTaxReportFact, type InvoiceTaxReportFactsOptions, PaymentAllocationCollection, PaymentCollection, PaymentInstrumentCollection, PaymentIntentCollection, type PaymentIntentIdempotencyArgs, type PaymentIntentSeed, PayoutCollection, PurchaseContractCollection, type RefreshTaxSummaryReportOptions, SalesContractCollection, TaxCodeCollection, TaxComponentCollection, TaxSettingsCollection, type TaxSummaryContributorDrilldown, type TaxSummaryContributorDrilldownOptions, type TaxSummaryDrilldownContributor, type TaxSummaryDrilldownPending, type TaxSummaryExpenseSource, type TaxSummaryInvoiceDrilldownOptions, type TaxSummaryLedgerDrilldownFact, type TaxSummaryLedgerDrilldownSource, type TaxSummaryLedgerSource, TaxSummaryReportCollection, type TaxSummaryReportMeasure, type TaxSummaryReportRefreshResult, TenantPaymentAccountCollection, UNPAID_STATUSES, VendorCollection, } from './collections/index.js';
68
68
  export { PurchasePriceObservationCollection } from './collections/PurchasePriceObservationCollection.js';
69
69
  export { COMMERCE_INVOICE_LINE_ADD_TOOL_SLUG, COMMERCE_INVOICE_LINE_UPDATE_TOOL_SLUG, COMMERCE_INVOICE_PREVIEW_TOOL_SLUG, COMMERCE_TAX_CODES_LIST_TOOL_SLUG, createCommerceMoneyTools, } from './commerce-money-tools.js';
70
+ export { CONNECTED_PAYMENTS_DEFAULT_BACKEND, type ConnectedCheckout, ConnectedPaymentError, type ConnectedPaymentErrorCode, type ConnectedPaymentGateway, type ConnectedPaymentSecretReader, type ConnectedPaymentWebhookResult, type ConnectedRefund, type ConnectedSettlementAccounts, type CreateConnectedCheckoutInput, type CreateStripeConnectGatewayInput, type CreateTenantOnboardingLinkInput, createConnectedCheckout, createStripeConnectGateway, createTenantOnboardingLink, getTenantPaymentAccount, type HandleConnectedPaymentWebhookInput, handleConnectedPaymentWebhook, type LinkTenantPaymentAccountInput, linkTenantPaymentAccount, type OnboardTenantPaymentAccountInput, onboardTenantPaymentAccount, type RefundConnectedPaymentInput, type ResolveConnectedSettlementAccounts, refreshTenantPaymentAccount, refundConnectedPayment, requireEnabledTenantPaymentAccount, setTenantPaymentAccountDisabled, setTenantPaymentFeePolicy, stripeConnectSecretNames, type TenantPaymentAccountKey, } from './connected-payments.js';
70
71
  export type { ApproveContractBillingScheduleInput, ContractBillingMilestone, ContractBillingSchedule, ContractBillingScheduleRevision, ContractMilestoneClaim, ContractMilestoneInvoiceMoney, IssueContractMilestoneInvoiceInput, } from './contract-billing-schedule.js';
71
72
  export { allocateContractMilestones, approveContractBillingSchedule, getContractBillingSchedule, issueContractMilestoneInvoice, } from './contract-billing-schedule.js';
72
73
  export { type AvailableRefundInput, allocateFrozenCredit, calculateAvailableRefund, type FrozenCreditAllocation, type FrozenCreditAllocationResult, type FrozenCreditRequest, type FrozenCreditSourceLine, type IssuedCreditConsumption, } from './credit-allocation.js';
@@ -87,7 +88,7 @@ export { type CommerceContractTypeGroup, type CommercePartyLinkRow, type Commerc
87
88
  export { HistoricalCustomerFunds, type HistoricalCustomerFundsOptions, } from './models/HistoricalCustomerFunds.js';
88
89
  export { HistoricalCustomerFundsAllocation, type HistoricalCustomerFundsAllocationOptions, } from './models/HistoricalCustomerFundsAllocation.js';
89
90
  export { HistoricalSalesLine, type HistoricalSalesLineOptions, } from './models/HistoricalSalesLine.js';
90
- export { Agreement, BillingAccount, type BillingCloseKind, BillingLineSource, type BillingLineSourceType, BillingPaymentAttempt, type BillingPaymentAttemptFlag, type BillingPaymentAttemptPurpose, type BillingPaymentAttemptTransition, BillingPeriodClose, type BillingPeriodCloseStatus, type BillingStanding, Cart, type CommerceDocumentType, Contract, ContractLineItem, Customer, DocumentTax, type DocumentTaxOptions, Estimate, Fulfillment, FulfillmentLineItem, Invoice, InvoiceLineItem, Lease, type LicenseRightsSnapshot, LicenseSale, Order, Payment, PaymentAllocation, PaymentInstrument, PaymentIntent, Payout, ProductionOrder, PurchaseContract, PurchaseOrder, SalesContract, SupplierQuote, TaxCode, TaxComponent, TaxSettings, TaxSummaryReport, type TaxSummaryReportRowKind, Vendor, WholesaleOrder, } from './models/index.js';
91
+ export { Agreement, BillingAccount, type BillingCloseKind, BillingLineSource, type BillingLineSourceType, BillingPaymentAttempt, type BillingPaymentAttemptFlag, type BillingPaymentAttemptPurpose, type BillingPaymentAttemptTransition, BillingPeriodClose, type BillingPeriodCloseStatus, type BillingStanding, Cart, type CommerceDocumentType, Contract, ContractLineItem, Customer, DocumentTax, type DocumentTaxOptions, deriveTenantPaymentAccountStatus, Estimate, Fulfillment, FulfillmentLineItem, Invoice, InvoiceLineItem, Lease, type LicenseRightsSnapshot, LicenseSale, Order, Payment, PaymentAllocation, PaymentInstrument, PaymentIntent, Payout, ProductionOrder, PurchaseContract, PurchaseOrder, SalesContract, SupplierQuote, TaxCode, TaxComponent, TaxSettings, TaxSummaryReport, type TaxSummaryReportRowKind, TenantPaymentAccount, type TenantPaymentAccountOptions, type TenantPaymentAccountStatus, type TenantPaymentCapabilitySnapshot, type TenantPaymentEnvironment, TenantPaymentWebhookEvent, type TenantPaymentWebhookOutcome, Vendor, WholesaleOrder, } from './models/index.js';
91
92
  export { PurchasePriceObservation } from './models/PurchasePriceObservation.js';
92
93
  export { assertIntegerMinorUnits, calculateMoneyDocument, type LineAmountType, type MoneyDiscountInput, type MoneyDocumentResult, type MoneyDocumentTaxResult, type MoneyLineInput, type MoneyLineResult, type MoneyTaxCodeInput, type MoneyValidationCode, MoneyValidationError, type ResolvableTaxCodeInput, type ResolvedLineTaxCode, type ResolveLineTaxCodeContext, type ResolveLineTaxCodeInput, resolveLineTaxCode, type TaxCodeAppliesTo, type TaxCodeKind, type TaxCodeResolutionSource, type TaxComponentInput, type TaxRoundingScope, } from './money.js';
93
94
  export * from './observed-purchase-price.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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