@fantastic.dev/better-stripe 0.59.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 +6 -0
- package/README.md +3 -1
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +650 -44
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts +309 -6
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +618 -12
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutSyncTestHelpers.d.ts +325 -22
- 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/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.js +2 -2
- 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 +4 -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 +2 -2
- package/dist/client/usage/observationClient.d.ts.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/component/_generated/component.d.ts +125 -0
- package/dist/component/_generated/component.d.ts.map +1 -1
- package/dist/component/balanceFunding/internal/actions.d.ts +11 -11
- package/dist/component/balanceFunding/mutations.d.ts +27 -27
- package/dist/component/earnings/triggers.d.ts +156 -6
- 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 +309 -6
- 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/docs/README.md +2 -0
- package/docs/settlement.md +4 -0
- package/docs/usage-settlement.md +162 -0
- package/package.json +2 -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/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 +9 -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/settlement.test.ts +179 -0
- package/src/client/usage/settlement.ts +81 -0
- package/src/client/usage/settlementClient.ts +84 -0
- package/src/component/_generated/component.ts +110 -0
- package/src/component/financialObservations/settlementHelpers.ts +2 -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
|
@@ -1114,6 +1114,15 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
1114
1114
|
activePhase?: "execute" | "reconcile" | undefined;
|
|
1115
1115
|
allocation?: {
|
|
1116
1116
|
adjustmentAmount?: number | undefined;
|
|
1117
|
+
creditSource?: {
|
|
1118
|
+
creditGrantId: string;
|
|
1119
|
+
customerAccount: string;
|
|
1120
|
+
livemode: boolean;
|
|
1121
|
+
purchaseId: string;
|
|
1122
|
+
stripeAccountId: string;
|
|
1123
|
+
stripePriceId: string;
|
|
1124
|
+
stripeProductId: string;
|
|
1125
|
+
} | undefined;
|
|
1117
1126
|
currency: string;
|
|
1118
1127
|
gross: number;
|
|
1119
1128
|
paymentId?: string | undefined;
|
|
@@ -1127,6 +1136,22 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
1127
1136
|
destinationAccountId: string;
|
|
1128
1137
|
role: "affiliate" | "other" | "store";
|
|
1129
1138
|
}[];
|
|
1139
|
+
usageSource?: {
|
|
1140
|
+
customerAccount: string;
|
|
1141
|
+
invoicePaymentId: string;
|
|
1142
|
+
livemode: boolean;
|
|
1143
|
+
meterId: string;
|
|
1144
|
+
model: "included_overage" | "pay_as_you_go";
|
|
1145
|
+
period: {
|
|
1146
|
+
end: number;
|
|
1147
|
+
start: number;
|
|
1148
|
+
};
|
|
1149
|
+
stripeAccountId: string;
|
|
1150
|
+
stripePriceId: string;
|
|
1151
|
+
stripeProductId: string;
|
|
1152
|
+
subscriptionId: string;
|
|
1153
|
+
subscriptionItemId: string;
|
|
1154
|
+
} | undefined;
|
|
1130
1155
|
} | undefined;
|
|
1131
1156
|
cancelRequested: boolean;
|
|
1132
1157
|
completion?: string | undefined;
|
|
@@ -1161,6 +1186,15 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
1161
1186
|
retryDelayMs: import("convex/values").VFloat64<number, "required">;
|
|
1162
1187
|
allocation: import("convex/values").VObject<{
|
|
1163
1188
|
adjustmentAmount?: number | undefined;
|
|
1189
|
+
creditSource?: {
|
|
1190
|
+
creditGrantId: string;
|
|
1191
|
+
customerAccount: string;
|
|
1192
|
+
livemode: boolean;
|
|
1193
|
+
purchaseId: string;
|
|
1194
|
+
stripeAccountId: string;
|
|
1195
|
+
stripePriceId: string;
|
|
1196
|
+
stripeProductId: string;
|
|
1197
|
+
} | undefined;
|
|
1164
1198
|
currency: string;
|
|
1165
1199
|
gross: number;
|
|
1166
1200
|
paymentId?: string | undefined;
|
|
@@ -1174,10 +1208,77 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
1174
1208
|
destinationAccountId: string;
|
|
1175
1209
|
role: "affiliate" | "other" | "store";
|
|
1176
1210
|
}[];
|
|
1211
|
+
usageSource?: {
|
|
1212
|
+
customerAccount: string;
|
|
1213
|
+
invoicePaymentId: string;
|
|
1214
|
+
livemode: boolean;
|
|
1215
|
+
meterId: string;
|
|
1216
|
+
model: "included_overage" | "pay_as_you_go";
|
|
1217
|
+
period: {
|
|
1218
|
+
end: number;
|
|
1219
|
+
start: number;
|
|
1220
|
+
};
|
|
1221
|
+
stripeAccountId: string;
|
|
1222
|
+
stripePriceId: string;
|
|
1223
|
+
stripeProductId: string;
|
|
1224
|
+
subscriptionId: string;
|
|
1225
|
+
subscriptionItemId: string;
|
|
1226
|
+
} | undefined;
|
|
1177
1227
|
} | undefined, {
|
|
1178
1228
|
sourceChargeId: import("convex/values").VString<string, "required">;
|
|
1179
1229
|
paymentIntentId: import("convex/values").VString<string | undefined, "optional">;
|
|
1180
1230
|
sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
|
|
1231
|
+
usageSource: import("convex/values").VObject<{
|
|
1232
|
+
customerAccount: string;
|
|
1233
|
+
invoicePaymentId: string;
|
|
1234
|
+
livemode: boolean;
|
|
1235
|
+
meterId: string;
|
|
1236
|
+
model: "included_overage" | "pay_as_you_go";
|
|
1237
|
+
period: {
|
|
1238
|
+
end: number;
|
|
1239
|
+
start: number;
|
|
1240
|
+
};
|
|
1241
|
+
stripeAccountId: string;
|
|
1242
|
+
stripePriceId: string;
|
|
1243
|
+
stripeProductId: string;
|
|
1244
|
+
subscriptionId: string;
|
|
1245
|
+
subscriptionItemId: string;
|
|
1246
|
+
} | undefined, {
|
|
1247
|
+
stripeAccountId: import("convex/values").VString<string, "required">;
|
|
1248
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
1249
|
+
livemode: import("convex/values").VBoolean<boolean, "required">;
|
|
1250
|
+
meterId: import("convex/values").VString<string, "required">;
|
|
1251
|
+
stripePriceId: import("convex/values").VString<string, "required">;
|
|
1252
|
+
stripeProductId: import("convex/values").VString<string, "required">;
|
|
1253
|
+
subscriptionId: import("convex/values").VString<string, "required">;
|
|
1254
|
+
subscriptionItemId: import("convex/values").VString<string, "required">;
|
|
1255
|
+
invoicePaymentId: import("convex/values").VString<string, "required">;
|
|
1256
|
+
period: import("convex/values").VObject<{
|
|
1257
|
+
end: number;
|
|
1258
|
+
start: number;
|
|
1259
|
+
}, {
|
|
1260
|
+
start: import("convex/values").VFloat64<number, "required">;
|
|
1261
|
+
end: import("convex/values").VFloat64<number, "required">;
|
|
1262
|
+
}, "required", "end" | "start">;
|
|
1263
|
+
model: import("convex/values").VUnion<"included_overage" | "pay_as_you_go", [import("convex/values").VLiteral<"pay_as_you_go", "required">, import("convex/values").VLiteral<"included_overage", "required">], "required", never>;
|
|
1264
|
+
}, "optional", "customerAccount" | "invoicePaymentId" | "livemode" | "meterId" | "model" | "period" | "period.end" | "period.start" | "stripeAccountId" | "stripePriceId" | "stripeProductId" | "subscriptionId" | "subscriptionItemId">;
|
|
1265
|
+
creditSource: import("convex/values").VObject<{
|
|
1266
|
+
creditGrantId: string;
|
|
1267
|
+
customerAccount: string;
|
|
1268
|
+
livemode: boolean;
|
|
1269
|
+
purchaseId: string;
|
|
1270
|
+
stripeAccountId: string;
|
|
1271
|
+
stripePriceId: string;
|
|
1272
|
+
stripeProductId: string;
|
|
1273
|
+
} | undefined, {
|
|
1274
|
+
stripeAccountId: import("convex/values").VString<string, "required">;
|
|
1275
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
1276
|
+
livemode: import("convex/values").VBoolean<boolean, "required">;
|
|
1277
|
+
purchaseId: import("convex/values").VString<string, "required">;
|
|
1278
|
+
creditGrantId: import("convex/values").VString<string, "required">;
|
|
1279
|
+
stripePriceId: import("convex/values").VString<string, "required">;
|
|
1280
|
+
stripeProductId: import("convex/values").VString<string, "required">;
|
|
1281
|
+
}, "optional", "creditGrantId" | "customerAccount" | "livemode" | "purchaseId" | "stripeAccountId" | "stripePriceId" | "stripeProductId">;
|
|
1181
1282
|
gross: import("convex/values").VFloat64<number, "required">;
|
|
1182
1283
|
currency: import("convex/values").VString<string, "required">;
|
|
1183
1284
|
processingFee: import("convex/values").VFloat64<number, "required">;
|
|
@@ -1197,7 +1298,7 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
1197
1298
|
role: import("convex/values").VUnion<"affiliate" | "other" | "store", [import("convex/values").VLiteral<"store", "required">, import("convex/values").VLiteral<"affiliate", "required">, import("convex/values").VLiteral<"other", "required">], "required", never>;
|
|
1198
1299
|
amount: import("convex/values").VFloat64<number, "required">;
|
|
1199
1300
|
}, "required", "amount" | "destinationAccountId" | "role">, "required">;
|
|
1200
|
-
}, "optional", "adjustmentAmount" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers">;
|
|
1301
|
+
}, "optional", "adjustmentAmount" | "creditSource" | "creditSource.creditGrantId" | "creditSource.customerAccount" | "creditSource.livemode" | "creditSource.purchaseId" | "creditSource.stripeAccountId" | "creditSource.stripePriceId" | "creditSource.stripeProductId" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers" | "usageSource" | "usageSource.customerAccount" | "usageSource.invoicePaymentId" | "usageSource.livemode" | "usageSource.meterId" | "usageSource.model" | "usageSource.period" | "usageSource.period.end" | "usageSource.period.start" | "usageSource.stripeAccountId" | "usageSource.stripePriceId" | "usageSource.stripeProductId" | "usageSource.subscriptionId" | "usageSource.subscriptionItemId">;
|
|
1201
1302
|
version: import("convex/values").VFloat64<number, "required">;
|
|
1202
1303
|
sourceKind: import("convex/values").VUnion<"invoice" | "settlement", [import("convex/values").VLiteral<"settlement", "required">, import("convex/values").VLiteral<"invoice", "required">], "required", never>;
|
|
1203
1304
|
sourceId: import("convex/values").VString<string, "required">;
|
|
@@ -1208,7 +1309,7 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
1208
1309
|
activePhase: import("convex/values").VUnion<"execute" | "reconcile" | undefined, [import("convex/values").VLiteral<"execute", "required">, import("convex/values").VLiteral<"reconcile", "required">], "optional", never>;
|
|
1209
1310
|
resumeQueued: import("convex/values").VBoolean<boolean, "required">;
|
|
1210
1311
|
outcome: import("convex/values").VUnion<"collect" | "release" | undefined, [import("convex/values").VLiteral<"collect", "required">, import("convex/values").VLiteral<"release", "required">], "optional", never>;
|
|
1211
|
-
}, "required", "accountId" | "activePhase" | "allocation" | "allocation.adjustmentAmount" | "allocation.currency" | "allocation.gross" | "allocation.paymentId" | "allocation.paymentIntentId" | "allocation.platformNet" | "allocation.processingFee" | "allocation.sourceChargeId" | "allocation.sourceInvoiceId" | "allocation.transfers" | "cancelRequested" | "completion" | "currency" | "definitionVersion" | "groupKey" | "maxAttempts" | "outcome" | "provider" | "providerApiVersion" | "providerStarted" | "releaseUncollectible" | "resumeQueued" | "retryDelayMs" | "scopeKey" | "sourceId" | "sourceKind" | "status" | "version" | "workflowId">, {
|
|
1312
|
+
}, "required", "accountId" | "activePhase" | "allocation" | "allocation.adjustmentAmount" | "allocation.creditSource" | "allocation.creditSource.creditGrantId" | "allocation.creditSource.customerAccount" | "allocation.creditSource.livemode" | "allocation.creditSource.purchaseId" | "allocation.creditSource.stripeAccountId" | "allocation.creditSource.stripePriceId" | "allocation.creditSource.stripeProductId" | "allocation.currency" | "allocation.gross" | "allocation.paymentId" | "allocation.paymentIntentId" | "allocation.platformNet" | "allocation.processingFee" | "allocation.sourceChargeId" | "allocation.sourceInvoiceId" | "allocation.transfers" | "allocation.usageSource" | "allocation.usageSource.customerAccount" | "allocation.usageSource.invoicePaymentId" | "allocation.usageSource.livemode" | "allocation.usageSource.meterId" | "allocation.usageSource.model" | "allocation.usageSource.period" | "allocation.usageSource.period.end" | "allocation.usageSource.period.start" | "allocation.usageSource.stripeAccountId" | "allocation.usageSource.stripePriceId" | "allocation.usageSource.stripeProductId" | "allocation.usageSource.subscriptionId" | "allocation.usageSource.subscriptionItemId" | "cancelRequested" | "completion" | "currency" | "definitionVersion" | "groupKey" | "maxAttempts" | "outcome" | "provider" | "providerApiVersion" | "providerStarted" | "releaseUncollectible" | "resumeQueued" | "retryDelayMs" | "scopeKey" | "sourceId" | "sourceKind" | "status" | "version" | "workflowId">, {
|
|
1212
1313
|
by_group: ["groupKey", "_creationTime"];
|
|
1213
1314
|
by_source: ["sourceKind", "sourceId", "_creationTime"];
|
|
1214
1315
|
}, {}, {}>;
|
|
@@ -1217,6 +1318,15 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
1217
1318
|
accountId: string;
|
|
1218
1319
|
allocation?: {
|
|
1219
1320
|
adjustmentAmount?: number | undefined;
|
|
1321
|
+
creditSource?: {
|
|
1322
|
+
creditGrantId: string;
|
|
1323
|
+
customerAccount: string;
|
|
1324
|
+
livemode: boolean;
|
|
1325
|
+
purchaseId: string;
|
|
1326
|
+
stripeAccountId: string;
|
|
1327
|
+
stripePriceId: string;
|
|
1328
|
+
stripeProductId: string;
|
|
1329
|
+
} | undefined;
|
|
1220
1330
|
currency: string;
|
|
1221
1331
|
gross: number;
|
|
1222
1332
|
paymentId?: string | undefined;
|
|
@@ -1230,6 +1340,22 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
1230
1340
|
destinationAccountId: string;
|
|
1231
1341
|
role: "affiliate" | "other" | "store";
|
|
1232
1342
|
}[];
|
|
1343
|
+
usageSource?: {
|
|
1344
|
+
customerAccount: string;
|
|
1345
|
+
invoicePaymentId: string;
|
|
1346
|
+
livemode: boolean;
|
|
1347
|
+
meterId: string;
|
|
1348
|
+
model: "included_overage" | "pay_as_you_go";
|
|
1349
|
+
period: {
|
|
1350
|
+
end: number;
|
|
1351
|
+
start: number;
|
|
1352
|
+
};
|
|
1353
|
+
stripeAccountId: string;
|
|
1354
|
+
stripePriceId: string;
|
|
1355
|
+
stripeProductId: string;
|
|
1356
|
+
subscriptionId: string;
|
|
1357
|
+
subscriptionItemId: string;
|
|
1358
|
+
} | undefined;
|
|
1233
1359
|
} | undefined;
|
|
1234
1360
|
completion?: string | undefined;
|
|
1235
1361
|
currency: string;
|
|
@@ -1250,6 +1376,15 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
1250
1376
|
accountId: string;
|
|
1251
1377
|
allocation?: {
|
|
1252
1378
|
adjustmentAmount?: number | undefined;
|
|
1379
|
+
creditSource?: {
|
|
1380
|
+
creditGrantId: string;
|
|
1381
|
+
customerAccount: string;
|
|
1382
|
+
livemode: boolean;
|
|
1383
|
+
purchaseId: string;
|
|
1384
|
+
stripeAccountId: string;
|
|
1385
|
+
stripePriceId: string;
|
|
1386
|
+
stripeProductId: string;
|
|
1387
|
+
} | undefined;
|
|
1253
1388
|
currency: string;
|
|
1254
1389
|
gross: number;
|
|
1255
1390
|
paymentId?: string | undefined;
|
|
@@ -1263,6 +1398,22 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
1263
1398
|
destinationAccountId: string;
|
|
1264
1399
|
role: "affiliate" | "other" | "store";
|
|
1265
1400
|
}[];
|
|
1401
|
+
usageSource?: {
|
|
1402
|
+
customerAccount: string;
|
|
1403
|
+
invoicePaymentId: string;
|
|
1404
|
+
livemode: boolean;
|
|
1405
|
+
meterId: string;
|
|
1406
|
+
model: "included_overage" | "pay_as_you_go";
|
|
1407
|
+
period: {
|
|
1408
|
+
end: number;
|
|
1409
|
+
start: number;
|
|
1410
|
+
};
|
|
1411
|
+
stripeAccountId: string;
|
|
1412
|
+
stripePriceId: string;
|
|
1413
|
+
stripeProductId: string;
|
|
1414
|
+
subscriptionId: string;
|
|
1415
|
+
subscriptionItemId: string;
|
|
1416
|
+
} | undefined;
|
|
1266
1417
|
} | undefined;
|
|
1267
1418
|
completion?: string | undefined;
|
|
1268
1419
|
currency: string;
|
|
@@ -1288,6 +1439,15 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
1288
1439
|
retryDelayMs: import("convex/values").VFloat64<number, "required">;
|
|
1289
1440
|
allocation: import("convex/values").VObject<{
|
|
1290
1441
|
adjustmentAmount?: number | undefined;
|
|
1442
|
+
creditSource?: {
|
|
1443
|
+
creditGrantId: string;
|
|
1444
|
+
customerAccount: string;
|
|
1445
|
+
livemode: boolean;
|
|
1446
|
+
purchaseId: string;
|
|
1447
|
+
stripeAccountId: string;
|
|
1448
|
+
stripePriceId: string;
|
|
1449
|
+
stripeProductId: string;
|
|
1450
|
+
} | undefined;
|
|
1291
1451
|
currency: string;
|
|
1292
1452
|
gross: number;
|
|
1293
1453
|
paymentId?: string | undefined;
|
|
@@ -1301,10 +1461,77 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
1301
1461
|
destinationAccountId: string;
|
|
1302
1462
|
role: "affiliate" | "other" | "store";
|
|
1303
1463
|
}[];
|
|
1464
|
+
usageSource?: {
|
|
1465
|
+
customerAccount: string;
|
|
1466
|
+
invoicePaymentId: string;
|
|
1467
|
+
livemode: boolean;
|
|
1468
|
+
meterId: string;
|
|
1469
|
+
model: "included_overage" | "pay_as_you_go";
|
|
1470
|
+
period: {
|
|
1471
|
+
end: number;
|
|
1472
|
+
start: number;
|
|
1473
|
+
};
|
|
1474
|
+
stripeAccountId: string;
|
|
1475
|
+
stripePriceId: string;
|
|
1476
|
+
stripeProductId: string;
|
|
1477
|
+
subscriptionId: string;
|
|
1478
|
+
subscriptionItemId: string;
|
|
1479
|
+
} | undefined;
|
|
1304
1480
|
} | undefined, {
|
|
1305
1481
|
sourceChargeId: import("convex/values").VString<string, "required">;
|
|
1306
1482
|
paymentIntentId: import("convex/values").VString<string | undefined, "optional">;
|
|
1307
1483
|
sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
|
|
1484
|
+
usageSource: import("convex/values").VObject<{
|
|
1485
|
+
customerAccount: string;
|
|
1486
|
+
invoicePaymentId: string;
|
|
1487
|
+
livemode: boolean;
|
|
1488
|
+
meterId: string;
|
|
1489
|
+
model: "included_overage" | "pay_as_you_go";
|
|
1490
|
+
period: {
|
|
1491
|
+
end: number;
|
|
1492
|
+
start: number;
|
|
1493
|
+
};
|
|
1494
|
+
stripeAccountId: string;
|
|
1495
|
+
stripePriceId: string;
|
|
1496
|
+
stripeProductId: string;
|
|
1497
|
+
subscriptionId: string;
|
|
1498
|
+
subscriptionItemId: string;
|
|
1499
|
+
} | undefined, {
|
|
1500
|
+
stripeAccountId: import("convex/values").VString<string, "required">;
|
|
1501
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
1502
|
+
livemode: import("convex/values").VBoolean<boolean, "required">;
|
|
1503
|
+
meterId: import("convex/values").VString<string, "required">;
|
|
1504
|
+
stripePriceId: import("convex/values").VString<string, "required">;
|
|
1505
|
+
stripeProductId: import("convex/values").VString<string, "required">;
|
|
1506
|
+
subscriptionId: import("convex/values").VString<string, "required">;
|
|
1507
|
+
subscriptionItemId: import("convex/values").VString<string, "required">;
|
|
1508
|
+
invoicePaymentId: import("convex/values").VString<string, "required">;
|
|
1509
|
+
period: import("convex/values").VObject<{
|
|
1510
|
+
end: number;
|
|
1511
|
+
start: number;
|
|
1512
|
+
}, {
|
|
1513
|
+
start: import("convex/values").VFloat64<number, "required">;
|
|
1514
|
+
end: import("convex/values").VFloat64<number, "required">;
|
|
1515
|
+
}, "required", "end" | "start">;
|
|
1516
|
+
model: import("convex/values").VUnion<"included_overage" | "pay_as_you_go", [import("convex/values").VLiteral<"pay_as_you_go", "required">, import("convex/values").VLiteral<"included_overage", "required">], "required", never>;
|
|
1517
|
+
}, "optional", "customerAccount" | "invoicePaymentId" | "livemode" | "meterId" | "model" | "period" | "period.end" | "period.start" | "stripeAccountId" | "stripePriceId" | "stripeProductId" | "subscriptionId" | "subscriptionItemId">;
|
|
1518
|
+
creditSource: import("convex/values").VObject<{
|
|
1519
|
+
creditGrantId: string;
|
|
1520
|
+
customerAccount: string;
|
|
1521
|
+
livemode: boolean;
|
|
1522
|
+
purchaseId: string;
|
|
1523
|
+
stripeAccountId: string;
|
|
1524
|
+
stripePriceId: string;
|
|
1525
|
+
stripeProductId: string;
|
|
1526
|
+
} | undefined, {
|
|
1527
|
+
stripeAccountId: import("convex/values").VString<string, "required">;
|
|
1528
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
1529
|
+
livemode: import("convex/values").VBoolean<boolean, "required">;
|
|
1530
|
+
purchaseId: import("convex/values").VString<string, "required">;
|
|
1531
|
+
creditGrantId: import("convex/values").VString<string, "required">;
|
|
1532
|
+
stripePriceId: import("convex/values").VString<string, "required">;
|
|
1533
|
+
stripeProductId: import("convex/values").VString<string, "required">;
|
|
1534
|
+
}, "optional", "creditGrantId" | "customerAccount" | "livemode" | "purchaseId" | "stripeAccountId" | "stripePriceId" | "stripeProductId">;
|
|
1308
1535
|
gross: import("convex/values").VFloat64<number, "required">;
|
|
1309
1536
|
currency: import("convex/values").VString<string, "required">;
|
|
1310
1537
|
processingFee: import("convex/values").VFloat64<number, "required">;
|
|
@@ -1324,10 +1551,10 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
1324
1551
|
role: import("convex/values").VUnion<"affiliate" | "other" | "store", [import("convex/values").VLiteral<"store", "required">, import("convex/values").VLiteral<"affiliate", "required">, import("convex/values").VLiteral<"other", "required">], "required", never>;
|
|
1325
1552
|
amount: import("convex/values").VFloat64<number, "required">;
|
|
1326
1553
|
}, "required", "amount" | "destinationAccountId" | "role">, "required">;
|
|
1327
|
-
}, "optional", "adjustmentAmount" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers">;
|
|
1328
|
-
}, "required", "accountId" | "allocation" | "allocation.adjustmentAmount" | "allocation.currency" | "allocation.gross" | "allocation.paymentId" | "allocation.paymentIntentId" | "allocation.platformNet" | "allocation.processingFee" | "allocation.sourceChargeId" | "allocation.sourceInvoiceId" | "allocation.transfers" | "completion" | "currency" | "definitionVersion" | "groupKey" | "maxAttempts" | "provider" | "providerApiVersion" | "releaseUncollectible" | "retryDelayMs" | "scopeKey">;
|
|
1554
|
+
}, "optional", "adjustmentAmount" | "creditSource" | "creditSource.creditGrantId" | "creditSource.customerAccount" | "creditSource.livemode" | "creditSource.purchaseId" | "creditSource.stripeAccountId" | "creditSource.stripePriceId" | "creditSource.stripeProductId" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers" | "usageSource" | "usageSource.customerAccount" | "usageSource.invoicePaymentId" | "usageSource.livemode" | "usageSource.meterId" | "usageSource.model" | "usageSource.period" | "usageSource.period.end" | "usageSource.period.start" | "usageSource.stripeAccountId" | "usageSource.stripePriceId" | "usageSource.stripeProductId" | "usageSource.subscriptionId" | "usageSource.subscriptionItemId">;
|
|
1555
|
+
}, "required", "accountId" | "allocation" | "allocation.adjustmentAmount" | "allocation.creditSource" | "allocation.creditSource.creditGrantId" | "allocation.creditSource.customerAccount" | "allocation.creditSource.livemode" | "allocation.creditSource.purchaseId" | "allocation.creditSource.stripeAccountId" | "allocation.creditSource.stripePriceId" | "allocation.creditSource.stripeProductId" | "allocation.currency" | "allocation.gross" | "allocation.paymentId" | "allocation.paymentIntentId" | "allocation.platformNet" | "allocation.processingFee" | "allocation.sourceChargeId" | "allocation.sourceInvoiceId" | "allocation.transfers" | "allocation.usageSource" | "allocation.usageSource.customerAccount" | "allocation.usageSource.invoicePaymentId" | "allocation.usageSource.livemode" | "allocation.usageSource.meterId" | "allocation.usageSource.model" | "allocation.usageSource.period" | "allocation.usageSource.period.end" | "allocation.usageSource.period.start" | "allocation.usageSource.stripeAccountId" | "allocation.usageSource.stripePriceId" | "allocation.usageSource.stripeProductId" | "allocation.usageSource.subscriptionId" | "allocation.usageSource.subscriptionItemId" | "completion" | "currency" | "definitionVersion" | "groupKey" | "maxAttempts" | "provider" | "providerApiVersion" | "releaseUncollectible" | "retryDelayMs" | "scopeKey">;
|
|
1329
1556
|
operationId: import("convex/values").VId<import("convex/values").GenericId<"recoveryWorkflowOperations">, "required">;
|
|
1330
|
-
}, "required", "binding" | "binding.accountId" | "binding.allocation" | "binding.allocation.adjustmentAmount" | "binding.allocation.currency" | "binding.allocation.gross" | "binding.allocation.paymentId" | "binding.allocation.paymentIntentId" | "binding.allocation.platformNet" | "binding.allocation.processingFee" | "binding.allocation.sourceChargeId" | "binding.allocation.sourceInvoiceId" | "binding.allocation.transfers" | "binding.completion" | "binding.currency" | "binding.definitionVersion" | "binding.groupKey" | "binding.maxAttempts" | "binding.provider" | "binding.providerApiVersion" | "binding.releaseUncollectible" | "binding.retryDelayMs" | "binding.scopeKey" | "operationId" | "requestKey">, {
|
|
1557
|
+
}, "required", "binding" | "binding.accountId" | "binding.allocation" | "binding.allocation.adjustmentAmount" | "binding.allocation.creditSource" | "binding.allocation.creditSource.creditGrantId" | "binding.allocation.creditSource.customerAccount" | "binding.allocation.creditSource.livemode" | "binding.allocation.creditSource.purchaseId" | "binding.allocation.creditSource.stripeAccountId" | "binding.allocation.creditSource.stripePriceId" | "binding.allocation.creditSource.stripeProductId" | "binding.allocation.currency" | "binding.allocation.gross" | "binding.allocation.paymentId" | "binding.allocation.paymentIntentId" | "binding.allocation.platformNet" | "binding.allocation.processingFee" | "binding.allocation.sourceChargeId" | "binding.allocation.sourceInvoiceId" | "binding.allocation.transfers" | "binding.allocation.usageSource" | "binding.allocation.usageSource.customerAccount" | "binding.allocation.usageSource.invoicePaymentId" | "binding.allocation.usageSource.livemode" | "binding.allocation.usageSource.meterId" | "binding.allocation.usageSource.model" | "binding.allocation.usageSource.period" | "binding.allocation.usageSource.period.end" | "binding.allocation.usageSource.period.start" | "binding.allocation.usageSource.stripeAccountId" | "binding.allocation.usageSource.stripePriceId" | "binding.allocation.usageSource.stripeProductId" | "binding.allocation.usageSource.subscriptionId" | "binding.allocation.usageSource.subscriptionItemId" | "binding.completion" | "binding.currency" | "binding.definitionVersion" | "binding.groupKey" | "binding.maxAttempts" | "binding.provider" | "binding.providerApiVersion" | "binding.releaseUncollectible" | "binding.retryDelayMs" | "binding.scopeKey" | "operationId" | "requestKey">, {
|
|
1331
1558
|
by_key: ["requestKey", "_creationTime"];
|
|
1332
1559
|
}, {}, {}>;
|
|
1333
1560
|
balanceFundingPreparations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
@@ -1635,14 +1862,6 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
1635
1862
|
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
1636
1863
|
requestKey: string;
|
|
1637
1864
|
result?: {
|
|
1638
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
1639
|
-
retryable: false;
|
|
1640
|
-
status: "conflict";
|
|
1641
|
-
} | {
|
|
1642
|
-
reason: "policy_invalid";
|
|
1643
|
-
retryable: false;
|
|
1644
|
-
status: "rejected";
|
|
1645
|
-
} | {
|
|
1646
1865
|
operation: {
|
|
1647
1866
|
accountId: string;
|
|
1648
1867
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -1653,6 +1872,14 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
1653
1872
|
} | {
|
|
1654
1873
|
enabled: boolean;
|
|
1655
1874
|
status: "unchanged";
|
|
1875
|
+
} | {
|
|
1876
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
1877
|
+
retryable: false;
|
|
1878
|
+
status: "conflict";
|
|
1879
|
+
} | {
|
|
1880
|
+
reason: "policy_invalid";
|
|
1881
|
+
retryable: false;
|
|
1882
|
+
status: "rejected";
|
|
1656
1883
|
} | {
|
|
1657
1884
|
reason: "provider_pending";
|
|
1658
1885
|
retryable: true;
|
|
@@ -1663,14 +1890,6 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
1663
1890
|
payload: import("convex/values").VString<string, "required">;
|
|
1664
1891
|
preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
|
|
1665
1892
|
result: import("convex/values").VUnion<{
|
|
1666
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
1667
|
-
retryable: false;
|
|
1668
|
-
status: "conflict";
|
|
1669
|
-
} | {
|
|
1670
|
-
reason: "policy_invalid";
|
|
1671
|
-
retryable: false;
|
|
1672
|
-
status: "rejected";
|
|
1673
|
-
} | {
|
|
1674
1893
|
operation: {
|
|
1675
1894
|
accountId: string;
|
|
1676
1895
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -1681,6 +1900,14 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
1681
1900
|
} | {
|
|
1682
1901
|
enabled: boolean;
|
|
1683
1902
|
status: "unchanged";
|
|
1903
|
+
} | {
|
|
1904
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
1905
|
+
retryable: false;
|
|
1906
|
+
status: "conflict";
|
|
1907
|
+
} | {
|
|
1908
|
+
reason: "policy_invalid";
|
|
1909
|
+
retryable: false;
|
|
1910
|
+
status: "rejected";
|
|
1684
1911
|
} | {
|
|
1685
1912
|
reason: "provider_pending";
|
|
1686
1913
|
retryable: true;
|
|
@@ -3125,6 +3352,15 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
3125
3352
|
}, {}, {}>;
|
|
3126
3353
|
settlementAllocations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
3127
3354
|
adjustmentAmount?: number | undefined;
|
|
3355
|
+
creditSource?: {
|
|
3356
|
+
creditGrantId: string;
|
|
3357
|
+
customerAccount: string;
|
|
3358
|
+
livemode: boolean;
|
|
3359
|
+
purchaseId: string;
|
|
3360
|
+
stripeAccountId: string;
|
|
3361
|
+
stripePriceId: string;
|
|
3362
|
+
stripeProductId: string;
|
|
3363
|
+
} | undefined;
|
|
3128
3364
|
currency: string;
|
|
3129
3365
|
gross: number;
|
|
3130
3366
|
paymentId?: string | undefined;
|
|
@@ -3138,10 +3374,77 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
3138
3374
|
destinationAccountId: string;
|
|
3139
3375
|
role: "affiliate" | "other" | "store";
|
|
3140
3376
|
}[];
|
|
3377
|
+
usageSource?: {
|
|
3378
|
+
customerAccount: string;
|
|
3379
|
+
invoicePaymentId: string;
|
|
3380
|
+
livemode: boolean;
|
|
3381
|
+
meterId: string;
|
|
3382
|
+
model: "included_overage" | "pay_as_you_go";
|
|
3383
|
+
period: {
|
|
3384
|
+
end: number;
|
|
3385
|
+
start: number;
|
|
3386
|
+
};
|
|
3387
|
+
stripeAccountId: string;
|
|
3388
|
+
stripePriceId: string;
|
|
3389
|
+
stripeProductId: string;
|
|
3390
|
+
subscriptionId: string;
|
|
3391
|
+
subscriptionItemId: string;
|
|
3392
|
+
} | undefined;
|
|
3141
3393
|
}, {
|
|
3142
3394
|
sourceChargeId: import("convex/values").VString<string, "required">;
|
|
3143
3395
|
paymentIntentId: import("convex/values").VString<string | undefined, "optional">;
|
|
3144
3396
|
sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
|
|
3397
|
+
usageSource: import("convex/values").VObject<{
|
|
3398
|
+
customerAccount: string;
|
|
3399
|
+
invoicePaymentId: string;
|
|
3400
|
+
livemode: boolean;
|
|
3401
|
+
meterId: string;
|
|
3402
|
+
model: "included_overage" | "pay_as_you_go";
|
|
3403
|
+
period: {
|
|
3404
|
+
end: number;
|
|
3405
|
+
start: number;
|
|
3406
|
+
};
|
|
3407
|
+
stripeAccountId: string;
|
|
3408
|
+
stripePriceId: string;
|
|
3409
|
+
stripeProductId: string;
|
|
3410
|
+
subscriptionId: string;
|
|
3411
|
+
subscriptionItemId: string;
|
|
3412
|
+
} | undefined, {
|
|
3413
|
+
stripeAccountId: import("convex/values").VString<string, "required">;
|
|
3414
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
3415
|
+
livemode: import("convex/values").VBoolean<boolean, "required">;
|
|
3416
|
+
meterId: import("convex/values").VString<string, "required">;
|
|
3417
|
+
stripePriceId: import("convex/values").VString<string, "required">;
|
|
3418
|
+
stripeProductId: import("convex/values").VString<string, "required">;
|
|
3419
|
+
subscriptionId: import("convex/values").VString<string, "required">;
|
|
3420
|
+
subscriptionItemId: import("convex/values").VString<string, "required">;
|
|
3421
|
+
invoicePaymentId: import("convex/values").VString<string, "required">;
|
|
3422
|
+
period: import("convex/values").VObject<{
|
|
3423
|
+
end: number;
|
|
3424
|
+
start: number;
|
|
3425
|
+
}, {
|
|
3426
|
+
start: import("convex/values").VFloat64<number, "required">;
|
|
3427
|
+
end: import("convex/values").VFloat64<number, "required">;
|
|
3428
|
+
}, "required", "end" | "start">;
|
|
3429
|
+
model: import("convex/values").VUnion<"included_overage" | "pay_as_you_go", [import("convex/values").VLiteral<"pay_as_you_go", "required">, import("convex/values").VLiteral<"included_overage", "required">], "required", never>;
|
|
3430
|
+
}, "optional", "customerAccount" | "invoicePaymentId" | "livemode" | "meterId" | "model" | "period" | "period.end" | "period.start" | "stripeAccountId" | "stripePriceId" | "stripeProductId" | "subscriptionId" | "subscriptionItemId">;
|
|
3431
|
+
creditSource: import("convex/values").VObject<{
|
|
3432
|
+
creditGrantId: string;
|
|
3433
|
+
customerAccount: string;
|
|
3434
|
+
livemode: boolean;
|
|
3435
|
+
purchaseId: string;
|
|
3436
|
+
stripeAccountId: string;
|
|
3437
|
+
stripePriceId: string;
|
|
3438
|
+
stripeProductId: string;
|
|
3439
|
+
} | undefined, {
|
|
3440
|
+
stripeAccountId: import("convex/values").VString<string, "required">;
|
|
3441
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
3442
|
+
livemode: import("convex/values").VBoolean<boolean, "required">;
|
|
3443
|
+
purchaseId: import("convex/values").VString<string, "required">;
|
|
3444
|
+
creditGrantId: import("convex/values").VString<string, "required">;
|
|
3445
|
+
stripePriceId: import("convex/values").VString<string, "required">;
|
|
3446
|
+
stripeProductId: import("convex/values").VString<string, "required">;
|
|
3447
|
+
}, "optional", "creditGrantId" | "customerAccount" | "livemode" | "purchaseId" | "stripeAccountId" | "stripePriceId" | "stripeProductId">;
|
|
3145
3448
|
gross: import("convex/values").VFloat64<number, "required">;
|
|
3146
3449
|
currency: import("convex/values").VString<string, "required">;
|
|
3147
3450
|
processingFee: import("convex/values").VFloat64<number, "required">;
|
|
@@ -3161,7 +3464,7 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
3161
3464
|
role: import("convex/values").VUnion<"affiliate" | "other" | "store", [import("convex/values").VLiteral<"store", "required">, import("convex/values").VLiteral<"affiliate", "required">, import("convex/values").VLiteral<"other", "required">], "required", never>;
|
|
3162
3465
|
amount: import("convex/values").VFloat64<number, "required">;
|
|
3163
3466
|
}, "required", "amount" | "destinationAccountId" | "role">, "required">;
|
|
3164
|
-
}, "required", "adjustmentAmount" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers">, {
|
|
3467
|
+
}, "required", "adjustmentAmount" | "creditSource" | "creditSource.creditGrantId" | "creditSource.customerAccount" | "creditSource.livemode" | "creditSource.purchaseId" | "creditSource.stripeAccountId" | "creditSource.stripePriceId" | "creditSource.stripeProductId" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers" | "usageSource" | "usageSource.customerAccount" | "usageSource.invoicePaymentId" | "usageSource.livemode" | "usageSource.meterId" | "usageSource.model" | "usageSource.period" | "usageSource.period.end" | "usageSource.period.start" | "usageSource.stripeAccountId" | "usageSource.stripePriceId" | "usageSource.stripeProductId" | "usageSource.subscriptionId" | "usageSource.subscriptionItemId">, {
|
|
3165
3468
|
by_source_charge: ["sourceChargeId", "_creationTime"];
|
|
3166
3469
|
}, {}, {}>;
|
|
3167
3470
|
commissionTerms: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
@@ -5087,6 +5390,15 @@ export declare function historical(currency?: string): Promise<{
|
|
|
5087
5390
|
activePhase?: "execute" | "reconcile" | undefined;
|
|
5088
5391
|
allocation?: {
|
|
5089
5392
|
adjustmentAmount?: number | undefined;
|
|
5393
|
+
creditSource?: {
|
|
5394
|
+
creditGrantId: string;
|
|
5395
|
+
customerAccount: string;
|
|
5396
|
+
livemode: boolean;
|
|
5397
|
+
purchaseId: string;
|
|
5398
|
+
stripeAccountId: string;
|
|
5399
|
+
stripePriceId: string;
|
|
5400
|
+
stripeProductId: string;
|
|
5401
|
+
} | undefined;
|
|
5090
5402
|
currency: string;
|
|
5091
5403
|
gross: number;
|
|
5092
5404
|
paymentId?: string | undefined;
|
|
@@ -5100,6 +5412,22 @@ export declare function historical(currency?: string): Promise<{
|
|
|
5100
5412
|
destinationAccountId: string;
|
|
5101
5413
|
role: "affiliate" | "other" | "store";
|
|
5102
5414
|
}[];
|
|
5415
|
+
usageSource?: {
|
|
5416
|
+
customerAccount: string;
|
|
5417
|
+
invoicePaymentId: string;
|
|
5418
|
+
livemode: boolean;
|
|
5419
|
+
meterId: string;
|
|
5420
|
+
model: "included_overage" | "pay_as_you_go";
|
|
5421
|
+
period: {
|
|
5422
|
+
end: number;
|
|
5423
|
+
start: number;
|
|
5424
|
+
};
|
|
5425
|
+
stripeAccountId: string;
|
|
5426
|
+
stripePriceId: string;
|
|
5427
|
+
stripeProductId: string;
|
|
5428
|
+
subscriptionId: string;
|
|
5429
|
+
subscriptionItemId: string;
|
|
5430
|
+
} | undefined;
|
|
5103
5431
|
} | undefined;
|
|
5104
5432
|
cancelRequested: boolean;
|
|
5105
5433
|
completion?: string | undefined;
|
|
@@ -5134,6 +5462,15 @@ export declare function historical(currency?: string): Promise<{
|
|
|
5134
5462
|
retryDelayMs: import("convex/values").VFloat64<number, "required">;
|
|
5135
5463
|
allocation: import("convex/values").VObject<{
|
|
5136
5464
|
adjustmentAmount?: number | undefined;
|
|
5465
|
+
creditSource?: {
|
|
5466
|
+
creditGrantId: string;
|
|
5467
|
+
customerAccount: string;
|
|
5468
|
+
livemode: boolean;
|
|
5469
|
+
purchaseId: string;
|
|
5470
|
+
stripeAccountId: string;
|
|
5471
|
+
stripePriceId: string;
|
|
5472
|
+
stripeProductId: string;
|
|
5473
|
+
} | undefined;
|
|
5137
5474
|
currency: string;
|
|
5138
5475
|
gross: number;
|
|
5139
5476
|
paymentId?: string | undefined;
|
|
@@ -5147,10 +5484,77 @@ export declare function historical(currency?: string): Promise<{
|
|
|
5147
5484
|
destinationAccountId: string;
|
|
5148
5485
|
role: "affiliate" | "other" | "store";
|
|
5149
5486
|
}[];
|
|
5487
|
+
usageSource?: {
|
|
5488
|
+
customerAccount: string;
|
|
5489
|
+
invoicePaymentId: string;
|
|
5490
|
+
livemode: boolean;
|
|
5491
|
+
meterId: string;
|
|
5492
|
+
model: "included_overage" | "pay_as_you_go";
|
|
5493
|
+
period: {
|
|
5494
|
+
end: number;
|
|
5495
|
+
start: number;
|
|
5496
|
+
};
|
|
5497
|
+
stripeAccountId: string;
|
|
5498
|
+
stripePriceId: string;
|
|
5499
|
+
stripeProductId: string;
|
|
5500
|
+
subscriptionId: string;
|
|
5501
|
+
subscriptionItemId: string;
|
|
5502
|
+
} | undefined;
|
|
5150
5503
|
} | undefined, {
|
|
5151
5504
|
sourceChargeId: import("convex/values").VString<string, "required">;
|
|
5152
5505
|
paymentIntentId: import("convex/values").VString<string | undefined, "optional">;
|
|
5153
5506
|
sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
|
|
5507
|
+
usageSource: import("convex/values").VObject<{
|
|
5508
|
+
customerAccount: string;
|
|
5509
|
+
invoicePaymentId: string;
|
|
5510
|
+
livemode: boolean;
|
|
5511
|
+
meterId: string;
|
|
5512
|
+
model: "included_overage" | "pay_as_you_go";
|
|
5513
|
+
period: {
|
|
5514
|
+
end: number;
|
|
5515
|
+
start: number;
|
|
5516
|
+
};
|
|
5517
|
+
stripeAccountId: string;
|
|
5518
|
+
stripePriceId: string;
|
|
5519
|
+
stripeProductId: string;
|
|
5520
|
+
subscriptionId: string;
|
|
5521
|
+
subscriptionItemId: string;
|
|
5522
|
+
} | undefined, {
|
|
5523
|
+
stripeAccountId: import("convex/values").VString<string, "required">;
|
|
5524
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
5525
|
+
livemode: import("convex/values").VBoolean<boolean, "required">;
|
|
5526
|
+
meterId: import("convex/values").VString<string, "required">;
|
|
5527
|
+
stripePriceId: import("convex/values").VString<string, "required">;
|
|
5528
|
+
stripeProductId: import("convex/values").VString<string, "required">;
|
|
5529
|
+
subscriptionId: import("convex/values").VString<string, "required">;
|
|
5530
|
+
subscriptionItemId: import("convex/values").VString<string, "required">;
|
|
5531
|
+
invoicePaymentId: import("convex/values").VString<string, "required">;
|
|
5532
|
+
period: import("convex/values").VObject<{
|
|
5533
|
+
end: number;
|
|
5534
|
+
start: number;
|
|
5535
|
+
}, {
|
|
5536
|
+
start: import("convex/values").VFloat64<number, "required">;
|
|
5537
|
+
end: import("convex/values").VFloat64<number, "required">;
|
|
5538
|
+
}, "required", "end" | "start">;
|
|
5539
|
+
model: import("convex/values").VUnion<"included_overage" | "pay_as_you_go", [import("convex/values").VLiteral<"pay_as_you_go", "required">, import("convex/values").VLiteral<"included_overage", "required">], "required", never>;
|
|
5540
|
+
}, "optional", "customerAccount" | "invoicePaymentId" | "livemode" | "meterId" | "model" | "period" | "period.end" | "period.start" | "stripeAccountId" | "stripePriceId" | "stripeProductId" | "subscriptionId" | "subscriptionItemId">;
|
|
5541
|
+
creditSource: import("convex/values").VObject<{
|
|
5542
|
+
creditGrantId: string;
|
|
5543
|
+
customerAccount: string;
|
|
5544
|
+
livemode: boolean;
|
|
5545
|
+
purchaseId: string;
|
|
5546
|
+
stripeAccountId: string;
|
|
5547
|
+
stripePriceId: string;
|
|
5548
|
+
stripeProductId: string;
|
|
5549
|
+
} | undefined, {
|
|
5550
|
+
stripeAccountId: import("convex/values").VString<string, "required">;
|
|
5551
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
5552
|
+
livemode: import("convex/values").VBoolean<boolean, "required">;
|
|
5553
|
+
purchaseId: import("convex/values").VString<string, "required">;
|
|
5554
|
+
creditGrantId: import("convex/values").VString<string, "required">;
|
|
5555
|
+
stripePriceId: import("convex/values").VString<string, "required">;
|
|
5556
|
+
stripeProductId: import("convex/values").VString<string, "required">;
|
|
5557
|
+
}, "optional", "creditGrantId" | "customerAccount" | "livemode" | "purchaseId" | "stripeAccountId" | "stripePriceId" | "stripeProductId">;
|
|
5154
5558
|
gross: import("convex/values").VFloat64<number, "required">;
|
|
5155
5559
|
currency: import("convex/values").VString<string, "required">;
|
|
5156
5560
|
processingFee: import("convex/values").VFloat64<number, "required">;
|
|
@@ -5170,7 +5574,7 @@ export declare function historical(currency?: string): Promise<{
|
|
|
5170
5574
|
role: import("convex/values").VUnion<"affiliate" | "other" | "store", [import("convex/values").VLiteral<"store", "required">, import("convex/values").VLiteral<"affiliate", "required">, import("convex/values").VLiteral<"other", "required">], "required", never>;
|
|
5171
5575
|
amount: import("convex/values").VFloat64<number, "required">;
|
|
5172
5576
|
}, "required", "amount" | "destinationAccountId" | "role">, "required">;
|
|
5173
|
-
}, "optional", "adjustmentAmount" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers">;
|
|
5577
|
+
}, "optional", "adjustmentAmount" | "creditSource" | "creditSource.creditGrantId" | "creditSource.customerAccount" | "creditSource.livemode" | "creditSource.purchaseId" | "creditSource.stripeAccountId" | "creditSource.stripePriceId" | "creditSource.stripeProductId" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers" | "usageSource" | "usageSource.customerAccount" | "usageSource.invoicePaymentId" | "usageSource.livemode" | "usageSource.meterId" | "usageSource.model" | "usageSource.period" | "usageSource.period.end" | "usageSource.period.start" | "usageSource.stripeAccountId" | "usageSource.stripePriceId" | "usageSource.stripeProductId" | "usageSource.subscriptionId" | "usageSource.subscriptionItemId">;
|
|
5174
5578
|
version: import("convex/values").VFloat64<number, "required">;
|
|
5175
5579
|
sourceKind: import("convex/values").VUnion<"invoice" | "settlement", [import("convex/values").VLiteral<"settlement", "required">, import("convex/values").VLiteral<"invoice", "required">], "required", never>;
|
|
5176
5580
|
sourceId: import("convex/values").VString<string, "required">;
|
|
@@ -5181,7 +5585,7 @@ export declare function historical(currency?: string): Promise<{
|
|
|
5181
5585
|
activePhase: import("convex/values").VUnion<"execute" | "reconcile" | undefined, [import("convex/values").VLiteral<"execute", "required">, import("convex/values").VLiteral<"reconcile", "required">], "optional", never>;
|
|
5182
5586
|
resumeQueued: import("convex/values").VBoolean<boolean, "required">;
|
|
5183
5587
|
outcome: import("convex/values").VUnion<"collect" | "release" | undefined, [import("convex/values").VLiteral<"collect", "required">, import("convex/values").VLiteral<"release", "required">], "optional", never>;
|
|
5184
|
-
}, "required", "accountId" | "activePhase" | "allocation" | "allocation.adjustmentAmount" | "allocation.currency" | "allocation.gross" | "allocation.paymentId" | "allocation.paymentIntentId" | "allocation.platformNet" | "allocation.processingFee" | "allocation.sourceChargeId" | "allocation.sourceInvoiceId" | "allocation.transfers" | "cancelRequested" | "completion" | "currency" | "definitionVersion" | "groupKey" | "maxAttempts" | "outcome" | "provider" | "providerApiVersion" | "providerStarted" | "releaseUncollectible" | "resumeQueued" | "retryDelayMs" | "scopeKey" | "sourceId" | "sourceKind" | "status" | "version" | "workflowId">, {
|
|
5588
|
+
}, "required", "accountId" | "activePhase" | "allocation" | "allocation.adjustmentAmount" | "allocation.creditSource" | "allocation.creditSource.creditGrantId" | "allocation.creditSource.customerAccount" | "allocation.creditSource.livemode" | "allocation.creditSource.purchaseId" | "allocation.creditSource.stripeAccountId" | "allocation.creditSource.stripePriceId" | "allocation.creditSource.stripeProductId" | "allocation.currency" | "allocation.gross" | "allocation.paymentId" | "allocation.paymentIntentId" | "allocation.platformNet" | "allocation.processingFee" | "allocation.sourceChargeId" | "allocation.sourceInvoiceId" | "allocation.transfers" | "allocation.usageSource" | "allocation.usageSource.customerAccount" | "allocation.usageSource.invoicePaymentId" | "allocation.usageSource.livemode" | "allocation.usageSource.meterId" | "allocation.usageSource.model" | "allocation.usageSource.period" | "allocation.usageSource.period.end" | "allocation.usageSource.period.start" | "allocation.usageSource.stripeAccountId" | "allocation.usageSource.stripePriceId" | "allocation.usageSource.stripeProductId" | "allocation.usageSource.subscriptionId" | "allocation.usageSource.subscriptionItemId" | "cancelRequested" | "completion" | "currency" | "definitionVersion" | "groupKey" | "maxAttempts" | "outcome" | "provider" | "providerApiVersion" | "providerStarted" | "releaseUncollectible" | "resumeQueued" | "retryDelayMs" | "scopeKey" | "sourceId" | "sourceKind" | "status" | "version" | "workflowId">, {
|
|
5185
5589
|
by_group: ["groupKey", "_creationTime"];
|
|
5186
5590
|
by_source: ["sourceKind", "sourceId", "_creationTime"];
|
|
5187
5591
|
}, {}, {}>;
|
|
@@ -5190,6 +5594,15 @@ export declare function historical(currency?: string): Promise<{
|
|
|
5190
5594
|
accountId: string;
|
|
5191
5595
|
allocation?: {
|
|
5192
5596
|
adjustmentAmount?: number | undefined;
|
|
5597
|
+
creditSource?: {
|
|
5598
|
+
creditGrantId: string;
|
|
5599
|
+
customerAccount: string;
|
|
5600
|
+
livemode: boolean;
|
|
5601
|
+
purchaseId: string;
|
|
5602
|
+
stripeAccountId: string;
|
|
5603
|
+
stripePriceId: string;
|
|
5604
|
+
stripeProductId: string;
|
|
5605
|
+
} | undefined;
|
|
5193
5606
|
currency: string;
|
|
5194
5607
|
gross: number;
|
|
5195
5608
|
paymentId?: string | undefined;
|
|
@@ -5203,6 +5616,22 @@ export declare function historical(currency?: string): Promise<{
|
|
|
5203
5616
|
destinationAccountId: string;
|
|
5204
5617
|
role: "affiliate" | "other" | "store";
|
|
5205
5618
|
}[];
|
|
5619
|
+
usageSource?: {
|
|
5620
|
+
customerAccount: string;
|
|
5621
|
+
invoicePaymentId: string;
|
|
5622
|
+
livemode: boolean;
|
|
5623
|
+
meterId: string;
|
|
5624
|
+
model: "included_overage" | "pay_as_you_go";
|
|
5625
|
+
period: {
|
|
5626
|
+
end: number;
|
|
5627
|
+
start: number;
|
|
5628
|
+
};
|
|
5629
|
+
stripeAccountId: string;
|
|
5630
|
+
stripePriceId: string;
|
|
5631
|
+
stripeProductId: string;
|
|
5632
|
+
subscriptionId: string;
|
|
5633
|
+
subscriptionItemId: string;
|
|
5634
|
+
} | undefined;
|
|
5206
5635
|
} | undefined;
|
|
5207
5636
|
completion?: string | undefined;
|
|
5208
5637
|
currency: string;
|
|
@@ -5223,6 +5652,15 @@ export declare function historical(currency?: string): Promise<{
|
|
|
5223
5652
|
accountId: string;
|
|
5224
5653
|
allocation?: {
|
|
5225
5654
|
adjustmentAmount?: number | undefined;
|
|
5655
|
+
creditSource?: {
|
|
5656
|
+
creditGrantId: string;
|
|
5657
|
+
customerAccount: string;
|
|
5658
|
+
livemode: boolean;
|
|
5659
|
+
purchaseId: string;
|
|
5660
|
+
stripeAccountId: string;
|
|
5661
|
+
stripePriceId: string;
|
|
5662
|
+
stripeProductId: string;
|
|
5663
|
+
} | undefined;
|
|
5226
5664
|
currency: string;
|
|
5227
5665
|
gross: number;
|
|
5228
5666
|
paymentId?: string | undefined;
|
|
@@ -5236,6 +5674,22 @@ export declare function historical(currency?: string): Promise<{
|
|
|
5236
5674
|
destinationAccountId: string;
|
|
5237
5675
|
role: "affiliate" | "other" | "store";
|
|
5238
5676
|
}[];
|
|
5677
|
+
usageSource?: {
|
|
5678
|
+
customerAccount: string;
|
|
5679
|
+
invoicePaymentId: string;
|
|
5680
|
+
livemode: boolean;
|
|
5681
|
+
meterId: string;
|
|
5682
|
+
model: "included_overage" | "pay_as_you_go";
|
|
5683
|
+
period: {
|
|
5684
|
+
end: number;
|
|
5685
|
+
start: number;
|
|
5686
|
+
};
|
|
5687
|
+
stripeAccountId: string;
|
|
5688
|
+
stripePriceId: string;
|
|
5689
|
+
stripeProductId: string;
|
|
5690
|
+
subscriptionId: string;
|
|
5691
|
+
subscriptionItemId: string;
|
|
5692
|
+
} | undefined;
|
|
5239
5693
|
} | undefined;
|
|
5240
5694
|
completion?: string | undefined;
|
|
5241
5695
|
currency: string;
|
|
@@ -5261,6 +5715,15 @@ export declare function historical(currency?: string): Promise<{
|
|
|
5261
5715
|
retryDelayMs: import("convex/values").VFloat64<number, "required">;
|
|
5262
5716
|
allocation: import("convex/values").VObject<{
|
|
5263
5717
|
adjustmentAmount?: number | undefined;
|
|
5718
|
+
creditSource?: {
|
|
5719
|
+
creditGrantId: string;
|
|
5720
|
+
customerAccount: string;
|
|
5721
|
+
livemode: boolean;
|
|
5722
|
+
purchaseId: string;
|
|
5723
|
+
stripeAccountId: string;
|
|
5724
|
+
stripePriceId: string;
|
|
5725
|
+
stripeProductId: string;
|
|
5726
|
+
} | undefined;
|
|
5264
5727
|
currency: string;
|
|
5265
5728
|
gross: number;
|
|
5266
5729
|
paymentId?: string | undefined;
|
|
@@ -5274,10 +5737,77 @@ export declare function historical(currency?: string): Promise<{
|
|
|
5274
5737
|
destinationAccountId: string;
|
|
5275
5738
|
role: "affiliate" | "other" | "store";
|
|
5276
5739
|
}[];
|
|
5740
|
+
usageSource?: {
|
|
5741
|
+
customerAccount: string;
|
|
5742
|
+
invoicePaymentId: string;
|
|
5743
|
+
livemode: boolean;
|
|
5744
|
+
meterId: string;
|
|
5745
|
+
model: "included_overage" | "pay_as_you_go";
|
|
5746
|
+
period: {
|
|
5747
|
+
end: number;
|
|
5748
|
+
start: number;
|
|
5749
|
+
};
|
|
5750
|
+
stripeAccountId: string;
|
|
5751
|
+
stripePriceId: string;
|
|
5752
|
+
stripeProductId: string;
|
|
5753
|
+
subscriptionId: string;
|
|
5754
|
+
subscriptionItemId: string;
|
|
5755
|
+
} | undefined;
|
|
5277
5756
|
} | undefined, {
|
|
5278
5757
|
sourceChargeId: import("convex/values").VString<string, "required">;
|
|
5279
5758
|
paymentIntentId: import("convex/values").VString<string | undefined, "optional">;
|
|
5280
5759
|
sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
|
|
5760
|
+
usageSource: import("convex/values").VObject<{
|
|
5761
|
+
customerAccount: string;
|
|
5762
|
+
invoicePaymentId: string;
|
|
5763
|
+
livemode: boolean;
|
|
5764
|
+
meterId: string;
|
|
5765
|
+
model: "included_overage" | "pay_as_you_go";
|
|
5766
|
+
period: {
|
|
5767
|
+
end: number;
|
|
5768
|
+
start: number;
|
|
5769
|
+
};
|
|
5770
|
+
stripeAccountId: string;
|
|
5771
|
+
stripePriceId: string;
|
|
5772
|
+
stripeProductId: string;
|
|
5773
|
+
subscriptionId: string;
|
|
5774
|
+
subscriptionItemId: string;
|
|
5775
|
+
} | undefined, {
|
|
5776
|
+
stripeAccountId: import("convex/values").VString<string, "required">;
|
|
5777
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
5778
|
+
livemode: import("convex/values").VBoolean<boolean, "required">;
|
|
5779
|
+
meterId: import("convex/values").VString<string, "required">;
|
|
5780
|
+
stripePriceId: import("convex/values").VString<string, "required">;
|
|
5781
|
+
stripeProductId: import("convex/values").VString<string, "required">;
|
|
5782
|
+
subscriptionId: import("convex/values").VString<string, "required">;
|
|
5783
|
+
subscriptionItemId: import("convex/values").VString<string, "required">;
|
|
5784
|
+
invoicePaymentId: import("convex/values").VString<string, "required">;
|
|
5785
|
+
period: import("convex/values").VObject<{
|
|
5786
|
+
end: number;
|
|
5787
|
+
start: number;
|
|
5788
|
+
}, {
|
|
5789
|
+
start: import("convex/values").VFloat64<number, "required">;
|
|
5790
|
+
end: import("convex/values").VFloat64<number, "required">;
|
|
5791
|
+
}, "required", "end" | "start">;
|
|
5792
|
+
model: import("convex/values").VUnion<"included_overage" | "pay_as_you_go", [import("convex/values").VLiteral<"pay_as_you_go", "required">, import("convex/values").VLiteral<"included_overage", "required">], "required", never>;
|
|
5793
|
+
}, "optional", "customerAccount" | "invoicePaymentId" | "livemode" | "meterId" | "model" | "period" | "period.end" | "period.start" | "stripeAccountId" | "stripePriceId" | "stripeProductId" | "subscriptionId" | "subscriptionItemId">;
|
|
5794
|
+
creditSource: import("convex/values").VObject<{
|
|
5795
|
+
creditGrantId: string;
|
|
5796
|
+
customerAccount: string;
|
|
5797
|
+
livemode: boolean;
|
|
5798
|
+
purchaseId: string;
|
|
5799
|
+
stripeAccountId: string;
|
|
5800
|
+
stripePriceId: string;
|
|
5801
|
+
stripeProductId: string;
|
|
5802
|
+
} | undefined, {
|
|
5803
|
+
stripeAccountId: import("convex/values").VString<string, "required">;
|
|
5804
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
5805
|
+
livemode: import("convex/values").VBoolean<boolean, "required">;
|
|
5806
|
+
purchaseId: import("convex/values").VString<string, "required">;
|
|
5807
|
+
creditGrantId: import("convex/values").VString<string, "required">;
|
|
5808
|
+
stripePriceId: import("convex/values").VString<string, "required">;
|
|
5809
|
+
stripeProductId: import("convex/values").VString<string, "required">;
|
|
5810
|
+
}, "optional", "creditGrantId" | "customerAccount" | "livemode" | "purchaseId" | "stripeAccountId" | "stripePriceId" | "stripeProductId">;
|
|
5281
5811
|
gross: import("convex/values").VFloat64<number, "required">;
|
|
5282
5812
|
currency: import("convex/values").VString<string, "required">;
|
|
5283
5813
|
processingFee: import("convex/values").VFloat64<number, "required">;
|
|
@@ -5297,10 +5827,10 @@ export declare function historical(currency?: string): Promise<{
|
|
|
5297
5827
|
role: import("convex/values").VUnion<"affiliate" | "other" | "store", [import("convex/values").VLiteral<"store", "required">, import("convex/values").VLiteral<"affiliate", "required">, import("convex/values").VLiteral<"other", "required">], "required", never>;
|
|
5298
5828
|
amount: import("convex/values").VFloat64<number, "required">;
|
|
5299
5829
|
}, "required", "amount" | "destinationAccountId" | "role">, "required">;
|
|
5300
|
-
}, "optional", "adjustmentAmount" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers">;
|
|
5301
|
-
}, "required", "accountId" | "allocation" | "allocation.adjustmentAmount" | "allocation.currency" | "allocation.gross" | "allocation.paymentId" | "allocation.paymentIntentId" | "allocation.platformNet" | "allocation.processingFee" | "allocation.sourceChargeId" | "allocation.sourceInvoiceId" | "allocation.transfers" | "completion" | "currency" | "definitionVersion" | "groupKey" | "maxAttempts" | "provider" | "providerApiVersion" | "releaseUncollectible" | "retryDelayMs" | "scopeKey">;
|
|
5830
|
+
}, "optional", "adjustmentAmount" | "creditSource" | "creditSource.creditGrantId" | "creditSource.customerAccount" | "creditSource.livemode" | "creditSource.purchaseId" | "creditSource.stripeAccountId" | "creditSource.stripePriceId" | "creditSource.stripeProductId" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers" | "usageSource" | "usageSource.customerAccount" | "usageSource.invoicePaymentId" | "usageSource.livemode" | "usageSource.meterId" | "usageSource.model" | "usageSource.period" | "usageSource.period.end" | "usageSource.period.start" | "usageSource.stripeAccountId" | "usageSource.stripePriceId" | "usageSource.stripeProductId" | "usageSource.subscriptionId" | "usageSource.subscriptionItemId">;
|
|
5831
|
+
}, "required", "accountId" | "allocation" | "allocation.adjustmentAmount" | "allocation.creditSource" | "allocation.creditSource.creditGrantId" | "allocation.creditSource.customerAccount" | "allocation.creditSource.livemode" | "allocation.creditSource.purchaseId" | "allocation.creditSource.stripeAccountId" | "allocation.creditSource.stripePriceId" | "allocation.creditSource.stripeProductId" | "allocation.currency" | "allocation.gross" | "allocation.paymentId" | "allocation.paymentIntentId" | "allocation.platformNet" | "allocation.processingFee" | "allocation.sourceChargeId" | "allocation.sourceInvoiceId" | "allocation.transfers" | "allocation.usageSource" | "allocation.usageSource.customerAccount" | "allocation.usageSource.invoicePaymentId" | "allocation.usageSource.livemode" | "allocation.usageSource.meterId" | "allocation.usageSource.model" | "allocation.usageSource.period" | "allocation.usageSource.period.end" | "allocation.usageSource.period.start" | "allocation.usageSource.stripeAccountId" | "allocation.usageSource.stripePriceId" | "allocation.usageSource.stripeProductId" | "allocation.usageSource.subscriptionId" | "allocation.usageSource.subscriptionItemId" | "completion" | "currency" | "definitionVersion" | "groupKey" | "maxAttempts" | "provider" | "providerApiVersion" | "releaseUncollectible" | "retryDelayMs" | "scopeKey">;
|
|
5302
5832
|
operationId: import("convex/values").VId<import("convex/values").GenericId<"recoveryWorkflowOperations">, "required">;
|
|
5303
|
-
}, "required", "binding" | "binding.accountId" | "binding.allocation" | "binding.allocation.adjustmentAmount" | "binding.allocation.currency" | "binding.allocation.gross" | "binding.allocation.paymentId" | "binding.allocation.paymentIntentId" | "binding.allocation.platformNet" | "binding.allocation.processingFee" | "binding.allocation.sourceChargeId" | "binding.allocation.sourceInvoiceId" | "binding.allocation.transfers" | "binding.completion" | "binding.currency" | "binding.definitionVersion" | "binding.groupKey" | "binding.maxAttempts" | "binding.provider" | "binding.providerApiVersion" | "binding.releaseUncollectible" | "binding.retryDelayMs" | "binding.scopeKey" | "operationId" | "requestKey">, {
|
|
5833
|
+
}, "required", "binding" | "binding.accountId" | "binding.allocation" | "binding.allocation.adjustmentAmount" | "binding.allocation.creditSource" | "binding.allocation.creditSource.creditGrantId" | "binding.allocation.creditSource.customerAccount" | "binding.allocation.creditSource.livemode" | "binding.allocation.creditSource.purchaseId" | "binding.allocation.creditSource.stripeAccountId" | "binding.allocation.creditSource.stripePriceId" | "binding.allocation.creditSource.stripeProductId" | "binding.allocation.currency" | "binding.allocation.gross" | "binding.allocation.paymentId" | "binding.allocation.paymentIntentId" | "binding.allocation.platformNet" | "binding.allocation.processingFee" | "binding.allocation.sourceChargeId" | "binding.allocation.sourceInvoiceId" | "binding.allocation.transfers" | "binding.allocation.usageSource" | "binding.allocation.usageSource.customerAccount" | "binding.allocation.usageSource.invoicePaymentId" | "binding.allocation.usageSource.livemode" | "binding.allocation.usageSource.meterId" | "binding.allocation.usageSource.model" | "binding.allocation.usageSource.period" | "binding.allocation.usageSource.period.end" | "binding.allocation.usageSource.period.start" | "binding.allocation.usageSource.stripeAccountId" | "binding.allocation.usageSource.stripePriceId" | "binding.allocation.usageSource.stripeProductId" | "binding.allocation.usageSource.subscriptionId" | "binding.allocation.usageSource.subscriptionItemId" | "binding.completion" | "binding.currency" | "binding.definitionVersion" | "binding.groupKey" | "binding.maxAttempts" | "binding.provider" | "binding.providerApiVersion" | "binding.releaseUncollectible" | "binding.retryDelayMs" | "binding.scopeKey" | "operationId" | "requestKey">, {
|
|
5304
5834
|
by_key: ["requestKey", "_creationTime"];
|
|
5305
5835
|
}, {}, {}>;
|
|
5306
5836
|
balanceFundingPreparations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
@@ -5608,14 +6138,6 @@ export declare function historical(currency?: string): Promise<{
|
|
|
5608
6138
|
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
5609
6139
|
requestKey: string;
|
|
5610
6140
|
result?: {
|
|
5611
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
5612
|
-
retryable: false;
|
|
5613
|
-
status: "conflict";
|
|
5614
|
-
} | {
|
|
5615
|
-
reason: "policy_invalid";
|
|
5616
|
-
retryable: false;
|
|
5617
|
-
status: "rejected";
|
|
5618
|
-
} | {
|
|
5619
6141
|
operation: {
|
|
5620
6142
|
accountId: string;
|
|
5621
6143
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -5626,6 +6148,14 @@ export declare function historical(currency?: string): Promise<{
|
|
|
5626
6148
|
} | {
|
|
5627
6149
|
enabled: boolean;
|
|
5628
6150
|
status: "unchanged";
|
|
6151
|
+
} | {
|
|
6152
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
6153
|
+
retryable: false;
|
|
6154
|
+
status: "conflict";
|
|
6155
|
+
} | {
|
|
6156
|
+
reason: "policy_invalid";
|
|
6157
|
+
retryable: false;
|
|
6158
|
+
status: "rejected";
|
|
5629
6159
|
} | {
|
|
5630
6160
|
reason: "provider_pending";
|
|
5631
6161
|
retryable: true;
|
|
@@ -5636,14 +6166,6 @@ export declare function historical(currency?: string): Promise<{
|
|
|
5636
6166
|
payload: import("convex/values").VString<string, "required">;
|
|
5637
6167
|
preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
|
|
5638
6168
|
result: import("convex/values").VUnion<{
|
|
5639
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
5640
|
-
retryable: false;
|
|
5641
|
-
status: "conflict";
|
|
5642
|
-
} | {
|
|
5643
|
-
reason: "policy_invalid";
|
|
5644
|
-
retryable: false;
|
|
5645
|
-
status: "rejected";
|
|
5646
|
-
} | {
|
|
5647
6169
|
operation: {
|
|
5648
6170
|
accountId: string;
|
|
5649
6171
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -5654,6 +6176,14 @@ export declare function historical(currency?: string): Promise<{
|
|
|
5654
6176
|
} | {
|
|
5655
6177
|
enabled: boolean;
|
|
5656
6178
|
status: "unchanged";
|
|
6179
|
+
} | {
|
|
6180
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
6181
|
+
retryable: false;
|
|
6182
|
+
status: "conflict";
|
|
6183
|
+
} | {
|
|
6184
|
+
reason: "policy_invalid";
|
|
6185
|
+
retryable: false;
|
|
6186
|
+
status: "rejected";
|
|
5657
6187
|
} | {
|
|
5658
6188
|
reason: "provider_pending";
|
|
5659
6189
|
retryable: true;
|
|
@@ -7098,6 +7628,15 @@ export declare function historical(currency?: string): Promise<{
|
|
|
7098
7628
|
}, {}, {}>;
|
|
7099
7629
|
settlementAllocations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
7100
7630
|
adjustmentAmount?: number | undefined;
|
|
7631
|
+
creditSource?: {
|
|
7632
|
+
creditGrantId: string;
|
|
7633
|
+
customerAccount: string;
|
|
7634
|
+
livemode: boolean;
|
|
7635
|
+
purchaseId: string;
|
|
7636
|
+
stripeAccountId: string;
|
|
7637
|
+
stripePriceId: string;
|
|
7638
|
+
stripeProductId: string;
|
|
7639
|
+
} | undefined;
|
|
7101
7640
|
currency: string;
|
|
7102
7641
|
gross: number;
|
|
7103
7642
|
paymentId?: string | undefined;
|
|
@@ -7111,10 +7650,77 @@ export declare function historical(currency?: string): Promise<{
|
|
|
7111
7650
|
destinationAccountId: string;
|
|
7112
7651
|
role: "affiliate" | "other" | "store";
|
|
7113
7652
|
}[];
|
|
7653
|
+
usageSource?: {
|
|
7654
|
+
customerAccount: string;
|
|
7655
|
+
invoicePaymentId: string;
|
|
7656
|
+
livemode: boolean;
|
|
7657
|
+
meterId: string;
|
|
7658
|
+
model: "included_overage" | "pay_as_you_go";
|
|
7659
|
+
period: {
|
|
7660
|
+
end: number;
|
|
7661
|
+
start: number;
|
|
7662
|
+
};
|
|
7663
|
+
stripeAccountId: string;
|
|
7664
|
+
stripePriceId: string;
|
|
7665
|
+
stripeProductId: string;
|
|
7666
|
+
subscriptionId: string;
|
|
7667
|
+
subscriptionItemId: string;
|
|
7668
|
+
} | undefined;
|
|
7114
7669
|
}, {
|
|
7115
7670
|
sourceChargeId: import("convex/values").VString<string, "required">;
|
|
7116
7671
|
paymentIntentId: import("convex/values").VString<string | undefined, "optional">;
|
|
7117
7672
|
sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
|
|
7673
|
+
usageSource: import("convex/values").VObject<{
|
|
7674
|
+
customerAccount: string;
|
|
7675
|
+
invoicePaymentId: string;
|
|
7676
|
+
livemode: boolean;
|
|
7677
|
+
meterId: string;
|
|
7678
|
+
model: "included_overage" | "pay_as_you_go";
|
|
7679
|
+
period: {
|
|
7680
|
+
end: number;
|
|
7681
|
+
start: number;
|
|
7682
|
+
};
|
|
7683
|
+
stripeAccountId: string;
|
|
7684
|
+
stripePriceId: string;
|
|
7685
|
+
stripeProductId: string;
|
|
7686
|
+
subscriptionId: string;
|
|
7687
|
+
subscriptionItemId: string;
|
|
7688
|
+
} | undefined, {
|
|
7689
|
+
stripeAccountId: import("convex/values").VString<string, "required">;
|
|
7690
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
7691
|
+
livemode: import("convex/values").VBoolean<boolean, "required">;
|
|
7692
|
+
meterId: import("convex/values").VString<string, "required">;
|
|
7693
|
+
stripePriceId: import("convex/values").VString<string, "required">;
|
|
7694
|
+
stripeProductId: import("convex/values").VString<string, "required">;
|
|
7695
|
+
subscriptionId: import("convex/values").VString<string, "required">;
|
|
7696
|
+
subscriptionItemId: import("convex/values").VString<string, "required">;
|
|
7697
|
+
invoicePaymentId: import("convex/values").VString<string, "required">;
|
|
7698
|
+
period: import("convex/values").VObject<{
|
|
7699
|
+
end: number;
|
|
7700
|
+
start: number;
|
|
7701
|
+
}, {
|
|
7702
|
+
start: import("convex/values").VFloat64<number, "required">;
|
|
7703
|
+
end: import("convex/values").VFloat64<number, "required">;
|
|
7704
|
+
}, "required", "end" | "start">;
|
|
7705
|
+
model: import("convex/values").VUnion<"included_overage" | "pay_as_you_go", [import("convex/values").VLiteral<"pay_as_you_go", "required">, import("convex/values").VLiteral<"included_overage", "required">], "required", never>;
|
|
7706
|
+
}, "optional", "customerAccount" | "invoicePaymentId" | "livemode" | "meterId" | "model" | "period" | "period.end" | "period.start" | "stripeAccountId" | "stripePriceId" | "stripeProductId" | "subscriptionId" | "subscriptionItemId">;
|
|
7707
|
+
creditSource: import("convex/values").VObject<{
|
|
7708
|
+
creditGrantId: string;
|
|
7709
|
+
customerAccount: string;
|
|
7710
|
+
livemode: boolean;
|
|
7711
|
+
purchaseId: string;
|
|
7712
|
+
stripeAccountId: string;
|
|
7713
|
+
stripePriceId: string;
|
|
7714
|
+
stripeProductId: string;
|
|
7715
|
+
} | undefined, {
|
|
7716
|
+
stripeAccountId: import("convex/values").VString<string, "required">;
|
|
7717
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
7718
|
+
livemode: import("convex/values").VBoolean<boolean, "required">;
|
|
7719
|
+
purchaseId: import("convex/values").VString<string, "required">;
|
|
7720
|
+
creditGrantId: import("convex/values").VString<string, "required">;
|
|
7721
|
+
stripePriceId: import("convex/values").VString<string, "required">;
|
|
7722
|
+
stripeProductId: import("convex/values").VString<string, "required">;
|
|
7723
|
+
}, "optional", "creditGrantId" | "customerAccount" | "livemode" | "purchaseId" | "stripeAccountId" | "stripePriceId" | "stripeProductId">;
|
|
7118
7724
|
gross: import("convex/values").VFloat64<number, "required">;
|
|
7119
7725
|
currency: import("convex/values").VString<string, "required">;
|
|
7120
7726
|
processingFee: import("convex/values").VFloat64<number, "required">;
|
|
@@ -7134,7 +7740,7 @@ export declare function historical(currency?: string): Promise<{
|
|
|
7134
7740
|
role: import("convex/values").VUnion<"affiliate" | "other" | "store", [import("convex/values").VLiteral<"store", "required">, import("convex/values").VLiteral<"affiliate", "required">, import("convex/values").VLiteral<"other", "required">], "required", never>;
|
|
7135
7741
|
amount: import("convex/values").VFloat64<number, "required">;
|
|
7136
7742
|
}, "required", "amount" | "destinationAccountId" | "role">, "required">;
|
|
7137
|
-
}, "required", "adjustmentAmount" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers">, {
|
|
7743
|
+
}, "required", "adjustmentAmount" | "creditSource" | "creditSource.creditGrantId" | "creditSource.customerAccount" | "creditSource.livemode" | "creditSource.purchaseId" | "creditSource.stripeAccountId" | "creditSource.stripePriceId" | "creditSource.stripeProductId" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers" | "usageSource" | "usageSource.customerAccount" | "usageSource.invoicePaymentId" | "usageSource.livemode" | "usageSource.meterId" | "usageSource.model" | "usageSource.period" | "usageSource.period.end" | "usageSource.period.start" | "usageSource.stripeAccountId" | "usageSource.stripePriceId" | "usageSource.stripeProductId" | "usageSource.subscriptionId" | "usageSource.subscriptionItemId">, {
|
|
7138
7744
|
by_source_charge: ["sourceChargeId", "_creationTime"];
|
|
7139
7745
|
}, {}, {}>;
|
|
7140
7746
|
commissionTerms: import("convex/server").TableDefinition<import("convex/values").VObject<{
|