@raideno/convex-stripe 0.1.13 → 0.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1025 -576
- package/dist/server.js +448 -180
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ import { GenericActionCtx } from 'convex/server';
|
|
|
4
4
|
import { GenericDataModel } from 'convex/server';
|
|
5
5
|
import { GenericId } from 'convex/values';
|
|
6
6
|
import { HttpRouter } from 'convex/server';
|
|
7
|
-
import { Infer } from 'convex/values';
|
|
8
7
|
import { RegisteredAction } from 'convex/server';
|
|
9
8
|
import { RegisteredMutation } from 'convex/server';
|
|
10
9
|
import { RoutableMethod } from 'convex/server';
|
|
@@ -50,11 +49,9 @@ export declare const internalConvexStripe: (configuration_: InputConfiguration)
|
|
|
50
49
|
};
|
|
51
50
|
};
|
|
52
51
|
addHttpRoutes: (http: HttpRouter, config?: InputConfiguration) => void;
|
|
53
|
-
portal: (context: GenericActionCtx<StripeDataModel>, args:
|
|
54
|
-
subscribe: (context: GenericActionCtx<StripeDataModel>, args:
|
|
55
|
-
|
|
56
|
-
}>;
|
|
57
|
-
pay: (context: GenericActionCtx<StripeDataModel>, args: Infer<typeof PayImplementation.args>) => Promise<default_2.Response<default_2.Checkout.Session>>;
|
|
52
|
+
portal: (context: GenericActionCtx<StripeDataModel>, args: Parameters<(typeof PortalImplementation)["handler"]>[1]) => Promise<default_2.Response<default_2.BillingPortal.Session>>;
|
|
53
|
+
subscribe: (context: GenericActionCtx<StripeDataModel>, args: Parameters<(typeof SubscribeImplementation)["handler"]>[1]) => Promise<default_2.Response<default_2.Checkout.Session>>;
|
|
54
|
+
pay: (context: GenericActionCtx<StripeDataModel>, args: Parameters<(typeof PayImplementation)["handler"]>[1]) => Promise<default_2.Response<default_2.Checkout.Session>>;
|
|
58
55
|
};
|
|
59
56
|
store: RegisteredMutation<"internal", {
|
|
60
57
|
id?: any;
|
|
@@ -66,7 +63,7 @@ export declare const internalConvexStripe: (configuration_: InputConfiguration)
|
|
|
66
63
|
operation: string;
|
|
67
64
|
table: string;
|
|
68
65
|
}, Promise<{
|
|
69
|
-
id: GenericId<"stripeProducts" | "stripePrices" | "stripeCustomers" | "stripeSubscriptions" | "stripeCoupons" | "stripePromotionCodes" | "stripePayouts" | "stripeRefunds" | "stripePaymentIntents" | "stripeCheckoutSessions" | "stripeInvoices" | "stripeReviews" | "stripePlans" | "stripeDisputes" | "stripeEarlyFraudWarnings" | "stripeTaxIds" | "stripeSetupIntents" | "stripeCreditNotes" | "stripeCharges" | "stripePaymentMethods" | "stripeSubscriptionSchedules">;
|
|
66
|
+
id: GenericId<"stripeProducts" | "stripePrices" | "stripeCustomers" | "stripeSubscriptions" | "stripeCoupons" | "stripePromotionCodes" | "stripePayouts" | "stripeRefunds" | "stripePaymentIntents" | "stripeCheckoutSessions" | "stripeInvoices" | "stripeReviews" | "stripePlans" | "stripeDisputes" | "stripeEarlyFraudWarnings" | "stripeTaxIds" | "stripeSetupIntents" | "stripeCreditNotes" | "stripeCharges" | "stripePaymentMethods" | "stripeSubscriptionSchedules" | "stripeMandates" | "stripeBillingPortalConfigurations">;
|
|
70
67
|
deleted?: undefined;
|
|
71
68
|
doc?: undefined;
|
|
72
69
|
docs?: undefined;
|
|
@@ -97,6 +94,7 @@ export declare const internalConvexStripe: (configuration_: InputConfiguration)
|
|
|
97
94
|
livemode: boolean;
|
|
98
95
|
url: string | null;
|
|
99
96
|
active: boolean;
|
|
97
|
+
updated: number;
|
|
100
98
|
images: string[];
|
|
101
99
|
package_dimensions: {
|
|
102
100
|
length: number;
|
|
@@ -105,7 +103,6 @@ export declare const internalConvexStripe: (configuration_: InputConfiguration)
|
|
|
105
103
|
width: number;
|
|
106
104
|
} | null;
|
|
107
105
|
shippable: boolean | null;
|
|
108
|
-
updated: number;
|
|
109
106
|
marketing_features: {
|
|
110
107
|
name?: string | null | undefined;
|
|
111
108
|
}[];
|
|
@@ -280,8 +277,8 @@ export declare const internalConvexStripe: (configuration_: InputConfiguration)
|
|
|
280
277
|
times_redeemed: number;
|
|
281
278
|
valid: boolean;
|
|
282
279
|
};
|
|
283
|
-
code: string;
|
|
284
280
|
active: boolean;
|
|
281
|
+
code: string;
|
|
285
282
|
restrictions: {
|
|
286
283
|
currency_options?: Record<string, {
|
|
287
284
|
minimum_amount?: number | null | undefined;
|
|
@@ -406,11 +403,7 @@ export declare const internalConvexStripe: (configuration_: InputConfiguration)
|
|
|
406
403
|
enabled: boolean;
|
|
407
404
|
} | null | undefined;
|
|
408
405
|
next_action?: any;
|
|
409
|
-
amount_details?:
|
|
410
|
-
tip?: {
|
|
411
|
-
amount?: number | null | undefined;
|
|
412
|
-
} | null | undefined;
|
|
413
|
-
} | null | undefined;
|
|
406
|
+
amount_details?: any;
|
|
414
407
|
canceled_at?: number | null | undefined;
|
|
415
408
|
cancellation_reason?: "expired" | "duplicate" | "fraudulent" | "abandoned" | "automatic" | "failed_invoice" | "requested_by_customer" | "void_invoice" | null | undefined;
|
|
416
409
|
object: string;
|
|
@@ -620,8 +613,8 @@ export declare const internalConvexStripe: (configuration_: InputConfiguration)
|
|
|
620
613
|
stripe: {
|
|
621
614
|
amount?: number | null | undefined;
|
|
622
615
|
metadata?: Record<string, string | number | null> | null | undefined;
|
|
623
|
-
nickname?: string | null | undefined;
|
|
624
616
|
product?: string | null | undefined;
|
|
617
|
+
nickname?: string | null | undefined;
|
|
625
618
|
amount_decimal?: string | null | undefined;
|
|
626
619
|
meter?: string | null | undefined;
|
|
627
620
|
tiers?: any[] | null | undefined;
|
|
@@ -725,6 +718,7 @@ export declare const internalConvexStripe: (configuration_: InputConfiguration)
|
|
|
725
718
|
id: string;
|
|
726
719
|
} | null | undefined;
|
|
727
720
|
payment_method_options?: any;
|
|
721
|
+
mandate?: string | null | undefined;
|
|
728
722
|
automatic_payment_methods?: {
|
|
729
723
|
enabled?: boolean | null | undefined;
|
|
730
724
|
allow_redirects?: "always" | "never" | null | undefined;
|
|
@@ -734,7 +728,6 @@ export declare const internalConvexStripe: (configuration_: InputConfiguration)
|
|
|
734
728
|
last_setup_error?: any;
|
|
735
729
|
attach_to_self?: boolean | null | undefined;
|
|
736
730
|
latest_attempt?: string | null | undefined;
|
|
737
|
-
mandate?: string | null | undefined;
|
|
738
731
|
single_use_mandate?: string | null | undefined;
|
|
739
732
|
object: string;
|
|
740
733
|
id: string;
|
|
@@ -981,7 +974,7 @@ export declare const internalConvexStripe: (configuration_: InputConfiguration)
|
|
|
981
974
|
object: string;
|
|
982
975
|
id: string;
|
|
983
976
|
customer: string;
|
|
984
|
-
status: "
|
|
977
|
+
status: "active" | "canceled" | "completed" | "not_started" | "released";
|
|
985
978
|
created: number;
|
|
986
979
|
livemode: boolean;
|
|
987
980
|
billing_mode: {
|
|
@@ -992,6 +985,102 @@ export declare const internalConvexStripe: (configuration_: InputConfiguration)
|
|
|
992
985
|
};
|
|
993
986
|
lastSyncedAt: number;
|
|
994
987
|
subscriptionScheduleId: string;
|
|
988
|
+
} | {
|
|
989
|
+
_id: GenericId<"stripeMandates">;
|
|
990
|
+
_creationTime: number;
|
|
991
|
+
stripe: {
|
|
992
|
+
payment_method_details?: any;
|
|
993
|
+
on_behalf_of?: string | null | undefined;
|
|
994
|
+
multi_use?: any;
|
|
995
|
+
single_use?: {
|
|
996
|
+
amount: number;
|
|
997
|
+
currency: string;
|
|
998
|
+
} | null | undefined;
|
|
999
|
+
object: string;
|
|
1000
|
+
type: "multi_use" | "single_use";
|
|
1001
|
+
id: string;
|
|
1002
|
+
status: "pending" | "active" | "inactive";
|
|
1003
|
+
livemode: boolean;
|
|
1004
|
+
payment_method: string;
|
|
1005
|
+
customer_acceptance: {
|
|
1006
|
+
accepted_at?: number | null | undefined;
|
|
1007
|
+
offline?: any;
|
|
1008
|
+
online?: {
|
|
1009
|
+
ip_address?: string | null | undefined;
|
|
1010
|
+
user_agent?: string | null | undefined;
|
|
1011
|
+
} | null | undefined;
|
|
1012
|
+
type: "offline" | "online";
|
|
1013
|
+
};
|
|
1014
|
+
};
|
|
1015
|
+
lastSyncedAt: number;
|
|
1016
|
+
mandateId: string;
|
|
1017
|
+
} | {
|
|
1018
|
+
_id: GenericId<"stripeBillingPortalConfigurations">;
|
|
1019
|
+
_creationTime: number;
|
|
1020
|
+
stripe: {
|
|
1021
|
+
object: string;
|
|
1022
|
+
id: string;
|
|
1023
|
+
name: string | null;
|
|
1024
|
+
metadata: Record<string, string | number | null> | null;
|
|
1025
|
+
application: string | null;
|
|
1026
|
+
created: number;
|
|
1027
|
+
livemode: boolean;
|
|
1028
|
+
active: boolean;
|
|
1029
|
+
business_profile: {
|
|
1030
|
+
headline: string | null;
|
|
1031
|
+
privacy_policy_url: string | null;
|
|
1032
|
+
terms_of_service_url: string | null;
|
|
1033
|
+
};
|
|
1034
|
+
default_return_url: string | null;
|
|
1035
|
+
features: {
|
|
1036
|
+
subscription_update: {
|
|
1037
|
+
products?: {
|
|
1038
|
+
adjustable_quantity: {
|
|
1039
|
+
enabled: boolean;
|
|
1040
|
+
maximum: number | null;
|
|
1041
|
+
minimum: number | null;
|
|
1042
|
+
};
|
|
1043
|
+
prices: string[];
|
|
1044
|
+
product: string;
|
|
1045
|
+
}[] | null | undefined;
|
|
1046
|
+
enabled: boolean;
|
|
1047
|
+
proration_behavior: "none" | "always_invoice" | "create_prorations";
|
|
1048
|
+
default_allowed_updates: ("price" | "promotion_code" | "quantity")[];
|
|
1049
|
+
schedule_at_period_end: {
|
|
1050
|
+
conditions: {
|
|
1051
|
+
type: "decreasing_item_amount" | "shortening_interval";
|
|
1052
|
+
}[];
|
|
1053
|
+
};
|
|
1054
|
+
};
|
|
1055
|
+
customer_update: {
|
|
1056
|
+
enabled: boolean;
|
|
1057
|
+
allowed_updated: ("address" | "email" | "name" | "phone" | "tax_id" | "shipping")[];
|
|
1058
|
+
};
|
|
1059
|
+
invoice_history: {
|
|
1060
|
+
enabled: boolean;
|
|
1061
|
+
};
|
|
1062
|
+
payment_method_update: {
|
|
1063
|
+
enabled: boolean;
|
|
1064
|
+
};
|
|
1065
|
+
subscription_cancel: {
|
|
1066
|
+
mode: "at_period_end" | "immediately";
|
|
1067
|
+
enabled: boolean;
|
|
1068
|
+
cancellation_reason: {
|
|
1069
|
+
enabled: boolean;
|
|
1070
|
+
options: ("customer_service" | "low_quality" | "missing_features" | "other" | "switched_service" | "too_complex" | "too_expensive" | "unused")[];
|
|
1071
|
+
};
|
|
1072
|
+
proration_behavior: "none" | "always_invoice" | "create_prorations";
|
|
1073
|
+
};
|
|
1074
|
+
};
|
|
1075
|
+
is_default: boolean;
|
|
1076
|
+
login_page: {
|
|
1077
|
+
url: string | null;
|
|
1078
|
+
enabled: boolean;
|
|
1079
|
+
};
|
|
1080
|
+
updated: number;
|
|
1081
|
+
};
|
|
1082
|
+
lastSyncedAt: number;
|
|
1083
|
+
billingPortalConfigurationId: string;
|
|
995
1084
|
})[];
|
|
996
1085
|
id?: undefined;
|
|
997
1086
|
deleted?: undefined;
|
|
@@ -1017,407 +1106,24 @@ export declare class Logger {
|
|
|
1017
1106
|
}
|
|
1018
1107
|
|
|
1019
1108
|
declare const PayImplementation: {
|
|
1020
|
-
args: VObject< {
|
|
1021
|
-
metadata?: Record<string, string | number | null> | null | undefined;
|
|
1022
|
-
createStripeCustomerIfMissing?: boolean | undefined;
|
|
1023
|
-
line_items: ({
|
|
1024
|
-
adjustable_quantity?: {
|
|
1025
|
-
maximum?: number | undefined;
|
|
1026
|
-
minimum?: number | undefined;
|
|
1027
|
-
enabled: boolean;
|
|
1028
|
-
} | undefined;
|
|
1029
|
-
quantity?: number | undefined;
|
|
1030
|
-
tax_rates?: string[] | undefined;
|
|
1031
|
-
dynamic_tax_rates?: string[] | undefined;
|
|
1032
|
-
price: string;
|
|
1033
|
-
} | {
|
|
1034
|
-
adjustable_quantity?: {
|
|
1035
|
-
maximum?: number | undefined;
|
|
1036
|
-
minimum?: number | undefined;
|
|
1037
|
-
enabled: boolean;
|
|
1038
|
-
} | undefined;
|
|
1039
|
-
quantity?: number | undefined;
|
|
1040
|
-
tax_rates?: string[] | undefined;
|
|
1041
|
-
dynamic_tax_rates?: string[] | undefined;
|
|
1042
|
-
price_data: {
|
|
1043
|
-
recurring?: {
|
|
1044
|
-
interval_count?: number | undefined;
|
|
1045
|
-
interval: "day" | "week" | "month" | "year";
|
|
1046
|
-
} | undefined;
|
|
1047
|
-
tax_behavior?: "unspecified" | "exclusive" | "inclusive" | undefined;
|
|
1048
|
-
currency: string;
|
|
1049
|
-
productId: string;
|
|
1050
|
-
unit_amount: number;
|
|
1051
|
-
} | {
|
|
1052
|
-
recurring?: {
|
|
1053
|
-
interval_count?: number | undefined;
|
|
1054
|
-
interval: "day" | "week" | "month" | "year";
|
|
1055
|
-
} | undefined;
|
|
1056
|
-
tax_behavior?: "unspecified" | "exclusive" | "inclusive" | undefined;
|
|
1057
|
-
currency: string;
|
|
1058
|
-
unit_amount: number;
|
|
1059
|
-
product_data: {
|
|
1060
|
-
description?: string | undefined;
|
|
1061
|
-
images?: string[] | undefined;
|
|
1062
|
-
tax_code?: string | undefined;
|
|
1063
|
-
name: string;
|
|
1064
|
-
metadata: Record<string, string | number | null>;
|
|
1065
|
-
};
|
|
1066
|
-
};
|
|
1067
|
-
})[];
|
|
1068
|
-
cancel: {
|
|
1069
|
-
url: string;
|
|
1070
|
-
};
|
|
1071
|
-
entityId: string;
|
|
1072
|
-
referenceId: string;
|
|
1073
|
-
success: {
|
|
1074
|
-
url: string;
|
|
1075
|
-
};
|
|
1076
|
-
}, {
|
|
1077
|
-
createStripeCustomerIfMissing: VBoolean<boolean | undefined, "optional">;
|
|
1078
|
-
entityId: VString<string, "required">;
|
|
1079
|
-
metadata: VUnion<Record<string, string | number | null> | null | undefined, [VRecord<Record<string, string | number | null>, VString<string, "required">, VUnion<string | number | null, [VString<string, "required">, VFloat64<number, "required">, VNull<null, "required">], "required", never>, "required", string>, VNull<null, "required">], "optional", string>;
|
|
1080
|
-
referenceId: VString<string, "required">;
|
|
1081
|
-
line_items: VArray<({
|
|
1082
|
-
adjustable_quantity?: {
|
|
1083
|
-
maximum?: number | undefined;
|
|
1084
|
-
minimum?: number | undefined;
|
|
1085
|
-
enabled: boolean;
|
|
1086
|
-
} | undefined;
|
|
1087
|
-
quantity?: number | undefined;
|
|
1088
|
-
tax_rates?: string[] | undefined;
|
|
1089
|
-
dynamic_tax_rates?: string[] | undefined;
|
|
1090
|
-
price: string;
|
|
1091
|
-
} | {
|
|
1092
|
-
adjustable_quantity?: {
|
|
1093
|
-
maximum?: number | undefined;
|
|
1094
|
-
minimum?: number | undefined;
|
|
1095
|
-
enabled: boolean;
|
|
1096
|
-
} | undefined;
|
|
1097
|
-
quantity?: number | undefined;
|
|
1098
|
-
tax_rates?: string[] | undefined;
|
|
1099
|
-
dynamic_tax_rates?: string[] | undefined;
|
|
1100
|
-
price_data: {
|
|
1101
|
-
recurring?: {
|
|
1102
|
-
interval_count?: number | undefined;
|
|
1103
|
-
interval: "day" | "week" | "month" | "year";
|
|
1104
|
-
} | undefined;
|
|
1105
|
-
tax_behavior?: "unspecified" | "exclusive" | "inclusive" | undefined;
|
|
1106
|
-
currency: string;
|
|
1107
|
-
productId: string;
|
|
1108
|
-
unit_amount: number;
|
|
1109
|
-
} | {
|
|
1110
|
-
recurring?: {
|
|
1111
|
-
interval_count?: number | undefined;
|
|
1112
|
-
interval: "day" | "week" | "month" | "year";
|
|
1113
|
-
} | undefined;
|
|
1114
|
-
tax_behavior?: "unspecified" | "exclusive" | "inclusive" | undefined;
|
|
1115
|
-
currency: string;
|
|
1116
|
-
unit_amount: number;
|
|
1117
|
-
product_data: {
|
|
1118
|
-
description?: string | undefined;
|
|
1119
|
-
images?: string[] | undefined;
|
|
1120
|
-
tax_code?: string | undefined;
|
|
1121
|
-
name: string;
|
|
1122
|
-
metadata: Record<string, string | number | null>;
|
|
1123
|
-
};
|
|
1124
|
-
};
|
|
1125
|
-
})[], VUnion< {
|
|
1126
|
-
adjustable_quantity?: {
|
|
1127
|
-
maximum?: number | undefined;
|
|
1128
|
-
minimum?: number | undefined;
|
|
1129
|
-
enabled: boolean;
|
|
1130
|
-
} | undefined;
|
|
1131
|
-
quantity?: number | undefined;
|
|
1132
|
-
tax_rates?: string[] | undefined;
|
|
1133
|
-
dynamic_tax_rates?: string[] | undefined;
|
|
1134
|
-
price: string;
|
|
1135
|
-
} | {
|
|
1136
|
-
adjustable_quantity?: {
|
|
1137
|
-
maximum?: number | undefined;
|
|
1138
|
-
minimum?: number | undefined;
|
|
1139
|
-
enabled: boolean;
|
|
1140
|
-
} | undefined;
|
|
1141
|
-
quantity?: number | undefined;
|
|
1142
|
-
tax_rates?: string[] | undefined;
|
|
1143
|
-
dynamic_tax_rates?: string[] | undefined;
|
|
1144
|
-
price_data: {
|
|
1145
|
-
recurring?: {
|
|
1146
|
-
interval_count?: number | undefined;
|
|
1147
|
-
interval: "day" | "week" | "month" | "year";
|
|
1148
|
-
} | undefined;
|
|
1149
|
-
tax_behavior?: "unspecified" | "exclusive" | "inclusive" | undefined;
|
|
1150
|
-
currency: string;
|
|
1151
|
-
productId: string;
|
|
1152
|
-
unit_amount: number;
|
|
1153
|
-
} | {
|
|
1154
|
-
recurring?: {
|
|
1155
|
-
interval_count?: number | undefined;
|
|
1156
|
-
interval: "day" | "week" | "month" | "year";
|
|
1157
|
-
} | undefined;
|
|
1158
|
-
tax_behavior?: "unspecified" | "exclusive" | "inclusive" | undefined;
|
|
1159
|
-
currency: string;
|
|
1160
|
-
unit_amount: number;
|
|
1161
|
-
product_data: {
|
|
1162
|
-
description?: string | undefined;
|
|
1163
|
-
images?: string[] | undefined;
|
|
1164
|
-
tax_code?: string | undefined;
|
|
1165
|
-
name: string;
|
|
1166
|
-
metadata: Record<string, string | number | null>;
|
|
1167
|
-
};
|
|
1168
|
-
};
|
|
1169
|
-
}, [VObject< {
|
|
1170
|
-
adjustable_quantity?: {
|
|
1171
|
-
maximum?: number | undefined;
|
|
1172
|
-
minimum?: number | undefined;
|
|
1173
|
-
enabled: boolean;
|
|
1174
|
-
} | undefined;
|
|
1175
|
-
quantity?: number | undefined;
|
|
1176
|
-
tax_rates?: string[] | undefined;
|
|
1177
|
-
dynamic_tax_rates?: string[] | undefined;
|
|
1178
|
-
price: string;
|
|
1179
|
-
}, {
|
|
1180
|
-
adjustable_quantity: VObject< {
|
|
1181
|
-
maximum?: number | undefined;
|
|
1182
|
-
minimum?: number | undefined;
|
|
1183
|
-
enabled: boolean;
|
|
1184
|
-
} | undefined, {
|
|
1185
|
-
enabled: VBoolean<boolean, "required">;
|
|
1186
|
-
maximum: VFloat64<number | undefined, "optional">;
|
|
1187
|
-
minimum: VFloat64<number | undefined, "optional">;
|
|
1188
|
-
}, "optional", "enabled" | "maximum" | "minimum">;
|
|
1189
|
-
price: VString<string, "required">;
|
|
1190
|
-
quantity: VFloat64<number | undefined, "optional">;
|
|
1191
|
-
tax_rates: VArray<string[] | undefined, VString<string, "required">, "optional">;
|
|
1192
|
-
dynamic_tax_rates: VArray<string[] | undefined, VString<string, "required">, "optional">;
|
|
1193
|
-
}, "required", "price" | "adjustable_quantity" | "quantity" | "tax_rates" | "dynamic_tax_rates" | "adjustable_quantity.enabled" | "adjustable_quantity.maximum" | "adjustable_quantity.minimum">, VObject< {
|
|
1194
|
-
adjustable_quantity?: {
|
|
1195
|
-
maximum?: number | undefined;
|
|
1196
|
-
minimum?: number | undefined;
|
|
1197
|
-
enabled: boolean;
|
|
1198
|
-
} | undefined;
|
|
1199
|
-
quantity?: number | undefined;
|
|
1200
|
-
tax_rates?: string[] | undefined;
|
|
1201
|
-
dynamic_tax_rates?: string[] | undefined;
|
|
1202
|
-
price_data: {
|
|
1203
|
-
recurring?: {
|
|
1204
|
-
interval_count?: number | undefined;
|
|
1205
|
-
interval: "day" | "week" | "month" | "year";
|
|
1206
|
-
} | undefined;
|
|
1207
|
-
tax_behavior?: "unspecified" | "exclusive" | "inclusive" | undefined;
|
|
1208
|
-
currency: string;
|
|
1209
|
-
productId: string;
|
|
1210
|
-
unit_amount: number;
|
|
1211
|
-
} | {
|
|
1212
|
-
recurring?: {
|
|
1213
|
-
interval_count?: number | undefined;
|
|
1214
|
-
interval: "day" | "week" | "month" | "year";
|
|
1215
|
-
} | undefined;
|
|
1216
|
-
tax_behavior?: "unspecified" | "exclusive" | "inclusive" | undefined;
|
|
1217
|
-
currency: string;
|
|
1218
|
-
unit_amount: number;
|
|
1219
|
-
product_data: {
|
|
1220
|
-
description?: string | undefined;
|
|
1221
|
-
images?: string[] | undefined;
|
|
1222
|
-
tax_code?: string | undefined;
|
|
1223
|
-
name: string;
|
|
1224
|
-
metadata: Record<string, string | number | null>;
|
|
1225
|
-
};
|
|
1226
|
-
};
|
|
1227
|
-
}, {
|
|
1228
|
-
adjustable_quantity: VObject< {
|
|
1229
|
-
maximum?: number | undefined;
|
|
1230
|
-
minimum?: number | undefined;
|
|
1231
|
-
enabled: boolean;
|
|
1232
|
-
} | undefined, {
|
|
1233
|
-
enabled: VBoolean<boolean, "required">;
|
|
1234
|
-
maximum: VFloat64<number | undefined, "optional">;
|
|
1235
|
-
minimum: VFloat64<number | undefined, "optional">;
|
|
1236
|
-
}, "optional", "enabled" | "maximum" | "minimum">;
|
|
1237
|
-
price_data: VUnion< {
|
|
1238
|
-
recurring?: {
|
|
1239
|
-
interval_count?: number | undefined;
|
|
1240
|
-
interval: "day" | "week" | "month" | "year";
|
|
1241
|
-
} | undefined;
|
|
1242
|
-
tax_behavior?: "unspecified" | "exclusive" | "inclusive" | undefined;
|
|
1243
|
-
currency: string;
|
|
1244
|
-
productId: string;
|
|
1245
|
-
unit_amount: number;
|
|
1246
|
-
} | {
|
|
1247
|
-
recurring?: {
|
|
1248
|
-
interval_count?: number | undefined;
|
|
1249
|
-
interval: "day" | "week" | "month" | "year";
|
|
1250
|
-
} | undefined;
|
|
1251
|
-
tax_behavior?: "unspecified" | "exclusive" | "inclusive" | undefined;
|
|
1252
|
-
currency: string;
|
|
1253
|
-
unit_amount: number;
|
|
1254
|
-
product_data: {
|
|
1255
|
-
description?: string | undefined;
|
|
1256
|
-
images?: string[] | undefined;
|
|
1257
|
-
tax_code?: string | undefined;
|
|
1258
|
-
name: string;
|
|
1259
|
-
metadata: Record<string, string | number | null>;
|
|
1260
|
-
};
|
|
1261
|
-
}, [VObject< {
|
|
1262
|
-
recurring?: {
|
|
1263
|
-
interval_count?: number | undefined;
|
|
1264
|
-
interval: "day" | "week" | "month" | "year";
|
|
1265
|
-
} | undefined;
|
|
1266
|
-
tax_behavior?: "unspecified" | "exclusive" | "inclusive" | undefined;
|
|
1267
|
-
currency: string;
|
|
1268
|
-
productId: string;
|
|
1269
|
-
unit_amount: number;
|
|
1270
|
-
}, {
|
|
1271
|
-
currency: VString<string, "required">;
|
|
1272
|
-
productId: VString<string, "required">;
|
|
1273
|
-
recurring: VObject< {
|
|
1274
|
-
interval_count?: number | undefined;
|
|
1275
|
-
interval: "day" | "week" | "month" | "year";
|
|
1276
|
-
} | undefined, {
|
|
1277
|
-
interval: VUnion<"day" | "week" | "month" | "year", [VLiteral<"day", "required">, VLiteral<"week", "required">, VLiteral<"month", "required">, VLiteral<"year", "required">], "required", never>;
|
|
1278
|
-
interval_count: VFloat64<number | undefined, "optional">;
|
|
1279
|
-
}, "optional", "interval" | "interval_count">;
|
|
1280
|
-
tax_behavior: VUnion<"unspecified" | "exclusive" | "inclusive" | undefined, [VLiteral<"exclusive", "required">, VLiteral<"inclusive", "required">, VLiteral<"unspecified", "required">], "optional", never>;
|
|
1281
|
-
unit_amount: VFloat64<number, "required">;
|
|
1282
|
-
}, "required", "currency" | "recurring" | "productId" | "unit_amount" | "recurring.interval" | "recurring.interval_count" | "tax_behavior">, VObject< {
|
|
1283
|
-
recurring?: {
|
|
1284
|
-
interval_count?: number | undefined;
|
|
1285
|
-
interval: "day" | "week" | "month" | "year";
|
|
1286
|
-
} | undefined;
|
|
1287
|
-
tax_behavior?: "unspecified" | "exclusive" | "inclusive" | undefined;
|
|
1288
|
-
currency: string;
|
|
1289
|
-
unit_amount: number;
|
|
1290
|
-
product_data: {
|
|
1291
|
-
description?: string | undefined;
|
|
1292
|
-
images?: string[] | undefined;
|
|
1293
|
-
tax_code?: string | undefined;
|
|
1294
|
-
name: string;
|
|
1295
|
-
metadata: Record<string, string | number | null>;
|
|
1296
|
-
};
|
|
1297
|
-
}, {
|
|
1298
|
-
currency: VString<string, "required">;
|
|
1299
|
-
product_data: VObject< {
|
|
1300
|
-
description?: string | undefined;
|
|
1301
|
-
images?: string[] | undefined;
|
|
1302
|
-
tax_code?: string | undefined;
|
|
1303
|
-
name: string;
|
|
1304
|
-
metadata: Record<string, string | number | null>;
|
|
1305
|
-
}, {
|
|
1306
|
-
description: VString<string | undefined, "optional">;
|
|
1307
|
-
images: VArray<string[] | undefined, VString<string, "required">, "optional">;
|
|
1308
|
-
metadata: VRecord<Record<string, string | number | null>, VString<string, "required">, VUnion<string | number | null, [VString<string, "required">, VFloat64<number, "required">, VNull<null, "required">], "required", never>, "required", string>;
|
|
1309
|
-
name: VString<string, "required">;
|
|
1310
|
-
tax_code: VString<string | undefined, "optional">;
|
|
1311
|
-
}, "required", "name" | "description" | "metadata" | `metadata.${string}` | "images" | "tax_code">;
|
|
1312
|
-
recurring: VObject< {
|
|
1313
|
-
interval_count?: number | undefined;
|
|
1314
|
-
interval: "day" | "week" | "month" | "year";
|
|
1315
|
-
} | undefined, {
|
|
1316
|
-
interval: VUnion<"day" | "week" | "month" | "year", [VLiteral<"day", "required">, VLiteral<"week", "required">, VLiteral<"month", "required">, VLiteral<"year", "required">], "required", never>;
|
|
1317
|
-
interval_count: VFloat64<number | undefined, "optional">;
|
|
1318
|
-
}, "optional", "interval" | "interval_count">;
|
|
1319
|
-
tax_behavior: VUnion<"unspecified" | "exclusive" | "inclusive" | undefined, [VLiteral<"exclusive", "required">, VLiteral<"inclusive", "required">, VLiteral<"unspecified", "required">], "optional", never>;
|
|
1320
|
-
unit_amount: VFloat64<number, "required">;
|
|
1321
|
-
}, "required", "currency" | "recurring" | "unit_amount" | "recurring.interval" | "recurring.interval_count" | "tax_behavior" | "product_data" | "product_data.name" | "product_data.description" | "product_data.metadata" | `product_data.metadata.${string}` | "product_data.images" | "product_data.tax_code">], "required", "currency" | "recurring" | "productId" | "unit_amount" | "recurring.interval" | "recurring.interval_count" | "tax_behavior" | "product_data" | "product_data.name" | "product_data.description" | "product_data.metadata" | `product_data.metadata.${string}` | "product_data.images" | "product_data.tax_code">;
|
|
1322
|
-
quantity: VFloat64<number | undefined, "optional">;
|
|
1323
|
-
tax_rates: VArray<string[] | undefined, VString<string, "required">, "optional">;
|
|
1324
|
-
dynamic_tax_rates: VArray<string[] | undefined, VString<string, "required">, "optional">;
|
|
1325
|
-
}, "required", "adjustable_quantity" | "quantity" | "tax_rates" | "dynamic_tax_rates" | "adjustable_quantity.enabled" | "adjustable_quantity.maximum" | "adjustable_quantity.minimum" | "price_data" | "price_data.currency" | "price_data.recurring" | "price_data.productId" | "price_data.unit_amount" | "price_data.recurring.interval" | "price_data.recurring.interval_count" | "price_data.tax_behavior" | "price_data.product_data" | "price_data.product_data.name" | "price_data.product_data.description" | "price_data.product_data.metadata" | `price_data.product_data.metadata.${string}` | "price_data.product_data.images" | "price_data.product_data.tax_code">], "required", "price" | "adjustable_quantity" | "quantity" | "tax_rates" | "dynamic_tax_rates" | "adjustable_quantity.enabled" | "adjustable_quantity.maximum" | "adjustable_quantity.minimum" | "price_data" | "price_data.currency" | "price_data.recurring" | "price_data.productId" | "price_data.unit_amount" | "price_data.recurring.interval" | "price_data.recurring.interval_count" | "price_data.tax_behavior" | "price_data.product_data" | "price_data.product_data.name" | "price_data.product_data.description" | "price_data.product_data.metadata" | `price_data.product_data.metadata.${string}` | "price_data.product_data.images" | "price_data.product_data.tax_code">, "required">;
|
|
1326
|
-
success: VObject< {
|
|
1327
|
-
url: string;
|
|
1328
|
-
}, {
|
|
1329
|
-
url: VString<string, "required">;
|
|
1330
|
-
}, "required", "url">;
|
|
1331
|
-
cancel: VObject< {
|
|
1332
|
-
url: string;
|
|
1333
|
-
}, {
|
|
1334
|
-
url: VString<string, "required">;
|
|
1335
|
-
}, "required", "url">;
|
|
1336
|
-
}, "required", "metadata" | `metadata.${string}` | "line_items" | "cancel" | "entityId" | "referenceId" | "createStripeCustomerIfMissing" | "success" | "cancel.url" | "success.url">;
|
|
1337
1109
|
name: string;
|
|
1338
1110
|
handler: (context: GenericActionCtx<StripeDataModel>, args: {
|
|
1339
|
-
|
|
1340
|
-
createStripeCustomerIfMissing?: boolean | undefined;
|
|
1341
|
-
line_items: ({
|
|
1342
|
-
adjustable_quantity?: {
|
|
1343
|
-
maximum?: number | undefined;
|
|
1344
|
-
minimum?: number | undefined;
|
|
1345
|
-
enabled: boolean;
|
|
1346
|
-
} | undefined;
|
|
1347
|
-
quantity?: number | undefined;
|
|
1348
|
-
tax_rates?: string[] | undefined;
|
|
1349
|
-
dynamic_tax_rates?: string[] | undefined;
|
|
1350
|
-
price: string;
|
|
1351
|
-
} | {
|
|
1352
|
-
adjustable_quantity?: {
|
|
1353
|
-
maximum?: number | undefined;
|
|
1354
|
-
minimum?: number | undefined;
|
|
1355
|
-
enabled: boolean;
|
|
1356
|
-
} | undefined;
|
|
1357
|
-
quantity?: number | undefined;
|
|
1358
|
-
tax_rates?: string[] | undefined;
|
|
1359
|
-
dynamic_tax_rates?: string[] | undefined;
|
|
1360
|
-
price_data: {
|
|
1361
|
-
recurring?: {
|
|
1362
|
-
interval_count?: number | undefined;
|
|
1363
|
-
interval: "day" | "week" | "month" | "year";
|
|
1364
|
-
} | undefined;
|
|
1365
|
-
tax_behavior?: "unspecified" | "exclusive" | "inclusive" | undefined;
|
|
1366
|
-
currency: string;
|
|
1367
|
-
productId: string;
|
|
1368
|
-
unit_amount: number;
|
|
1369
|
-
} | {
|
|
1370
|
-
recurring?: {
|
|
1371
|
-
interval_count?: number | undefined;
|
|
1372
|
-
interval: "day" | "week" | "month" | "year";
|
|
1373
|
-
} | undefined;
|
|
1374
|
-
tax_behavior?: "unspecified" | "exclusive" | "inclusive" | undefined;
|
|
1375
|
-
currency: string;
|
|
1376
|
-
unit_amount: number;
|
|
1377
|
-
product_data: {
|
|
1378
|
-
description?: string | undefined;
|
|
1379
|
-
images?: string[] | undefined;
|
|
1380
|
-
tax_code?: string | undefined;
|
|
1381
|
-
name: string;
|
|
1382
|
-
metadata: Record<string, string | number | null>;
|
|
1383
|
-
};
|
|
1384
|
-
};
|
|
1385
|
-
})[];
|
|
1386
|
-
cancel: {
|
|
1387
|
-
url: string;
|
|
1388
|
-
};
|
|
1111
|
+
createStripeCustomerIfMissing?: boolean;
|
|
1389
1112
|
entityId: string;
|
|
1113
|
+
cancel_url: string;
|
|
1114
|
+
success_url: string;
|
|
1390
1115
|
referenceId: string;
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
};
|
|
1394
|
-
}, configuration: InternalConfiguration) => Promise<default_2.Response<default_2.Checkout.Session>>;
|
|
1116
|
+
mode: "payment";
|
|
1117
|
+
} & Omit<default_2.Checkout.SessionCreateParams, "customer" | "client_reference_id" | "mode" | "success_url" | "ui_mode" | "cancel_url">, configuration: InternalConfiguration) => Promise<default_2.Response<default_2.Checkout.Session>>;
|
|
1395
1118
|
};
|
|
1396
1119
|
|
|
1397
1120
|
declare const PortalImplementation: {
|
|
1398
|
-
args: VObject< {
|
|
1399
|
-
createStripeCustomerIfMissing?: boolean | undefined;
|
|
1400
|
-
entityId: string;
|
|
1401
|
-
return: {
|
|
1402
|
-
url: string;
|
|
1403
|
-
};
|
|
1404
|
-
}, {
|
|
1405
|
-
createStripeCustomerIfMissing: VBoolean<boolean | undefined, "optional">;
|
|
1406
|
-
entityId: VString<string, "required">;
|
|
1407
|
-
return: VObject< {
|
|
1408
|
-
url: string;
|
|
1409
|
-
}, {
|
|
1410
|
-
url: VString<string, "required">;
|
|
1411
|
-
}, "required", "url">;
|
|
1412
|
-
}, "required", "entityId" | "createStripeCustomerIfMissing" | "return" | "return.url">;
|
|
1413
1121
|
name: string;
|
|
1414
1122
|
handler: (context: GenericActionCtx<StripeDataModel>, args: {
|
|
1415
|
-
createStripeCustomerIfMissing?: boolean
|
|
1123
|
+
createStripeCustomerIfMissing?: boolean;
|
|
1416
1124
|
entityId: string;
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
};
|
|
1420
|
-
}, configuration: InternalConfiguration) => Promise<default_2.Response<default_2.BillingPortal.Session>>;
|
|
1125
|
+
return_url: string;
|
|
1126
|
+
} & Omit<default_2.BillingPortal.SessionCreateParams, "customer" | "return_url">, configuration: InternalConfiguration) => Promise<default_2.Response<default_2.BillingPortal.Session>>;
|
|
1421
1127
|
};
|
|
1422
1128
|
|
|
1423
1129
|
declare type StripeDataModel = DataModelFromSchemaDefinition<typeof stripeSchema>;
|
|
@@ -1437,6 +1143,7 @@ created: number;
|
|
|
1437
1143
|
livemode: boolean;
|
|
1438
1144
|
url: string | null;
|
|
1439
1145
|
active: boolean;
|
|
1146
|
+
updated: number;
|
|
1440
1147
|
images: string[];
|
|
1441
1148
|
package_dimensions: {
|
|
1442
1149
|
length: number;
|
|
@@ -1445,7 +1152,6 @@ weight: number;
|
|
|
1445
1152
|
width: number;
|
|
1446
1153
|
} | null;
|
|
1447
1154
|
shippable: boolean | null;
|
|
1448
|
-
updated: number;
|
|
1449
1155
|
marketing_features: {
|
|
1450
1156
|
name?: string | null | undefined;
|
|
1451
1157
|
}[];
|
|
@@ -1466,6 +1172,7 @@ created: number;
|
|
|
1466
1172
|
livemode: boolean;
|
|
1467
1173
|
url: string | null;
|
|
1468
1174
|
active: boolean;
|
|
1175
|
+
updated: number;
|
|
1469
1176
|
images: string[];
|
|
1470
1177
|
package_dimensions: {
|
|
1471
1178
|
length: number;
|
|
@@ -1474,7 +1181,6 @@ weight: number;
|
|
|
1474
1181
|
width: number;
|
|
1475
1182
|
} | null;
|
|
1476
1183
|
shippable: boolean | null;
|
|
1477
|
-
updated: number;
|
|
1478
1184
|
marketing_features: {
|
|
1479
1185
|
name?: string | null | undefined;
|
|
1480
1186
|
}[];
|
|
@@ -1518,9 +1224,9 @@ name?: string | null | undefined;
|
|
|
1518
1224
|
name: VUnion<string | null | undefined, [VString<string, "required">, VNull<null, "required">], "optional", never>;
|
|
1519
1225
|
}, "required", "name">, "required">;
|
|
1520
1226
|
default_price: VUnion<string | null, [VString<string, "required">, VNull<null, "required">], "required", never>;
|
|
1521
|
-
}, "required", "object" | "id" | "name" | "description" | "metadata" | "statement_descriptor" | "created" | "livemode" | `metadata.${string}` | "url" | "active" | "
|
|
1227
|
+
}, "required", "object" | "id" | "name" | "description" | "metadata" | "statement_descriptor" | "created" | "livemode" | `metadata.${string}` | "url" | "active" | "updated" | "images" | "package_dimensions" | "shippable" | "unit_label" | "marketing_features" | "default_price" | "package_dimensions.length" | "package_dimensions.height" | "package_dimensions.weight" | "package_dimensions.width">;
|
|
1522
1228
|
lastSyncedAt: VFloat64<number, "required">;
|
|
1523
|
-
}, "required", "productId" | "stripe" | "lastSyncedAt" | "stripe.object" | "stripe.id" | "stripe.name" | "stripe.description" | "stripe.metadata" | "stripe.statement_descriptor" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.url" | "stripe.active" | "stripe.
|
|
1229
|
+
}, "required", "productId" | "stripe" | "lastSyncedAt" | "stripe.object" | "stripe.id" | "stripe.name" | "stripe.description" | "stripe.metadata" | "stripe.statement_descriptor" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.url" | "stripe.active" | "stripe.updated" | "stripe.images" | "stripe.package_dimensions" | "stripe.shippable" | "stripe.unit_label" | "stripe.marketing_features" | "stripe.default_price" | "stripe.package_dimensions.length" | "stripe.package_dimensions.height" | "stripe.package_dimensions.weight" | "stripe.package_dimensions.width">, {
|
|
1524
1230
|
byActive: ["stripe.active", "_creationTime"];
|
|
1525
1231
|
byName: ["stripe.name", "_creationTime"];
|
|
1526
1232
|
}, {}, {}>;
|
|
@@ -2020,8 +1726,8 @@ duration: "forever" | "once" | "repeating";
|
|
|
2020
1726
|
times_redeemed: number;
|
|
2021
1727
|
valid: boolean;
|
|
2022
1728
|
};
|
|
2023
|
-
code: string;
|
|
2024
1729
|
active: boolean;
|
|
1730
|
+
code: string;
|
|
2025
1731
|
restrictions: {
|
|
2026
1732
|
currency_options?: Record<string, {
|
|
2027
1733
|
minimum_amount?: number | null | undefined;
|
|
@@ -2068,8 +1774,8 @@ duration: "forever" | "once" | "repeating";
|
|
|
2068
1774
|
times_redeemed: number;
|
|
2069
1775
|
valid: boolean;
|
|
2070
1776
|
};
|
|
2071
|
-
code: string;
|
|
2072
1777
|
active: boolean;
|
|
1778
|
+
code: string;
|
|
2073
1779
|
restrictions: {
|
|
2074
1780
|
currency_options?: Record<string, {
|
|
2075
1781
|
minimum_amount?: number | null | undefined;
|
|
@@ -2166,7 +1872,7 @@ minimum_amount: VUnion<number | null | undefined, [VFloat64<number, "required">,
|
|
|
2166
1872
|
minimum_amount_currency: VUnion<string | null | undefined, [VString<string, "required">, VNull<null, "required">], "optional", never>;
|
|
2167
1873
|
}, "required", "currency_options" | `currency_options.${string}` | "minimum_amount" | "first_time_transaction" | "minimum_amount_currency">;
|
|
2168
1874
|
times_redeemed: VFloat64<number, "required">;
|
|
2169
|
-
}, "required", "object" | "id" | "customer" | "metadata" | "created" | "livemode" | `metadata.${string}` | "expires_at" | "max_redemptions" | "times_redeemed" | "coupon" | "
|
|
1875
|
+
}, "required", "object" | "id" | "customer" | "metadata" | "created" | "livemode" | `metadata.${string}` | "expires_at" | "max_redemptions" | "times_redeemed" | "coupon" | "active" | "code" | "restrictions" | "coupon.object" | "coupon.id" | "coupon.name" | "coupon.currency" | "coupon.metadata" | "coupon.created" | "coupon.livemode" | `coupon.metadata.${string}` | "coupon.amount_off" | "coupon.duration" | "coupon.percent_off" | "coupon.applies_to" | "coupon.currency_options" | "coupon.duration_in_months" | "coupon.max_redemptions" | "coupon.redeem_by" | "coupon.times_redeemed" | "coupon.valid" | "coupon.applies_to.products" | `coupon.currency_options.${string}` | "restrictions.currency_options" | `restrictions.currency_options.${string}` | "restrictions.minimum_amount" | "restrictions.first_time_transaction" | "restrictions.minimum_amount_currency">;
|
|
2170
1876
|
lastSyncedAt: VFloat64<number, "required">;
|
|
2171
1877
|
}, "required", "stripe" | "lastSyncedAt" | "stripe.object" | "stripe.id" | "stripe.metadata" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.active" | "stripe.max_redemptions" | "stripe.times_redeemed" | "promotionCodeId" | "stripe.customer" | "stripe.expires_at" | "stripe.coupon" | "stripe.code" | "stripe.restrictions" | "stripe.coupon.object" | "stripe.coupon.id" | "stripe.coupon.name" | "stripe.coupon.currency" | "stripe.coupon.metadata" | "stripe.coupon.created" | "stripe.coupon.livemode" | `stripe.coupon.metadata.${string}` | "stripe.coupon.amount_off" | "stripe.coupon.duration" | "stripe.coupon.percent_off" | "stripe.coupon.applies_to" | "stripe.coupon.currency_options" | "stripe.coupon.duration_in_months" | "stripe.coupon.max_redemptions" | "stripe.coupon.redeem_by" | "stripe.coupon.times_redeemed" | "stripe.coupon.valid" | "stripe.coupon.applies_to.products" | `stripe.coupon.currency_options.${string}` | "stripe.restrictions.currency_options" | `stripe.restrictions.currency_options.${string}` | "stripe.restrictions.minimum_amount" | "stripe.restrictions.first_time_transaction" | "stripe.restrictions.minimum_amount_currency">, {
|
|
2172
1878
|
byPromotionCodeId: ["promotionCodeId", "_creationTime"];
|
|
@@ -2404,11 +2110,7 @@ allow_redirects?: "always" | "never" | null | undefined;
|
|
|
2404
2110
|
enabled: boolean;
|
|
2405
2111
|
} | null | undefined;
|
|
2406
2112
|
next_action?: any;
|
|
2407
|
-
amount_details?:
|
|
2408
|
-
tip?: {
|
|
2409
|
-
amount?: number | null | undefined;
|
|
2410
|
-
} | null | undefined;
|
|
2411
|
-
} | null | undefined;
|
|
2113
|
+
amount_details?: any;
|
|
2412
2114
|
canceled_at?: number | null | undefined;
|
|
2413
2115
|
cancellation_reason?: "expired" | "duplicate" | "fraudulent" | "abandoned" | "automatic" | "failed_invoice" | "requested_by_customer" | "void_invoice" | null | undefined;
|
|
2414
2116
|
object: string;
|
|
@@ -2475,11 +2177,7 @@ allow_redirects?: "always" | "never" | null | undefined;
|
|
|
2475
2177
|
enabled: boolean;
|
|
2476
2178
|
} | null | undefined;
|
|
2477
2179
|
next_action?: any;
|
|
2478
|
-
amount_details?:
|
|
2479
|
-
tip?: {
|
|
2480
|
-
amount?: number | null | undefined;
|
|
2481
|
-
} | null | undefined;
|
|
2482
|
-
} | null | undefined;
|
|
2180
|
+
amount_details?: any;
|
|
2483
2181
|
canceled_at?: number | null | undefined;
|
|
2484
2182
|
cancellation_reason?: "expired" | "duplicate" | "fraudulent" | "abandoned" | "automatic" | "failed_invoice" | "requested_by_customer" | "void_invoice" | null | undefined;
|
|
2485
2183
|
object: string;
|
|
@@ -2571,23 +2269,7 @@ statement_descriptor_suffix: VUnion<string | null | undefined, [VString<string,
|
|
|
2571
2269
|
status: VUnion<"succeeded" | "canceled" | "processing" | "requires_action" | "requires_capture" | "requires_confirmation" | "requires_payment_method", [VLiteral<"canceled", "required">, VLiteral<"processing", "required">, VLiteral<"requires_action", "required">, VLiteral<"requires_capture", "required">, VLiteral<"requires_confirmation", "required">, VLiteral<"requires_payment_method", "required">, VLiteral<"succeeded", "required">], "required", never>;
|
|
2572
2270
|
object: VString<string, "required">;
|
|
2573
2271
|
amount_capturable: VFloat64<number, "required">;
|
|
2574
|
-
amount_details: VUnion<
|
|
2575
|
-
tip?: {
|
|
2576
|
-
amount?: number | null | undefined;
|
|
2577
|
-
} | null | undefined;
|
|
2578
|
-
} | null | undefined, [VObject< {
|
|
2579
|
-
tip?: {
|
|
2580
|
-
amount?: number | null | undefined;
|
|
2581
|
-
} | null | undefined;
|
|
2582
|
-
}, {
|
|
2583
|
-
tip: VUnion< {
|
|
2584
|
-
amount?: number | null | undefined;
|
|
2585
|
-
} | null | undefined, [VObject< {
|
|
2586
|
-
amount?: number | null | undefined;
|
|
2587
|
-
}, {
|
|
2588
|
-
amount: VUnion<number | null | undefined, [VFloat64<number, "required">, VNull<null, "required">], "optional", never>;
|
|
2589
|
-
}, "required", "amount">, VNull<null, "required">], "optional", "amount">;
|
|
2590
|
-
}, "required", "tip" | "tip.amount">, VNull<null, "required">], "optional", "tip" | "tip.amount">;
|
|
2272
|
+
amount_details: VUnion<any, [VNull<null, "required">, VAny<any, "required", string>], "optional", string>;
|
|
2591
2273
|
amount_received: VFloat64<number, "required">;
|
|
2592
2274
|
application: VUnion<string | null | undefined, [VString<string, "required">, VNull<null, "required">], "optional", never>;
|
|
2593
2275
|
application_fee_amount: VUnion<number | null | undefined, [VFloat64<number, "required">, VNull<null, "required">], "optional", never>;
|
|
@@ -2616,9 +2298,9 @@ processing: VAny<any, "optional", string>;
|
|
|
2616
2298
|
review: VUnion<string | null | undefined, [VString<string, "required">, VNull<null, "required">], "optional", never>;
|
|
2617
2299
|
transfer_data: VAny<any, "optional", string>;
|
|
2618
2300
|
transfer_group: VUnion<string | null | undefined, [VString<string, "required">, VNull<null, "required">], "optional", never>;
|
|
2619
|
-
}, "required", "object" | "id" | "amount" | "currency" | "customer" | "description" | "metadata" | "receipt_email" | "shipping" | "statement_descriptor" | "statement_descriptor_suffix" | "status" | "application" | "application_fee_amount" | "created" | "livemode" | "on_behalf_of" | "payment_method" | "presentment_details" | "review" | "transfer_data" | "transfer_group" | `metadata.${string}` | `shipping.${string}` | `presentment_details.${string}` | `transfer_data.${string}` | "client_secret" | "payment_method_configuration_details" | "payment_method_options" | "payment_method_types" | `payment_method_options.${string}` | "last_payment_error" | "latest_charge" | "processing" | "automatic_payment_methods" | "next_action" | "setup_future_usage" | "amount_capturable" | "amount_details" | "amount_received" | "canceled_at" | "cancellation_reason" | "capture_method" | "confirmation_method" | "excluded_payment_method_types" | "payment_method_configuration_details.id" | "payment_method_configuration_details.parent" | "last_payment_error.type" | "last_payment_error.payment_method" | "last_payment_error.charge" | "last_payment_error.advice_code" | "last_payment_error.code" | "last_payment_error.decline_code" | "last_payment_error.doc_url" | "last_payment_error.message" | "last_payment_error.network_advice_code" | "last_payment_error.network_decline_code" | "last_payment_error.param" | "last_payment_error.payment_method_type" | "last_payment_error.last_payment_error" | "last_payment_error.latest_charge" | `last_payment_error.payment_method.${string}` | `last_payment_error.last_payment_error.${string}` | `processing.${string}` | "automatic_payment_methods.enabled" | "automatic_payment_methods.allow_redirects" | `next_action.${string}` |
|
|
2301
|
+
}, "required", "object" | "id" | "amount" | "currency" | "customer" | "description" | "metadata" | "receipt_email" | "shipping" | "statement_descriptor" | "statement_descriptor_suffix" | "status" | "application" | "application_fee_amount" | "created" | "livemode" | "on_behalf_of" | "payment_method" | "presentment_details" | "review" | "transfer_data" | "transfer_group" | `metadata.${string}` | `shipping.${string}` | `presentment_details.${string}` | `transfer_data.${string}` | "client_secret" | "payment_method_configuration_details" | "payment_method_options" | "payment_method_types" | `payment_method_options.${string}` | "last_payment_error" | "latest_charge" | "processing" | "automatic_payment_methods" | "next_action" | "setup_future_usage" | "amount_capturable" | "amount_details" | "amount_received" | "canceled_at" | "cancellation_reason" | "capture_method" | "confirmation_method" | "excluded_payment_method_types" | "payment_method_configuration_details.id" | "payment_method_configuration_details.parent" | "last_payment_error.type" | "last_payment_error.payment_method" | "last_payment_error.charge" | "last_payment_error.advice_code" | "last_payment_error.code" | "last_payment_error.decline_code" | "last_payment_error.doc_url" | "last_payment_error.message" | "last_payment_error.network_advice_code" | "last_payment_error.network_decline_code" | "last_payment_error.param" | "last_payment_error.payment_method_type" | "last_payment_error.last_payment_error" | "last_payment_error.latest_charge" | `last_payment_error.payment_method.${string}` | `last_payment_error.last_payment_error.${string}` | `processing.${string}` | "automatic_payment_methods.enabled" | "automatic_payment_methods.allow_redirects" | `next_action.${string}` | `amount_details.${string}`>;
|
|
2620
2302
|
lastSyncedAt: VFloat64<number, "required">;
|
|
2621
|
-
}, "required", "stripe" | "lastSyncedAt" | "stripe.object" | "stripe.id" | "stripe.description" | "stripe.metadata" | "stripe.statement_descriptor" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.currency" | "stripe.shipping" | "stripe.customer" | "stripe.amount" | "stripe.status" | "stripe.application_fee_amount" | "stripe.next_action" | `stripe.next_action.${string}` | "paymentIntentId" | "stripe.receipt_email" | "stripe.statement_descriptor_suffix" | "stripe.application" | "stripe.on_behalf_of" | "stripe.payment_method" | "stripe.presentment_details" | "stripe.review" | "stripe.transfer_data" | "stripe.transfer_group" | `stripe.shipping.${string}` | `stripe.presentment_details.${string}` | `stripe.transfer_data.${string}` | "stripe.client_secret" | "stripe.payment_method_configuration_details" | "stripe.payment_method_options" | "stripe.payment_method_types" | `stripe.payment_method_options.${string}` | "stripe.last_payment_error" | "stripe.latest_charge" | "stripe.processing" | "stripe.automatic_payment_methods" | "stripe.setup_future_usage" | "stripe.amount_capturable" | "stripe.amount_details" | "stripe.amount_received" | "stripe.canceled_at" | "stripe.cancellation_reason" | "stripe.capture_method" | "stripe.confirmation_method" | "stripe.excluded_payment_method_types" | "stripe.payment_method_configuration_details.id" | "stripe.payment_method_configuration_details.parent" | "stripe.last_payment_error.type" | "stripe.last_payment_error.payment_method" | "stripe.last_payment_error.charge" | "stripe.last_payment_error.advice_code" | "stripe.last_payment_error.code" | "stripe.last_payment_error.decline_code" | "stripe.last_payment_error.doc_url" | "stripe.last_payment_error.message" | "stripe.last_payment_error.network_advice_code" | "stripe.last_payment_error.network_decline_code" | "stripe.last_payment_error.param" | "stripe.last_payment_error.payment_method_type" | "stripe.last_payment_error.last_payment_error" | "stripe.last_payment_error.latest_charge" | `stripe.last_payment_error.payment_method.${string}` | `stripe.last_payment_error.last_payment_error.${string}` | `stripe.processing.${string}` | "stripe.automatic_payment_methods.enabled" | "stripe.automatic_payment_methods.allow_redirects" |
|
|
2303
|
+
}, "required", "stripe" | "lastSyncedAt" | "stripe.object" | "stripe.id" | "stripe.description" | "stripe.metadata" | "stripe.statement_descriptor" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.currency" | "stripe.shipping" | "stripe.customer" | "stripe.amount" | "stripe.status" | "stripe.application_fee_amount" | "stripe.next_action" | `stripe.next_action.${string}` | "paymentIntentId" | "stripe.receipt_email" | "stripe.statement_descriptor_suffix" | "stripe.application" | "stripe.on_behalf_of" | "stripe.payment_method" | "stripe.presentment_details" | "stripe.review" | "stripe.transfer_data" | "stripe.transfer_group" | `stripe.shipping.${string}` | `stripe.presentment_details.${string}` | `stripe.transfer_data.${string}` | "stripe.client_secret" | "stripe.payment_method_configuration_details" | "stripe.payment_method_options" | "stripe.payment_method_types" | `stripe.payment_method_options.${string}` | "stripe.last_payment_error" | "stripe.latest_charge" | "stripe.processing" | "stripe.automatic_payment_methods" | "stripe.setup_future_usage" | "stripe.amount_capturable" | "stripe.amount_details" | "stripe.amount_received" | "stripe.canceled_at" | "stripe.cancellation_reason" | "stripe.capture_method" | "stripe.confirmation_method" | "stripe.excluded_payment_method_types" | "stripe.payment_method_configuration_details.id" | "stripe.payment_method_configuration_details.parent" | "stripe.last_payment_error.type" | "stripe.last_payment_error.payment_method" | "stripe.last_payment_error.charge" | "stripe.last_payment_error.advice_code" | "stripe.last_payment_error.code" | "stripe.last_payment_error.decline_code" | "stripe.last_payment_error.doc_url" | "stripe.last_payment_error.message" | "stripe.last_payment_error.network_advice_code" | "stripe.last_payment_error.network_decline_code" | "stripe.last_payment_error.param" | "stripe.last_payment_error.payment_method_type" | "stripe.last_payment_error.last_payment_error" | "stripe.last_payment_error.latest_charge" | `stripe.last_payment_error.payment_method.${string}` | `stripe.last_payment_error.last_payment_error.${string}` | `stripe.processing.${string}` | "stripe.automatic_payment_methods.enabled" | "stripe.automatic_payment_methods.allow_redirects" | `stripe.amount_details.${string}`>, {
|
|
2622
2304
|
byPaymentIntentId: ["paymentIntentId", "_creationTime"];
|
|
2623
2305
|
}, {}, {}>;
|
|
2624
2306
|
stripeCheckoutSessions: TableDefinition<VObject< {
|
|
@@ -3178,8 +2860,8 @@ stripePlans: TableDefinition<VObject< {
|
|
|
3178
2860
|
stripe: {
|
|
3179
2861
|
amount?: number | null | undefined;
|
|
3180
2862
|
metadata?: Record<string, string | number | null> | null | undefined;
|
|
3181
|
-
nickname?: string | null | undefined;
|
|
3182
2863
|
product?: string | null | undefined;
|
|
2864
|
+
nickname?: string | null | undefined;
|
|
3183
2865
|
amount_decimal?: string | null | undefined;
|
|
3184
2866
|
meter?: string | null | undefined;
|
|
3185
2867
|
tiers?: any[] | null | undefined;
|
|
@@ -3207,8 +2889,8 @@ planId: VString<string, "required">;
|
|
|
3207
2889
|
stripe: VObject< {
|
|
3208
2890
|
amount?: number | null | undefined;
|
|
3209
2891
|
metadata?: Record<string, string | number | null> | null | undefined;
|
|
3210
|
-
nickname?: string | null | undefined;
|
|
3211
2892
|
product?: string | null | undefined;
|
|
2893
|
+
nickname?: string | null | undefined;
|
|
3212
2894
|
amount_decimal?: string | null | undefined;
|
|
3213
2895
|
meter?: string | null | undefined;
|
|
3214
2896
|
tiers?: any[] | null | undefined;
|
|
@@ -3258,9 +2940,9 @@ round: VUnion<"up" | "down", [VLiteral<"up", "required">, VLiteral<"down", "requ
|
|
|
3258
2940
|
}, "required", "divide_by" | "round">, VNull<null, "required">], "optional", "divide_by" | "round">;
|
|
3259
2941
|
trial_period_days: VUnion<number | null | undefined, [VFloat64<number, "required">, VNull<null, "required">], "optional", never>;
|
|
3260
2942
|
usage_type: VString<string, "required">;
|
|
3261
|
-
}, "required", "object" | "id" | "amount" | "currency" | "metadata" | "created" | "livemode" | `metadata.${string}` | "active" | "
|
|
2943
|
+
}, "required", "object" | "id" | "amount" | "currency" | "metadata" | "created" | "livemode" | `metadata.${string}` | "active" | "product" | "interval" | "nickname" | "amount_decimal" | "billing_scheme" | "interval_count" | "meter" | "tiers" | "tiers_mode" | "transform_usage" | "trial_period_days" | "usage_type" | "transform_usage.divide_by" | "transform_usage.round">;
|
|
3262
2944
|
lastSyncedAt: VFloat64<number, "required">;
|
|
3263
|
-
}, "required", "stripe" | "lastSyncedAt" | "stripe.object" | "stripe.id" | "stripe.metadata" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.active" | "stripe.currency" | "stripe.nickname" | "stripe.billing_scheme" | "stripe.tiers_mode" | "stripe.amount" | "planId" | "stripe.
|
|
2945
|
+
}, "required", "stripe" | "lastSyncedAt" | "stripe.object" | "stripe.id" | "stripe.metadata" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.active" | "stripe.currency" | "stripe.nickname" | "stripe.billing_scheme" | "stripe.tiers_mode" | "stripe.amount" | "planId" | "stripe.product" | "stripe.interval" | "stripe.amount_decimal" | "stripe.interval_count" | "stripe.meter" | "stripe.tiers" | "stripe.transform_usage" | "stripe.trial_period_days" | "stripe.usage_type" | "stripe.transform_usage.divide_by" | "stripe.transform_usage.round">, {
|
|
3264
2946
|
byPlanId: ["planId", "_creationTime"];
|
|
3265
2947
|
}, {}, {}>;
|
|
3266
2948
|
stripeDisputes: TableDefinition<VObject< {
|
|
@@ -3469,6 +3151,7 @@ parent?: string | null | undefined;
|
|
|
3469
3151
|
id: string;
|
|
3470
3152
|
} | null | undefined;
|
|
3471
3153
|
payment_method_options?: any;
|
|
3154
|
+
mandate?: string | null | undefined;
|
|
3472
3155
|
automatic_payment_methods?: {
|
|
3473
3156
|
enabled?: boolean | null | undefined;
|
|
3474
3157
|
allow_redirects?: "always" | "never" | null | undefined;
|
|
@@ -3478,7 +3161,6 @@ cancellation_reason?: "duplicate" | "abandoned" | "requested_by_customer" | null
|
|
|
3478
3161
|
last_setup_error?: any;
|
|
3479
3162
|
attach_to_self?: boolean | null | undefined;
|
|
3480
3163
|
latest_attempt?: string | null | undefined;
|
|
3481
|
-
mandate?: string | null | undefined;
|
|
3482
3164
|
single_use_mandate?: string | null | undefined;
|
|
3483
3165
|
object: string;
|
|
3484
3166
|
id: string;
|
|
@@ -3506,6 +3188,7 @@ parent?: string | null | undefined;
|
|
|
3506
3188
|
id: string;
|
|
3507
3189
|
} | null | undefined;
|
|
3508
3190
|
payment_method_options?: any;
|
|
3191
|
+
mandate?: string | null | undefined;
|
|
3509
3192
|
automatic_payment_methods?: {
|
|
3510
3193
|
enabled?: boolean | null | undefined;
|
|
3511
3194
|
allow_redirects?: "always" | "never" | null | undefined;
|
|
@@ -3515,7 +3198,6 @@ cancellation_reason?: "duplicate" | "abandoned" | "requested_by_customer" | null
|
|
|
3515
3198
|
last_setup_error?: any;
|
|
3516
3199
|
attach_to_self?: boolean | null | undefined;
|
|
3517
3200
|
latest_attempt?: string | null | undefined;
|
|
3518
|
-
mandate?: string | null | undefined;
|
|
3519
3201
|
single_use_mandate?: string | null | undefined;
|
|
3520
3202
|
object: string;
|
|
3521
3203
|
id: string;
|
|
@@ -3569,9 +3251,9 @@ parent: VUnion<string | null | undefined, [VString<string, "required">, VNull<nu
|
|
|
3569
3251
|
payment_method_options: VAny<any, "optional", string>;
|
|
3570
3252
|
payment_method_types: VArray<string[], VString<string, "required">, "required">;
|
|
3571
3253
|
single_use_mandate: VUnion<string | null | undefined, [VString<string, "required">, VNull<null, "required">], "optional", never>;
|
|
3572
|
-
}, "required", "object" | "id" | "customer" | "description" | "metadata" | "status" | "application" | "created" | "livemode" | "on_behalf_of" | "payment_method" | `metadata.${string}` | "client_secret" | "payment_method_configuration_details" | "payment_method_options" | "payment_method_types" | `payment_method_options.${string}` | "automatic_payment_methods" | "next_action" | "cancellation_reason" | "payment_method_configuration_details.id" | "payment_method_configuration_details.parent" | "automatic_payment_methods.enabled" | "automatic_payment_methods.allow_redirects" | `next_action.${string}` | "last_setup_error" | "usage" | "attach_to_self" | "flow_directions" | "latest_attempt" | "
|
|
3254
|
+
}, "required", "object" | "id" | "customer" | "description" | "metadata" | "status" | "application" | "created" | "livemode" | "on_behalf_of" | "payment_method" | `metadata.${string}` | "client_secret" | "payment_method_configuration_details" | "payment_method_options" | "payment_method_types" | `payment_method_options.${string}` | "mandate" | "automatic_payment_methods" | "next_action" | "cancellation_reason" | "payment_method_configuration_details.id" | "payment_method_configuration_details.parent" | "automatic_payment_methods.enabled" | "automatic_payment_methods.allow_redirects" | `next_action.${string}` | "last_setup_error" | "usage" | "attach_to_self" | "flow_directions" | "latest_attempt" | "single_use_mandate" | `last_setup_error.${string}`>;
|
|
3573
3255
|
lastSyncedAt: VFloat64<number, "required">;
|
|
3574
|
-
}, "required", "stripe" | "lastSyncedAt" | "stripe.object" | "stripe.id" | "stripe.description" | "stripe.metadata" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.customer" | "stripe.status" | "stripe.next_action" | `stripe.next_action.${string}` | "stripe.application" | "stripe.on_behalf_of" | "stripe.payment_method" | "stripe.client_secret" | "stripe.payment_method_configuration_details" | "stripe.payment_method_options" | "stripe.payment_method_types" | `stripe.payment_method_options.${string}` | "stripe.automatic_payment_methods" | "stripe.cancellation_reason" | "stripe.payment_method_configuration_details.id" | "stripe.payment_method_configuration_details.parent" | "stripe.automatic_payment_methods.enabled" | "stripe.automatic_payment_methods.allow_redirects" | "setupIntentId" | "stripe.
|
|
3256
|
+
}, "required", "stripe" | "lastSyncedAt" | "stripe.object" | "stripe.id" | "stripe.description" | "stripe.metadata" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.customer" | "stripe.status" | "stripe.next_action" | `stripe.next_action.${string}` | "stripe.application" | "stripe.on_behalf_of" | "stripe.payment_method" | "stripe.client_secret" | "stripe.payment_method_configuration_details" | "stripe.payment_method_options" | "stripe.payment_method_types" | `stripe.payment_method_options.${string}` | "stripe.automatic_payment_methods" | "stripe.cancellation_reason" | "stripe.payment_method_configuration_details.id" | "stripe.payment_method_configuration_details.parent" | "stripe.automatic_payment_methods.enabled" | "stripe.automatic_payment_methods.allow_redirects" | "setupIntentId" | "stripe.mandate" | "stripe.last_setup_error" | "stripe.usage" | "stripe.attach_to_self" | "stripe.flow_directions" | "stripe.latest_attempt" | "stripe.single_use_mandate" | `stripe.last_setup_error.${string}`>, {
|
|
3575
3257
|
bySetupIntentId: ["setupIntentId", "_creationTime"];
|
|
3576
3258
|
}, {}, {}>;
|
|
3577
3259
|
stripeCreditNotes: TableDefinition<VObject< {
|
|
@@ -4200,7 +3882,7 @@ released_subscription?: string | null | undefined;
|
|
|
4200
3882
|
object: string;
|
|
4201
3883
|
id: string;
|
|
4202
3884
|
customer: string;
|
|
4203
|
-
status: "
|
|
3885
|
+
status: "active" | "canceled" | "completed" | "not_started" | "released";
|
|
4204
3886
|
created: number;
|
|
4205
3887
|
livemode: boolean;
|
|
4206
3888
|
billing_mode: {
|
|
@@ -4261,7 +3943,7 @@ released_subscription?: string | null | undefined;
|
|
|
4261
3943
|
object: string;
|
|
4262
3944
|
id: string;
|
|
4263
3945
|
customer: string;
|
|
4264
|
-
status: "
|
|
3946
|
+
status: "active" | "canceled" | "completed" | "not_started" | "released";
|
|
4265
3947
|
created: number;
|
|
4266
3948
|
livemode: boolean;
|
|
4267
3949
|
billing_mode: {
|
|
@@ -4284,7 +3966,7 @@ start_date: VFloat64<number, "required">;
|
|
|
4284
3966
|
customer: VString<string, "required">;
|
|
4285
3967
|
metadata: VUnion<Record<string, string | number | null> | null | undefined, [VRecord<Record<string, string | number | null>, VString<string, "required">, VUnion<string | number | null, [VString<string, "required">, VFloat64<number, "required">, VNull<null, "required">], "required", never>, "required", string>, VNull<null, "required">], "optional", string>;
|
|
4286
3968
|
phases: VAny<any, "optional", string>;
|
|
4287
|
-
status: VUnion<"
|
|
3969
|
+
status: VUnion<"active" | "canceled" | "completed" | "not_started" | "released", [VLiteral<"active", "required">, VLiteral<"canceled", "required">, VLiteral<"completed", "required">, VLiteral<"not_started", "required">, VLiteral<"released", "required">], "required", never>;
|
|
4288
3970
|
object: VString<string, "required">;
|
|
4289
3971
|
application: VUnion<string | null | undefined, [VString<string, "required">, VNull<null, "required">], "optional", never>;
|
|
4290
3972
|
billing_mode: VObject< {
|
|
@@ -4450,45 +4132,428 @@ lastSyncedAt: VFloat64<number, "required">;
|
|
|
4450
4132
|
}, "required", "stripe" | "lastSyncedAt" | "stripe.object" | "stripe.id" | "stripe.metadata" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.test_clock" | "stripe.customer" | "stripe.status" | "stripe.application" | "stripe.canceled_at" | "subscriptionScheduleId" | "stripe.current_phase" | "stripe.phases" | "stripe.billing_mode" | "stripe.completed_at" | "stripe.default_settings" | "stripe.end_behavior" | "stripe.released_at" | "stripe.released_subscription" | "stripe.current_phase.end_date" | "stripe.current_phase.start_date" | `stripe.phases.${string}` | "stripe.billing_mode.type" | "stripe.billing_mode.updated_at" | "stripe.default_settings.description" | "stripe.default_settings.on_behalf_of" | "stripe.default_settings.transfer_data" | "stripe.default_settings.automatic_tax" | "stripe.default_settings.invoice_settings" | "stripe.default_settings.collection_method" | "stripe.default_settings.default_payment_method" | "stripe.default_settings.application_fee_percent" | "stripe.default_settings.billing_cycle_anchor" | "stripe.default_settings.billing_thresholds" | "stripe.default_settings.transfer_data.destination" | "stripe.default_settings.transfer_data.amount_percent" | "stripe.default_settings.automatic_tax.enabled" | "stripe.default_settings.automatic_tax.disabled_reason" | "stripe.default_settings.automatic_tax.liability" | "stripe.default_settings.automatic_tax.liability.type" | "stripe.default_settings.automatic_tax.liability.account" | "stripe.default_settings.invoice_settings.account_tax_ids" | "stripe.default_settings.invoice_settings.issuer" | "stripe.default_settings.invoice_settings.days_until_due" | "stripe.default_settings.invoice_settings.issuer.type" | "stripe.default_settings.invoice_settings.issuer.account" | "stripe.default_settings.billing_thresholds.amount_gte" | "stripe.default_settings.billing_thresholds.reset_billing_cycle_anchor">, {
|
|
4451
4133
|
bySubscriptionScheduleId: ["subscriptionScheduleId", "_creationTime"];
|
|
4452
4134
|
}, {}, {}>;
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
|
|
4468
|
-
|
|
4469
|
-
|
|
4470
|
-
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4135
|
+
stripeMandates: TableDefinition<VObject< {
|
|
4136
|
+
stripe: {
|
|
4137
|
+
payment_method_details?: any;
|
|
4138
|
+
on_behalf_of?: string | null | undefined;
|
|
4139
|
+
multi_use?: any;
|
|
4140
|
+
single_use?: {
|
|
4141
|
+
amount: number;
|
|
4142
|
+
currency: string;
|
|
4143
|
+
} | null | undefined;
|
|
4144
|
+
object: string;
|
|
4145
|
+
type: "multi_use" | "single_use";
|
|
4146
|
+
id: string;
|
|
4147
|
+
status: "pending" | "active" | "inactive";
|
|
4148
|
+
livemode: boolean;
|
|
4149
|
+
payment_method: string;
|
|
4150
|
+
customer_acceptance: {
|
|
4151
|
+
accepted_at?: number | null | undefined;
|
|
4152
|
+
offline?: any;
|
|
4153
|
+
online?: {
|
|
4154
|
+
ip_address?: string | null | undefined;
|
|
4155
|
+
user_agent?: string | null | undefined;
|
|
4156
|
+
} | null | undefined;
|
|
4157
|
+
type: "offline" | "online";
|
|
4158
|
+
};
|
|
4159
|
+
};
|
|
4160
|
+
lastSyncedAt: number;
|
|
4161
|
+
mandateId: string;
|
|
4162
|
+
}, {
|
|
4163
|
+
mandateId: VString<string, "required">;
|
|
4164
|
+
stripe: VObject< {
|
|
4165
|
+
payment_method_details?: any;
|
|
4166
|
+
on_behalf_of?: string | null | undefined;
|
|
4167
|
+
multi_use?: any;
|
|
4168
|
+
single_use?: {
|
|
4169
|
+
amount: number;
|
|
4170
|
+
currency: string;
|
|
4171
|
+
} | null | undefined;
|
|
4172
|
+
object: string;
|
|
4173
|
+
type: "multi_use" | "single_use";
|
|
4174
|
+
id: string;
|
|
4175
|
+
status: "pending" | "active" | "inactive";
|
|
4176
|
+
livemode: boolean;
|
|
4177
|
+
payment_method: string;
|
|
4178
|
+
customer_acceptance: {
|
|
4179
|
+
accepted_at?: number | null | undefined;
|
|
4180
|
+
offline?: any;
|
|
4181
|
+
online?: {
|
|
4182
|
+
ip_address?: string | null | undefined;
|
|
4183
|
+
user_agent?: string | null | undefined;
|
|
4184
|
+
} | null | undefined;
|
|
4185
|
+
type: "offline" | "online";
|
|
4186
|
+
};
|
|
4187
|
+
}, {
|
|
4188
|
+
id: VString<string, "required">;
|
|
4189
|
+
customer_acceptance: VObject< {
|
|
4190
|
+
accepted_at?: number | null | undefined;
|
|
4191
|
+
offline?: any;
|
|
4192
|
+
online?: {
|
|
4193
|
+
ip_address?: string | null | undefined;
|
|
4194
|
+
user_agent?: string | null | undefined;
|
|
4195
|
+
} | null | undefined;
|
|
4196
|
+
type: "offline" | "online";
|
|
4197
|
+
}, {
|
|
4198
|
+
accepted_at: VUnion<number | null | undefined, [VFloat64<number, "required">, VNull<null, "required">], "optional", never>;
|
|
4199
|
+
offline: VAny<any, "optional", string>;
|
|
4200
|
+
online: VUnion< {
|
|
4201
|
+
ip_address?: string | null | undefined;
|
|
4202
|
+
user_agent?: string | null | undefined;
|
|
4203
|
+
} | null | undefined, [VObject< {
|
|
4204
|
+
ip_address?: string | null | undefined;
|
|
4205
|
+
user_agent?: string | null | undefined;
|
|
4206
|
+
}, {
|
|
4207
|
+
ip_address: VUnion<string | null | undefined, [VString<string, "required">, VNull<null, "required">], "optional", never>;
|
|
4208
|
+
user_agent: VUnion<string | null | undefined, [VString<string, "required">, VNull<null, "required">], "optional", never>;
|
|
4209
|
+
}, "required", "ip_address" | "user_agent">, VNull<null, "required">], "optional", "ip_address" | "user_agent">;
|
|
4210
|
+
type: VUnion<"offline" | "online", [VLiteral<"offline", "required">, VLiteral<"online", "required">], "required", never>;
|
|
4211
|
+
}, "required", "type" | "accepted_at" | "offline" | "online" | `offline.${string}` | "online.ip_address" | "online.user_agent">;
|
|
4212
|
+
payment_method: VString<string, "required">;
|
|
4213
|
+
payment_method_details: VAny<any, "optional", string>;
|
|
4214
|
+
status: VUnion<"pending" | "active" | "inactive", [VLiteral<"active", "required">, VLiteral<"inactive", "required">, VLiteral<"pending", "required">], "required", never>;
|
|
4215
|
+
type: VUnion<"multi_use" | "single_use", [VLiteral<"multi_use", "required">, VLiteral<"single_use", "required">], "required", never>;
|
|
4216
|
+
object: VString<string, "required">;
|
|
4217
|
+
livemode: VBoolean<boolean, "required">;
|
|
4218
|
+
multi_use: VAny<any, "optional", string>;
|
|
4219
|
+
on_behalf_of: VUnion<string | null | undefined, [VString<string, "required">, VNull<null, "required">], "optional", never>;
|
|
4220
|
+
single_use: VUnion< {
|
|
4221
|
+
amount: number;
|
|
4222
|
+
currency: string;
|
|
4223
|
+
} | null | undefined, [VObject< {
|
|
4224
|
+
amount: number;
|
|
4225
|
+
currency: string;
|
|
4226
|
+
}, {
|
|
4227
|
+
amount: VFloat64<number, "required">;
|
|
4228
|
+
currency: VString<string, "required">;
|
|
4229
|
+
}, "required", "amount" | "currency">, VNull<null, "required">], "optional", "amount" | "currency">;
|
|
4230
|
+
}, "required", "object" | "type" | "id" | "payment_method_details" | "status" | "livemode" | "on_behalf_of" | "payment_method" | `payment_method_details.${string}` | "multi_use" | "single_use" | "customer_acceptance" | `multi_use.${string}` | "single_use.amount" | "single_use.currency" | "customer_acceptance.type" | "customer_acceptance.accepted_at" | "customer_acceptance.offline" | "customer_acceptance.online" | `customer_acceptance.offline.${string}` | "customer_acceptance.online.ip_address" | "customer_acceptance.online.user_agent">;
|
|
4231
|
+
lastSyncedAt: VFloat64<number, "required">;
|
|
4232
|
+
}, "required", "stripe" | "lastSyncedAt" | "stripe.object" | "stripe.id" | "stripe.livemode" | "stripe.type" | "stripe.status" | "stripe.on_behalf_of" | "stripe.payment_method" | "stripe.payment_method_details" | `stripe.payment_method_details.${string}` | "mandateId" | "stripe.multi_use" | "stripe.single_use" | "stripe.customer_acceptance" | `stripe.multi_use.${string}` | "stripe.single_use.amount" | "stripe.single_use.currency" | "stripe.customer_acceptance.type" | "stripe.customer_acceptance.accepted_at" | "stripe.customer_acceptance.offline" | "stripe.customer_acceptance.online" | `stripe.customer_acceptance.offline.${string}` | "stripe.customer_acceptance.online.ip_address" | "stripe.customer_acceptance.online.user_agent">, {
|
|
4233
|
+
byMandateId: ["mandateId", "_creationTime"];
|
|
4234
|
+
}, {}, {}>;
|
|
4235
|
+
stripeBillingPortalConfigurations: TableDefinition<VObject< {
|
|
4236
|
+
stripe: {
|
|
4237
|
+
object: string;
|
|
4238
|
+
id: string;
|
|
4239
|
+
name: string | null;
|
|
4240
|
+
metadata: Record<string, string | number | null> | null;
|
|
4241
|
+
application: string | null;
|
|
4242
|
+
created: number;
|
|
4243
|
+
livemode: boolean;
|
|
4244
|
+
active: boolean;
|
|
4245
|
+
business_profile: {
|
|
4246
|
+
headline: string | null;
|
|
4247
|
+
privacy_policy_url: string | null;
|
|
4248
|
+
terms_of_service_url: string | null;
|
|
4249
|
+
};
|
|
4250
|
+
default_return_url: string | null;
|
|
4251
|
+
features: {
|
|
4252
|
+
subscription_update: {
|
|
4253
|
+
products?: {
|
|
4254
|
+
adjustable_quantity: {
|
|
4255
|
+
enabled: boolean;
|
|
4256
|
+
maximum: number | null;
|
|
4257
|
+
minimum: number | null;
|
|
4258
|
+
};
|
|
4259
|
+
prices: string[];
|
|
4260
|
+
product: string;
|
|
4261
|
+
}[] | null | undefined;
|
|
4262
|
+
enabled: boolean;
|
|
4263
|
+
proration_behavior: "none" | "always_invoice" | "create_prorations";
|
|
4264
|
+
default_allowed_updates: ("price" | "promotion_code" | "quantity")[];
|
|
4265
|
+
schedule_at_period_end: {
|
|
4266
|
+
conditions: {
|
|
4267
|
+
type: "decreasing_item_amount" | "shortening_interval";
|
|
4268
|
+
}[];
|
|
4269
|
+
};
|
|
4270
|
+
};
|
|
4271
|
+
customer_update: {
|
|
4272
|
+
enabled: boolean;
|
|
4273
|
+
allowed_updated: ("address" | "email" | "name" | "phone" | "tax_id" | "shipping")[];
|
|
4274
|
+
};
|
|
4275
|
+
invoice_history: {
|
|
4276
|
+
enabled: boolean;
|
|
4277
|
+
};
|
|
4278
|
+
payment_method_update: {
|
|
4279
|
+
enabled: boolean;
|
|
4280
|
+
};
|
|
4281
|
+
subscription_cancel: {
|
|
4282
|
+
mode: "at_period_end" | "immediately";
|
|
4283
|
+
enabled: boolean;
|
|
4284
|
+
cancellation_reason: {
|
|
4285
|
+
enabled: boolean;
|
|
4286
|
+
options: ("customer_service" | "low_quality" | "missing_features" | "other" | "switched_service" | "too_complex" | "too_expensive" | "unused")[];
|
|
4287
|
+
};
|
|
4288
|
+
proration_behavior: "none" | "always_invoice" | "create_prorations";
|
|
4289
|
+
};
|
|
4290
|
+
};
|
|
4291
|
+
is_default: boolean;
|
|
4292
|
+
login_page: {
|
|
4293
|
+
url: string | null;
|
|
4294
|
+
enabled: boolean;
|
|
4295
|
+
};
|
|
4296
|
+
updated: number;
|
|
4297
|
+
};
|
|
4298
|
+
lastSyncedAt: number;
|
|
4299
|
+
billingPortalConfigurationId: string;
|
|
4300
|
+
}, {
|
|
4301
|
+
billingPortalConfigurationId: VString<string, "required">;
|
|
4302
|
+
stripe: VObject< {
|
|
4303
|
+
object: string;
|
|
4304
|
+
id: string;
|
|
4305
|
+
name: string | null;
|
|
4306
|
+
metadata: Record<string, string | number | null> | null;
|
|
4307
|
+
application: string | null;
|
|
4308
|
+
created: number;
|
|
4309
|
+
livemode: boolean;
|
|
4310
|
+
active: boolean;
|
|
4311
|
+
business_profile: {
|
|
4312
|
+
headline: string | null;
|
|
4313
|
+
privacy_policy_url: string | null;
|
|
4314
|
+
terms_of_service_url: string | null;
|
|
4315
|
+
};
|
|
4316
|
+
default_return_url: string | null;
|
|
4317
|
+
features: {
|
|
4318
|
+
subscription_update: {
|
|
4319
|
+
products?: {
|
|
4320
|
+
adjustable_quantity: {
|
|
4321
|
+
enabled: boolean;
|
|
4322
|
+
maximum: number | null;
|
|
4323
|
+
minimum: number | null;
|
|
4324
|
+
};
|
|
4325
|
+
prices: string[];
|
|
4326
|
+
product: string;
|
|
4327
|
+
}[] | null | undefined;
|
|
4328
|
+
enabled: boolean;
|
|
4329
|
+
proration_behavior: "none" | "always_invoice" | "create_prorations";
|
|
4330
|
+
default_allowed_updates: ("price" | "promotion_code" | "quantity")[];
|
|
4331
|
+
schedule_at_period_end: {
|
|
4332
|
+
conditions: {
|
|
4333
|
+
type: "decreasing_item_amount" | "shortening_interval";
|
|
4334
|
+
}[];
|
|
4335
|
+
};
|
|
4336
|
+
};
|
|
4337
|
+
customer_update: {
|
|
4338
|
+
enabled: boolean;
|
|
4339
|
+
allowed_updated: ("address" | "email" | "name" | "phone" | "tax_id" | "shipping")[];
|
|
4340
|
+
};
|
|
4341
|
+
invoice_history: {
|
|
4342
|
+
enabled: boolean;
|
|
4343
|
+
};
|
|
4344
|
+
payment_method_update: {
|
|
4345
|
+
enabled: boolean;
|
|
4346
|
+
};
|
|
4347
|
+
subscription_cancel: {
|
|
4348
|
+
mode: "at_period_end" | "immediately";
|
|
4349
|
+
enabled: boolean;
|
|
4350
|
+
cancellation_reason: {
|
|
4351
|
+
enabled: boolean;
|
|
4352
|
+
options: ("customer_service" | "low_quality" | "missing_features" | "other" | "switched_service" | "too_complex" | "too_expensive" | "unused")[];
|
|
4353
|
+
};
|
|
4354
|
+
proration_behavior: "none" | "always_invoice" | "create_prorations";
|
|
4355
|
+
};
|
|
4356
|
+
};
|
|
4357
|
+
is_default: boolean;
|
|
4358
|
+
login_page: {
|
|
4359
|
+
url: string | null;
|
|
4360
|
+
enabled: boolean;
|
|
4361
|
+
};
|
|
4362
|
+
updated: number;
|
|
4363
|
+
}, {
|
|
4364
|
+
id: VString<string, "required">;
|
|
4365
|
+
object: VString<string, "required">;
|
|
4366
|
+
active: VBoolean<boolean, "required">;
|
|
4367
|
+
application: VUnion<string | null, [VNull<null, "required">, VString<string, "required">], "required", never>;
|
|
4368
|
+
business_profile: VObject< {
|
|
4369
|
+
headline: string | null;
|
|
4370
|
+
privacy_policy_url: string | null;
|
|
4371
|
+
terms_of_service_url: string | null;
|
|
4372
|
+
}, {
|
|
4373
|
+
headline: VUnion<string | null, [VString<string, "required">, VNull<null, "required">], "required", never>;
|
|
4374
|
+
privacy_policy_url: VUnion<string | null, [VString<string, "required">, VNull<null, "required">], "required", never>;
|
|
4375
|
+
terms_of_service_url: VUnion<string | null, [VString<string, "required">, VNull<null, "required">], "required", never>;
|
|
4376
|
+
}, "required", "headline" | "privacy_policy_url" | "terms_of_service_url">;
|
|
4377
|
+
created: VFloat64<number, "required">;
|
|
4378
|
+
default_return_url: VUnion<string | null, [VString<string, "required">, VNull<null, "required">], "required", never>;
|
|
4379
|
+
features: VObject< {
|
|
4380
|
+
subscription_update: {
|
|
4381
|
+
products?: {
|
|
4382
|
+
adjustable_quantity: {
|
|
4383
|
+
enabled: boolean;
|
|
4384
|
+
maximum: number | null;
|
|
4385
|
+
minimum: number | null;
|
|
4386
|
+
};
|
|
4387
|
+
prices: string[];
|
|
4388
|
+
product: string;
|
|
4389
|
+
}[] | null | undefined;
|
|
4390
|
+
enabled: boolean;
|
|
4391
|
+
proration_behavior: "none" | "always_invoice" | "create_prorations";
|
|
4392
|
+
default_allowed_updates: ("price" | "promotion_code" | "quantity")[];
|
|
4393
|
+
schedule_at_period_end: {
|
|
4394
|
+
conditions: {
|
|
4395
|
+
type: "decreasing_item_amount" | "shortening_interval";
|
|
4396
|
+
}[];
|
|
4397
|
+
};
|
|
4398
|
+
};
|
|
4399
|
+
customer_update: {
|
|
4400
|
+
enabled: boolean;
|
|
4401
|
+
allowed_updated: ("address" | "email" | "name" | "phone" | "tax_id" | "shipping")[];
|
|
4402
|
+
};
|
|
4403
|
+
invoice_history: {
|
|
4404
|
+
enabled: boolean;
|
|
4405
|
+
};
|
|
4406
|
+
payment_method_update: {
|
|
4407
|
+
enabled: boolean;
|
|
4408
|
+
};
|
|
4409
|
+
subscription_cancel: {
|
|
4410
|
+
mode: "at_period_end" | "immediately";
|
|
4411
|
+
enabled: boolean;
|
|
4412
|
+
cancellation_reason: {
|
|
4413
|
+
enabled: boolean;
|
|
4414
|
+
options: ("customer_service" | "low_quality" | "missing_features" | "other" | "switched_service" | "too_complex" | "too_expensive" | "unused")[];
|
|
4415
|
+
};
|
|
4416
|
+
proration_behavior: "none" | "always_invoice" | "create_prorations";
|
|
4417
|
+
};
|
|
4418
|
+
}, {
|
|
4419
|
+
customer_update: VObject< {
|
|
4420
|
+
enabled: boolean;
|
|
4421
|
+
allowed_updated: ("address" | "email" | "name" | "phone" | "tax_id" | "shipping")[];
|
|
4422
|
+
}, {
|
|
4423
|
+
allowed_updated: VArray<("address" | "email" | "name" | "phone" | "tax_id" | "shipping")[], VUnion<"address" | "email" | "name" | "phone" | "tax_id" | "shipping", [VLiteral<"address", "required">, VLiteral<"email", "required">, VLiteral<"name", "required">, VLiteral<"phone", "required">, VLiteral<"shipping", "required">, VLiteral<"tax_id", "required">], "required", never>, "required">;
|
|
4424
|
+
enabled: VBoolean<boolean, "required">;
|
|
4425
|
+
}, "required", "enabled" | "allowed_updated">;
|
|
4426
|
+
invoice_history: VObject< {
|
|
4427
|
+
enabled: boolean;
|
|
4428
|
+
}, {
|
|
4429
|
+
enabled: VBoolean<boolean, "required">;
|
|
4430
|
+
}, "required", "enabled">;
|
|
4431
|
+
payment_method_update: VObject< {
|
|
4432
|
+
enabled: boolean;
|
|
4433
|
+
}, {
|
|
4434
|
+
enabled: VBoolean<boolean, "required">;
|
|
4435
|
+
}, "required", "enabled">;
|
|
4436
|
+
subscription_cancel: VObject< {
|
|
4437
|
+
mode: "at_period_end" | "immediately";
|
|
4438
|
+
enabled: boolean;
|
|
4439
|
+
cancellation_reason: {
|
|
4440
|
+
enabled: boolean;
|
|
4441
|
+
options: ("customer_service" | "low_quality" | "missing_features" | "other" | "switched_service" | "too_complex" | "too_expensive" | "unused")[];
|
|
4442
|
+
};
|
|
4443
|
+
proration_behavior: "none" | "always_invoice" | "create_prorations";
|
|
4444
|
+
}, {
|
|
4445
|
+
cancellation_reason: VObject< {
|
|
4446
|
+
enabled: boolean;
|
|
4447
|
+
options: ("customer_service" | "low_quality" | "missing_features" | "other" | "switched_service" | "too_complex" | "too_expensive" | "unused")[];
|
|
4448
|
+
}, {
|
|
4449
|
+
enabled: VBoolean<boolean, "required">;
|
|
4450
|
+
options: VArray<("customer_service" | "low_quality" | "missing_features" | "other" | "switched_service" | "too_complex" | "too_expensive" | "unused")[], VUnion<"customer_service" | "low_quality" | "missing_features" | "other" | "switched_service" | "too_complex" | "too_expensive" | "unused", [VLiteral<"customer_service", "required">, VLiteral<"low_quality", "required">, VLiteral<"missing_features", "required">, VLiteral<"other", "required">, VLiteral<"switched_service", "required">, VLiteral<"too_complex", "required">, VLiteral<"too_expensive", "required">, VLiteral<"unused", "required">], "required", never>, "required">;
|
|
4451
|
+
}, "required", "enabled" | "options">;
|
|
4452
|
+
enabled: VBoolean<boolean, "required">;
|
|
4453
|
+
mode: VUnion<"at_period_end" | "immediately", [VLiteral<"at_period_end", "required">, VLiteral<"immediately", "required">], "required", never>;
|
|
4454
|
+
proration_behavior: VUnion<"none" | "always_invoice" | "create_prorations", [VLiteral<"always_invoice", "required">, VLiteral<"create_prorations", "required">, VLiteral<"none", "required">], "required", never>;
|
|
4455
|
+
}, "required", "mode" | "enabled" | "cancellation_reason" | "proration_behavior" | "cancellation_reason.enabled" | "cancellation_reason.options">;
|
|
4456
|
+
subscription_update: VObject< {
|
|
4457
|
+
products?: {
|
|
4458
|
+
adjustable_quantity: {
|
|
4459
|
+
enabled: boolean;
|
|
4460
|
+
maximum: number | null;
|
|
4461
|
+
minimum: number | null;
|
|
4462
|
+
};
|
|
4463
|
+
prices: string[];
|
|
4464
|
+
product: string;
|
|
4465
|
+
}[] | null | undefined;
|
|
4466
|
+
enabled: boolean;
|
|
4467
|
+
proration_behavior: "none" | "always_invoice" | "create_prorations";
|
|
4468
|
+
default_allowed_updates: ("price" | "promotion_code" | "quantity")[];
|
|
4469
|
+
schedule_at_period_end: {
|
|
4470
|
+
conditions: {
|
|
4471
|
+
type: "decreasing_item_amount" | "shortening_interval";
|
|
4472
|
+
}[];
|
|
4473
|
+
};
|
|
4474
|
+
}, {
|
|
4475
|
+
default_allowed_updates: VArray<("price" | "promotion_code" | "quantity")[], VUnion<"price" | "promotion_code" | "quantity", [VLiteral<"price", "required">, VLiteral<"promotion_code", "required">, VLiteral<"quantity", "required">], "required", never>, "required">;
|
|
4476
|
+
enabled: VBoolean<boolean, "required">;
|
|
4477
|
+
products: VUnion< {
|
|
4478
|
+
adjustable_quantity: {
|
|
4479
|
+
enabled: boolean;
|
|
4480
|
+
maximum: number | null;
|
|
4481
|
+
minimum: number | null;
|
|
4482
|
+
};
|
|
4483
|
+
prices: string[];
|
|
4484
|
+
product: string;
|
|
4485
|
+
}[] | null | undefined, [VNull<null, "required">, VArray< {
|
|
4486
|
+
adjustable_quantity: {
|
|
4487
|
+
enabled: boolean;
|
|
4488
|
+
maximum: number | null;
|
|
4489
|
+
minimum: number | null;
|
|
4490
|
+
};
|
|
4491
|
+
prices: string[];
|
|
4492
|
+
product: string;
|
|
4493
|
+
}[], VObject< {
|
|
4494
|
+
adjustable_quantity: {
|
|
4495
|
+
enabled: boolean;
|
|
4496
|
+
maximum: number | null;
|
|
4497
|
+
minimum: number | null;
|
|
4498
|
+
};
|
|
4499
|
+
prices: string[];
|
|
4500
|
+
product: string;
|
|
4501
|
+
}, {
|
|
4502
|
+
adjustable_quantity: VObject< {
|
|
4503
|
+
enabled: boolean;
|
|
4504
|
+
maximum: number | null;
|
|
4505
|
+
minimum: number | null;
|
|
4506
|
+
}, {
|
|
4507
|
+
enabled: VBoolean<boolean, "required">;
|
|
4508
|
+
maximum: VUnion<number | null, [VFloat64<number, "required">, VNull<null, "required">], "required", never>;
|
|
4509
|
+
minimum: VUnion<number | null, [VFloat64<number, "required">, VNull<null, "required">], "required", never>;
|
|
4510
|
+
}, "required", "enabled" | "maximum" | "minimum">;
|
|
4511
|
+
prices: VArray<string[], VString<string, "required">, "required">;
|
|
4512
|
+
product: VString<string, "required">;
|
|
4513
|
+
}, "required", "adjustable_quantity" | "prices" | "product" | "adjustable_quantity.enabled" | "adjustable_quantity.maximum" | "adjustable_quantity.minimum">, "required">], "optional", never>;
|
|
4514
|
+
proration_behavior: VUnion<"none" | "always_invoice" | "create_prorations", [VLiteral<"always_invoice", "required">, VLiteral<"create_prorations", "required">, VLiteral<"none", "required">], "required", never>;
|
|
4515
|
+
schedule_at_period_end: VObject< {
|
|
4516
|
+
conditions: {
|
|
4517
|
+
type: "decreasing_item_amount" | "shortening_interval";
|
|
4518
|
+
}[];
|
|
4519
|
+
}, {
|
|
4520
|
+
conditions: VArray< {
|
|
4521
|
+
type: "decreasing_item_amount" | "shortening_interval";
|
|
4522
|
+
}[], VObject< {
|
|
4523
|
+
type: "decreasing_item_amount" | "shortening_interval";
|
|
4524
|
+
}, {
|
|
4525
|
+
type: VUnion<"decreasing_item_amount" | "shortening_interval", [VLiteral<"decreasing_item_amount", "required">, VLiteral<"shortening_interval", "required">], "required", never>;
|
|
4526
|
+
}, "required", "type">, "required">;
|
|
4527
|
+
}, "required", "conditions">;
|
|
4528
|
+
}, "required", "enabled" | "products" | "proration_behavior" | "default_allowed_updates" | "schedule_at_period_end" | "schedule_at_period_end.conditions">;
|
|
4529
|
+
}, "required", "subscription_update" | "customer_update" | "invoice_history" | "payment_method_update" | "subscription_cancel" | "subscription_update.enabled" | "subscription_update.products" | "subscription_update.proration_behavior" | "subscription_update.default_allowed_updates" | "subscription_update.schedule_at_period_end" | "subscription_update.schedule_at_period_end.conditions" | "customer_update.enabled" | "customer_update.allowed_updated" | "invoice_history.enabled" | "payment_method_update.enabled" | "subscription_cancel.mode" | "subscription_cancel.enabled" | "subscription_cancel.cancellation_reason" | "subscription_cancel.proration_behavior" | "subscription_cancel.cancellation_reason.enabled" | "subscription_cancel.cancellation_reason.options">;
|
|
4530
|
+
is_default: VBoolean<boolean, "required">;
|
|
4531
|
+
livemode: VBoolean<boolean, "required">;
|
|
4532
|
+
login_page: VObject< {
|
|
4533
|
+
url: string | null;
|
|
4534
|
+
enabled: boolean;
|
|
4535
|
+
}, {
|
|
4536
|
+
enabled: VBoolean<boolean, "required">;
|
|
4537
|
+
url: VUnion<string | null, [VString<string, "required">, VNull<null, "required">], "required", never>;
|
|
4538
|
+
}, "required", "url" | "enabled">;
|
|
4539
|
+
metadata: VUnion<Record<string, string | number | null> | null, [VNull<null, "required">, VRecord<Record<string, string | number | null>, VString<string, "required">, VUnion<string | number | null, [VString<string, "required">, VFloat64<number, "required">, VNull<null, "required">], "required", never>, "required", string>], "required", string>;
|
|
4540
|
+
name: VUnion<string | null, [VString<string, "required">, VNull<null, "required">], "required", never>;
|
|
4541
|
+
updated: VFloat64<number, "required">;
|
|
4542
|
+
}, "required", "object" | "id" | "name" | "metadata" | "application" | "created" | "livemode" | `metadata.${string}` | "active" | "business_profile" | "default_return_url" | "features" | "is_default" | "login_page" | "updated" | "business_profile.headline" | "business_profile.privacy_policy_url" | "business_profile.terms_of_service_url" | "features.subscription_update" | "features.customer_update" | "features.invoice_history" | "features.payment_method_update" | "features.subscription_cancel" | "features.subscription_update.enabled" | "features.subscription_update.products" | "features.subscription_update.proration_behavior" | "features.subscription_update.default_allowed_updates" | "features.subscription_update.schedule_at_period_end" | "features.subscription_update.schedule_at_period_end.conditions" | "features.customer_update.enabled" | "features.customer_update.allowed_updated" | "features.invoice_history.enabled" | "features.payment_method_update.enabled" | "features.subscription_cancel.mode" | "features.subscription_cancel.enabled" | "features.subscription_cancel.cancellation_reason" | "features.subscription_cancel.proration_behavior" | "features.subscription_cancel.cancellation_reason.enabled" | "features.subscription_cancel.cancellation_reason.options" | "login_page.url" | "login_page.enabled">;
|
|
4543
|
+
lastSyncedAt: VFloat64<number, "required">;
|
|
4544
|
+
}, "required", "stripe" | "lastSyncedAt" | "stripe.object" | "stripe.id" | "stripe.name" | "stripe.metadata" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.active" | "stripe.updated" | "stripe.application" | "billingPortalConfigurationId" | "stripe.business_profile" | "stripe.default_return_url" | "stripe.features" | "stripe.is_default" | "stripe.login_page" | "stripe.business_profile.headline" | "stripe.business_profile.privacy_policy_url" | "stripe.business_profile.terms_of_service_url" | "stripe.features.subscription_update" | "stripe.features.customer_update" | "stripe.features.invoice_history" | "stripe.features.payment_method_update" | "stripe.features.subscription_cancel" | "stripe.features.subscription_update.enabled" | "stripe.features.subscription_update.products" | "stripe.features.subscription_update.proration_behavior" | "stripe.features.subscription_update.default_allowed_updates" | "stripe.features.subscription_update.schedule_at_period_end" | "stripe.features.subscription_update.schedule_at_period_end.conditions" | "stripe.features.customer_update.enabled" | "stripe.features.customer_update.allowed_updated" | "stripe.features.invoice_history.enabled" | "stripe.features.payment_method_update.enabled" | "stripe.features.subscription_cancel.mode" | "stripe.features.subscription_cancel.enabled" | "stripe.features.subscription_cancel.cancellation_reason" | "stripe.features.subscription_cancel.proration_behavior" | "stripe.features.subscription_cancel.cancellation_reason.enabled" | "stripe.features.subscription_cancel.cancellation_reason.options" | "stripe.login_page.url" | "stripe.login_page.enabled">, {
|
|
4545
|
+
byBillingPortalConfigurationId: ["billingPortalConfigurationId", "_creationTime"];
|
|
4546
|
+
}, {}, {}>;
|
|
4547
|
+
}, true>;
|
|
4548
|
+
|
|
4549
|
+
export declare const stripeTables: {
|
|
4550
|
+
stripeProducts: TableDefinition<VObject< {
|
|
4551
|
+
productId: string;
|
|
4552
|
+
stripe: {
|
|
4553
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
4554
|
+
statement_descriptor?: string | null | undefined;
|
|
4555
|
+
unit_label?: string | null | undefined;
|
|
4556
|
+
object: string;
|
|
4492
4557
|
id: string;
|
|
4493
4558
|
name: string;
|
|
4494
4559
|
description: string | null;
|
|
@@ -4496,6 +4561,7 @@ export declare const stripeTables: {
|
|
|
4496
4561
|
livemode: boolean;
|
|
4497
4562
|
url: string | null;
|
|
4498
4563
|
active: boolean;
|
|
4564
|
+
updated: number;
|
|
4499
4565
|
images: string[];
|
|
4500
4566
|
package_dimensions: {
|
|
4501
4567
|
length: number;
|
|
@@ -4504,7 +4570,35 @@ export declare const stripeTables: {
|
|
|
4504
4570
|
width: number;
|
|
4505
4571
|
} | null;
|
|
4506
4572
|
shippable: boolean | null;
|
|
4573
|
+
marketing_features: {
|
|
4574
|
+
name?: string | null | undefined;
|
|
4575
|
+
}[];
|
|
4576
|
+
default_price: string | null;
|
|
4577
|
+
};
|
|
4578
|
+
lastSyncedAt: number;
|
|
4579
|
+
}, {
|
|
4580
|
+
productId: VString<string, "required">;
|
|
4581
|
+
stripe: VObject< {
|
|
4582
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
4583
|
+
statement_descriptor?: string | null | undefined;
|
|
4584
|
+
unit_label?: string | null | undefined;
|
|
4585
|
+
object: string;
|
|
4586
|
+
id: string;
|
|
4587
|
+
name: string;
|
|
4588
|
+
description: string | null;
|
|
4589
|
+
created: number;
|
|
4590
|
+
livemode: boolean;
|
|
4591
|
+
url: string | null;
|
|
4592
|
+
active: boolean;
|
|
4507
4593
|
updated: number;
|
|
4594
|
+
images: string[];
|
|
4595
|
+
package_dimensions: {
|
|
4596
|
+
length: number;
|
|
4597
|
+
height: number;
|
|
4598
|
+
weight: number;
|
|
4599
|
+
width: number;
|
|
4600
|
+
} | null;
|
|
4601
|
+
shippable: boolean | null;
|
|
4508
4602
|
marketing_features: {
|
|
4509
4603
|
name?: string | null | undefined;
|
|
4510
4604
|
}[];
|
|
@@ -4548,9 +4642,9 @@ export declare const stripeTables: {
|
|
|
4548
4642
|
name: VUnion<string | null | undefined, [VString<string, "required">, VNull<null, "required">], "optional", never>;
|
|
4549
4643
|
}, "required", "name">, "required">;
|
|
4550
4644
|
default_price: VUnion<string | null, [VString<string, "required">, VNull<null, "required">], "required", never>;
|
|
4551
|
-
}, "required", "object" | "id" | "name" | "description" | "metadata" | "statement_descriptor" | "created" | "livemode" | `metadata.${string}` | "url" | "active" | "
|
|
4645
|
+
}, "required", "object" | "id" | "name" | "description" | "metadata" | "statement_descriptor" | "created" | "livemode" | `metadata.${string}` | "url" | "active" | "updated" | "images" | "package_dimensions" | "shippable" | "unit_label" | "marketing_features" | "default_price" | "package_dimensions.length" | "package_dimensions.height" | "package_dimensions.weight" | "package_dimensions.width">;
|
|
4552
4646
|
lastSyncedAt: VFloat64<number, "required">;
|
|
4553
|
-
}, "required", "productId" | "stripe" | "lastSyncedAt" | "stripe.object" | "stripe.id" | "stripe.name" | "stripe.description" | "stripe.metadata" | "stripe.statement_descriptor" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.url" | "stripe.active" | "stripe.
|
|
4647
|
+
}, "required", "productId" | "stripe" | "lastSyncedAt" | "stripe.object" | "stripe.id" | "stripe.name" | "stripe.description" | "stripe.metadata" | "stripe.statement_descriptor" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.url" | "stripe.active" | "stripe.updated" | "stripe.images" | "stripe.package_dimensions" | "stripe.shippable" | "stripe.unit_label" | "stripe.marketing_features" | "stripe.default_price" | "stripe.package_dimensions.length" | "stripe.package_dimensions.height" | "stripe.package_dimensions.weight" | "stripe.package_dimensions.width">, {
|
|
4554
4648
|
byActive: ["stripe.active", "_creationTime"];
|
|
4555
4649
|
byName: ["stripe.name", "_creationTime"];
|
|
4556
4650
|
}, {}, {}>;
|
|
@@ -5050,8 +5144,8 @@ export declare const stripeTables: {
|
|
|
5050
5144
|
times_redeemed: number;
|
|
5051
5145
|
valid: boolean;
|
|
5052
5146
|
};
|
|
5053
|
-
code: string;
|
|
5054
5147
|
active: boolean;
|
|
5148
|
+
code: string;
|
|
5055
5149
|
restrictions: {
|
|
5056
5150
|
currency_options?: Record<string, {
|
|
5057
5151
|
minimum_amount?: number | null | undefined;
|
|
@@ -5098,8 +5192,8 @@ export declare const stripeTables: {
|
|
|
5098
5192
|
times_redeemed: number;
|
|
5099
5193
|
valid: boolean;
|
|
5100
5194
|
};
|
|
5101
|
-
code: string;
|
|
5102
5195
|
active: boolean;
|
|
5196
|
+
code: string;
|
|
5103
5197
|
restrictions: {
|
|
5104
5198
|
currency_options?: Record<string, {
|
|
5105
5199
|
minimum_amount?: number | null | undefined;
|
|
@@ -5196,7 +5290,7 @@ export declare const stripeTables: {
|
|
|
5196
5290
|
minimum_amount_currency: VUnion<string | null | undefined, [VString<string, "required">, VNull<null, "required">], "optional", never>;
|
|
5197
5291
|
}, "required", "currency_options" | `currency_options.${string}` | "minimum_amount" | "first_time_transaction" | "minimum_amount_currency">;
|
|
5198
5292
|
times_redeemed: VFloat64<number, "required">;
|
|
5199
|
-
}, "required", "object" | "id" | "customer" | "metadata" | "created" | "livemode" | `metadata.${string}` | "expires_at" | "max_redemptions" | "times_redeemed" | "coupon" | "
|
|
5293
|
+
}, "required", "object" | "id" | "customer" | "metadata" | "created" | "livemode" | `metadata.${string}` | "expires_at" | "max_redemptions" | "times_redeemed" | "coupon" | "active" | "code" | "restrictions" | "coupon.object" | "coupon.id" | "coupon.name" | "coupon.currency" | "coupon.metadata" | "coupon.created" | "coupon.livemode" | `coupon.metadata.${string}` | "coupon.amount_off" | "coupon.duration" | "coupon.percent_off" | "coupon.applies_to" | "coupon.currency_options" | "coupon.duration_in_months" | "coupon.max_redemptions" | "coupon.redeem_by" | "coupon.times_redeemed" | "coupon.valid" | "coupon.applies_to.products" | `coupon.currency_options.${string}` | "restrictions.currency_options" | `restrictions.currency_options.${string}` | "restrictions.minimum_amount" | "restrictions.first_time_transaction" | "restrictions.minimum_amount_currency">;
|
|
5200
5294
|
lastSyncedAt: VFloat64<number, "required">;
|
|
5201
5295
|
}, "required", "stripe" | "lastSyncedAt" | "stripe.object" | "stripe.id" | "stripe.metadata" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.active" | "stripe.max_redemptions" | "stripe.times_redeemed" | "promotionCodeId" | "stripe.customer" | "stripe.expires_at" | "stripe.coupon" | "stripe.code" | "stripe.restrictions" | "stripe.coupon.object" | "stripe.coupon.id" | "stripe.coupon.name" | "stripe.coupon.currency" | "stripe.coupon.metadata" | "stripe.coupon.created" | "stripe.coupon.livemode" | `stripe.coupon.metadata.${string}` | "stripe.coupon.amount_off" | "stripe.coupon.duration" | "stripe.coupon.percent_off" | "stripe.coupon.applies_to" | "stripe.coupon.currency_options" | "stripe.coupon.duration_in_months" | "stripe.coupon.max_redemptions" | "stripe.coupon.redeem_by" | "stripe.coupon.times_redeemed" | "stripe.coupon.valid" | "stripe.coupon.applies_to.products" | `stripe.coupon.currency_options.${string}` | "stripe.restrictions.currency_options" | `stripe.restrictions.currency_options.${string}` | "stripe.restrictions.minimum_amount" | "stripe.restrictions.first_time_transaction" | "stripe.restrictions.minimum_amount_currency">, {
|
|
5202
5296
|
byPromotionCodeId: ["promotionCodeId", "_creationTime"];
|
|
@@ -5434,11 +5528,7 @@ export declare const stripeTables: {
|
|
|
5434
5528
|
enabled: boolean;
|
|
5435
5529
|
} | null | undefined;
|
|
5436
5530
|
next_action?: any;
|
|
5437
|
-
amount_details?:
|
|
5438
|
-
tip?: {
|
|
5439
|
-
amount?: number | null | undefined;
|
|
5440
|
-
} | null | undefined;
|
|
5441
|
-
} | null | undefined;
|
|
5531
|
+
amount_details?: any;
|
|
5442
5532
|
canceled_at?: number | null | undefined;
|
|
5443
5533
|
cancellation_reason?: "expired" | "duplicate" | "fraudulent" | "abandoned" | "automatic" | "failed_invoice" | "requested_by_customer" | "void_invoice" | null | undefined;
|
|
5444
5534
|
object: string;
|
|
@@ -5505,11 +5595,7 @@ export declare const stripeTables: {
|
|
|
5505
5595
|
enabled: boolean;
|
|
5506
5596
|
} | null | undefined;
|
|
5507
5597
|
next_action?: any;
|
|
5508
|
-
amount_details?:
|
|
5509
|
-
tip?: {
|
|
5510
|
-
amount?: number | null | undefined;
|
|
5511
|
-
} | null | undefined;
|
|
5512
|
-
} | null | undefined;
|
|
5598
|
+
amount_details?: any;
|
|
5513
5599
|
canceled_at?: number | null | undefined;
|
|
5514
5600
|
cancellation_reason?: "expired" | "duplicate" | "fraudulent" | "abandoned" | "automatic" | "failed_invoice" | "requested_by_customer" | "void_invoice" | null | undefined;
|
|
5515
5601
|
object: string;
|
|
@@ -5601,23 +5687,7 @@ export declare const stripeTables: {
|
|
|
5601
5687
|
status: VUnion<"succeeded" | "canceled" | "processing" | "requires_action" | "requires_capture" | "requires_confirmation" | "requires_payment_method", [VLiteral<"canceled", "required">, VLiteral<"processing", "required">, VLiteral<"requires_action", "required">, VLiteral<"requires_capture", "required">, VLiteral<"requires_confirmation", "required">, VLiteral<"requires_payment_method", "required">, VLiteral<"succeeded", "required">], "required", never>;
|
|
5602
5688
|
object: VString<string, "required">;
|
|
5603
5689
|
amount_capturable: VFloat64<number, "required">;
|
|
5604
|
-
amount_details: VUnion<
|
|
5605
|
-
tip?: {
|
|
5606
|
-
amount?: number | null | undefined;
|
|
5607
|
-
} | null | undefined;
|
|
5608
|
-
} | null | undefined, [VObject< {
|
|
5609
|
-
tip?: {
|
|
5610
|
-
amount?: number | null | undefined;
|
|
5611
|
-
} | null | undefined;
|
|
5612
|
-
}, {
|
|
5613
|
-
tip: VUnion< {
|
|
5614
|
-
amount?: number | null | undefined;
|
|
5615
|
-
} | null | undefined, [VObject< {
|
|
5616
|
-
amount?: number | null | undefined;
|
|
5617
|
-
}, {
|
|
5618
|
-
amount: VUnion<number | null | undefined, [VFloat64<number, "required">, VNull<null, "required">], "optional", never>;
|
|
5619
|
-
}, "required", "amount">, VNull<null, "required">], "optional", "amount">;
|
|
5620
|
-
}, "required", "tip" | "tip.amount">, VNull<null, "required">], "optional", "tip" | "tip.amount">;
|
|
5690
|
+
amount_details: VUnion<any, [VNull<null, "required">, VAny<any, "required", string>], "optional", string>;
|
|
5621
5691
|
amount_received: VFloat64<number, "required">;
|
|
5622
5692
|
application: VUnion<string | null | undefined, [VString<string, "required">, VNull<null, "required">], "optional", never>;
|
|
5623
5693
|
application_fee_amount: VUnion<number | null | undefined, [VFloat64<number, "required">, VNull<null, "required">], "optional", never>;
|
|
@@ -5646,9 +5716,9 @@ export declare const stripeTables: {
|
|
|
5646
5716
|
review: VUnion<string | null | undefined, [VString<string, "required">, VNull<null, "required">], "optional", never>;
|
|
5647
5717
|
transfer_data: VAny<any, "optional", string>;
|
|
5648
5718
|
transfer_group: VUnion<string | null | undefined, [VString<string, "required">, VNull<null, "required">], "optional", never>;
|
|
5649
|
-
}, "required", "object" | "id" | "amount" | "currency" | "customer" | "description" | "metadata" | "receipt_email" | "shipping" | "statement_descriptor" | "statement_descriptor_suffix" | "status" | "application" | "application_fee_amount" | "created" | "livemode" | "on_behalf_of" | "payment_method" | "presentment_details" | "review" | "transfer_data" | "transfer_group" | `metadata.${string}` | `shipping.${string}` | `presentment_details.${string}` | `transfer_data.${string}` | "client_secret" | "payment_method_configuration_details" | "payment_method_options" | "payment_method_types" | `payment_method_options.${string}` | "last_payment_error" | "latest_charge" | "processing" | "automatic_payment_methods" | "next_action" | "setup_future_usage" | "amount_capturable" | "amount_details" | "amount_received" | "canceled_at" | "cancellation_reason" | "capture_method" | "confirmation_method" | "excluded_payment_method_types" | "payment_method_configuration_details.id" | "payment_method_configuration_details.parent" | "last_payment_error.type" | "last_payment_error.payment_method" | "last_payment_error.charge" | "last_payment_error.advice_code" | "last_payment_error.code" | "last_payment_error.decline_code" | "last_payment_error.doc_url" | "last_payment_error.message" | "last_payment_error.network_advice_code" | "last_payment_error.network_decline_code" | "last_payment_error.param" | "last_payment_error.payment_method_type" | "last_payment_error.last_payment_error" | "last_payment_error.latest_charge" | `last_payment_error.payment_method.${string}` | `last_payment_error.last_payment_error.${string}` | `processing.${string}` | "automatic_payment_methods.enabled" | "automatic_payment_methods.allow_redirects" | `next_action.${string}` |
|
|
5719
|
+
}, "required", "object" | "id" | "amount" | "currency" | "customer" | "description" | "metadata" | "receipt_email" | "shipping" | "statement_descriptor" | "statement_descriptor_suffix" | "status" | "application" | "application_fee_amount" | "created" | "livemode" | "on_behalf_of" | "payment_method" | "presentment_details" | "review" | "transfer_data" | "transfer_group" | `metadata.${string}` | `shipping.${string}` | `presentment_details.${string}` | `transfer_data.${string}` | "client_secret" | "payment_method_configuration_details" | "payment_method_options" | "payment_method_types" | `payment_method_options.${string}` | "last_payment_error" | "latest_charge" | "processing" | "automatic_payment_methods" | "next_action" | "setup_future_usage" | "amount_capturable" | "amount_details" | "amount_received" | "canceled_at" | "cancellation_reason" | "capture_method" | "confirmation_method" | "excluded_payment_method_types" | "payment_method_configuration_details.id" | "payment_method_configuration_details.parent" | "last_payment_error.type" | "last_payment_error.payment_method" | "last_payment_error.charge" | "last_payment_error.advice_code" | "last_payment_error.code" | "last_payment_error.decline_code" | "last_payment_error.doc_url" | "last_payment_error.message" | "last_payment_error.network_advice_code" | "last_payment_error.network_decline_code" | "last_payment_error.param" | "last_payment_error.payment_method_type" | "last_payment_error.last_payment_error" | "last_payment_error.latest_charge" | `last_payment_error.payment_method.${string}` | `last_payment_error.last_payment_error.${string}` | `processing.${string}` | "automatic_payment_methods.enabled" | "automatic_payment_methods.allow_redirects" | `next_action.${string}` | `amount_details.${string}`>;
|
|
5650
5720
|
lastSyncedAt: VFloat64<number, "required">;
|
|
5651
|
-
}, "required", "stripe" | "lastSyncedAt" | "stripe.object" | "stripe.id" | "stripe.description" | "stripe.metadata" | "stripe.statement_descriptor" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.currency" | "stripe.shipping" | "stripe.customer" | "stripe.amount" | "stripe.status" | "stripe.application_fee_amount" | "stripe.next_action" | `stripe.next_action.${string}` | "paymentIntentId" | "stripe.receipt_email" | "stripe.statement_descriptor_suffix" | "stripe.application" | "stripe.on_behalf_of" | "stripe.payment_method" | "stripe.presentment_details" | "stripe.review" | "stripe.transfer_data" | "stripe.transfer_group" | `stripe.shipping.${string}` | `stripe.presentment_details.${string}` | `stripe.transfer_data.${string}` | "stripe.client_secret" | "stripe.payment_method_configuration_details" | "stripe.payment_method_options" | "stripe.payment_method_types" | `stripe.payment_method_options.${string}` | "stripe.last_payment_error" | "stripe.latest_charge" | "stripe.processing" | "stripe.automatic_payment_methods" | "stripe.setup_future_usage" | "stripe.amount_capturable" | "stripe.amount_details" | "stripe.amount_received" | "stripe.canceled_at" | "stripe.cancellation_reason" | "stripe.capture_method" | "stripe.confirmation_method" | "stripe.excluded_payment_method_types" | "stripe.payment_method_configuration_details.id" | "stripe.payment_method_configuration_details.parent" | "stripe.last_payment_error.type" | "stripe.last_payment_error.payment_method" | "stripe.last_payment_error.charge" | "stripe.last_payment_error.advice_code" | "stripe.last_payment_error.code" | "stripe.last_payment_error.decline_code" | "stripe.last_payment_error.doc_url" | "stripe.last_payment_error.message" | "stripe.last_payment_error.network_advice_code" | "stripe.last_payment_error.network_decline_code" | "stripe.last_payment_error.param" | "stripe.last_payment_error.payment_method_type" | "stripe.last_payment_error.last_payment_error" | "stripe.last_payment_error.latest_charge" | `stripe.last_payment_error.payment_method.${string}` | `stripe.last_payment_error.last_payment_error.${string}` | `stripe.processing.${string}` | "stripe.automatic_payment_methods.enabled" | "stripe.automatic_payment_methods.allow_redirects" |
|
|
5721
|
+
}, "required", "stripe" | "lastSyncedAt" | "stripe.object" | "stripe.id" | "stripe.description" | "stripe.metadata" | "stripe.statement_descriptor" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.currency" | "stripe.shipping" | "stripe.customer" | "stripe.amount" | "stripe.status" | "stripe.application_fee_amount" | "stripe.next_action" | `stripe.next_action.${string}` | "paymentIntentId" | "stripe.receipt_email" | "stripe.statement_descriptor_suffix" | "stripe.application" | "stripe.on_behalf_of" | "stripe.payment_method" | "stripe.presentment_details" | "stripe.review" | "stripe.transfer_data" | "stripe.transfer_group" | `stripe.shipping.${string}` | `stripe.presentment_details.${string}` | `stripe.transfer_data.${string}` | "stripe.client_secret" | "stripe.payment_method_configuration_details" | "stripe.payment_method_options" | "stripe.payment_method_types" | `stripe.payment_method_options.${string}` | "stripe.last_payment_error" | "stripe.latest_charge" | "stripe.processing" | "stripe.automatic_payment_methods" | "stripe.setup_future_usage" | "stripe.amount_capturable" | "stripe.amount_details" | "stripe.amount_received" | "stripe.canceled_at" | "stripe.cancellation_reason" | "stripe.capture_method" | "stripe.confirmation_method" | "stripe.excluded_payment_method_types" | "stripe.payment_method_configuration_details.id" | "stripe.payment_method_configuration_details.parent" | "stripe.last_payment_error.type" | "stripe.last_payment_error.payment_method" | "stripe.last_payment_error.charge" | "stripe.last_payment_error.advice_code" | "stripe.last_payment_error.code" | "stripe.last_payment_error.decline_code" | "stripe.last_payment_error.doc_url" | "stripe.last_payment_error.message" | "stripe.last_payment_error.network_advice_code" | "stripe.last_payment_error.network_decline_code" | "stripe.last_payment_error.param" | "stripe.last_payment_error.payment_method_type" | "stripe.last_payment_error.last_payment_error" | "stripe.last_payment_error.latest_charge" | `stripe.last_payment_error.payment_method.${string}` | `stripe.last_payment_error.last_payment_error.${string}` | `stripe.processing.${string}` | "stripe.automatic_payment_methods.enabled" | "stripe.automatic_payment_methods.allow_redirects" | `stripe.amount_details.${string}`>, {
|
|
5652
5722
|
byPaymentIntentId: ["paymentIntentId", "_creationTime"];
|
|
5653
5723
|
}, {}, {}>;
|
|
5654
5724
|
stripeCheckoutSessions: TableDefinition<VObject< {
|
|
@@ -6208,8 +6278,8 @@ export declare const stripeTables: {
|
|
|
6208
6278
|
stripe: {
|
|
6209
6279
|
amount?: number | null | undefined;
|
|
6210
6280
|
metadata?: Record<string, string | number | null> | null | undefined;
|
|
6211
|
-
nickname?: string | null | undefined;
|
|
6212
6281
|
product?: string | null | undefined;
|
|
6282
|
+
nickname?: string | null | undefined;
|
|
6213
6283
|
amount_decimal?: string | null | undefined;
|
|
6214
6284
|
meter?: string | null | undefined;
|
|
6215
6285
|
tiers?: any[] | null | undefined;
|
|
@@ -6237,8 +6307,8 @@ export declare const stripeTables: {
|
|
|
6237
6307
|
stripe: VObject< {
|
|
6238
6308
|
amount?: number | null | undefined;
|
|
6239
6309
|
metadata?: Record<string, string | number | null> | null | undefined;
|
|
6240
|
-
nickname?: string | null | undefined;
|
|
6241
6310
|
product?: string | null | undefined;
|
|
6311
|
+
nickname?: string | null | undefined;
|
|
6242
6312
|
amount_decimal?: string | null | undefined;
|
|
6243
6313
|
meter?: string | null | undefined;
|
|
6244
6314
|
tiers?: any[] | null | undefined;
|
|
@@ -6288,9 +6358,9 @@ export declare const stripeTables: {
|
|
|
6288
6358
|
}, "required", "divide_by" | "round">, VNull<null, "required">], "optional", "divide_by" | "round">;
|
|
6289
6359
|
trial_period_days: VUnion<number | null | undefined, [VFloat64<number, "required">, VNull<null, "required">], "optional", never>;
|
|
6290
6360
|
usage_type: VString<string, "required">;
|
|
6291
|
-
}, "required", "object" | "id" | "amount" | "currency" | "metadata" | "created" | "livemode" | `metadata.${string}` | "active" | "
|
|
6361
|
+
}, "required", "object" | "id" | "amount" | "currency" | "metadata" | "created" | "livemode" | `metadata.${string}` | "active" | "product" | "interval" | "nickname" | "amount_decimal" | "billing_scheme" | "interval_count" | "meter" | "tiers" | "tiers_mode" | "transform_usage" | "trial_period_days" | "usage_type" | "transform_usage.divide_by" | "transform_usage.round">;
|
|
6292
6362
|
lastSyncedAt: VFloat64<number, "required">;
|
|
6293
|
-
}, "required", "stripe" | "lastSyncedAt" | "stripe.object" | "stripe.id" | "stripe.metadata" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.active" | "stripe.currency" | "stripe.nickname" | "stripe.billing_scheme" | "stripe.tiers_mode" | "stripe.amount" | "planId" | "stripe.
|
|
6363
|
+
}, "required", "stripe" | "lastSyncedAt" | "stripe.object" | "stripe.id" | "stripe.metadata" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.active" | "stripe.currency" | "stripe.nickname" | "stripe.billing_scheme" | "stripe.tiers_mode" | "stripe.amount" | "planId" | "stripe.product" | "stripe.interval" | "stripe.amount_decimal" | "stripe.interval_count" | "stripe.meter" | "stripe.tiers" | "stripe.transform_usage" | "stripe.trial_period_days" | "stripe.usage_type" | "stripe.transform_usage.divide_by" | "stripe.transform_usage.round">, {
|
|
6294
6364
|
byPlanId: ["planId", "_creationTime"];
|
|
6295
6365
|
}, {}, {}>;
|
|
6296
6366
|
stripeDisputes: TableDefinition<VObject< {
|
|
@@ -6499,6 +6569,7 @@ export declare const stripeTables: {
|
|
|
6499
6569
|
id: string;
|
|
6500
6570
|
} | null | undefined;
|
|
6501
6571
|
payment_method_options?: any;
|
|
6572
|
+
mandate?: string | null | undefined;
|
|
6502
6573
|
automatic_payment_methods?: {
|
|
6503
6574
|
enabled?: boolean | null | undefined;
|
|
6504
6575
|
allow_redirects?: "always" | "never" | null | undefined;
|
|
@@ -6508,7 +6579,6 @@ export declare const stripeTables: {
|
|
|
6508
6579
|
last_setup_error?: any;
|
|
6509
6580
|
attach_to_self?: boolean | null | undefined;
|
|
6510
6581
|
latest_attempt?: string | null | undefined;
|
|
6511
|
-
mandate?: string | null | undefined;
|
|
6512
6582
|
single_use_mandate?: string | null | undefined;
|
|
6513
6583
|
object: string;
|
|
6514
6584
|
id: string;
|
|
@@ -6536,6 +6606,7 @@ export declare const stripeTables: {
|
|
|
6536
6606
|
id: string;
|
|
6537
6607
|
} | null | undefined;
|
|
6538
6608
|
payment_method_options?: any;
|
|
6609
|
+
mandate?: string | null | undefined;
|
|
6539
6610
|
automatic_payment_methods?: {
|
|
6540
6611
|
enabled?: boolean | null | undefined;
|
|
6541
6612
|
allow_redirects?: "always" | "never" | null | undefined;
|
|
@@ -6545,7 +6616,6 @@ export declare const stripeTables: {
|
|
|
6545
6616
|
last_setup_error?: any;
|
|
6546
6617
|
attach_to_self?: boolean | null | undefined;
|
|
6547
6618
|
latest_attempt?: string | null | undefined;
|
|
6548
|
-
mandate?: string | null | undefined;
|
|
6549
6619
|
single_use_mandate?: string | null | undefined;
|
|
6550
6620
|
object: string;
|
|
6551
6621
|
id: string;
|
|
@@ -6599,9 +6669,9 @@ export declare const stripeTables: {
|
|
|
6599
6669
|
payment_method_options: VAny<any, "optional", string>;
|
|
6600
6670
|
payment_method_types: VArray<string[], VString<string, "required">, "required">;
|
|
6601
6671
|
single_use_mandate: VUnion<string | null | undefined, [VString<string, "required">, VNull<null, "required">], "optional", never>;
|
|
6602
|
-
}, "required", "object" | "id" | "customer" | "description" | "metadata" | "status" | "application" | "created" | "livemode" | "on_behalf_of" | "payment_method" | `metadata.${string}` | "client_secret" | "payment_method_configuration_details" | "payment_method_options" | "payment_method_types" | `payment_method_options.${string}` | "automatic_payment_methods" | "next_action" | "cancellation_reason" | "payment_method_configuration_details.id" | "payment_method_configuration_details.parent" | "automatic_payment_methods.enabled" | "automatic_payment_methods.allow_redirects" | `next_action.${string}` | "last_setup_error" | "usage" | "attach_to_self" | "flow_directions" | "latest_attempt" | "
|
|
6672
|
+
}, "required", "object" | "id" | "customer" | "description" | "metadata" | "status" | "application" | "created" | "livemode" | "on_behalf_of" | "payment_method" | `metadata.${string}` | "client_secret" | "payment_method_configuration_details" | "payment_method_options" | "payment_method_types" | `payment_method_options.${string}` | "mandate" | "automatic_payment_methods" | "next_action" | "cancellation_reason" | "payment_method_configuration_details.id" | "payment_method_configuration_details.parent" | "automatic_payment_methods.enabled" | "automatic_payment_methods.allow_redirects" | `next_action.${string}` | "last_setup_error" | "usage" | "attach_to_self" | "flow_directions" | "latest_attempt" | "single_use_mandate" | `last_setup_error.${string}`>;
|
|
6603
6673
|
lastSyncedAt: VFloat64<number, "required">;
|
|
6604
|
-
}, "required", "stripe" | "lastSyncedAt" | "stripe.object" | "stripe.id" | "stripe.description" | "stripe.metadata" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.customer" | "stripe.status" | "stripe.next_action" | `stripe.next_action.${string}` | "stripe.application" | "stripe.on_behalf_of" | "stripe.payment_method" | "stripe.client_secret" | "stripe.payment_method_configuration_details" | "stripe.payment_method_options" | "stripe.payment_method_types" | `stripe.payment_method_options.${string}` | "stripe.automatic_payment_methods" | "stripe.cancellation_reason" | "stripe.payment_method_configuration_details.id" | "stripe.payment_method_configuration_details.parent" | "stripe.automatic_payment_methods.enabled" | "stripe.automatic_payment_methods.allow_redirects" | "setupIntentId" | "stripe.
|
|
6674
|
+
}, "required", "stripe" | "lastSyncedAt" | "stripe.object" | "stripe.id" | "stripe.description" | "stripe.metadata" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.customer" | "stripe.status" | "stripe.next_action" | `stripe.next_action.${string}` | "stripe.application" | "stripe.on_behalf_of" | "stripe.payment_method" | "stripe.client_secret" | "stripe.payment_method_configuration_details" | "stripe.payment_method_options" | "stripe.payment_method_types" | `stripe.payment_method_options.${string}` | "stripe.automatic_payment_methods" | "stripe.cancellation_reason" | "stripe.payment_method_configuration_details.id" | "stripe.payment_method_configuration_details.parent" | "stripe.automatic_payment_methods.enabled" | "stripe.automatic_payment_methods.allow_redirects" | "setupIntentId" | "stripe.mandate" | "stripe.last_setup_error" | "stripe.usage" | "stripe.attach_to_self" | "stripe.flow_directions" | "stripe.latest_attempt" | "stripe.single_use_mandate" | `stripe.last_setup_error.${string}`>, {
|
|
6605
6675
|
bySetupIntentId: ["setupIntentId", "_creationTime"];
|
|
6606
6676
|
}, {}, {}>;
|
|
6607
6677
|
stripeCreditNotes: TableDefinition<VObject< {
|
|
@@ -7230,7 +7300,7 @@ export declare const stripeTables: {
|
|
|
7230
7300
|
object: string;
|
|
7231
7301
|
id: string;
|
|
7232
7302
|
customer: string;
|
|
7233
|
-
status: "
|
|
7303
|
+
status: "active" | "canceled" | "completed" | "not_started" | "released";
|
|
7234
7304
|
created: number;
|
|
7235
7305
|
livemode: boolean;
|
|
7236
7306
|
billing_mode: {
|
|
@@ -7291,7 +7361,7 @@ export declare const stripeTables: {
|
|
|
7291
7361
|
object: string;
|
|
7292
7362
|
id: string;
|
|
7293
7363
|
customer: string;
|
|
7294
|
-
status: "
|
|
7364
|
+
status: "active" | "canceled" | "completed" | "not_started" | "released";
|
|
7295
7365
|
created: number;
|
|
7296
7366
|
livemode: boolean;
|
|
7297
7367
|
billing_mode: {
|
|
@@ -7314,7 +7384,7 @@ export declare const stripeTables: {
|
|
|
7314
7384
|
customer: VString<string, "required">;
|
|
7315
7385
|
metadata: VUnion<Record<string, string | number | null> | null | undefined, [VRecord<Record<string, string | number | null>, VString<string, "required">, VUnion<string | number | null, [VString<string, "required">, VFloat64<number, "required">, VNull<null, "required">], "required", never>, "required", string>, VNull<null, "required">], "optional", string>;
|
|
7316
7386
|
phases: VAny<any, "optional", string>;
|
|
7317
|
-
status: VUnion<"
|
|
7387
|
+
status: VUnion<"active" | "canceled" | "completed" | "not_started" | "released", [VLiteral<"active", "required">, VLiteral<"canceled", "required">, VLiteral<"completed", "required">, VLiteral<"not_started", "required">, VLiteral<"released", "required">], "required", never>;
|
|
7318
7388
|
object: VString<string, "required">;
|
|
7319
7389
|
application: VUnion<string | null | undefined, [VString<string, "required">, VNull<null, "required">], "optional", never>;
|
|
7320
7390
|
billing_mode: VObject< {
|
|
@@ -7480,51 +7550,430 @@ export declare const stripeTables: {
|
|
|
7480
7550
|
}, "required", "stripe" | "lastSyncedAt" | "stripe.object" | "stripe.id" | "stripe.metadata" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.test_clock" | "stripe.customer" | "stripe.status" | "stripe.application" | "stripe.canceled_at" | "subscriptionScheduleId" | "stripe.current_phase" | "stripe.phases" | "stripe.billing_mode" | "stripe.completed_at" | "stripe.default_settings" | "stripe.end_behavior" | "stripe.released_at" | "stripe.released_subscription" | "stripe.current_phase.end_date" | "stripe.current_phase.start_date" | `stripe.phases.${string}` | "stripe.billing_mode.type" | "stripe.billing_mode.updated_at" | "stripe.default_settings.description" | "stripe.default_settings.on_behalf_of" | "stripe.default_settings.transfer_data" | "stripe.default_settings.automatic_tax" | "stripe.default_settings.invoice_settings" | "stripe.default_settings.collection_method" | "stripe.default_settings.default_payment_method" | "stripe.default_settings.application_fee_percent" | "stripe.default_settings.billing_cycle_anchor" | "stripe.default_settings.billing_thresholds" | "stripe.default_settings.transfer_data.destination" | "stripe.default_settings.transfer_data.amount_percent" | "stripe.default_settings.automatic_tax.enabled" | "stripe.default_settings.automatic_tax.disabled_reason" | "stripe.default_settings.automatic_tax.liability" | "stripe.default_settings.automatic_tax.liability.type" | "stripe.default_settings.automatic_tax.liability.account" | "stripe.default_settings.invoice_settings.account_tax_ids" | "stripe.default_settings.invoice_settings.issuer" | "stripe.default_settings.invoice_settings.days_until_due" | "stripe.default_settings.invoice_settings.issuer.type" | "stripe.default_settings.invoice_settings.issuer.account" | "stripe.default_settings.billing_thresholds.amount_gte" | "stripe.default_settings.billing_thresholds.reset_billing_cycle_anchor">, {
|
|
7481
7551
|
bySubscriptionScheduleId: ["subscriptionScheduleId", "_creationTime"];
|
|
7482
7552
|
}, {}, {}>;
|
|
7483
|
-
|
|
7484
|
-
|
|
7485
|
-
|
|
7486
|
-
|
|
7487
|
-
|
|
7488
|
-
|
|
7489
|
-
|
|
7490
|
-
|
|
7553
|
+
stripeMandates: TableDefinition<VObject< {
|
|
7554
|
+
stripe: {
|
|
7555
|
+
payment_method_details?: any;
|
|
7556
|
+
on_behalf_of?: string | null | undefined;
|
|
7557
|
+
multi_use?: any;
|
|
7558
|
+
single_use?: {
|
|
7559
|
+
amount: number;
|
|
7560
|
+
currency: string;
|
|
7561
|
+
} | null | undefined;
|
|
7562
|
+
object: string;
|
|
7563
|
+
type: "multi_use" | "single_use";
|
|
7564
|
+
id: string;
|
|
7565
|
+
status: "pending" | "active" | "inactive";
|
|
7566
|
+
livemode: boolean;
|
|
7567
|
+
payment_method: string;
|
|
7568
|
+
customer_acceptance: {
|
|
7569
|
+
accepted_at?: number | null | undefined;
|
|
7570
|
+
offline?: any;
|
|
7571
|
+
online?: {
|
|
7572
|
+
ip_address?: string | null | undefined;
|
|
7573
|
+
user_agent?: string | null | undefined;
|
|
7574
|
+
} | null | undefined;
|
|
7575
|
+
type: "offline" | "online";
|
|
7491
7576
|
};
|
|
7492
|
-
priceId: string;
|
|
7493
|
-
entityId: string;
|
|
7494
|
-
success: {
|
|
7495
|
-
url: string;
|
|
7496
7577
|
};
|
|
7578
|
+
lastSyncedAt: number;
|
|
7579
|
+
mandateId: string;
|
|
7497
7580
|
}, {
|
|
7498
|
-
|
|
7499
|
-
|
|
7500
|
-
|
|
7501
|
-
|
|
7502
|
-
|
|
7503
|
-
|
|
7581
|
+
mandateId: VString<string, "required">;
|
|
7582
|
+
stripe: VObject< {
|
|
7583
|
+
payment_method_details?: any;
|
|
7584
|
+
on_behalf_of?: string | null | undefined;
|
|
7585
|
+
multi_use?: any;
|
|
7586
|
+
single_use?: {
|
|
7587
|
+
amount: number;
|
|
7588
|
+
currency: string;
|
|
7589
|
+
} | null | undefined;
|
|
7590
|
+
object: string;
|
|
7591
|
+
type: "multi_use" | "single_use";
|
|
7592
|
+
id: string;
|
|
7593
|
+
status: "pending" | "active" | "inactive";
|
|
7594
|
+
livemode: boolean;
|
|
7595
|
+
payment_method: string;
|
|
7596
|
+
customer_acceptance: {
|
|
7597
|
+
accepted_at?: number | null | undefined;
|
|
7598
|
+
offline?: any;
|
|
7599
|
+
online?: {
|
|
7600
|
+
ip_address?: string | null | undefined;
|
|
7601
|
+
user_agent?: string | null | undefined;
|
|
7602
|
+
} | null | undefined;
|
|
7603
|
+
type: "offline" | "online";
|
|
7604
|
+
};
|
|
7605
|
+
}, {
|
|
7606
|
+
id: VString<string, "required">;
|
|
7607
|
+
customer_acceptance: VObject< {
|
|
7608
|
+
accepted_at?: number | null | undefined;
|
|
7609
|
+
offline?: any;
|
|
7610
|
+
online?: {
|
|
7611
|
+
ip_address?: string | null | undefined;
|
|
7612
|
+
user_agent?: string | null | undefined;
|
|
7613
|
+
} | null | undefined;
|
|
7614
|
+
type: "offline" | "online";
|
|
7504
7615
|
}, {
|
|
7505
|
-
|
|
7506
|
-
|
|
7507
|
-
|
|
7508
|
-
|
|
7616
|
+
accepted_at: VUnion<number | null | undefined, [VFloat64<number, "required">, VNull<null, "required">], "optional", never>;
|
|
7617
|
+
offline: VAny<any, "optional", string>;
|
|
7618
|
+
online: VUnion< {
|
|
7619
|
+
ip_address?: string | null | undefined;
|
|
7620
|
+
user_agent?: string | null | undefined;
|
|
7621
|
+
} | null | undefined, [VObject< {
|
|
7622
|
+
ip_address?: string | null | undefined;
|
|
7623
|
+
user_agent?: string | null | undefined;
|
|
7624
|
+
}, {
|
|
7625
|
+
ip_address: VUnion<string | null | undefined, [VString<string, "required">, VNull<null, "required">], "optional", never>;
|
|
7626
|
+
user_agent: VUnion<string | null | undefined, [VString<string, "required">, VNull<null, "required">], "optional", never>;
|
|
7627
|
+
}, "required", "ip_address" | "user_agent">, VNull<null, "required">], "optional", "ip_address" | "user_agent">;
|
|
7628
|
+
type: VUnion<"offline" | "online", [VLiteral<"offline", "required">, VLiteral<"online", "required">], "required", never>;
|
|
7629
|
+
}, "required", "type" | "accepted_at" | "offline" | "online" | `offline.${string}` | "online.ip_address" | "online.user_agent">;
|
|
7630
|
+
payment_method: VString<string, "required">;
|
|
7631
|
+
payment_method_details: VAny<any, "optional", string>;
|
|
7632
|
+
status: VUnion<"pending" | "active" | "inactive", [VLiteral<"active", "required">, VLiteral<"inactive", "required">, VLiteral<"pending", "required">], "required", never>;
|
|
7633
|
+
type: VUnion<"multi_use" | "single_use", [VLiteral<"multi_use", "required">, VLiteral<"single_use", "required">], "required", never>;
|
|
7634
|
+
object: VString<string, "required">;
|
|
7635
|
+
livemode: VBoolean<boolean, "required">;
|
|
7636
|
+
multi_use: VAny<any, "optional", string>;
|
|
7637
|
+
on_behalf_of: VUnion<string | null | undefined, [VString<string, "required">, VNull<null, "required">], "optional", never>;
|
|
7638
|
+
single_use: VUnion< {
|
|
7639
|
+
amount: number;
|
|
7640
|
+
currency: string;
|
|
7641
|
+
} | null | undefined, [VObject< {
|
|
7642
|
+
amount: number;
|
|
7643
|
+
currency: string;
|
|
7509
7644
|
}, {
|
|
7510
|
-
|
|
7511
|
-
|
|
7512
|
-
}, "required", "
|
|
7645
|
+
amount: VFloat64<number, "required">;
|
|
7646
|
+
currency: VString<string, "required">;
|
|
7647
|
+
}, "required", "amount" | "currency">, VNull<null, "required">], "optional", "amount" | "currency">;
|
|
7648
|
+
}, "required", "object" | "type" | "id" | "payment_method_details" | "status" | "livemode" | "on_behalf_of" | "payment_method" | `payment_method_details.${string}` | "multi_use" | "single_use" | "customer_acceptance" | `multi_use.${string}` | "single_use.amount" | "single_use.currency" | "customer_acceptance.type" | "customer_acceptance.accepted_at" | "customer_acceptance.offline" | "customer_acceptance.online" | `customer_acceptance.offline.${string}` | "customer_acceptance.online.ip_address" | "customer_acceptance.online.user_agent">;
|
|
7649
|
+
lastSyncedAt: VFloat64<number, "required">;
|
|
7650
|
+
}, "required", "stripe" | "lastSyncedAt" | "stripe.object" | "stripe.id" | "stripe.livemode" | "stripe.type" | "stripe.status" | "stripe.on_behalf_of" | "stripe.payment_method" | "stripe.payment_method_details" | `stripe.payment_method_details.${string}` | "mandateId" | "stripe.multi_use" | "stripe.single_use" | "stripe.customer_acceptance" | `stripe.multi_use.${string}` | "stripe.single_use.amount" | "stripe.single_use.currency" | "stripe.customer_acceptance.type" | "stripe.customer_acceptance.accepted_at" | "stripe.customer_acceptance.offline" | "stripe.customer_acceptance.online" | `stripe.customer_acceptance.offline.${string}` | "stripe.customer_acceptance.online.ip_address" | "stripe.customer_acceptance.online.user_agent">, {
|
|
7651
|
+
byMandateId: ["mandateId", "_creationTime"];
|
|
7652
|
+
}, {}, {}>;
|
|
7653
|
+
stripeBillingPortalConfigurations: TableDefinition<VObject< {
|
|
7654
|
+
stripe: {
|
|
7655
|
+
object: string;
|
|
7656
|
+
id: string;
|
|
7657
|
+
name: string | null;
|
|
7658
|
+
metadata: Record<string, string | number | null> | null;
|
|
7659
|
+
application: string | null;
|
|
7660
|
+
created: number;
|
|
7661
|
+
livemode: boolean;
|
|
7662
|
+
active: boolean;
|
|
7663
|
+
business_profile: {
|
|
7664
|
+
headline: string | null;
|
|
7665
|
+
privacy_policy_url: string | null;
|
|
7666
|
+
terms_of_service_url: string | null;
|
|
7667
|
+
};
|
|
7668
|
+
default_return_url: string | null;
|
|
7669
|
+
features: {
|
|
7670
|
+
subscription_update: {
|
|
7671
|
+
products?: {
|
|
7672
|
+
adjustable_quantity: {
|
|
7673
|
+
enabled: boolean;
|
|
7674
|
+
maximum: number | null;
|
|
7675
|
+
minimum: number | null;
|
|
7676
|
+
};
|
|
7677
|
+
prices: string[];
|
|
7678
|
+
product: string;
|
|
7679
|
+
}[] | null | undefined;
|
|
7680
|
+
enabled: boolean;
|
|
7681
|
+
proration_behavior: "none" | "always_invoice" | "create_prorations";
|
|
7682
|
+
default_allowed_updates: ("price" | "promotion_code" | "quantity")[];
|
|
7683
|
+
schedule_at_period_end: {
|
|
7684
|
+
conditions: {
|
|
7685
|
+
type: "decreasing_item_amount" | "shortening_interval";
|
|
7686
|
+
}[];
|
|
7687
|
+
};
|
|
7688
|
+
};
|
|
7689
|
+
customer_update: {
|
|
7690
|
+
enabled: boolean;
|
|
7691
|
+
allowed_updated: ("address" | "email" | "name" | "phone" | "tax_id" | "shipping")[];
|
|
7692
|
+
};
|
|
7693
|
+
invoice_history: {
|
|
7694
|
+
enabled: boolean;
|
|
7695
|
+
};
|
|
7696
|
+
payment_method_update: {
|
|
7697
|
+
enabled: boolean;
|
|
7698
|
+
};
|
|
7699
|
+
subscription_cancel: {
|
|
7700
|
+
mode: "at_period_end" | "immediately";
|
|
7701
|
+
enabled: boolean;
|
|
7702
|
+
cancellation_reason: {
|
|
7703
|
+
enabled: boolean;
|
|
7704
|
+
options: ("customer_service" | "low_quality" | "missing_features" | "other" | "switched_service" | "too_complex" | "too_expensive" | "unused")[];
|
|
7705
|
+
};
|
|
7706
|
+
proration_behavior: "none" | "always_invoice" | "create_prorations";
|
|
7707
|
+
};
|
|
7708
|
+
};
|
|
7709
|
+
is_default: boolean;
|
|
7710
|
+
login_page: {
|
|
7711
|
+
url: string | null;
|
|
7712
|
+
enabled: boolean;
|
|
7713
|
+
};
|
|
7714
|
+
updated: number;
|
|
7715
|
+
};
|
|
7716
|
+
lastSyncedAt: number;
|
|
7717
|
+
billingPortalConfigurationId: string;
|
|
7718
|
+
}, {
|
|
7719
|
+
billingPortalConfigurationId: VString<string, "required">;
|
|
7720
|
+
stripe: VObject< {
|
|
7721
|
+
object: string;
|
|
7722
|
+
id: string;
|
|
7723
|
+
name: string | null;
|
|
7724
|
+
metadata: Record<string, string | number | null> | null;
|
|
7725
|
+
application: string | null;
|
|
7726
|
+
created: number;
|
|
7727
|
+
livemode: boolean;
|
|
7728
|
+
active: boolean;
|
|
7729
|
+
business_profile: {
|
|
7730
|
+
headline: string | null;
|
|
7731
|
+
privacy_policy_url: string | null;
|
|
7732
|
+
terms_of_service_url: string | null;
|
|
7733
|
+
};
|
|
7734
|
+
default_return_url: string | null;
|
|
7735
|
+
features: {
|
|
7736
|
+
subscription_update: {
|
|
7737
|
+
products?: {
|
|
7738
|
+
adjustable_quantity: {
|
|
7739
|
+
enabled: boolean;
|
|
7740
|
+
maximum: number | null;
|
|
7741
|
+
minimum: number | null;
|
|
7742
|
+
};
|
|
7743
|
+
prices: string[];
|
|
7744
|
+
product: string;
|
|
7745
|
+
}[] | null | undefined;
|
|
7746
|
+
enabled: boolean;
|
|
7747
|
+
proration_behavior: "none" | "always_invoice" | "create_prorations";
|
|
7748
|
+
default_allowed_updates: ("price" | "promotion_code" | "quantity")[];
|
|
7749
|
+
schedule_at_period_end: {
|
|
7750
|
+
conditions: {
|
|
7751
|
+
type: "decreasing_item_amount" | "shortening_interval";
|
|
7752
|
+
}[];
|
|
7753
|
+
};
|
|
7754
|
+
};
|
|
7755
|
+
customer_update: {
|
|
7756
|
+
enabled: boolean;
|
|
7757
|
+
allowed_updated: ("address" | "email" | "name" | "phone" | "tax_id" | "shipping")[];
|
|
7758
|
+
};
|
|
7759
|
+
invoice_history: {
|
|
7760
|
+
enabled: boolean;
|
|
7761
|
+
};
|
|
7762
|
+
payment_method_update: {
|
|
7763
|
+
enabled: boolean;
|
|
7764
|
+
};
|
|
7765
|
+
subscription_cancel: {
|
|
7766
|
+
mode: "at_period_end" | "immediately";
|
|
7767
|
+
enabled: boolean;
|
|
7768
|
+
cancellation_reason: {
|
|
7769
|
+
enabled: boolean;
|
|
7770
|
+
options: ("customer_service" | "low_quality" | "missing_features" | "other" | "switched_service" | "too_complex" | "too_expensive" | "unused")[];
|
|
7771
|
+
};
|
|
7772
|
+
proration_behavior: "none" | "always_invoice" | "create_prorations";
|
|
7773
|
+
};
|
|
7774
|
+
};
|
|
7775
|
+
is_default: boolean;
|
|
7776
|
+
login_page: {
|
|
7777
|
+
url: string | null;
|
|
7778
|
+
enabled: boolean;
|
|
7779
|
+
};
|
|
7780
|
+
updated: number;
|
|
7781
|
+
}, {
|
|
7782
|
+
id: VString<string, "required">;
|
|
7783
|
+
object: VString<string, "required">;
|
|
7784
|
+
active: VBoolean<boolean, "required">;
|
|
7785
|
+
application: VUnion<string | null, [VNull<null, "required">, VString<string, "required">], "required", never>;
|
|
7786
|
+
business_profile: VObject< {
|
|
7787
|
+
headline: string | null;
|
|
7788
|
+
privacy_policy_url: string | null;
|
|
7789
|
+
terms_of_service_url: string | null;
|
|
7790
|
+
}, {
|
|
7791
|
+
headline: VUnion<string | null, [VString<string, "required">, VNull<null, "required">], "required", never>;
|
|
7792
|
+
privacy_policy_url: VUnion<string | null, [VString<string, "required">, VNull<null, "required">], "required", never>;
|
|
7793
|
+
terms_of_service_url: VUnion<string | null, [VString<string, "required">, VNull<null, "required">], "required", never>;
|
|
7794
|
+
}, "required", "headline" | "privacy_policy_url" | "terms_of_service_url">;
|
|
7795
|
+
created: VFloat64<number, "required">;
|
|
7796
|
+
default_return_url: VUnion<string | null, [VString<string, "required">, VNull<null, "required">], "required", never>;
|
|
7797
|
+
features: VObject< {
|
|
7798
|
+
subscription_update: {
|
|
7799
|
+
products?: {
|
|
7800
|
+
adjustable_quantity: {
|
|
7801
|
+
enabled: boolean;
|
|
7802
|
+
maximum: number | null;
|
|
7803
|
+
minimum: number | null;
|
|
7804
|
+
};
|
|
7805
|
+
prices: string[];
|
|
7806
|
+
product: string;
|
|
7807
|
+
}[] | null | undefined;
|
|
7808
|
+
enabled: boolean;
|
|
7809
|
+
proration_behavior: "none" | "always_invoice" | "create_prorations";
|
|
7810
|
+
default_allowed_updates: ("price" | "promotion_code" | "quantity")[];
|
|
7811
|
+
schedule_at_period_end: {
|
|
7812
|
+
conditions: {
|
|
7813
|
+
type: "decreasing_item_amount" | "shortening_interval";
|
|
7814
|
+
}[];
|
|
7815
|
+
};
|
|
7816
|
+
};
|
|
7817
|
+
customer_update: {
|
|
7818
|
+
enabled: boolean;
|
|
7819
|
+
allowed_updated: ("address" | "email" | "name" | "phone" | "tax_id" | "shipping")[];
|
|
7820
|
+
};
|
|
7821
|
+
invoice_history: {
|
|
7822
|
+
enabled: boolean;
|
|
7823
|
+
};
|
|
7824
|
+
payment_method_update: {
|
|
7825
|
+
enabled: boolean;
|
|
7826
|
+
};
|
|
7827
|
+
subscription_cancel: {
|
|
7828
|
+
mode: "at_period_end" | "immediately";
|
|
7829
|
+
enabled: boolean;
|
|
7830
|
+
cancellation_reason: {
|
|
7831
|
+
enabled: boolean;
|
|
7832
|
+
options: ("customer_service" | "low_quality" | "missing_features" | "other" | "switched_service" | "too_complex" | "too_expensive" | "unused")[];
|
|
7833
|
+
};
|
|
7834
|
+
proration_behavior: "none" | "always_invoice" | "create_prorations";
|
|
7835
|
+
};
|
|
7836
|
+
}, {
|
|
7837
|
+
customer_update: VObject< {
|
|
7838
|
+
enabled: boolean;
|
|
7839
|
+
allowed_updated: ("address" | "email" | "name" | "phone" | "tax_id" | "shipping")[];
|
|
7840
|
+
}, {
|
|
7841
|
+
allowed_updated: VArray<("address" | "email" | "name" | "phone" | "tax_id" | "shipping")[], VUnion<"address" | "email" | "name" | "phone" | "tax_id" | "shipping", [VLiteral<"address", "required">, VLiteral<"email", "required">, VLiteral<"name", "required">, VLiteral<"phone", "required">, VLiteral<"shipping", "required">, VLiteral<"tax_id", "required">], "required", never>, "required">;
|
|
7842
|
+
enabled: VBoolean<boolean, "required">;
|
|
7843
|
+
}, "required", "enabled" | "allowed_updated">;
|
|
7844
|
+
invoice_history: VObject< {
|
|
7845
|
+
enabled: boolean;
|
|
7846
|
+
}, {
|
|
7847
|
+
enabled: VBoolean<boolean, "required">;
|
|
7848
|
+
}, "required", "enabled">;
|
|
7849
|
+
payment_method_update: VObject< {
|
|
7850
|
+
enabled: boolean;
|
|
7851
|
+
}, {
|
|
7852
|
+
enabled: VBoolean<boolean, "required">;
|
|
7853
|
+
}, "required", "enabled">;
|
|
7854
|
+
subscription_cancel: VObject< {
|
|
7855
|
+
mode: "at_period_end" | "immediately";
|
|
7856
|
+
enabled: boolean;
|
|
7857
|
+
cancellation_reason: {
|
|
7858
|
+
enabled: boolean;
|
|
7859
|
+
options: ("customer_service" | "low_quality" | "missing_features" | "other" | "switched_service" | "too_complex" | "too_expensive" | "unused")[];
|
|
7860
|
+
};
|
|
7861
|
+
proration_behavior: "none" | "always_invoice" | "create_prorations";
|
|
7862
|
+
}, {
|
|
7863
|
+
cancellation_reason: VObject< {
|
|
7864
|
+
enabled: boolean;
|
|
7865
|
+
options: ("customer_service" | "low_quality" | "missing_features" | "other" | "switched_service" | "too_complex" | "too_expensive" | "unused")[];
|
|
7866
|
+
}, {
|
|
7867
|
+
enabled: VBoolean<boolean, "required">;
|
|
7868
|
+
options: VArray<("customer_service" | "low_quality" | "missing_features" | "other" | "switched_service" | "too_complex" | "too_expensive" | "unused")[], VUnion<"customer_service" | "low_quality" | "missing_features" | "other" | "switched_service" | "too_complex" | "too_expensive" | "unused", [VLiteral<"customer_service", "required">, VLiteral<"low_quality", "required">, VLiteral<"missing_features", "required">, VLiteral<"other", "required">, VLiteral<"switched_service", "required">, VLiteral<"too_complex", "required">, VLiteral<"too_expensive", "required">, VLiteral<"unused", "required">], "required", never>, "required">;
|
|
7869
|
+
}, "required", "enabled" | "options">;
|
|
7870
|
+
enabled: VBoolean<boolean, "required">;
|
|
7871
|
+
mode: VUnion<"at_period_end" | "immediately", [VLiteral<"at_period_end", "required">, VLiteral<"immediately", "required">], "required", never>;
|
|
7872
|
+
proration_behavior: VUnion<"none" | "always_invoice" | "create_prorations", [VLiteral<"always_invoice", "required">, VLiteral<"create_prorations", "required">, VLiteral<"none", "required">], "required", never>;
|
|
7873
|
+
}, "required", "mode" | "enabled" | "cancellation_reason" | "proration_behavior" | "cancellation_reason.enabled" | "cancellation_reason.options">;
|
|
7874
|
+
subscription_update: VObject< {
|
|
7875
|
+
products?: {
|
|
7876
|
+
adjustable_quantity: {
|
|
7877
|
+
enabled: boolean;
|
|
7878
|
+
maximum: number | null;
|
|
7879
|
+
minimum: number | null;
|
|
7880
|
+
};
|
|
7881
|
+
prices: string[];
|
|
7882
|
+
product: string;
|
|
7883
|
+
}[] | null | undefined;
|
|
7884
|
+
enabled: boolean;
|
|
7885
|
+
proration_behavior: "none" | "always_invoice" | "create_prorations";
|
|
7886
|
+
default_allowed_updates: ("price" | "promotion_code" | "quantity")[];
|
|
7887
|
+
schedule_at_period_end: {
|
|
7888
|
+
conditions: {
|
|
7889
|
+
type: "decreasing_item_amount" | "shortening_interval";
|
|
7890
|
+
}[];
|
|
7891
|
+
};
|
|
7892
|
+
}, {
|
|
7893
|
+
default_allowed_updates: VArray<("price" | "promotion_code" | "quantity")[], VUnion<"price" | "promotion_code" | "quantity", [VLiteral<"price", "required">, VLiteral<"promotion_code", "required">, VLiteral<"quantity", "required">], "required", never>, "required">;
|
|
7894
|
+
enabled: VBoolean<boolean, "required">;
|
|
7895
|
+
products: VUnion< {
|
|
7896
|
+
adjustable_quantity: {
|
|
7897
|
+
enabled: boolean;
|
|
7898
|
+
maximum: number | null;
|
|
7899
|
+
minimum: number | null;
|
|
7900
|
+
};
|
|
7901
|
+
prices: string[];
|
|
7902
|
+
product: string;
|
|
7903
|
+
}[] | null | undefined, [VNull<null, "required">, VArray< {
|
|
7904
|
+
adjustable_quantity: {
|
|
7905
|
+
enabled: boolean;
|
|
7906
|
+
maximum: number | null;
|
|
7907
|
+
minimum: number | null;
|
|
7908
|
+
};
|
|
7909
|
+
prices: string[];
|
|
7910
|
+
product: string;
|
|
7911
|
+
}[], VObject< {
|
|
7912
|
+
adjustable_quantity: {
|
|
7913
|
+
enabled: boolean;
|
|
7914
|
+
maximum: number | null;
|
|
7915
|
+
minimum: number | null;
|
|
7916
|
+
};
|
|
7917
|
+
prices: string[];
|
|
7918
|
+
product: string;
|
|
7919
|
+
}, {
|
|
7920
|
+
adjustable_quantity: VObject< {
|
|
7921
|
+
enabled: boolean;
|
|
7922
|
+
maximum: number | null;
|
|
7923
|
+
minimum: number | null;
|
|
7924
|
+
}, {
|
|
7925
|
+
enabled: VBoolean<boolean, "required">;
|
|
7926
|
+
maximum: VUnion<number | null, [VFloat64<number, "required">, VNull<null, "required">], "required", never>;
|
|
7927
|
+
minimum: VUnion<number | null, [VFloat64<number, "required">, VNull<null, "required">], "required", never>;
|
|
7928
|
+
}, "required", "enabled" | "maximum" | "minimum">;
|
|
7929
|
+
prices: VArray<string[], VString<string, "required">, "required">;
|
|
7930
|
+
product: VString<string, "required">;
|
|
7931
|
+
}, "required", "adjustable_quantity" | "prices" | "product" | "adjustable_quantity.enabled" | "adjustable_quantity.maximum" | "adjustable_quantity.minimum">, "required">], "optional", never>;
|
|
7932
|
+
proration_behavior: VUnion<"none" | "always_invoice" | "create_prorations", [VLiteral<"always_invoice", "required">, VLiteral<"create_prorations", "required">, VLiteral<"none", "required">], "required", never>;
|
|
7933
|
+
schedule_at_period_end: VObject< {
|
|
7934
|
+
conditions: {
|
|
7935
|
+
type: "decreasing_item_amount" | "shortening_interval";
|
|
7936
|
+
}[];
|
|
7937
|
+
}, {
|
|
7938
|
+
conditions: VArray< {
|
|
7939
|
+
type: "decreasing_item_amount" | "shortening_interval";
|
|
7940
|
+
}[], VObject< {
|
|
7941
|
+
type: "decreasing_item_amount" | "shortening_interval";
|
|
7942
|
+
}, {
|
|
7943
|
+
type: VUnion<"decreasing_item_amount" | "shortening_interval", [VLiteral<"decreasing_item_amount", "required">, VLiteral<"shortening_interval", "required">], "required", never>;
|
|
7944
|
+
}, "required", "type">, "required">;
|
|
7945
|
+
}, "required", "conditions">;
|
|
7946
|
+
}, "required", "enabled" | "products" | "proration_behavior" | "default_allowed_updates" | "schedule_at_period_end" | "schedule_at_period_end.conditions">;
|
|
7947
|
+
}, "required", "subscription_update" | "customer_update" | "invoice_history" | "payment_method_update" | "subscription_cancel" | "subscription_update.enabled" | "subscription_update.products" | "subscription_update.proration_behavior" | "subscription_update.default_allowed_updates" | "subscription_update.schedule_at_period_end" | "subscription_update.schedule_at_period_end.conditions" | "customer_update.enabled" | "customer_update.allowed_updated" | "invoice_history.enabled" | "payment_method_update.enabled" | "subscription_cancel.mode" | "subscription_cancel.enabled" | "subscription_cancel.cancellation_reason" | "subscription_cancel.proration_behavior" | "subscription_cancel.cancellation_reason.enabled" | "subscription_cancel.cancellation_reason.options">;
|
|
7948
|
+
is_default: VBoolean<boolean, "required">;
|
|
7949
|
+
livemode: VBoolean<boolean, "required">;
|
|
7950
|
+
login_page: VObject< {
|
|
7951
|
+
url: string | null;
|
|
7952
|
+
enabled: boolean;
|
|
7953
|
+
}, {
|
|
7954
|
+
enabled: VBoolean<boolean, "required">;
|
|
7955
|
+
url: VUnion<string | null, [VString<string, "required">, VNull<null, "required">], "required", never>;
|
|
7956
|
+
}, "required", "url" | "enabled">;
|
|
7957
|
+
metadata: VUnion<Record<string, string | number | null> | null, [VNull<null, "required">, VRecord<Record<string, string | number | null>, VString<string, "required">, VUnion<string | number | null, [VString<string, "required">, VFloat64<number, "required">, VNull<null, "required">], "required", never>, "required", string>], "required", string>;
|
|
7958
|
+
name: VUnion<string | null, [VString<string, "required">, VNull<null, "required">], "required", never>;
|
|
7959
|
+
updated: VFloat64<number, "required">;
|
|
7960
|
+
}, "required", "object" | "id" | "name" | "metadata" | "application" | "created" | "livemode" | `metadata.${string}` | "active" | "business_profile" | "default_return_url" | "features" | "is_default" | "login_page" | "updated" | "business_profile.headline" | "business_profile.privacy_policy_url" | "business_profile.terms_of_service_url" | "features.subscription_update" | "features.customer_update" | "features.invoice_history" | "features.payment_method_update" | "features.subscription_cancel" | "features.subscription_update.enabled" | "features.subscription_update.products" | "features.subscription_update.proration_behavior" | "features.subscription_update.default_allowed_updates" | "features.subscription_update.schedule_at_period_end" | "features.subscription_update.schedule_at_period_end.conditions" | "features.customer_update.enabled" | "features.customer_update.allowed_updated" | "features.invoice_history.enabled" | "features.payment_method_update.enabled" | "features.subscription_cancel.mode" | "features.subscription_cancel.enabled" | "features.subscription_cancel.cancellation_reason" | "features.subscription_cancel.proration_behavior" | "features.subscription_cancel.cancellation_reason.enabled" | "features.subscription_cancel.cancellation_reason.options" | "login_page.url" | "login_page.enabled">;
|
|
7961
|
+
lastSyncedAt: VFloat64<number, "required">;
|
|
7962
|
+
}, "required", "stripe" | "lastSyncedAt" | "stripe.object" | "stripe.id" | "stripe.name" | "stripe.metadata" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.active" | "stripe.updated" | "stripe.application" | "billingPortalConfigurationId" | "stripe.business_profile" | "stripe.default_return_url" | "stripe.features" | "stripe.is_default" | "stripe.login_page" | "stripe.business_profile.headline" | "stripe.business_profile.privacy_policy_url" | "stripe.business_profile.terms_of_service_url" | "stripe.features.subscription_update" | "stripe.features.customer_update" | "stripe.features.invoice_history" | "stripe.features.payment_method_update" | "stripe.features.subscription_cancel" | "stripe.features.subscription_update.enabled" | "stripe.features.subscription_update.products" | "stripe.features.subscription_update.proration_behavior" | "stripe.features.subscription_update.default_allowed_updates" | "stripe.features.subscription_update.schedule_at_period_end" | "stripe.features.subscription_update.schedule_at_period_end.conditions" | "stripe.features.customer_update.enabled" | "stripe.features.customer_update.allowed_updated" | "stripe.features.invoice_history.enabled" | "stripe.features.payment_method_update.enabled" | "stripe.features.subscription_cancel.mode" | "stripe.features.subscription_cancel.enabled" | "stripe.features.subscription_cancel.cancellation_reason" | "stripe.features.subscription_cancel.proration_behavior" | "stripe.features.subscription_cancel.cancellation_reason.enabled" | "stripe.features.subscription_cancel.cancellation_reason.options" | "stripe.login_page.url" | "stripe.login_page.enabled">, {
|
|
7963
|
+
byBillingPortalConfigurationId: ["billingPortalConfigurationId", "_creationTime"];
|
|
7964
|
+
}, {}, {}>;
|
|
7965
|
+
};
|
|
7966
|
+
|
|
7967
|
+
declare const SubscribeImplementation: {
|
|
7513
7968
|
name: string;
|
|
7514
7969
|
handler: (context: GenericActionCtx<StripeDataModel>, args: {
|
|
7515
|
-
|
|
7516
|
-
createStripeCustomerIfMissing?: boolean | undefined;
|
|
7517
|
-
cancel: {
|
|
7518
|
-
url: string;
|
|
7519
|
-
};
|
|
7520
|
-
priceId: string;
|
|
7970
|
+
createStripeCustomerIfMissing?: boolean;
|
|
7521
7971
|
entityId: string;
|
|
7522
|
-
|
|
7523
|
-
|
|
7524
|
-
|
|
7525
|
-
|
|
7526
|
-
|
|
7527
|
-
}>;
|
|
7972
|
+
priceId: string;
|
|
7973
|
+
cancel_url: string;
|
|
7974
|
+
success_url: string;
|
|
7975
|
+
mode: "subscription";
|
|
7976
|
+
} & Omit<default_2.Checkout.SessionCreateParams, "customer" | "client_reference_id" | "line_items" | "mode" | "success_url" | "ui_mode" | "cancel_url">, configuration: InternalConfiguration) => Promise<default_2.Response<default_2.Checkout.Session>>;
|
|
7528
7977
|
};
|
|
7529
7978
|
|
|
7530
7979
|
declare type WithOptional<T, K extends keyof T = never> = Omit<T, K> & Partial<Pick<T, K>>;
|