@fantastic.dev/better-stripe 0.58.0 → 0.60.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/CHANGELOG.md +12 -0
- package/README.md +3 -1
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +888 -62
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts +428 -15
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +856 -30
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutSyncTestHelpers.d.ts +444 -31
- package/dist/client/connect/payoutSyncTestHelpers.d.ts.map +1 -1
- package/dist/client/index.d.ts +4 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/paymentSource/resolver.d.ts +12 -1
- package/dist/client/paymentSource/resolver.d.ts.map +1 -1
- package/dist/client/paymentSource/resolver.fixtures.d.ts +220 -0
- package/dist/client/paymentSource/resolver.fixtures.d.ts.map +1 -0
- package/dist/client/paymentSource/resolver.fixtures.js +189 -0
- package/dist/client/paymentSource/resolver.fixtures.js.map +1 -0
- package/dist/client/paymentSource/resolver.js +28 -3
- package/dist/client/paymentSource/resolver.js.map +1 -1
- package/dist/client/settlement/execution.d.ts +25 -0
- package/dist/client/settlement/execution.d.ts.map +1 -1
- package/dist/client/settlement/execution.js +2 -0
- package/dist/client/settlement/execution.js.map +1 -1
- package/dist/client/usage/allowanceClient.d.ts +1 -1
- package/dist/client/usage/catalogPrices.d.ts +1 -1
- package/dist/client/usage/catalogPrices.d.ts.map +1 -1
- package/dist/client/usage/catalogPrices.js +4 -4
- package/dist/client/usage/catalogPrices.js.map +1 -1
- package/dist/client/usage/client.d.ts +2 -2
- package/dist/client/usage/client.d.ts.map +1 -1
- package/dist/client/usage/client.js +2 -2
- package/dist/client/usage/client.js.map +1 -1
- package/dist/client/usage/correctionClient.d.ts +33 -0
- package/dist/client/usage/correctionClient.d.ts.map +1 -0
- package/dist/client/usage/correctionClient.js +27 -0
- package/dist/client/usage/correctionClient.js.map +1 -0
- package/dist/client/usage/correctionEligibility.d.ts +4 -0
- package/dist/client/usage/correctionEligibility.d.ts.map +1 -0
- package/dist/client/usage/correctionEligibility.js +7 -0
- package/dist/client/usage/correctionEligibility.js.map +1 -0
- package/dist/client/usage/correctionInvoice.d.ts +9 -0
- package/dist/client/usage/correctionInvoice.d.ts.map +1 -0
- package/dist/client/usage/correctionInvoice.js +218 -0
- package/dist/client/usage/correctionInvoice.js.map +1 -0
- package/dist/client/usage/correctionInvoiceProof.d.ts +29 -0
- package/dist/client/usage/correctionInvoiceProof.d.ts.map +1 -0
- package/dist/client/usage/correctionInvoiceProof.js +41 -0
- package/dist/client/usage/correctionInvoiceProof.js.map +1 -0
- package/dist/client/usage/correctionProofs.d.ts +36 -0
- package/dist/client/usage/correctionProofs.d.ts.map +1 -0
- package/dist/client/usage/correctionProofs.js +41 -0
- package/dist/client/usage/correctionProofs.js.map +1 -0
- package/dist/client/usage/correctionProvider.d.ts +6 -0
- package/dist/client/usage/correctionProvider.d.ts.map +1 -0
- package/dist/client/usage/correctionProvider.js +243 -0
- package/dist/client/usage/correctionProvider.js.map +1 -0
- package/dist/client/usage/correctionRead.d.ts +27 -0
- package/dist/client/usage/correctionRead.d.ts.map +1 -0
- package/dist/client/usage/correctionRead.js +36 -0
- package/dist/client/usage/correctionRead.js.map +1 -0
- package/dist/client/usage/correctionTerms.d.ts +64 -0
- package/dist/client/usage/correctionTerms.d.ts.map +1 -0
- package/dist/client/usage/correctionTerms.js +65 -0
- package/dist/client/usage/correctionTerms.js.map +1 -0
- package/dist/client/usage/correctionTransport.fixtures.d.ts +37 -0
- package/dist/client/usage/correctionTransport.fixtures.d.ts.map +1 -0
- package/dist/client/usage/correctionTransport.fixtures.js +322 -0
- package/dist/client/usage/correctionTransport.fixtures.js.map +1 -0
- package/dist/client/usage/creditClient.d.ts +1 -1
- package/dist/client/usage/creditRevenue.d.ts +22 -0
- package/dist/client/usage/creditRevenue.d.ts.map +1 -0
- package/dist/client/usage/creditRevenue.js +118 -0
- package/dist/client/usage/creditRevenue.js.map +1 -0
- package/dist/client/usage/creditSettlement.d.ts +29 -0
- package/dist/client/usage/creditSettlement.d.ts.map +1 -0
- package/dist/client/usage/creditSettlement.fixtures.d.ts +215 -0
- package/dist/client/usage/creditSettlement.fixtures.d.ts.map +1 -0
- package/dist/client/usage/creditSettlement.fixtures.js +59 -0
- package/dist/client/usage/creditSettlement.fixtures.js.map +1 -0
- package/dist/client/usage/creditSettlement.js +70 -0
- package/dist/client/usage/creditSettlement.js.map +1 -0
- package/dist/client/usage/creditTransport.fixtures.d.ts +7 -1
- package/dist/client/usage/creditTransport.fixtures.d.ts.map +1 -1
- package/dist/client/usage/creditTransport.fixtures.js +25 -4
- package/dist/client/usage/creditTransport.fixtures.js.map +1 -1
- package/dist/client/usage/index.d.ts +6 -0
- package/dist/client/usage/index.d.ts.map +1 -1
- package/dist/client/usage/invoiceSale.d.ts +22 -0
- package/dist/client/usage/invoiceSale.d.ts.map +1 -0
- package/dist/client/usage/invoiceSale.fixtures.d.ts +285 -0
- package/dist/client/usage/invoiceSale.fixtures.d.ts.map +1 -0
- package/dist/client/usage/invoiceSale.fixtures.js +104 -0
- package/dist/client/usage/invoiceSale.fixtures.js.map +1 -0
- package/dist/client/usage/invoiceSale.js +117 -0
- package/dist/client/usage/invoiceSale.js.map +1 -0
- package/dist/client/usage/observationClient.d.ts +20 -0
- package/dist/client/usage/observationClient.d.ts.map +1 -1
- package/dist/client/usage/observationClient.js +20 -6
- package/dist/client/usage/observationClient.js.map +1 -1
- package/dist/client/usage/records.d.ts +1 -1
- package/dist/client/usage/records.d.ts.map +1 -1
- package/dist/client/usage/records.js.map +1 -1
- package/dist/client/usage/settlement.d.ts +32 -0
- package/dist/client/usage/settlement.d.ts.map +1 -0
- package/dist/client/usage/settlement.js +60 -0
- package/dist/client/usage/settlement.js.map +1 -0
- package/dist/client/usage/settlementClient.d.ts +51 -0
- package/dist/client/usage/settlementClient.d.ts.map +1 -0
- package/dist/client/usage/settlementClient.js +35 -0
- package/dist/client/usage/settlementClient.js.map +1 -0
- package/dist/client/usage/summary.d.ts +3 -0
- package/dist/client/usage/summary.d.ts.map +1 -1
- package/dist/client/usage/summary.js +9 -4
- package/dist/client/usage/summary.js.map +1 -1
- package/dist/client/usageExports.d.ts +2 -0
- package/dist/client/usageExports.d.ts.map +1 -1
- package/dist/component/_generated/api.d.ts +12 -0
- package/dist/component/_generated/api.d.ts.map +1 -1
- package/dist/component/_generated/api.js.map +1 -1
- package/dist/component/_generated/component.d.ts +380 -14
- package/dist/component/_generated/component.d.ts.map +1 -1
- package/dist/component/accountClosure/mutations.d.ts.map +1 -1
- package/dist/component/accountClosure/mutations.js +13 -0
- package/dist/component/accountClosure/mutations.js.map +1 -1
- package/dist/component/balanceFunding/internal/actions.d.ts +11 -11
- package/dist/component/balanceFunding/stateHandlers.d.ts +8 -8
- package/dist/component/earnings/triggers.d.ts +368 -32
- package/dist/component/earnings/triggers.d.ts.map +1 -1
- package/dist/component/financialObservations/settlementHelpers.d.ts.map +1 -1
- package/dist/component/financialObservations/settlementHelpers.js +2 -0
- package/dist/component/financialObservations/settlementHelpers.js.map +1 -1
- package/dist/component/recoveryWorkflow/helpers.d.ts +25 -0
- package/dist/component/recoveryWorkflow/helpers.d.ts.map +1 -1
- package/dist/component/recoveryWorkflow/mutations.d.ts +25 -0
- package/dist/component/recoveryWorkflow/mutations.d.ts.map +1 -1
- package/dist/component/recoveryWorkflow/queries.d.ts +50 -0
- package/dist/component/recoveryWorkflow/queries.d.ts.map +1 -1
- package/dist/component/recoveryWorkflow/schema.d.ts +566 -10
- package/dist/component/recoveryWorkflow/schema.d.ts.map +1 -1
- package/dist/component/schema.d.ts +428 -15
- package/dist/component/schema.js +4 -0
- package/dist/component/schema.js.map +1 -1
- package/dist/component/settlement/mutations.d.ts +50 -0
- package/dist/component/settlement/mutations.d.ts.map +1 -1
- package/dist/component/settlement/mutations.js +8 -1
- package/dist/component/settlement/mutations.js.map +1 -1
- package/dist/component/settlement/queries.d.ts +25 -0
- package/dist/component/settlement/queries.d.ts.map +1 -1
- package/dist/component/settlement/schema.d.ts +128 -1
- package/dist/component/settlement/schema.d.ts.map +1 -1
- package/dist/component/settlement/schema.js +22 -0
- package/dist/component/settlement/schema.js.map +1 -1
- package/dist/component/usage/queries.d.ts +2 -2
- package/dist/component/usage/schema.d.ts +18 -13
- package/dist/component/usage/schema.d.ts.map +1 -1
- package/dist/component/usage/schema.js +2 -1
- package/dist/component/usage/schema.js.map +1 -1
- package/dist/component/usageAllowance/queries.d.ts +1 -1
- package/dist/component/usageAllowance/queries.d.ts.map +1 -1
- package/dist/component/usageAllowance/queries.js +10 -1
- package/dist/component/usageAllowance/queries.js.map +1 -1
- package/dist/component/usageAllowance/schema.d.ts +5 -5
- package/dist/component/usageAllowance/schema.d.ts.map +1 -1
- package/dist/component/usageAllowance/schema.js +1 -1
- package/dist/component/usageAllowance/schema.js.map +1 -1
- package/dist/component/usageCorrections/accounting.d.ts +5 -0
- package/dist/component/usageCorrections/accounting.d.ts.map +1 -0
- package/dist/component/usageCorrections/accounting.js +55 -0
- package/dist/component/usageCorrections/accounting.js.map +1 -0
- package/dist/component/usageCorrections/cancellation.d.ts +6 -0
- package/dist/component/usageCorrections/cancellation.d.ts.map +1 -0
- package/dist/component/usageCorrections/cancellation.js +29 -0
- package/dist/component/usageCorrections/cancellation.js.map +1 -0
- package/dist/component/usageCorrections/helpers.d.ts +60 -0
- package/dist/component/usageCorrections/helpers.d.ts.map +1 -0
- package/dist/component/usageCorrections/helpers.js +52 -0
- package/dist/component/usageCorrections/helpers.js.map +1 -0
- package/dist/component/usageCorrections/invoice.d.ts +38 -0
- package/dist/component/usageCorrections/invoice.d.ts.map +1 -0
- package/dist/component/usageCorrections/invoice.js +82 -0
- package/dist/component/usageCorrections/invoice.js.map +1 -0
- package/dist/component/usageCorrections/mutations.d.ts +121 -0
- package/dist/component/usageCorrections/mutations.d.ts.map +1 -0
- package/dist/component/usageCorrections/mutations.js +256 -0
- package/dist/component/usageCorrections/mutations.js.map +1 -0
- package/dist/component/usageCorrections/queries.d.ts +115 -0
- package/dist/component/usageCorrections/queries.d.ts.map +1 -0
- package/dist/component/usageCorrections/queries.js +84 -0
- package/dist/component/usageCorrections/queries.js.map +1 -0
- package/dist/component/usageCorrections/schema.d.ts +248 -0
- package/dist/component/usageCorrections/schema.d.ts.map +1 -0
- package/dist/component/usageCorrections/schema.js +74 -0
- package/dist/component/usageCorrections/schema.js.map +1 -0
- package/dist/component/usageCredits/queries.d.ts +1 -1
- package/dist/component/usageCredits/queries.d.ts.map +1 -1
- package/dist/component/usageCredits/queries.js +6 -0
- package/dist/component/usageCredits/queries.js.map +1 -1
- package/dist/component/usageCredits/schema.d.ts +5 -5
- package/dist/component/usageCredits/schema.d.ts.map +1 -1
- package/dist/component/usageCredits/schema.js +1 -1
- package/dist/component/usageCredits/schema.js.map +1 -1
- package/dist/component/usageDelivery/fields.d.ts +2 -2
- package/dist/component/usageDelivery/fields.d.ts.map +1 -1
- package/dist/component/usageDelivery/fields.js +1 -1
- package/dist/component/usageDelivery/fields.js.map +1 -1
- package/dist/component/usageDelivery/helpers.d.ts +7 -6
- package/dist/component/usageDelivery/helpers.d.ts.map +1 -1
- package/dist/component/usageDelivery/mutations.d.ts +6 -6
- package/dist/component/usageDelivery/mutations.d.ts.map +1 -1
- package/dist/component/usageDelivery/mutations.js +9 -1
- package/dist/component/usageDelivery/mutations.js.map +1 -1
- package/dist/component/usageDelivery/queries.d.ts +8 -6
- package/dist/component/usageDelivery/queries.d.ts.map +1 -1
- package/dist/component/usageDelivery/schema.d.ts +4 -4
- package/dist/component/usageDelivery/steps.d.ts +2 -2
- package/dist/component/usageDelivery/steps.js +1 -1
- package/dist/component/usageDelivery/steps.js.map +1 -1
- package/dist/component/usageObservations/queries.d.ts.map +1 -1
- package/dist/component/usageObservations/queries.js +4 -2
- package/dist/component/usageObservations/queries.js.map +1 -1
- package/dist/component/usageSubscriptions/retirement.d.ts.map +1 -1
- package/dist/component/usageSubscriptions/retirement.js +24 -2
- package/dist/component/usageSubscriptions/retirement.js.map +1 -1
- package/docs/README.md +4 -0
- package/docs/settlement.md +4 -0
- package/docs/usage-corrections.md +249 -0
- package/docs/usage-limits.md +1 -1
- package/docs/usage-settlement.md +162 -0
- package/package.json +3 -1
- package/src/client/index.ts +9 -0
- package/src/client/paymentSource/resolver.fixtures.ts +216 -0
- package/src/client/paymentSource/resolver.test.ts +11 -207
- package/src/client/paymentSource/resolver.ts +54 -2
- package/src/client/settlement/execution.ts +24 -0
- package/src/client/usage/catalogPrices.ts +4 -2
- package/src/client/usage/client.ts +2 -2
- package/src/client/usage/correctionClient.test.ts +153 -0
- package/src/client/usage/correctionClient.ts +62 -0
- package/src/client/usage/correctionCredits.test.ts +156 -0
- package/src/client/usage/correctionEligibility.ts +14 -0
- package/src/client/usage/correctionInvoice.test.ts +127 -0
- package/src/client/usage/correctionInvoice.ts +269 -0
- package/src/client/usage/correctionInvoiceProof.ts +40 -0
- package/src/client/usage/correctionProofs.ts +40 -0
- package/src/client/usage/correctionProvider.ts +326 -0
- package/src/client/usage/correctionRead.ts +73 -0
- package/src/client/usage/correctionRecovery.test.ts +113 -0
- package/src/client/usage/correctionTerms.ts +98 -0
- package/src/client/usage/correctionTransport.fixtures.ts +372 -0
- package/src/client/usage/creditRevenue.test.ts +105 -0
- package/src/client/usage/creditRevenue.ts +163 -0
- package/src/client/usage/creditSettlement.fixtures.ts +70 -0
- package/src/client/usage/creditSettlement.test.ts +66 -0
- package/src/client/usage/creditSettlement.ts +94 -0
- package/src/client/usage/creditSettlementRecovery.test.ts +173 -0
- package/src/client/usage/creditTransport.fixtures.ts +29 -4
- package/src/client/usage/index.ts +20 -0
- package/src/client/usage/invoiceSale.fixtures.ts +103 -0
- package/src/client/usage/invoiceSale.test.ts +184 -0
- package/src/client/usage/invoiceSale.ts +155 -0
- package/src/client/usage/observationClient.ts +20 -6
- package/src/client/usage/records.ts +7 -1
- package/src/client/usage/settlement.test.ts +179 -0
- package/src/client/usage/settlement.ts +81 -0
- package/src/client/usage/settlementClient.ts +84 -0
- package/src/client/usage/summary.ts +12 -4
- package/src/client/usageExports.ts +11 -0
- package/src/component/_generated/api.ts +12 -0
- package/src/component/_generated/component.ts +440 -2
- package/src/component/accountClosure/mutations.ts +17 -0
- package/src/component/financialObservations/settlementHelpers.ts +2 -0
- package/src/component/schema.ts +8 -0
- package/src/component/settlement/mutations.ts +10 -1
- package/src/component/settlement/schema.ts +26 -0
- package/src/component/settlement/settlement-claims.test.ts +54 -0
- package/src/component/usage/schema.ts +2 -0
- package/src/component/usageAllowance/queries.ts +8 -1
- package/src/component/usageAllowance/schema.ts +1 -0
- package/src/component/usageCorrections/accounting.ts +79 -0
- package/src/component/usageCorrections/cancellation.ts +32 -0
- package/src/component/usageCorrections/corrections.test.ts +389 -0
- package/src/component/usageCorrections/helpers.ts +57 -0
- package/src/component/usageCorrections/invoice.ts +103 -0
- package/src/component/usageCorrections/mutations.ts +278 -0
- package/src/component/usageCorrections/queries.ts +94 -0
- package/src/component/usageCorrections/schema.ts +90 -0
- package/src/component/usageCredits/queries.ts +4 -0
- package/src/component/usageCredits/schema.ts +1 -0
- package/src/component/usageDelivery/fields.ts +1 -0
- package/src/component/usageDelivery/mutations.ts +8 -3
- package/src/component/usageDelivery/steps.ts +1 -1
- package/src/component/usageObservations/queries.ts +5 -2
- package/src/component/usageSubscriptions/retirement.ts +31 -2
|
@@ -6325,6 +6325,15 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
6325
6325
|
accountId: string;
|
|
6326
6326
|
allocation?: {
|
|
6327
6327
|
adjustmentAmount?: number;
|
|
6328
|
+
creditSource?: {
|
|
6329
|
+
creditGrantId: string;
|
|
6330
|
+
customerAccount: string;
|
|
6331
|
+
livemode: boolean;
|
|
6332
|
+
purchaseId: string;
|
|
6333
|
+
stripeAccountId: string;
|
|
6334
|
+
stripePriceId: string;
|
|
6335
|
+
stripeProductId: string;
|
|
6336
|
+
};
|
|
6328
6337
|
currency: string;
|
|
6329
6338
|
gross: number;
|
|
6330
6339
|
paymentId?: string;
|
|
@@ -6338,6 +6347,22 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
6338
6347
|
destinationAccountId: string;
|
|
6339
6348
|
role: "store" | "affiliate" | "other";
|
|
6340
6349
|
}>;
|
|
6350
|
+
usageSource?: {
|
|
6351
|
+
customerAccount: string;
|
|
6352
|
+
invoicePaymentId: string;
|
|
6353
|
+
livemode: boolean;
|
|
6354
|
+
meterId: string;
|
|
6355
|
+
model: "pay_as_you_go" | "included_overage";
|
|
6356
|
+
period: {
|
|
6357
|
+
end: number;
|
|
6358
|
+
start: number;
|
|
6359
|
+
};
|
|
6360
|
+
stripeAccountId: string;
|
|
6361
|
+
stripePriceId: string;
|
|
6362
|
+
stripeProductId: string;
|
|
6363
|
+
subscriptionId: string;
|
|
6364
|
+
subscriptionItemId: string;
|
|
6365
|
+
};
|
|
6341
6366
|
};
|
|
6342
6367
|
completion?: string;
|
|
6343
6368
|
currency: string;
|
|
@@ -6407,6 +6432,15 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
6407
6432
|
activePhase?: "execute" | "reconcile";
|
|
6408
6433
|
allocation?: {
|
|
6409
6434
|
adjustmentAmount?: number;
|
|
6435
|
+
creditSource?: {
|
|
6436
|
+
creditGrantId: string;
|
|
6437
|
+
customerAccount: string;
|
|
6438
|
+
livemode: boolean;
|
|
6439
|
+
purchaseId: string;
|
|
6440
|
+
stripeAccountId: string;
|
|
6441
|
+
stripePriceId: string;
|
|
6442
|
+
stripeProductId: string;
|
|
6443
|
+
};
|
|
6410
6444
|
currency: string;
|
|
6411
6445
|
gross: number;
|
|
6412
6446
|
paymentId?: string;
|
|
@@ -6420,6 +6454,22 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
6420
6454
|
destinationAccountId: string;
|
|
6421
6455
|
role: "store" | "affiliate" | "other";
|
|
6422
6456
|
}>;
|
|
6457
|
+
usageSource?: {
|
|
6458
|
+
customerAccount: string;
|
|
6459
|
+
invoicePaymentId: string;
|
|
6460
|
+
livemode: boolean;
|
|
6461
|
+
meterId: string;
|
|
6462
|
+
model: "pay_as_you_go" | "included_overage";
|
|
6463
|
+
period: {
|
|
6464
|
+
end: number;
|
|
6465
|
+
start: number;
|
|
6466
|
+
};
|
|
6467
|
+
stripeAccountId: string;
|
|
6468
|
+
stripePriceId: string;
|
|
6469
|
+
stripeProductId: string;
|
|
6470
|
+
subscriptionId: string;
|
|
6471
|
+
subscriptionItemId: string;
|
|
6472
|
+
};
|
|
6423
6473
|
};
|
|
6424
6474
|
cancelRequested: boolean;
|
|
6425
6475
|
completion?: string;
|
|
@@ -6620,6 +6670,15 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
6620
6670
|
}, Name>;
|
|
6621
6671
|
reserveSettlementAllocation: FunctionReference<"mutation", "internal", {
|
|
6622
6672
|
adjustmentAmount?: number;
|
|
6673
|
+
creditSource?: {
|
|
6674
|
+
creditGrantId: string;
|
|
6675
|
+
customerAccount: string;
|
|
6676
|
+
livemode: boolean;
|
|
6677
|
+
purchaseId: string;
|
|
6678
|
+
stripeAccountId: string;
|
|
6679
|
+
stripePriceId: string;
|
|
6680
|
+
stripeProductId: string;
|
|
6681
|
+
};
|
|
6623
6682
|
currency: string;
|
|
6624
6683
|
gross: number;
|
|
6625
6684
|
paymentId?: string;
|
|
@@ -6633,10 +6692,35 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
6633
6692
|
destinationAccountId: string;
|
|
6634
6693
|
role: "store" | "affiliate" | "other";
|
|
6635
6694
|
}>;
|
|
6695
|
+
usageSource?: {
|
|
6696
|
+
customerAccount: string;
|
|
6697
|
+
invoicePaymentId: string;
|
|
6698
|
+
livemode: boolean;
|
|
6699
|
+
meterId: string;
|
|
6700
|
+
model: "pay_as_you_go" | "included_overage";
|
|
6701
|
+
period: {
|
|
6702
|
+
end: number;
|
|
6703
|
+
start: number;
|
|
6704
|
+
};
|
|
6705
|
+
stripeAccountId: string;
|
|
6706
|
+
stripePriceId: string;
|
|
6707
|
+
stripeProductId: string;
|
|
6708
|
+
subscriptionId: string;
|
|
6709
|
+
subscriptionItemId: string;
|
|
6710
|
+
};
|
|
6636
6711
|
}, {
|
|
6637
6712
|
_creationTime: number;
|
|
6638
6713
|
_id: string;
|
|
6639
6714
|
adjustmentAmount?: number;
|
|
6715
|
+
creditSource?: {
|
|
6716
|
+
creditGrantId: string;
|
|
6717
|
+
customerAccount: string;
|
|
6718
|
+
livemode: boolean;
|
|
6719
|
+
purchaseId: string;
|
|
6720
|
+
stripeAccountId: string;
|
|
6721
|
+
stripePriceId: string;
|
|
6722
|
+
stripeProductId: string;
|
|
6723
|
+
};
|
|
6640
6724
|
currency: string;
|
|
6641
6725
|
gross: number;
|
|
6642
6726
|
paymentId?: string;
|
|
@@ -6650,6 +6734,22 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
6650
6734
|
destinationAccountId: string;
|
|
6651
6735
|
role: "store" | "affiliate" | "other";
|
|
6652
6736
|
}>;
|
|
6737
|
+
usageSource?: {
|
|
6738
|
+
customerAccount: string;
|
|
6739
|
+
invoicePaymentId: string;
|
|
6740
|
+
livemode: boolean;
|
|
6741
|
+
meterId: string;
|
|
6742
|
+
model: "pay_as_you_go" | "included_overage";
|
|
6743
|
+
period: {
|
|
6744
|
+
end: number;
|
|
6745
|
+
start: number;
|
|
6746
|
+
};
|
|
6747
|
+
stripeAccountId: string;
|
|
6748
|
+
stripePriceId: string;
|
|
6749
|
+
stripeProductId: string;
|
|
6750
|
+
subscriptionId: string;
|
|
6751
|
+
subscriptionItemId: string;
|
|
6752
|
+
};
|
|
6653
6753
|
}, Name>;
|
|
6654
6754
|
};
|
|
6655
6755
|
queries: {
|
|
@@ -6667,6 +6767,15 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
6667
6767
|
_creationTime: number;
|
|
6668
6768
|
_id: string;
|
|
6669
6769
|
adjustmentAmount?: number;
|
|
6770
|
+
creditSource?: {
|
|
6771
|
+
creditGrantId: string;
|
|
6772
|
+
customerAccount: string;
|
|
6773
|
+
livemode: boolean;
|
|
6774
|
+
purchaseId: string;
|
|
6775
|
+
stripeAccountId: string;
|
|
6776
|
+
stripePriceId: string;
|
|
6777
|
+
stripeProductId: string;
|
|
6778
|
+
};
|
|
6670
6779
|
currency: string;
|
|
6671
6780
|
gross: number;
|
|
6672
6781
|
paymentId?: string;
|
|
@@ -6680,6 +6789,22 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
6680
6789
|
destinationAccountId: string;
|
|
6681
6790
|
role: "store" | "affiliate" | "other";
|
|
6682
6791
|
}>;
|
|
6792
|
+
usageSource?: {
|
|
6793
|
+
customerAccount: string;
|
|
6794
|
+
invoicePaymentId: string;
|
|
6795
|
+
livemode: boolean;
|
|
6796
|
+
meterId: string;
|
|
6797
|
+
model: "pay_as_you_go" | "included_overage";
|
|
6798
|
+
period: {
|
|
6799
|
+
end: number;
|
|
6800
|
+
start: number;
|
|
6801
|
+
};
|
|
6802
|
+
stripeAccountId: string;
|
|
6803
|
+
stripePriceId: string;
|
|
6804
|
+
stripeProductId: string;
|
|
6805
|
+
subscriptionId: string;
|
|
6806
|
+
subscriptionItemId: string;
|
|
6807
|
+
};
|
|
6683
6808
|
} | null, Name>;
|
|
6684
6809
|
listAffiliateObligations: FunctionReference<"query", "internal", {
|
|
6685
6810
|
affiliateAccountId: string;
|
|
@@ -6766,7 +6891,7 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
6766
6891
|
stripeAccountId: string;
|
|
6767
6892
|
};
|
|
6768
6893
|
}, {
|
|
6769
|
-
delivery: "queued" | "sending" | "provider_accepted" | "rejected" | "unknown" | "held";
|
|
6894
|
+
delivery: "queued" | "canceled" | "sending" | "provider_accepted" | "rejected" | "unknown" | "held";
|
|
6770
6895
|
event: {
|
|
6771
6896
|
_creationTime: number;
|
|
6772
6897
|
_id: string;
|
|
@@ -6803,7 +6928,7 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
6803
6928
|
continueCursor: string;
|
|
6804
6929
|
isDone: boolean;
|
|
6805
6930
|
page: Array<{
|
|
6806
|
-
delivery: "queued" | "sending" | "provider_accepted" | "rejected" | "unknown" | "held";
|
|
6931
|
+
delivery: "queued" | "canceled" | "sending" | "provider_accepted" | "rejected" | "unknown" | "held";
|
|
6807
6932
|
event: {
|
|
6808
6933
|
_creationTime: number;
|
|
6809
6934
|
_id: string;
|
|
@@ -6874,7 +6999,7 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
6874
6999
|
at: number;
|
|
6875
7000
|
evidenceJson: string;
|
|
6876
7001
|
key: string;
|
|
6877
|
-
kind: "policy" | "reservation" | "commit" | "release";
|
|
7002
|
+
kind: "policy" | "reservation" | "commit" | "release" | "correction";
|
|
6878
7003
|
}>;
|
|
6879
7004
|
}, Name>;
|
|
6880
7005
|
reconciliation: FunctionReference<"query", "internal", {
|
|
@@ -6954,6 +7079,246 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
6954
7079
|
} | null, Name>;
|
|
6955
7080
|
};
|
|
6956
7081
|
};
|
|
7082
|
+
usageCorrections: {
|
|
7083
|
+
mutations: {
|
|
7084
|
+
adopt: FunctionReference<"mutation", "internal", {
|
|
7085
|
+
key: string;
|
|
7086
|
+
proofJson: string;
|
|
7087
|
+
}, {
|
|
7088
|
+
_creationTime: number;
|
|
7089
|
+
_id: string;
|
|
7090
|
+
adjustmentJson?: string;
|
|
7091
|
+
attempt: number;
|
|
7092
|
+
attemptedAt?: number;
|
|
7093
|
+
cashConsequence: "none" | "operator_resolution_required" | "verified_external_adjustment";
|
|
7094
|
+
correctionId: string;
|
|
7095
|
+
creditNoteId?: string;
|
|
7096
|
+
customerAccount?: string;
|
|
7097
|
+
eventId: string;
|
|
7098
|
+
firstAttemptAt: number;
|
|
7099
|
+
historyCount: number;
|
|
7100
|
+
inputJson: string;
|
|
7101
|
+
invoiceId?: string;
|
|
7102
|
+
key: string;
|
|
7103
|
+
leaseUntil?: number;
|
|
7104
|
+
nativeAdjustmentId?: string;
|
|
7105
|
+
nativeCreditNoteStatus?: "issued" | "void";
|
|
7106
|
+
nativeStatus?: "pending" | "complete";
|
|
7107
|
+
observedAt?: number;
|
|
7108
|
+
quantity: string;
|
|
7109
|
+
reason: string;
|
|
7110
|
+
recordJson: string;
|
|
7111
|
+
refundId?: string;
|
|
7112
|
+
resolution?: "event_cancellation" | "invoice_credit";
|
|
7113
|
+
restoredQuantity: string;
|
|
7114
|
+
scaledQuantity: string;
|
|
7115
|
+
scopeKey: string;
|
|
7116
|
+
state: "requested" | "provider_accepted" | "confirmed" | "held" | "unsupported" | "invoice_adjustment_required";
|
|
7117
|
+
stripeAccountId?: string;
|
|
7118
|
+
subscriptionJson: string;
|
|
7119
|
+
}, Name>;
|
|
7120
|
+
claim: FunctionReference<"mutation", "internal", {
|
|
7121
|
+
key: string;
|
|
7122
|
+
}, {
|
|
7123
|
+
attempt: number;
|
|
7124
|
+
kind: "ready" | "busy" | "done";
|
|
7125
|
+
}, Name>;
|
|
7126
|
+
prepare: FunctionReference<"mutation", "internal", {
|
|
7127
|
+
inputJson: string;
|
|
7128
|
+
}, {
|
|
7129
|
+
_creationTime: number;
|
|
7130
|
+
_id: string;
|
|
7131
|
+
adjustmentJson?: string;
|
|
7132
|
+
attempt: number;
|
|
7133
|
+
attemptedAt?: number;
|
|
7134
|
+
cashConsequence: "none" | "operator_resolution_required" | "verified_external_adjustment";
|
|
7135
|
+
correctionId: string;
|
|
7136
|
+
creditNoteId?: string;
|
|
7137
|
+
customerAccount?: string;
|
|
7138
|
+
eventId: string;
|
|
7139
|
+
firstAttemptAt: number;
|
|
7140
|
+
historyCount: number;
|
|
7141
|
+
inputJson: string;
|
|
7142
|
+
invoiceId?: string;
|
|
7143
|
+
key: string;
|
|
7144
|
+
leaseUntil?: number;
|
|
7145
|
+
nativeAdjustmentId?: string;
|
|
7146
|
+
nativeCreditNoteStatus?: "issued" | "void";
|
|
7147
|
+
nativeStatus?: "pending" | "complete";
|
|
7148
|
+
observedAt?: number;
|
|
7149
|
+
quantity: string;
|
|
7150
|
+
reason: string;
|
|
7151
|
+
recordJson: string;
|
|
7152
|
+
refundId?: string;
|
|
7153
|
+
resolution?: "event_cancellation" | "invoice_credit";
|
|
7154
|
+
restoredQuantity: string;
|
|
7155
|
+
scaledQuantity: string;
|
|
7156
|
+
scopeKey: string;
|
|
7157
|
+
state: "requested" | "provider_accepted" | "confirmed" | "held" | "unsupported" | "invoice_adjustment_required";
|
|
7158
|
+
stripeAccountId?: string;
|
|
7159
|
+
subscriptionJson: string;
|
|
7160
|
+
}, Name>;
|
|
7161
|
+
save: FunctionReference<"mutation", "internal", {
|
|
7162
|
+
attempt: number;
|
|
7163
|
+
key: string;
|
|
7164
|
+
outcomeJson: string;
|
|
7165
|
+
}, {
|
|
7166
|
+
_creationTime: number;
|
|
7167
|
+
_id: string;
|
|
7168
|
+
adjustmentJson?: string;
|
|
7169
|
+
attempt: number;
|
|
7170
|
+
attemptedAt?: number;
|
|
7171
|
+
cashConsequence: "none" | "operator_resolution_required" | "verified_external_adjustment";
|
|
7172
|
+
correctionId: string;
|
|
7173
|
+
creditNoteId?: string;
|
|
7174
|
+
customerAccount?: string;
|
|
7175
|
+
eventId: string;
|
|
7176
|
+
firstAttemptAt: number;
|
|
7177
|
+
historyCount: number;
|
|
7178
|
+
inputJson: string;
|
|
7179
|
+
invoiceId?: string;
|
|
7180
|
+
key: string;
|
|
7181
|
+
leaseUntil?: number;
|
|
7182
|
+
nativeAdjustmentId?: string;
|
|
7183
|
+
nativeCreditNoteStatus?: "issued" | "void";
|
|
7184
|
+
nativeStatus?: "pending" | "complete";
|
|
7185
|
+
observedAt?: number;
|
|
7186
|
+
quantity: string;
|
|
7187
|
+
reason: string;
|
|
7188
|
+
recordJson: string;
|
|
7189
|
+
refundId?: string;
|
|
7190
|
+
resolution?: "event_cancellation" | "invoice_credit";
|
|
7191
|
+
restoredQuantity: string;
|
|
7192
|
+
scaledQuantity: string;
|
|
7193
|
+
scopeKey: string;
|
|
7194
|
+
state: "requested" | "provider_accepted" | "confirmed" | "held" | "unsupported" | "invoice_adjustment_required";
|
|
7195
|
+
stripeAccountId?: string;
|
|
7196
|
+
subscriptionJson: string;
|
|
7197
|
+
}, Name>;
|
|
7198
|
+
};
|
|
7199
|
+
queries: {
|
|
7200
|
+
get: FunctionReference<"query", "internal", {
|
|
7201
|
+
correctionId: string;
|
|
7202
|
+
eventId: string;
|
|
7203
|
+
scope: {
|
|
7204
|
+
customerAccount: string;
|
|
7205
|
+
livemode: boolean;
|
|
7206
|
+
meterId: string;
|
|
7207
|
+
stripeAccountId: string;
|
|
7208
|
+
};
|
|
7209
|
+
}, {
|
|
7210
|
+
_creationTime: number;
|
|
7211
|
+
_id: string;
|
|
7212
|
+
adjustmentJson?: string;
|
|
7213
|
+
attempt: number;
|
|
7214
|
+
attemptedAt?: number;
|
|
7215
|
+
cashConsequence: "none" | "operator_resolution_required" | "verified_external_adjustment";
|
|
7216
|
+
correctionId: string;
|
|
7217
|
+
creditNoteId?: string;
|
|
7218
|
+
customerAccount?: string;
|
|
7219
|
+
eventId: string;
|
|
7220
|
+
firstAttemptAt: number;
|
|
7221
|
+
historyCount: number;
|
|
7222
|
+
inputJson: string;
|
|
7223
|
+
invoiceId?: string;
|
|
7224
|
+
key: string;
|
|
7225
|
+
leaseUntil?: number;
|
|
7226
|
+
nativeAdjustmentId?: string;
|
|
7227
|
+
nativeCreditNoteStatus?: "issued" | "void";
|
|
7228
|
+
nativeStatus?: "pending" | "complete";
|
|
7229
|
+
observedAt?: number;
|
|
7230
|
+
quantity: string;
|
|
7231
|
+
reason: string;
|
|
7232
|
+
recordJson: string;
|
|
7233
|
+
refundId?: string;
|
|
7234
|
+
resolution?: "event_cancellation" | "invoice_credit";
|
|
7235
|
+
restoredQuantity: string;
|
|
7236
|
+
scaledQuantity: string;
|
|
7237
|
+
scopeKey: string;
|
|
7238
|
+
state: "requested" | "provider_accepted" | "confirmed" | "held" | "unsupported" | "invoice_adjustment_required";
|
|
7239
|
+
stripeAccountId?: string;
|
|
7240
|
+
subscriptionJson: string;
|
|
7241
|
+
} | null, Name>;
|
|
7242
|
+
periodHistory: FunctionReference<"query", "internal", {
|
|
7243
|
+
paginationOpts: {
|
|
7244
|
+
cursor: string | null;
|
|
7245
|
+
endCursor?: string | null;
|
|
7246
|
+
id?: number;
|
|
7247
|
+
maximumBytesRead?: number;
|
|
7248
|
+
maximumRowsRead?: number;
|
|
7249
|
+
numItems: number;
|
|
7250
|
+
};
|
|
7251
|
+
period: {
|
|
7252
|
+
end: number;
|
|
7253
|
+
start: number;
|
|
7254
|
+
};
|
|
7255
|
+
scope: {
|
|
7256
|
+
customerAccount: string;
|
|
7257
|
+
livemode: boolean;
|
|
7258
|
+
meterId: string;
|
|
7259
|
+
stripeAccountId: string;
|
|
7260
|
+
};
|
|
7261
|
+
}, {
|
|
7262
|
+
continueCursor: string;
|
|
7263
|
+
isDone: boolean;
|
|
7264
|
+
legacyHistoryMissing: boolean;
|
|
7265
|
+
page: Array<{
|
|
7266
|
+
_creationTime: number;
|
|
7267
|
+
_id: string;
|
|
7268
|
+
at: number;
|
|
7269
|
+
eventId: string;
|
|
7270
|
+
evidenceJson: string;
|
|
7271
|
+
key: string;
|
|
7272
|
+
occurredAt?: number;
|
|
7273
|
+
reason: string;
|
|
7274
|
+
recordJson: string;
|
|
7275
|
+
scopeKey: string;
|
|
7276
|
+
sequence: number;
|
|
7277
|
+
state: "requested" | "provider_accepted" | "confirmed" | "held" | "unsupported" | "invoice_adjustment_required";
|
|
7278
|
+
subscriptionJson: string;
|
|
7279
|
+
}>;
|
|
7280
|
+
pageStatus?: "SplitRecommended" | "SplitRequired" | null;
|
|
7281
|
+
splitCursor?: string | null;
|
|
7282
|
+
}, Name>;
|
|
7283
|
+
readHistory: FunctionReference<"query", "internal", {
|
|
7284
|
+
eventId: string;
|
|
7285
|
+
paginationOpts: {
|
|
7286
|
+
cursor: string | null;
|
|
7287
|
+
endCursor?: string | null;
|
|
7288
|
+
id?: number;
|
|
7289
|
+
maximumBytesRead?: number;
|
|
7290
|
+
maximumRowsRead?: number;
|
|
7291
|
+
numItems: number;
|
|
7292
|
+
};
|
|
7293
|
+
scope: {
|
|
7294
|
+
customerAccount: string;
|
|
7295
|
+
livemode: boolean;
|
|
7296
|
+
meterId: string;
|
|
7297
|
+
stripeAccountId: string;
|
|
7298
|
+
};
|
|
7299
|
+
}, {
|
|
7300
|
+
continueCursor: string;
|
|
7301
|
+
isDone: boolean;
|
|
7302
|
+
page: Array<{
|
|
7303
|
+
_creationTime: number;
|
|
7304
|
+
_id: string;
|
|
7305
|
+
at: number;
|
|
7306
|
+
eventId: string;
|
|
7307
|
+
evidenceJson: string;
|
|
7308
|
+
key: string;
|
|
7309
|
+
occurredAt?: number;
|
|
7310
|
+
reason: string;
|
|
7311
|
+
recordJson: string;
|
|
7312
|
+
scopeKey: string;
|
|
7313
|
+
sequence: number;
|
|
7314
|
+
state: "requested" | "provider_accepted" | "confirmed" | "held" | "unsupported" | "invoice_adjustment_required";
|
|
7315
|
+
subscriptionJson: string;
|
|
7316
|
+
}>;
|
|
7317
|
+
pageStatus?: "SplitRecommended" | "SplitRequired" | null;
|
|
7318
|
+
splitCursor?: string | null;
|
|
7319
|
+
}, Name>;
|
|
7320
|
+
};
|
|
7321
|
+
};
|
|
6957
7322
|
usageCredits: {
|
|
6958
7323
|
mutations: {
|
|
6959
7324
|
cancelPurchase: FunctionReference<"mutation", "internal", {
|
|
@@ -7235,7 +7600,7 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
7235
7600
|
at: number;
|
|
7236
7601
|
evidenceJson: string;
|
|
7237
7602
|
fingerprint: string;
|
|
7238
|
-
kind: "purchase" | "payment" | "grant" | "reservation" | "commit" | "release" | "observation" | "recovery" | "closure";
|
|
7603
|
+
kind: "purchase" | "payment" | "grant" | "reservation" | "commit" | "release" | "observation" | "recovery" | "closure" | "correction";
|
|
7239
7604
|
purchaseKey?: string;
|
|
7240
7605
|
sourceKey: string;
|
|
7241
7606
|
}>;
|
|
@@ -7259,12 +7624,12 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
7259
7624
|
eventId: string;
|
|
7260
7625
|
held: boolean;
|
|
7261
7626
|
providerIdentifier: string;
|
|
7262
|
-
reason?: "billing_period_closed" | "rate_limited" | "provider_unavailable" | "provider_outcome_unknown" | "provider_rejected" | "retry_exhausted" | "delivery_window_expired" | "scope_busy" | "administrative_hold";
|
|
7627
|
+
reason?: "usage_canceled" | "billing_period_closed" | "rate_limited" | "provider_unavailable" | "provider_outcome_unknown" | "provider_rejected" | "retry_exhausted" | "delivery_window_expired" | "scope_busy" | "administrative_hold";
|
|
7263
7628
|
receipt?: {
|
|
7264
7629
|
created: number;
|
|
7265
7630
|
identifier: string;
|
|
7266
7631
|
};
|
|
7267
|
-
state: "queued" | "sending" | "provider_accepted" | "rejected" | "unknown" | "held";
|
|
7632
|
+
state: "queued" | "canceled" | "sending" | "provider_accepted" | "rejected" | "unknown" | "held";
|
|
7268
7633
|
validationErrors: Array<{
|
|
7269
7634
|
code: "meter_event_customer_not_found" | "meter_event_no_customer_defined" | "meter_event_dimension_count_too_high" | "archived_meter" | "timestamp_too_far_in_past" | "timestamp_in_future" | "meter_event_value_not_found" | "meter_event_invalid_value" | "no_meter";
|
|
7270
7635
|
observedAt: number;
|
|
@@ -7300,12 +7665,12 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
7300
7665
|
eventId: string;
|
|
7301
7666
|
held: boolean;
|
|
7302
7667
|
providerIdentifier: string;
|
|
7303
|
-
reason?: "billing_period_closed" | "rate_limited" | "provider_unavailable" | "provider_outcome_unknown" | "provider_rejected" | "retry_exhausted" | "delivery_window_expired" | "scope_busy" | "administrative_hold";
|
|
7668
|
+
reason?: "usage_canceled" | "billing_period_closed" | "rate_limited" | "provider_unavailable" | "provider_outcome_unknown" | "provider_rejected" | "retry_exhausted" | "delivery_window_expired" | "scope_busy" | "administrative_hold";
|
|
7304
7669
|
receipt?: {
|
|
7305
7670
|
created: number;
|
|
7306
7671
|
identifier: string;
|
|
7307
7672
|
};
|
|
7308
|
-
state: "queued" | "sending" | "provider_accepted" | "rejected" | "unknown" | "held";
|
|
7673
|
+
state: "queued" | "canceled" | "sending" | "provider_accepted" | "rejected" | "unknown" | "held";
|
|
7309
7674
|
validationErrors: Array<{
|
|
7310
7675
|
code: "meter_event_customer_not_found" | "meter_event_no_customer_defined" | "meter_event_dimension_count_too_high" | "archived_meter" | "timestamp_too_far_in_past" | "timestamp_in_future" | "meter_event_value_not_found" | "meter_event_invalid_value" | "no_meter";
|
|
7311
7676
|
observedAt: number;
|
|
@@ -7328,12 +7693,12 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
7328
7693
|
eventId: string;
|
|
7329
7694
|
held: boolean;
|
|
7330
7695
|
providerIdentifier: string;
|
|
7331
|
-
reason?: "billing_period_closed" | "rate_limited" | "provider_unavailable" | "provider_outcome_unknown" | "provider_rejected" | "retry_exhausted" | "delivery_window_expired" | "scope_busy" | "administrative_hold";
|
|
7696
|
+
reason?: "usage_canceled" | "billing_period_closed" | "rate_limited" | "provider_unavailable" | "provider_outcome_unknown" | "provider_rejected" | "retry_exhausted" | "delivery_window_expired" | "scope_busy" | "administrative_hold";
|
|
7332
7697
|
receipt?: {
|
|
7333
7698
|
created: number;
|
|
7334
7699
|
identifier: string;
|
|
7335
7700
|
};
|
|
7336
|
-
state: "queued" | "sending" | "provider_accepted" | "rejected" | "unknown" | "held";
|
|
7701
|
+
state: "queued" | "canceled" | "sending" | "provider_accepted" | "rejected" | "unknown" | "held";
|
|
7337
7702
|
validationErrors: Array<{
|
|
7338
7703
|
code: "meter_event_customer_not_found" | "meter_event_no_customer_defined" | "meter_event_dimension_count_too_high" | "archived_meter" | "timestamp_too_far_in_past" | "timestamp_in_future" | "meter_event_value_not_found" | "meter_event_invalid_value" | "no_meter";
|
|
7339
7704
|
observedAt: number;
|
|
@@ -7356,12 +7721,12 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
7356
7721
|
eventId: string;
|
|
7357
7722
|
held: boolean;
|
|
7358
7723
|
providerIdentifier: string;
|
|
7359
|
-
reason?: "billing_period_closed" | "rate_limited" | "provider_unavailable" | "provider_outcome_unknown" | "provider_rejected" | "retry_exhausted" | "delivery_window_expired" | "scope_busy" | "administrative_hold";
|
|
7724
|
+
reason?: "usage_canceled" | "billing_period_closed" | "rate_limited" | "provider_unavailable" | "provider_outcome_unknown" | "provider_rejected" | "retry_exhausted" | "delivery_window_expired" | "scope_busy" | "administrative_hold";
|
|
7360
7725
|
receipt?: {
|
|
7361
7726
|
created: number;
|
|
7362
7727
|
identifier: string;
|
|
7363
7728
|
};
|
|
7364
|
-
state: "queued" | "sending" | "provider_accepted" | "rejected" | "unknown" | "held";
|
|
7729
|
+
state: "queued" | "canceled" | "sending" | "provider_accepted" | "rejected" | "unknown" | "held";
|
|
7365
7730
|
validationErrors: Array<{
|
|
7366
7731
|
code: "meter_event_customer_not_found" | "meter_event_no_customer_defined" | "meter_event_dimension_count_too_high" | "archived_meter" | "timestamp_too_far_in_past" | "timestamp_in_future" | "meter_event_value_not_found" | "meter_event_invalid_value" | "no_meter";
|
|
7367
7732
|
observedAt: number;
|
|
@@ -7400,6 +7765,7 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
7400
7765
|
_creationTime: number;
|
|
7401
7766
|
_id: string;
|
|
7402
7767
|
attempts: number;
|
|
7768
|
+
correctionKey?: string;
|
|
7403
7769
|
definitionVersion?: 1;
|
|
7404
7770
|
dispatch?: string;
|
|
7405
7771
|
eventId: string;
|
|
@@ -7410,13 +7776,13 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
7410
7776
|
nextAttemptAt: number;
|
|
7411
7777
|
provider?: string;
|
|
7412
7778
|
providerIdentifier: string;
|
|
7413
|
-
reason?: "billing_period_closed" | "rate_limited" | "provider_unavailable" | "provider_outcome_unknown" | "provider_rejected" | "retry_exhausted" | "delivery_window_expired" | "scope_busy" | "administrative_hold";
|
|
7779
|
+
reason?: "usage_canceled" | "billing_period_closed" | "rate_limited" | "provider_unavailable" | "provider_outcome_unknown" | "provider_rejected" | "retry_exhausted" | "delivery_window_expired" | "scope_busy" | "administrative_hold";
|
|
7414
7780
|
receipt?: {
|
|
7415
7781
|
created: number;
|
|
7416
7782
|
identifier: string;
|
|
7417
7783
|
};
|
|
7418
7784
|
scopeKey: string;
|
|
7419
|
-
state: "queued" | "sending" | "provider_accepted" | "rejected" | "unknown" | "held";
|
|
7785
|
+
state: "queued" | "canceled" | "sending" | "provider_accepted" | "rejected" | "unknown" | "held";
|
|
7420
7786
|
workflowId?: string;
|
|
7421
7787
|
};
|
|
7422
7788
|
}, Name>;
|