@raideno/convex-stripe 0.1.3 → 0.1.5
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/server/index.d.ts +5 -5
- package/dist/server/schema/customer.d.ts +4 -4
- package/dist/server/schema/index.d.ts +51 -53
- package/dist/server/schema/invoice.d.ts +4 -4
- package/dist/server/schema/payment-intent.d.ts +3 -3
- package/dist/server/schema/payout.d.ts +9 -9
- package/dist/server/schema/setup-intent.d.ts +9 -9
- package/dist/server/store/index.d.ts +5 -5
- package/dist/server/types.d.ts +1 -9
- package/dist/server.js +173 -15
- package/package.json +1 -1
|
@@ -73,7 +73,7 @@ export declare const InvoiceStripeToConvex: (invoice: Stripe.Invoice & {
|
|
|
73
73
|
attempt_count: number;
|
|
74
74
|
attempted: boolean;
|
|
75
75
|
billing_reason: "subscription" | "automatic_pending_invoice_item_invoice" | "manual" | "quote_accept" | "subscription_create" | "subscription_cycle" | "subscription_threshold" | "subscription_update" | "upcoming" | null;
|
|
76
|
-
customer_tax_exempt: "reverse" | "
|
|
76
|
+
customer_tax_exempt: "reverse" | "none" | "exempt" | null;
|
|
77
77
|
default_tax_rates: any[];
|
|
78
78
|
post_payment_credit_notes_amount: number;
|
|
79
79
|
pre_payment_credit_notes_amount: number;
|
|
@@ -117,7 +117,7 @@ export declare const InvoiceSchema: {
|
|
|
117
117
|
customer_name: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
118
118
|
customer_phone: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
119
119
|
customer_shipping: import('convex/values').VAny<any, "optional", string>;
|
|
120
|
-
customer_tax_exempt: import('convex/values').VUnion<"reverse" | "
|
|
120
|
+
customer_tax_exempt: import('convex/values').VUnion<"reverse" | "none" | "exempt" | null, [import('convex/values').VLiteral<"exempt", "required">, import('convex/values').VLiteral<"none", "required">, import('convex/values').VLiteral<"reverse", "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
121
121
|
customer_tax_ids: import('convex/values').VUnion<any[] | null | undefined, [import('convex/values').VArray<any[], import('convex/values').VAny<any, "required", string>, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
122
122
|
default_payment_method: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
123
123
|
default_source: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
@@ -229,7 +229,7 @@ export declare const InvoiceObject: import('convex/values').VObject<{
|
|
|
229
229
|
attempt_count: number;
|
|
230
230
|
attempted: boolean;
|
|
231
231
|
billing_reason: "subscription" | "automatic_pending_invoice_item_invoice" | "manual" | "quote_accept" | "subscription_create" | "subscription_cycle" | "subscription_threshold" | "subscription_update" | "upcoming" | null;
|
|
232
|
-
customer_tax_exempt: "reverse" | "
|
|
232
|
+
customer_tax_exempt: "reverse" | "none" | "exempt" | null;
|
|
233
233
|
default_tax_rates: any[];
|
|
234
234
|
post_payment_credit_notes_amount: number;
|
|
235
235
|
pre_payment_credit_notes_amount: number;
|
|
@@ -272,7 +272,7 @@ export declare const InvoiceObject: import('convex/values').VObject<{
|
|
|
272
272
|
customer_name: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
273
273
|
customer_phone: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
274
274
|
customer_shipping: import('convex/values').VAny<any, "optional", string>;
|
|
275
|
-
customer_tax_exempt: import('convex/values').VUnion<"reverse" | "
|
|
275
|
+
customer_tax_exempt: import('convex/values').VUnion<"reverse" | "none" | "exempt" | null, [import('convex/values').VLiteral<"exempt", "required">, import('convex/values').VLiteral<"none", "required">, import('convex/values').VLiteral<"reverse", "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
276
276
|
customer_tax_ids: import('convex/values').VUnion<any[] | null | undefined, [import('convex/values').VArray<any[], import('convex/values').VAny<any, "required", string>, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
277
277
|
default_payment_method: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
278
278
|
default_source: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
@@ -13,7 +13,7 @@ export declare const PaymentIntentSchema: {
|
|
|
13
13
|
}, {
|
|
14
14
|
allow_redirects: import('convex/values').VUnion<"always" | "never" | null | undefined, [import('convex/values').VLiteral<"always", "required">, import('convex/values').VLiteral<"never", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
15
15
|
enabled: import('convex/values').VBoolean<boolean, "required">;
|
|
16
|
-
}, "required", "
|
|
16
|
+
}, "required", "enabled" | "allow_redirects">, import('convex/values').VNull<null, "required">], "optional", "enabled" | "allow_redirects">;
|
|
17
17
|
client_secret: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
18
18
|
currency: import('convex/values').VUnion<string | null, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
19
19
|
customer: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
@@ -200,7 +200,7 @@ export declare const PaymentIntentObject: import('convex/values').VObject<{
|
|
|
200
200
|
}, {
|
|
201
201
|
allow_redirects: import('convex/values').VUnion<"always" | "never" | null | undefined, [import('convex/values').VLiteral<"always", "required">, import('convex/values').VLiteral<"never", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
202
202
|
enabled: import('convex/values').VBoolean<boolean, "required">;
|
|
203
|
-
}, "required", "
|
|
203
|
+
}, "required", "enabled" | "allow_redirects">, import('convex/values').VNull<null, "required">], "optional", "enabled" | "allow_redirects">;
|
|
204
204
|
client_secret: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
205
205
|
currency: import('convex/values').VUnion<string | null, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
206
206
|
customer: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
@@ -308,4 +308,4 @@ export declare const PaymentIntentObject: import('convex/values').VObject<{
|
|
|
308
308
|
review: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
309
309
|
transfer_data: import('convex/values').VAny<any, "optional", string>;
|
|
310
310
|
transfer_group: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
311
|
-
}, "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.
|
|
311
|
+
}, "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.tip" | "amount_details.tip.amount">;
|
|
@@ -5,15 +5,15 @@ export declare const PayoutStripeToConvex: (payout: Stripe.Payout) => {
|
|
|
5
5
|
description?: string | null | undefined;
|
|
6
6
|
metadata?: Record<string, string | number | null> | null | undefined;
|
|
7
7
|
statement_descriptor?: string | null | undefined;
|
|
8
|
+
application_fee?: string | null | undefined;
|
|
8
9
|
application_fee_amount?: number | null | undefined;
|
|
9
10
|
failure_balance_transaction?: string | null | undefined;
|
|
10
11
|
failure_code?: string | null | undefined;
|
|
11
12
|
failure_message?: string | null | undefined;
|
|
12
|
-
application_only?: string | null | undefined;
|
|
13
13
|
destination?: string | null | undefined;
|
|
14
14
|
original_payout?: string | null | undefined;
|
|
15
15
|
payout_method?: string | null | undefined;
|
|
16
|
-
reconciliation_status?: "completed" | "in_progress" | "not_applicable" | undefined;
|
|
16
|
+
reconciliation_status?: "completed" | "in_progress" | "not_applicable" | null | undefined;
|
|
17
17
|
reversed_by?: string | null | undefined;
|
|
18
18
|
trace_id?: {
|
|
19
19
|
value?: string | null | undefined;
|
|
@@ -41,7 +41,7 @@ export declare const PayoutSchema: {
|
|
|
41
41
|
statement_descriptor: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
42
42
|
status: import('convex/values').VString<string, "required">;
|
|
43
43
|
object: import('convex/values').VString<string, "required">;
|
|
44
|
-
|
|
44
|
+
application_fee: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
45
45
|
application_fee_amount: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
46
46
|
automatic: import('convex/values').VBoolean<boolean, "required">;
|
|
47
47
|
balance_transaction: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
@@ -54,7 +54,7 @@ export declare const PayoutSchema: {
|
|
|
54
54
|
method: import('convex/values').VString<string, "required">;
|
|
55
55
|
original_payout: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
56
56
|
payout_method: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
57
|
-
reconciliation_status: import('convex/values').VUnion<"completed" | "in_progress" | "not_applicable" | undefined, [import('convex/values').VLiteral<"completed", "required">, import('convex/values').VLiteral<"in_progress", "required">, import('convex/values').VLiteral<"not_applicable", "required">], "optional", never>;
|
|
57
|
+
reconciliation_status: import('convex/values').VUnion<"completed" | "in_progress" | "not_applicable" | null | undefined, [import('convex/values').VLiteral<"completed", "required">, import('convex/values').VLiteral<"in_progress", "required">, import('convex/values').VLiteral<"not_applicable", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
58
58
|
reversed_by: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
59
59
|
source_type: import('convex/values').VString<string, "required">;
|
|
60
60
|
trace_id: import('convex/values').VUnion<{
|
|
@@ -75,15 +75,15 @@ export declare const PayoutObject: import('convex/values').VObject<{
|
|
|
75
75
|
description?: string | null | undefined;
|
|
76
76
|
metadata?: Record<string, string | number | null> | null | undefined;
|
|
77
77
|
statement_descriptor?: string | null | undefined;
|
|
78
|
+
application_fee?: string | null | undefined;
|
|
78
79
|
application_fee_amount?: number | null | undefined;
|
|
79
80
|
failure_balance_transaction?: string | null | undefined;
|
|
80
81
|
failure_code?: string | null | undefined;
|
|
81
82
|
failure_message?: string | null | undefined;
|
|
82
|
-
application_only?: string | null | undefined;
|
|
83
83
|
destination?: string | null | undefined;
|
|
84
84
|
original_payout?: string | null | undefined;
|
|
85
85
|
payout_method?: string | null | undefined;
|
|
86
|
-
reconciliation_status?: "completed" | "in_progress" | "not_applicable" | undefined;
|
|
86
|
+
reconciliation_status?: "completed" | "in_progress" | "not_applicable" | null | undefined;
|
|
87
87
|
reversed_by?: string | null | undefined;
|
|
88
88
|
trace_id?: {
|
|
89
89
|
value?: string | null | undefined;
|
|
@@ -110,7 +110,7 @@ export declare const PayoutObject: import('convex/values').VObject<{
|
|
|
110
110
|
statement_descriptor: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
111
111
|
status: import('convex/values').VString<string, "required">;
|
|
112
112
|
object: import('convex/values').VString<string, "required">;
|
|
113
|
-
|
|
113
|
+
application_fee: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
114
114
|
application_fee_amount: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
115
115
|
automatic: import('convex/values').VBoolean<boolean, "required">;
|
|
116
116
|
balance_transaction: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
@@ -123,7 +123,7 @@ export declare const PayoutObject: import('convex/values').VObject<{
|
|
|
123
123
|
method: import('convex/values').VString<string, "required">;
|
|
124
124
|
original_payout: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
125
125
|
payout_method: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
126
|
-
reconciliation_status: import('convex/values').VUnion<"completed" | "in_progress" | "not_applicable" | undefined, [import('convex/values').VLiteral<"completed", "required">, import('convex/values').VLiteral<"in_progress", "required">, import('convex/values').VLiteral<"not_applicable", "required">], "optional", never>;
|
|
126
|
+
reconciliation_status: import('convex/values').VUnion<"completed" | "in_progress" | "not_applicable" | null | undefined, [import('convex/values').VLiteral<"completed", "required">, import('convex/values').VLiteral<"in_progress", "required">, import('convex/values').VLiteral<"not_applicable", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
127
127
|
reversed_by: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
128
128
|
source_type: import('convex/values').VString<string, "required">;
|
|
129
129
|
trace_id: import('convex/values').VUnion<{
|
|
@@ -137,4 +137,4 @@ export declare const PayoutObject: import('convex/values').VObject<{
|
|
|
137
137
|
value: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
138
138
|
}, "required", "status" | "value">], "optional", "status" | "value">;
|
|
139
139
|
type: import('convex/values').VUnion<"card" | "bank_account", [import('convex/values').VLiteral<"bank_account", "required">, import('convex/values').VLiteral<"card", "required">], "required", never>;
|
|
140
|
-
}, "required", "object" | "type" | "id" | "amount" | "balance_transaction" | "currency" | "description" | "metadata" | "statement_descriptor" | "status" | "application_fee_amount" | "created" | "failure_balance_transaction" | "failure_code" | "failure_message" | "livemode" | `metadata.${string}` | "automatic" | "arrival_date" | "
|
|
140
|
+
}, "required", "object" | "type" | "id" | "amount" | "balance_transaction" | "currency" | "description" | "metadata" | "statement_descriptor" | "status" | "application_fee" | "application_fee_amount" | "created" | "failure_balance_transaction" | "failure_code" | "failure_message" | "livemode" | `metadata.${string}` | "automatic" | "arrival_date" | "destination" | "method" | "original_payout" | "payout_method" | "reconciliation_status" | "reversed_by" | "source_type" | "trace_id" | "trace_id.status" | "trace_id.value">;
|
|
@@ -12,8 +12,8 @@ export declare const SetupIntentStripeToConvex: (setupIntent: Stripe.SetupIntent
|
|
|
12
12
|
id: string;
|
|
13
13
|
} | null | undefined;
|
|
14
14
|
automatic_payment_methods?: {
|
|
15
|
-
allow_redirects?: "always" | "never" | null | undefined;
|
|
16
15
|
enabled?: boolean | null | undefined;
|
|
16
|
+
allow_redirects?: "always" | "never" | null | undefined;
|
|
17
17
|
} | null | undefined;
|
|
18
18
|
cancellation_reason?: "duplicate" | "abandoned" | "requested_by_customer" | null | undefined;
|
|
19
19
|
attach_to_self?: boolean | null | undefined;
|
|
@@ -35,15 +35,15 @@ export declare const SetupIntentStripeToConvex: (setupIntent: Stripe.SetupIntent
|
|
|
35
35
|
export declare const SetupIntentSchema: {
|
|
36
36
|
id: import('convex/values').VString<string, "required">;
|
|
37
37
|
automatic_payment_methods: import('convex/values').VUnion<{
|
|
38
|
-
allow_redirects?: "always" | "never" | null | undefined;
|
|
39
38
|
enabled?: boolean | null | undefined;
|
|
40
|
-
} | null | undefined, [import('convex/values').VObject<{
|
|
41
39
|
allow_redirects?: "always" | "never" | null | undefined;
|
|
40
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
42
41
|
enabled?: boolean | null | undefined;
|
|
42
|
+
allow_redirects?: "always" | "never" | null | undefined;
|
|
43
43
|
}, {
|
|
44
44
|
allow_redirects: import('convex/values').VUnion<"always" | "never" | null | undefined, [import('convex/values').VLiteral<"always", "required">, import('convex/values').VLiteral<"never", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
45
45
|
enabled: import('convex/values').VUnion<boolean | null | undefined, [import('convex/values').VBoolean<boolean, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
46
|
-
}, "required", "
|
|
46
|
+
}, "required", "enabled" | "allow_redirects">, import('convex/values').VNull<null, "required">], "optional", "enabled" | "allow_redirects">;
|
|
47
47
|
client_secret: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
48
48
|
customer: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
49
49
|
description: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
@@ -90,8 +90,8 @@ export declare const SetupIntentObject: import('convex/values').VObject<{
|
|
|
90
90
|
id: string;
|
|
91
91
|
} | null | undefined;
|
|
92
92
|
automatic_payment_methods?: {
|
|
93
|
-
allow_redirects?: "always" | "never" | null | undefined;
|
|
94
93
|
enabled?: boolean | null | undefined;
|
|
94
|
+
allow_redirects?: "always" | "never" | null | undefined;
|
|
95
95
|
} | null | undefined;
|
|
96
96
|
cancellation_reason?: "duplicate" | "abandoned" | "requested_by_customer" | null | undefined;
|
|
97
97
|
attach_to_self?: boolean | null | undefined;
|
|
@@ -112,15 +112,15 @@ export declare const SetupIntentObject: import('convex/values').VObject<{
|
|
|
112
112
|
}, {
|
|
113
113
|
id: import('convex/values').VString<string, "required">;
|
|
114
114
|
automatic_payment_methods: import('convex/values').VUnion<{
|
|
115
|
-
allow_redirects?: "always" | "never" | null | undefined;
|
|
116
115
|
enabled?: boolean | null | undefined;
|
|
117
|
-
} | null | undefined, [import('convex/values').VObject<{
|
|
118
116
|
allow_redirects?: "always" | "never" | null | undefined;
|
|
117
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
119
118
|
enabled?: boolean | null | undefined;
|
|
119
|
+
allow_redirects?: "always" | "never" | null | undefined;
|
|
120
120
|
}, {
|
|
121
121
|
allow_redirects: import('convex/values').VUnion<"always" | "never" | null | undefined, [import('convex/values').VLiteral<"always", "required">, import('convex/values').VLiteral<"never", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
122
122
|
enabled: import('convex/values').VUnion<boolean | null | undefined, [import('convex/values').VBoolean<boolean, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
123
|
-
}, "required", "
|
|
123
|
+
}, "required", "enabled" | "allow_redirects">, import('convex/values').VNull<null, "required">], "optional", "enabled" | "allow_redirects">;
|
|
124
124
|
client_secret: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
125
125
|
customer: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
126
126
|
description: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
@@ -153,4 +153,4 @@ export declare const SetupIntentObject: import('convex/values').VObject<{
|
|
|
153
153
|
payment_method_options: import('convex/values').VAny<any, "required", string>;
|
|
154
154
|
payment_method_types: import('convex/values').VArray<string[], import('convex/values').VString<string, "required">, "required">;
|
|
155
155
|
single_use_mandate: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
156
|
-
}, "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.
|
|
156
|
+
}, "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" | "mandate" | "single_use_mandate" | `last_setup_error.${string}`>;
|
|
@@ -156,7 +156,7 @@ export declare const StoreImplementation: {
|
|
|
156
156
|
preferred_locales?: string[] | null | undefined;
|
|
157
157
|
sources?: any;
|
|
158
158
|
subscriptions?: any;
|
|
159
|
-
tax_exempt?: "reverse" | "
|
|
159
|
+
tax_exempt?: "reverse" | "none" | "exempt" | null | undefined;
|
|
160
160
|
tax_ids?: any;
|
|
161
161
|
test_clock?: string | null | undefined;
|
|
162
162
|
object: string;
|
|
@@ -261,15 +261,15 @@ export declare const StoreImplementation: {
|
|
|
261
261
|
description?: string | null | undefined;
|
|
262
262
|
metadata?: Record<string, string | number | null> | null | undefined;
|
|
263
263
|
statement_descriptor?: string | null | undefined;
|
|
264
|
+
application_fee?: string | null | undefined;
|
|
264
265
|
application_fee_amount?: number | null | undefined;
|
|
265
266
|
failure_balance_transaction?: string | null | undefined;
|
|
266
267
|
failure_code?: string | null | undefined;
|
|
267
268
|
failure_message?: string | null | undefined;
|
|
268
|
-
application_only?: string | null | undefined;
|
|
269
269
|
destination?: string | null | undefined;
|
|
270
270
|
original_payout?: string | null | undefined;
|
|
271
271
|
payout_method?: string | null | undefined;
|
|
272
|
-
reconciliation_status?: "completed" | "in_progress" | "not_applicable" | undefined;
|
|
272
|
+
reconciliation_status?: "completed" | "in_progress" | "not_applicable" | null | undefined;
|
|
273
273
|
reversed_by?: string | null | undefined;
|
|
274
274
|
trace_id?: {
|
|
275
275
|
value?: string | null | undefined;
|
|
@@ -533,7 +533,7 @@ export declare const StoreImplementation: {
|
|
|
533
533
|
attempt_count: number;
|
|
534
534
|
attempted: boolean;
|
|
535
535
|
billing_reason: "subscription" | "automatic_pending_invoice_item_invoice" | "manual" | "quote_accept" | "subscription_create" | "subscription_cycle" | "subscription_threshold" | "subscription_update" | "upcoming" | null;
|
|
536
|
-
customer_tax_exempt: "reverse" | "
|
|
536
|
+
customer_tax_exempt: "reverse" | "none" | "exempt" | null;
|
|
537
537
|
default_tax_rates: any[];
|
|
538
538
|
post_payment_credit_notes_amount: number;
|
|
539
539
|
pre_payment_credit_notes_amount: number;
|
|
@@ -684,8 +684,8 @@ export declare const StoreImplementation: {
|
|
|
684
684
|
id: string;
|
|
685
685
|
} | null | undefined;
|
|
686
686
|
automatic_payment_methods?: {
|
|
687
|
-
allow_redirects?: "always" | "never" | null | undefined;
|
|
688
687
|
enabled?: boolean | null | undefined;
|
|
688
|
+
allow_redirects?: "always" | "never" | null | undefined;
|
|
689
689
|
} | null | undefined;
|
|
690
690
|
cancellation_reason?: "duplicate" | "abandoned" | "requested_by_customer" | null | undefined;
|
|
691
691
|
attach_to_self?: boolean | null | undefined;
|
package/dist/server/types.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { GenericId, Infer, Validator } from 'convex/values';
|
|
1
|
+
import { Infer, Validator } from 'convex/values';
|
|
3
2
|
import { Logger } from './logger';
|
|
4
3
|
import { stripeTables } from './schema';
|
|
5
4
|
export interface InternalConfiguration {
|
|
@@ -20,10 +19,3 @@ export type InferArgs<S extends ArgSchema> = {
|
|
|
20
19
|
} & {
|
|
21
20
|
[K in keyof S as S[K] extends Validator<any, "optional", any> ? K : never]?: Infer<S[K]>;
|
|
22
21
|
};
|
|
23
|
-
/**
|
|
24
|
-
* Convex document from a given table.
|
|
25
|
-
*/
|
|
26
|
-
export type GenericDoc<DataModel extends GenericDataModel, TableName extends TableNamesInDataModel<DataModel>> = DocumentByName<DataModel, TableName> & {
|
|
27
|
-
_id: GenericId<TableName>;
|
|
28
|
-
_creationTime: number;
|
|
29
|
-
};
|
package/dist/server.js
CHANGED
|
@@ -856,7 +856,7 @@ class ConvexError extends (_b = Error, _a = IDENTIFYING_FIELD, _b) {
|
|
|
856
856
|
this.data = data;
|
|
857
857
|
}
|
|
858
858
|
}
|
|
859
|
-
const version = "1.27.
|
|
859
|
+
const version = "1.27.1";
|
|
860
860
|
function performSyscall(op, arg) {
|
|
861
861
|
if (typeof Convex === "undefined" || Convex.syscall === void 0) {
|
|
862
862
|
throw new Error(
|
|
@@ -2246,7 +2246,16 @@ const normalizeConfiguration = (config) => {
|
|
|
2246
2246
|
stripe_payment_intents: true,
|
|
2247
2247
|
stripe_refunds: true,
|
|
2248
2248
|
stripe_invoices: true,
|
|
2249
|
-
stripe_reviews: true
|
|
2249
|
+
stripe_reviews: true,
|
|
2250
|
+
stripe_charges: true,
|
|
2251
|
+
stripe_credit_notes: true,
|
|
2252
|
+
stripe_disputes: true,
|
|
2253
|
+
stripe_early_fraud_warnings: true,
|
|
2254
|
+
stripe_payment_methods: true,
|
|
2255
|
+
stripe_plans: true,
|
|
2256
|
+
stripe_setup_intents: true,
|
|
2257
|
+
stripe_subscription_schedules: true,
|
|
2258
|
+
stripe_tax_ids: true
|
|
2250
2259
|
},
|
|
2251
2260
|
debug: false,
|
|
2252
2261
|
logger: new Logger(config.debug || false),
|
|
@@ -2770,7 +2779,66 @@ const buildRedirectImplementation = (configuration) => httpActionGeneric(async (
|
|
|
2770
2779
|
});
|
|
2771
2780
|
const CheckoutSessionStripeToConvex = (session) => {
|
|
2772
2781
|
const object = {
|
|
2773
|
-
|
|
2782
|
+
id: session.id,
|
|
2783
|
+
automatic_tax: session.automatic_tax,
|
|
2784
|
+
client_reference_id: session.client_reference_id || null,
|
|
2785
|
+
currency: session.currency || null,
|
|
2786
|
+
customer_email: session.customer_email || null,
|
|
2787
|
+
metadata: session.metadata,
|
|
2788
|
+
mode: session.mode,
|
|
2789
|
+
payment_status: session.payment_status,
|
|
2790
|
+
return_url: session.return_url || null,
|
|
2791
|
+
status: session.status || null,
|
|
2792
|
+
success_url: session.success_url || null,
|
|
2793
|
+
ui_mode: session.ui_mode || null,
|
|
2794
|
+
url: session.url || null,
|
|
2795
|
+
object: session.object,
|
|
2796
|
+
adaptive_pricing: session.adaptive_pricing || null,
|
|
2797
|
+
after_expiration: session.after_expiration || null,
|
|
2798
|
+
allow_promotion_codes: typeof session.allow_promotion_codes === "boolean" ? session.allow_promotion_codes : null,
|
|
2799
|
+
amount_subtotal: session.amount_subtotal ?? null,
|
|
2800
|
+
amount_total: session.amount_total ?? null,
|
|
2801
|
+
billing_address_collection: session.billing_address_collection || null,
|
|
2802
|
+
cancel_url: session.cancel_url || null,
|
|
2803
|
+
client_secret: session.client_secret || null,
|
|
2804
|
+
collected_information: session.collected_information || null,
|
|
2805
|
+
consent: session.consent || null,
|
|
2806
|
+
consent_collection: session.consent_collection || null,
|
|
2807
|
+
created: session.created,
|
|
2808
|
+
currency_conversion: session.currency_conversion || null,
|
|
2809
|
+
custom_fields: session.custom_fields || [],
|
|
2810
|
+
// custom_text: session.custom_text || null,
|
|
2811
|
+
custom_text: session.custom_text || {},
|
|
2812
|
+
customer_creation: session.customer_creation || null,
|
|
2813
|
+
customer_details: session.customer_details || null,
|
|
2814
|
+
discounts: session.discounts || null,
|
|
2815
|
+
expires_at: session.expires_at,
|
|
2816
|
+
invoice_creation: session.invoice_creation || null,
|
|
2817
|
+
livemode: session.livemode,
|
|
2818
|
+
locale: session.locale || null,
|
|
2819
|
+
optional_items: session.optional_items || null,
|
|
2820
|
+
origin_context: session.origin_context || null,
|
|
2821
|
+
payment_method_collection: session.payment_method_collection || null,
|
|
2822
|
+
payment_method_configuration_details: session.payment_method_configuration_details || null,
|
|
2823
|
+
payment_method_options: session.payment_method_options || null,
|
|
2824
|
+
payment_method_types: session.payment_method_types,
|
|
2825
|
+
permissions: session.permissions || null,
|
|
2826
|
+
phone_number_collection: session.phone_number_collection || null,
|
|
2827
|
+
presentment_details: session.presentment_details || null,
|
|
2828
|
+
recovered_from: session.recovered_from || null,
|
|
2829
|
+
redirect_on_completion: session.redirect_on_completion || null,
|
|
2830
|
+
saved_payment_method_options: session.saved_payment_method_options || null,
|
|
2831
|
+
shipping_address_collection: session.shipping_address_collection || null,
|
|
2832
|
+
shipping_cost: session.shipping_cost || null,
|
|
2833
|
+
shipping_options: session.shipping_options || [],
|
|
2834
|
+
submit_type: session.submit_type || null,
|
|
2835
|
+
tax_id_collection: session.tax_id_collection || null,
|
|
2836
|
+
total_details: session.total_details || null,
|
|
2837
|
+
wallet_options: session.wallet_options || null,
|
|
2838
|
+
// References
|
|
2839
|
+
// Some of these can be expanded objects or just IDs, we store only the ID in Convex
|
|
2840
|
+
// see https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-customer
|
|
2841
|
+
// for more details
|
|
2774
2842
|
subscription: typeof session.subscription === "string" ? session.subscription : session.subscription?.id || null,
|
|
2775
2843
|
customer: typeof session.customer === "string" ? session.customer : session.customer?.id || null,
|
|
2776
2844
|
line_items: Array.isArray(session.line_items) ? session.line_items : session.line_items?.data || null,
|
|
@@ -3941,8 +4009,25 @@ const __vite_glob_0_1$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
3941
4009
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3942
4010
|
const CouponStripeToConvex = (coupon) => {
|
|
3943
4011
|
const object = {
|
|
3944
|
-
|
|
3945
|
-
|
|
4012
|
+
id: coupon.id,
|
|
4013
|
+
amount_off: coupon.amount_off ?? null,
|
|
4014
|
+
currency: coupon.currency ?? null,
|
|
4015
|
+
duration: coupon.duration,
|
|
4016
|
+
metadata: coupon.metadata,
|
|
4017
|
+
name: coupon.name ?? null,
|
|
4018
|
+
percent_off: coupon.percent_off ?? null,
|
|
4019
|
+
object: coupon.object,
|
|
4020
|
+
applies_to: coupon.applies_to ? {
|
|
4021
|
+
products: coupon.applies_to.products
|
|
4022
|
+
} : null,
|
|
4023
|
+
created: coupon.created,
|
|
4024
|
+
currency_options: coupon.currency_options ?? null,
|
|
4025
|
+
duration_in_months: coupon.duration_in_months ?? null,
|
|
4026
|
+
livemode: coupon.livemode,
|
|
4027
|
+
max_redemptions: coupon.max_redemptions ?? null,
|
|
4028
|
+
redeem_by: coupon.redeem_by ?? null,
|
|
4029
|
+
times_redeemed: coupon.times_redeemed,
|
|
4030
|
+
valid: coupon.valid
|
|
3946
4031
|
};
|
|
3947
4032
|
return object;
|
|
3948
4033
|
};
|
|
@@ -4234,7 +4319,39 @@ const __vite_glob_0_3$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
4234
4319
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4235
4320
|
const CustomerStripeToConvex = (customer) => {
|
|
4236
4321
|
const object = {
|
|
4237
|
-
|
|
4322
|
+
id: customer.id,
|
|
4323
|
+
address: customer.address ? {
|
|
4324
|
+
city: customer.address.city ?? null,
|
|
4325
|
+
country: customer.address.country ?? null,
|
|
4326
|
+
line1: customer.address.line1 ?? null,
|
|
4327
|
+
line2: customer.address.line2 ?? null,
|
|
4328
|
+
postal_code: customer.address.postal_code ?? null,
|
|
4329
|
+
state: customer.address.state ?? null
|
|
4330
|
+
} : null,
|
|
4331
|
+
description: customer.description ?? null,
|
|
4332
|
+
email: customer.email ?? null,
|
|
4333
|
+
metadata: customer.metadata,
|
|
4334
|
+
name: customer.name ?? null,
|
|
4335
|
+
phone: customer.phone ?? null,
|
|
4336
|
+
shipping: customer.shipping,
|
|
4337
|
+
tax: customer.tax,
|
|
4338
|
+
object: customer.object,
|
|
4339
|
+
balance: customer.balance,
|
|
4340
|
+
cash_balance: customer.cash_balance ?? null,
|
|
4341
|
+
created: customer.created,
|
|
4342
|
+
currency: customer.currency ?? null,
|
|
4343
|
+
delinquent: typeof customer.delinquent === "boolean" ? customer.delinquent : null,
|
|
4344
|
+
discount: customer.discount ?? null,
|
|
4345
|
+
invoice_credit_balance: customer.invoice_credit_balance,
|
|
4346
|
+
invoice_prefix: customer.invoice_prefix ?? null,
|
|
4347
|
+
invoice_settings: customer.invoice_settings ?? {},
|
|
4348
|
+
livemode: customer.livemode,
|
|
4349
|
+
next_invoice_sequence: customer.next_invoice_sequence ?? null,
|
|
4350
|
+
preferred_locales: customer.preferred_locales ?? null,
|
|
4351
|
+
sources: customer.sources ?? null,
|
|
4352
|
+
subscriptions: customer.subscriptions ?? null,
|
|
4353
|
+
tax_exempt: customer.tax_exempt === "exempt" || customer.tax_exempt === "none" || customer.tax_exempt === "reverse" ? customer.tax_exempt : null,
|
|
4354
|
+
tax_ids: customer.tax_ids ?? null,
|
|
4238
4355
|
default_source: typeof customer.default_source === "string" ? customer.default_source : customer.default_source?.id,
|
|
4239
4356
|
test_clock: typeof customer.test_clock === "string" ? customer.test_clock : customer.test_clock?.id
|
|
4240
4357
|
};
|
|
@@ -5412,7 +5529,26 @@ const __vite_glob_0_9$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
5412
5529
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5413
5530
|
const PayoutStripeToConvex = (payout) => {
|
|
5414
5531
|
const object = {
|
|
5415
|
-
|
|
5532
|
+
id: payout.id,
|
|
5533
|
+
amount: payout.amount,
|
|
5534
|
+
arrival_date: payout.arrival_date,
|
|
5535
|
+
application_fee: typeof payout.application_fee === "string" ? payout.application_fee : payout.application_fee?.id || null,
|
|
5536
|
+
application_fee_amount: payout.application_fee_amount ?? null,
|
|
5537
|
+
automatic: payout.automatic,
|
|
5538
|
+
created: payout.created,
|
|
5539
|
+
description: payout.description ?? null,
|
|
5540
|
+
failure_code: payout.failure_code ?? null,
|
|
5541
|
+
failure_message: payout.failure_message ?? null,
|
|
5542
|
+
livemode: payout.livemode,
|
|
5543
|
+
metadata: payout.metadata,
|
|
5544
|
+
method: payout.method,
|
|
5545
|
+
object: payout.object,
|
|
5546
|
+
payout_method: payout.payout_method ?? null,
|
|
5547
|
+
reconciliation_status: payout.reconciliation_status,
|
|
5548
|
+
source_type: payout.source_type,
|
|
5549
|
+
status: payout.status,
|
|
5550
|
+
trace_id: payout.trace_id,
|
|
5551
|
+
type: payout.type,
|
|
5416
5552
|
original_payout: typeof payout.original_payout === "string" ? payout.original_payout : payout.original_payout?.id || null,
|
|
5417
5553
|
reversed_by: typeof payout.reversed_by === "string" ? payout.reversed_by : payout.reversed_by?.id || null,
|
|
5418
5554
|
destination: typeof payout.destination === "string" ? payout.destination : payout.destination?.id || null,
|
|
@@ -5433,7 +5569,7 @@ const PayoutSchema = {
|
|
|
5433
5569
|
statement_descriptor: v.optional(nullablestring()),
|
|
5434
5570
|
status: v.string(),
|
|
5435
5571
|
object: v.string(),
|
|
5436
|
-
|
|
5572
|
+
application_fee: v.optional(nullablestring()),
|
|
5437
5573
|
application_fee_amount: v.optional(nullablenumber()),
|
|
5438
5574
|
automatic: v.boolean(),
|
|
5439
5575
|
balance_transaction: v.optional(nullablestring()),
|
|
@@ -5472,7 +5608,8 @@ const PayoutSchema = {
|
|
|
5472
5608
|
v.union(
|
|
5473
5609
|
v.literal("completed"),
|
|
5474
5610
|
v.literal("in_progress"),
|
|
5475
|
-
v.literal("not_applicable")
|
|
5611
|
+
v.literal("not_applicable"),
|
|
5612
|
+
v.null()
|
|
5476
5613
|
)
|
|
5477
5614
|
),
|
|
5478
5615
|
reversed_by: v.optional(nullablestring()),
|
|
@@ -5911,12 +6048,19 @@ const __vite_glob_0_13$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.
|
|
|
5911
6048
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5912
6049
|
const PromotionCodeStripeToConvex = (promotionCode) => {
|
|
5913
6050
|
const object = {
|
|
5914
|
-
|
|
6051
|
+
id: promotionCode.id,
|
|
6052
|
+
code: promotionCode.code,
|
|
6053
|
+
metadata: promotionCode.metadata,
|
|
6054
|
+
object: promotionCode.object,
|
|
6055
|
+
active: promotionCode.active,
|
|
6056
|
+
created: promotionCode.created,
|
|
6057
|
+
expires_at: promotionCode.expires_at ?? null,
|
|
6058
|
+
livemode: promotionCode.livemode,
|
|
6059
|
+
max_redemptions: promotionCode.max_redemptions ?? null,
|
|
6060
|
+
restrictions: promotionCode.restrictions,
|
|
6061
|
+
times_redeemed: promotionCode.times_redeemed,
|
|
5915
6062
|
customer: typeof promotionCode.customer === "string" ? promotionCode.customer : promotionCode.customer?.id || null,
|
|
5916
|
-
coupon:
|
|
5917
|
-
...promotionCode.coupon,
|
|
5918
|
-
currency: promotionCode.coupon.currency
|
|
5919
|
-
}
|
|
6063
|
+
coupon: promotionCode.coupon
|
|
5920
6064
|
};
|
|
5921
6065
|
return object;
|
|
5922
6066
|
};
|
|
@@ -6017,7 +6161,21 @@ const __vite_glob_0_14$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.
|
|
|
6017
6161
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
6018
6162
|
const RefundStripeToConvex = (refund) => {
|
|
6019
6163
|
const object = {
|
|
6020
|
-
|
|
6164
|
+
id: refund.id,
|
|
6165
|
+
amount: refund.amount,
|
|
6166
|
+
created: refund.created,
|
|
6167
|
+
currency: refund.currency,
|
|
6168
|
+
description: refund.description,
|
|
6169
|
+
failure_reason: refund.failure_reason,
|
|
6170
|
+
instructions_email: refund.instructions_email,
|
|
6171
|
+
metadata: refund.metadata,
|
|
6172
|
+
next_action: refund.next_action,
|
|
6173
|
+
object: refund.object,
|
|
6174
|
+
pending_reason: refund.pending_reason,
|
|
6175
|
+
receipt_number: refund.receipt_number,
|
|
6176
|
+
reason: refund.reason,
|
|
6177
|
+
status: refund.status,
|
|
6178
|
+
destination_details: refund.destination_details,
|
|
6021
6179
|
charge: typeof refund.charge === "string" ? refund.charge : refund.charge?.id,
|
|
6022
6180
|
balance_transaction: typeof refund.balance_transaction === "string" ? refund.balance_transaction : refund.balance_transaction?.id || null,
|
|
6023
6181
|
failure_balance_transaction: typeof refund.failure_balance_transaction === "string" ? refund.failure_balance_transaction : refund.failure_balance_transaction?.id || null,
|