@raideno/convex-stripe 0.1.4 → 0.1.6
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 +73 -73
- package/dist/server/schema/charge.d.ts +36 -36
- package/dist/server/schema/credit-note.d.ts +8 -8
- package/dist/server/schema/customer.d.ts +4 -4
- package/dist/server/schema/dispute.d.ts +4 -4
- package/dist/server/schema/index.d.ts +458 -458
- package/dist/server/schema/invoice.d.ts +4 -4
- package/dist/server/schema/payment-intent.d.ts +3 -3
- package/dist/server/schema/payment-method.d.ts +208 -208
- package/dist/server/schema/payout.d.ts +9 -9
- package/dist/server/schema/setup-intent.d.ts +21 -21
- package/dist/server/schema/subscription-schedule.d.ts +4 -4
- package/dist/server/store/index.d.ts +73 -73
- package/dist/server.js +263 -146
- package/package.json +1 -1
package/dist/server/index.d.ts
CHANGED
|
@@ -156,7 +156,7 @@ export declare const internalConvexStripe: (configuration_: InputConfiguration)
|
|
|
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 internalConvexStripe: (configuration_: InputConfiguration)
|
|
|
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 internalConvexStripe: (configuration_: InputConfiguration)
|
|
|
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;
|
|
@@ -609,11 +609,11 @@ export declare const internalConvexStripe: (configuration_: InputConfiguration)
|
|
|
609
609
|
stripe: {
|
|
610
610
|
metadata?: Record<string, string | number | null> | null | undefined;
|
|
611
611
|
payment_intent?: string | null | undefined;
|
|
612
|
+
payment_method_details?: any;
|
|
612
613
|
object: string;
|
|
613
614
|
id: string;
|
|
614
615
|
amount: number;
|
|
615
616
|
currency: string;
|
|
616
|
-
payment_method_details: any;
|
|
617
617
|
status: "lost" | "needs_response" | "prevented" | "under_review" | "warning_closed" | "warning_needs_response" | "warning_under_review" | "won";
|
|
618
618
|
created: number;
|
|
619
619
|
livemode: boolean;
|
|
@@ -683,11 +683,14 @@ export declare const internalConvexStripe: (configuration_: InputConfiguration)
|
|
|
683
683
|
parent?: string | null | undefined;
|
|
684
684
|
id: string;
|
|
685
685
|
} | null | undefined;
|
|
686
|
+
payment_method_options?: any;
|
|
686
687
|
automatic_payment_methods?: {
|
|
687
|
-
allow_redirects?: "always" | "never" | null | undefined;
|
|
688
688
|
enabled?: boolean | null | undefined;
|
|
689
|
+
allow_redirects?: "always" | "never" | null | undefined;
|
|
689
690
|
} | null | undefined;
|
|
691
|
+
next_action?: any;
|
|
690
692
|
cancellation_reason?: "duplicate" | "abandoned" | "requested_by_customer" | null | undefined;
|
|
693
|
+
last_setup_error?: any;
|
|
691
694
|
attach_to_self?: boolean | null | undefined;
|
|
692
695
|
latest_attempt?: string | null | undefined;
|
|
693
696
|
mandate?: string | null | undefined;
|
|
@@ -697,10 +700,7 @@ export declare const internalConvexStripe: (configuration_: InputConfiguration)
|
|
|
697
700
|
status: "succeeded" | "canceled" | "processing" | "requires_action" | "requires_confirmation" | "requires_payment_method";
|
|
698
701
|
created: number;
|
|
699
702
|
livemode: boolean;
|
|
700
|
-
payment_method_options: any;
|
|
701
703
|
payment_method_types: string[];
|
|
702
|
-
next_action: any;
|
|
703
|
-
last_setup_error: any;
|
|
704
704
|
usage: string;
|
|
705
705
|
flow_directions: ("inbound" | "outbound")[] | null;
|
|
706
706
|
};
|
|
@@ -713,12 +713,14 @@ export declare const internalConvexStripe: (configuration_: InputConfiguration)
|
|
|
713
713
|
customer?: string | null | undefined;
|
|
714
714
|
metadata?: Record<string, string | number | null> | null | undefined;
|
|
715
715
|
invoice?: string | null | undefined;
|
|
716
|
+
shipping_cost?: any;
|
|
716
717
|
memo?: string | null | undefined;
|
|
717
718
|
customer_balance_transaction?: string | null | undefined;
|
|
718
719
|
effective_at?: number | null | undefined;
|
|
719
720
|
out_of_band_amount?: number | null | undefined;
|
|
720
721
|
subtotal_excluding_tax?: number | null | undefined;
|
|
721
722
|
total_excluding_tax?: number | null | undefined;
|
|
723
|
+
total_taxes?: any;
|
|
722
724
|
voided_at?: number | null | undefined;
|
|
723
725
|
number: string;
|
|
724
726
|
object: string;
|
|
@@ -733,7 +735,6 @@ export declare const internalConvexStripe: (configuration_: InputConfiguration)
|
|
|
733
735
|
amount_refunded: number;
|
|
734
736
|
refund: string;
|
|
735
737
|
}[];
|
|
736
|
-
shipping_cost: any;
|
|
737
738
|
lines: any;
|
|
738
739
|
reason: "duplicate" | "fraudulent" | "order_change" | "product_unsatisfactory" | null;
|
|
739
740
|
subtotal: number;
|
|
@@ -753,7 +754,6 @@ export declare const internalConvexStripe: (configuration_: InputConfiguration)
|
|
|
753
754
|
type: "discount" | "credit_balance_transaction";
|
|
754
755
|
amount: number;
|
|
755
756
|
}[];
|
|
756
|
-
total_taxes: any;
|
|
757
757
|
};
|
|
758
758
|
last_synced_at: number;
|
|
759
759
|
creditNoteId: string;
|
|
@@ -766,7 +766,9 @@ export declare const internalConvexStripe: (configuration_: InputConfiguration)
|
|
|
766
766
|
description?: string | null | undefined;
|
|
767
767
|
metadata?: Record<string, string | number | null> | null | undefined;
|
|
768
768
|
payment_intent?: string | null | undefined;
|
|
769
|
+
payment_method_details?: any;
|
|
769
770
|
receipt_email?: string | null | undefined;
|
|
771
|
+
shipping?: any;
|
|
770
772
|
statement_descriptor?: string | null | undefined;
|
|
771
773
|
statement_descriptor_suffix?: string | null | undefined;
|
|
772
774
|
application?: string | null | undefined;
|
|
@@ -776,13 +778,20 @@ export declare const internalConvexStripe: (configuration_: InputConfiguration)
|
|
|
776
778
|
failure_balance_transaction?: string | null | undefined;
|
|
777
779
|
failure_code?: string | null | undefined;
|
|
778
780
|
failure_message?: string | null | undefined;
|
|
781
|
+
fraud_details?: any;
|
|
779
782
|
on_behalf_of?: string | null | undefined;
|
|
783
|
+
outcome?: any;
|
|
780
784
|
payment_method?: string | null | undefined;
|
|
785
|
+
presentment_details?: any;
|
|
786
|
+
radar_options?: any;
|
|
781
787
|
receipt_number?: string | null | undefined;
|
|
782
788
|
receipt_url?: string | null | undefined;
|
|
789
|
+
refunds?: any;
|
|
783
790
|
review?: string | null | undefined;
|
|
784
791
|
source_transfer?: string | null | undefined;
|
|
785
792
|
transfer?: string | null | undefined;
|
|
793
|
+
transfer_data?: any;
|
|
794
|
+
transfer_group?: any;
|
|
786
795
|
object: string;
|
|
787
796
|
id: string;
|
|
788
797
|
amount: number;
|
|
@@ -802,23 +811,14 @@ export declare const internalConvexStripe: (configuration_: InputConfiguration)
|
|
|
802
811
|
};
|
|
803
812
|
currency: string;
|
|
804
813
|
disputed: boolean;
|
|
805
|
-
payment_method_details: any;
|
|
806
814
|
refunded: boolean;
|
|
807
|
-
shipping: any;
|
|
808
815
|
status: "succeeded" | "failed" | "pending";
|
|
809
816
|
amount_captured: number;
|
|
810
817
|
amount_refunded: number;
|
|
811
818
|
captured: boolean;
|
|
812
819
|
created: number;
|
|
813
|
-
fraud_details: any;
|
|
814
820
|
livemode: boolean;
|
|
815
|
-
outcome: any;
|
|
816
821
|
paid: boolean;
|
|
817
|
-
presentment_details: any;
|
|
818
|
-
radar_options: any;
|
|
819
|
-
refunds: any;
|
|
820
|
-
transfer_data: any;
|
|
821
|
-
transfer_group: any;
|
|
822
822
|
};
|
|
823
823
|
last_synced_at: number;
|
|
824
824
|
chargeId: string;
|
|
@@ -826,66 +826,66 @@ export declare const internalConvexStripe: (configuration_: InputConfiguration)
|
|
|
826
826
|
_id: import('convex/values').GenericId<"stripe_payment_methods">;
|
|
827
827
|
_creationTime: number;
|
|
828
828
|
stripe: {
|
|
829
|
+
link?: any;
|
|
830
|
+
billing_details?: any;
|
|
829
831
|
customer?: string | null | undefined;
|
|
830
832
|
metadata?: Record<string, string | number | null> | null | undefined;
|
|
833
|
+
radar_options?: any;
|
|
834
|
+
acss_debit?: any;
|
|
835
|
+
affirm?: any;
|
|
836
|
+
afterpay_clearpay?: any;
|
|
837
|
+
alipay?: any;
|
|
838
|
+
alma?: any;
|
|
839
|
+
amazon_pay?: any;
|
|
840
|
+
au_becs_debit?: any;
|
|
841
|
+
bacs_debit?: any;
|
|
842
|
+
bancontact?: any;
|
|
843
|
+
billie?: any;
|
|
844
|
+
blik?: any;
|
|
845
|
+
boleto?: any;
|
|
846
|
+
card?: any;
|
|
847
|
+
cashapp?: any;
|
|
848
|
+
crypto?: any;
|
|
849
|
+
customer_balance?: any;
|
|
850
|
+
eps?: any;
|
|
851
|
+
fpx?: any;
|
|
852
|
+
giropay?: any;
|
|
853
|
+
grabpay?: any;
|
|
854
|
+
ideal?: any;
|
|
855
|
+
kakao_pay?: any;
|
|
856
|
+
klarna?: any;
|
|
857
|
+
konbini?: any;
|
|
858
|
+
kr_card?: any;
|
|
859
|
+
mobilepay?: any;
|
|
860
|
+
multibanco?: any;
|
|
861
|
+
naver_pay?: any;
|
|
862
|
+
nz_bank_account?: any;
|
|
863
|
+
oxxo?: any;
|
|
864
|
+
p24?: any;
|
|
865
|
+
pay_by_bank?: any;
|
|
866
|
+
payco?: any;
|
|
867
|
+
paynow?: any;
|
|
868
|
+
paypal?: any;
|
|
869
|
+
pix?: any;
|
|
870
|
+
promptpay?: any;
|
|
871
|
+
revolut_pay?: any;
|
|
872
|
+
samsung_pay?: any;
|
|
873
|
+
satispay?: any;
|
|
874
|
+
sepa_debit?: any;
|
|
875
|
+
sofort?: any;
|
|
876
|
+
swish?: any;
|
|
877
|
+
twint?: any;
|
|
878
|
+
us_bank_account?: any;
|
|
879
|
+
wechat_pay?: any;
|
|
880
|
+
zip?: any;
|
|
881
|
+
card_present?: any;
|
|
882
|
+
interac_present?: any;
|
|
831
883
|
object: string;
|
|
832
884
|
type: string;
|
|
833
885
|
id: string;
|
|
834
|
-
link: any;
|
|
835
|
-
billing_details: any;
|
|
836
886
|
created: number;
|
|
837
887
|
livemode: boolean;
|
|
838
|
-
radar_options: any;
|
|
839
|
-
acss_debit: any;
|
|
840
|
-
affirm: any;
|
|
841
|
-
afterpay_clearpay: any;
|
|
842
|
-
alipay: any;
|
|
843
|
-
alma: any;
|
|
844
|
-
amazon_pay: any;
|
|
845
|
-
au_becs_debit: any;
|
|
846
|
-
bacs_debit: any;
|
|
847
|
-
bancontact: any;
|
|
848
|
-
billie: any;
|
|
849
|
-
blik: any;
|
|
850
|
-
boleto: any;
|
|
851
|
-
card: any;
|
|
852
|
-
cashapp: any;
|
|
853
|
-
crypto: any;
|
|
854
|
-
customer_balance: any;
|
|
855
|
-
eps: any;
|
|
856
|
-
fpx: any;
|
|
857
|
-
giropay: any;
|
|
858
|
-
grabpay: any;
|
|
859
|
-
ideal: any;
|
|
860
|
-
kakao_pay: any;
|
|
861
|
-
klarna: any;
|
|
862
|
-
konbini: any;
|
|
863
|
-
kr_card: any;
|
|
864
|
-
mobilepay: any;
|
|
865
|
-
multibanco: any;
|
|
866
|
-
naver_pay: any;
|
|
867
|
-
nz_bank_account: any;
|
|
868
|
-
oxxo: any;
|
|
869
|
-
p24: any;
|
|
870
|
-
pay_by_bank: any;
|
|
871
|
-
payco: any;
|
|
872
|
-
paynow: any;
|
|
873
|
-
paypal: any;
|
|
874
|
-
pix: any;
|
|
875
|
-
promptpay: any;
|
|
876
|
-
revolut_pay: any;
|
|
877
|
-
samsung_pay: any;
|
|
878
|
-
satispay: any;
|
|
879
|
-
sepa_debit: any;
|
|
880
|
-
sofort: any;
|
|
881
|
-
swish: any;
|
|
882
|
-
twint: any;
|
|
883
|
-
us_bank_account: any;
|
|
884
|
-
wechat_pay: any;
|
|
885
|
-
zip: any;
|
|
886
888
|
allow_redisplay: "always" | "limited" | "unspecified" | null;
|
|
887
|
-
card_present: any;
|
|
888
|
-
interac_present: any;
|
|
889
889
|
};
|
|
890
890
|
last_synced_at: number;
|
|
891
891
|
paymentMethodId: string;
|
|
@@ -901,6 +901,7 @@ export declare const internalConvexStripe: (configuration_: InputConfiguration)
|
|
|
901
901
|
end_date: number;
|
|
902
902
|
start_date: number;
|
|
903
903
|
} | null | undefined;
|
|
904
|
+
phases?: any;
|
|
904
905
|
completed_at?: number | null | undefined;
|
|
905
906
|
default_settings?: {
|
|
906
907
|
description?: string | null | undefined;
|
|
@@ -942,7 +943,6 @@ export declare const internalConvexStripe: (configuration_: InputConfiguration)
|
|
|
942
943
|
status: "canceled" | "completed" | "active" | "not_started" | "released";
|
|
943
944
|
created: number;
|
|
944
945
|
livemode: boolean;
|
|
945
|
-
phases: any;
|
|
946
946
|
billing_mode: {
|
|
947
947
|
updated_at?: number | null | undefined;
|
|
948
948
|
type: "classic" | "flexible";
|
|
@@ -5,7 +5,9 @@ export declare const ChargeStripeToConvex: (charge: Stripe.Charge) => {
|
|
|
5
5
|
description?: string | null | undefined;
|
|
6
6
|
metadata?: Record<string, string | number | null> | null | undefined;
|
|
7
7
|
payment_intent?: string | null | undefined;
|
|
8
|
+
payment_method_details?: any;
|
|
8
9
|
receipt_email?: string | null | undefined;
|
|
10
|
+
shipping?: any;
|
|
9
11
|
statement_descriptor?: string | null | undefined;
|
|
10
12
|
statement_descriptor_suffix?: string | null | undefined;
|
|
11
13
|
application?: string | null | undefined;
|
|
@@ -15,13 +17,20 @@ export declare const ChargeStripeToConvex: (charge: Stripe.Charge) => {
|
|
|
15
17
|
failure_balance_transaction?: string | null | undefined;
|
|
16
18
|
failure_code?: string | null | undefined;
|
|
17
19
|
failure_message?: string | null | undefined;
|
|
20
|
+
fraud_details?: any;
|
|
18
21
|
on_behalf_of?: string | null | undefined;
|
|
22
|
+
outcome?: any;
|
|
19
23
|
payment_method?: string | null | undefined;
|
|
24
|
+
presentment_details?: any;
|
|
25
|
+
radar_options?: any;
|
|
20
26
|
receipt_number?: string | null | undefined;
|
|
21
27
|
receipt_url?: string | null | undefined;
|
|
28
|
+
refunds?: any;
|
|
22
29
|
review?: string | null | undefined;
|
|
23
30
|
source_transfer?: string | null | undefined;
|
|
24
31
|
transfer?: string | null | undefined;
|
|
32
|
+
transfer_data?: any;
|
|
33
|
+
transfer_group?: any;
|
|
25
34
|
object: string;
|
|
26
35
|
id: string;
|
|
27
36
|
amount: number;
|
|
@@ -41,23 +50,14 @@ export declare const ChargeStripeToConvex: (charge: Stripe.Charge) => {
|
|
|
41
50
|
};
|
|
42
51
|
currency: string;
|
|
43
52
|
disputed: boolean;
|
|
44
|
-
payment_method_details: any;
|
|
45
53
|
refunded: boolean;
|
|
46
|
-
shipping: any;
|
|
47
54
|
status: "succeeded" | "failed" | "pending";
|
|
48
55
|
amount_captured: number;
|
|
49
56
|
amount_refunded: number;
|
|
50
57
|
captured: boolean;
|
|
51
58
|
created: number;
|
|
52
|
-
fraud_details: any;
|
|
53
59
|
livemode: boolean;
|
|
54
|
-
outcome: any;
|
|
55
60
|
paid: boolean;
|
|
56
|
-
presentment_details: any;
|
|
57
|
-
radar_options: any;
|
|
58
|
-
refunds: any;
|
|
59
|
-
transfer_data: any;
|
|
60
|
-
transfer_group: any;
|
|
61
61
|
};
|
|
62
62
|
export declare const ChargeSchema: {
|
|
63
63
|
id: import('convex/values').VString<string, "required">;
|
|
@@ -110,10 +110,10 @@ export declare const ChargeSchema: {
|
|
|
110
110
|
disputed: import('convex/values').VBoolean<boolean, "required">;
|
|
111
111
|
metadata: import('convex/values').VUnion<Record<string, string | number | null> | null | undefined, [import('convex/values').VRecord<Record<string, string | number | null>, import('convex/values').VString<string, "required">, import('convex/values').VUnion<string | number | null, [import('convex/values').VString<string, "required">, import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "required", never>, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
112
112
|
payment_intent: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
113
|
-
payment_method_details: import('convex/values').VAny<any, "
|
|
113
|
+
payment_method_details: import('convex/values').VAny<any, "optional", string>;
|
|
114
114
|
receipt_email: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
115
115
|
refunded: import('convex/values').VBoolean<boolean, "required">;
|
|
116
|
-
shipping: import('convex/values').VAny<any, "
|
|
116
|
+
shipping: import('convex/values').VAny<any, "optional", string>;
|
|
117
117
|
statement_descriptor: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
118
118
|
statement_descriptor_suffix: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
119
119
|
status: import('convex/values').VUnion<"succeeded" | "failed" | "pending", [import('convex/values').VLiteral<"succeeded", "required">, import('convex/values').VLiteral<"failed", "required">, import('convex/values').VLiteral<"pending", "required">], "required", never>;
|
|
@@ -129,22 +129,22 @@ export declare const ChargeSchema: {
|
|
|
129
129
|
failure_balance_transaction: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
130
130
|
failure_code: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
131
131
|
failure_message: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
132
|
-
fraud_details: import('convex/values').VAny<any, "
|
|
132
|
+
fraud_details: import('convex/values').VAny<any, "optional", string>;
|
|
133
133
|
livemode: import('convex/values').VBoolean<boolean, "required">;
|
|
134
134
|
on_behalf_of: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
135
|
-
outcome: import('convex/values').VAny<any, "
|
|
135
|
+
outcome: import('convex/values').VAny<any, "optional", string>;
|
|
136
136
|
paid: import('convex/values').VBoolean<boolean, "required">;
|
|
137
137
|
payment_method: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
138
|
-
presentment_details: import('convex/values').VAny<any, "
|
|
139
|
-
radar_options: import('convex/values').VAny<any, "
|
|
138
|
+
presentment_details: import('convex/values').VAny<any, "optional", string>;
|
|
139
|
+
radar_options: import('convex/values').VAny<any, "optional", string>;
|
|
140
140
|
receipt_number: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
141
141
|
receipt_url: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
142
|
-
refunds: import('convex/values').VAny<any, "
|
|
142
|
+
refunds: import('convex/values').VAny<any, "optional", string>;
|
|
143
143
|
review: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
144
144
|
source_transfer: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
145
145
|
transfer: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
146
|
-
transfer_data: import('convex/values').VAny<any, "
|
|
147
|
-
transfer_group: import('convex/values').VAny<any, "
|
|
146
|
+
transfer_data: import('convex/values').VAny<any, "optional", string>;
|
|
147
|
+
transfer_group: import('convex/values').VAny<any, "optional", string>;
|
|
148
148
|
};
|
|
149
149
|
export declare const ChargeObject: import('convex/values').VObject<{
|
|
150
150
|
balance_transaction?: string | null | undefined;
|
|
@@ -152,7 +152,9 @@ export declare const ChargeObject: import('convex/values').VObject<{
|
|
|
152
152
|
description?: string | null | undefined;
|
|
153
153
|
metadata?: Record<string, string | number | null> | null | undefined;
|
|
154
154
|
payment_intent?: string | null | undefined;
|
|
155
|
+
payment_method_details?: any;
|
|
155
156
|
receipt_email?: string | null | undefined;
|
|
157
|
+
shipping?: any;
|
|
156
158
|
statement_descriptor?: string | null | undefined;
|
|
157
159
|
statement_descriptor_suffix?: string | null | undefined;
|
|
158
160
|
application?: string | null | undefined;
|
|
@@ -162,13 +164,20 @@ export declare const ChargeObject: import('convex/values').VObject<{
|
|
|
162
164
|
failure_balance_transaction?: string | null | undefined;
|
|
163
165
|
failure_code?: string | null | undefined;
|
|
164
166
|
failure_message?: string | null | undefined;
|
|
167
|
+
fraud_details?: any;
|
|
165
168
|
on_behalf_of?: string | null | undefined;
|
|
169
|
+
outcome?: any;
|
|
166
170
|
payment_method?: string | null | undefined;
|
|
171
|
+
presentment_details?: any;
|
|
172
|
+
radar_options?: any;
|
|
167
173
|
receipt_number?: string | null | undefined;
|
|
168
174
|
receipt_url?: string | null | undefined;
|
|
175
|
+
refunds?: any;
|
|
169
176
|
review?: string | null | undefined;
|
|
170
177
|
source_transfer?: string | null | undefined;
|
|
171
178
|
transfer?: string | null | undefined;
|
|
179
|
+
transfer_data?: any;
|
|
180
|
+
transfer_group?: any;
|
|
172
181
|
object: string;
|
|
173
182
|
id: string;
|
|
174
183
|
amount: number;
|
|
@@ -188,23 +197,14 @@ export declare const ChargeObject: import('convex/values').VObject<{
|
|
|
188
197
|
};
|
|
189
198
|
currency: string;
|
|
190
199
|
disputed: boolean;
|
|
191
|
-
payment_method_details: any;
|
|
192
200
|
refunded: boolean;
|
|
193
|
-
shipping: any;
|
|
194
201
|
status: "succeeded" | "failed" | "pending";
|
|
195
202
|
amount_captured: number;
|
|
196
203
|
amount_refunded: number;
|
|
197
204
|
captured: boolean;
|
|
198
205
|
created: number;
|
|
199
|
-
fraud_details: any;
|
|
200
206
|
livemode: boolean;
|
|
201
|
-
outcome: any;
|
|
202
207
|
paid: boolean;
|
|
203
|
-
presentment_details: any;
|
|
204
|
-
radar_options: any;
|
|
205
|
-
refunds: any;
|
|
206
|
-
transfer_data: any;
|
|
207
|
-
transfer_group: any;
|
|
208
208
|
}, {
|
|
209
209
|
id: import('convex/values').VString<string, "required">;
|
|
210
210
|
amount: import('convex/values').VFloat64<number, "required">;
|
|
@@ -256,10 +256,10 @@ export declare const ChargeObject: import('convex/values').VObject<{
|
|
|
256
256
|
disputed: import('convex/values').VBoolean<boolean, "required">;
|
|
257
257
|
metadata: import('convex/values').VUnion<Record<string, string | number | null> | null | undefined, [import('convex/values').VRecord<Record<string, string | number | null>, import('convex/values').VString<string, "required">, import('convex/values').VUnion<string | number | null, [import('convex/values').VString<string, "required">, import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "required", never>, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
258
258
|
payment_intent: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
259
|
-
payment_method_details: import('convex/values').VAny<any, "
|
|
259
|
+
payment_method_details: import('convex/values').VAny<any, "optional", string>;
|
|
260
260
|
receipt_email: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
261
261
|
refunded: import('convex/values').VBoolean<boolean, "required">;
|
|
262
|
-
shipping: import('convex/values').VAny<any, "
|
|
262
|
+
shipping: import('convex/values').VAny<any, "optional", string>;
|
|
263
263
|
statement_descriptor: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
264
264
|
statement_descriptor_suffix: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
265
265
|
status: import('convex/values').VUnion<"succeeded" | "failed" | "pending", [import('convex/values').VLiteral<"succeeded", "required">, import('convex/values').VLiteral<"failed", "required">, import('convex/values').VLiteral<"pending", "required">], "required", never>;
|
|
@@ -275,20 +275,20 @@ export declare const ChargeObject: import('convex/values').VObject<{
|
|
|
275
275
|
failure_balance_transaction: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
276
276
|
failure_code: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
277
277
|
failure_message: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
278
|
-
fraud_details: import('convex/values').VAny<any, "
|
|
278
|
+
fraud_details: import('convex/values').VAny<any, "optional", string>;
|
|
279
279
|
livemode: import('convex/values').VBoolean<boolean, "required">;
|
|
280
280
|
on_behalf_of: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
281
|
-
outcome: import('convex/values').VAny<any, "
|
|
281
|
+
outcome: import('convex/values').VAny<any, "optional", string>;
|
|
282
282
|
paid: import('convex/values').VBoolean<boolean, "required">;
|
|
283
283
|
payment_method: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
284
|
-
presentment_details: import('convex/values').VAny<any, "
|
|
285
|
-
radar_options: import('convex/values').VAny<any, "
|
|
284
|
+
presentment_details: import('convex/values').VAny<any, "optional", string>;
|
|
285
|
+
radar_options: import('convex/values').VAny<any, "optional", string>;
|
|
286
286
|
receipt_number: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
287
287
|
receipt_url: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
288
|
-
refunds: import('convex/values').VAny<any, "
|
|
288
|
+
refunds: import('convex/values').VAny<any, "optional", string>;
|
|
289
289
|
review: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
290
290
|
source_transfer: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
291
291
|
transfer: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
292
|
-
transfer_data: import('convex/values').VAny<any, "
|
|
293
|
-
transfer_group: import('convex/values').VAny<any, "
|
|
292
|
+
transfer_data: import('convex/values').VAny<any, "optional", string>;
|
|
293
|
+
transfer_group: import('convex/values').VAny<any, "optional", string>;
|
|
294
294
|
}, "required", "object" | "id" | "amount" | "balance_transaction" | "billing_details" | "currency" | "customer" | "description" | "disputed" | "metadata" | "payment_intent" | "payment_method_details" | "receipt_email" | "refunded" | "shipping" | "statement_descriptor" | "statement_descriptor_suffix" | "status" | "amount_captured" | "amount_refunded" | "application" | "application_fee" | "application_fee_amount" | "calculated_statement_descriptor" | "captured" | "created" | "failure_balance_transaction" | "failure_code" | "failure_message" | "fraud_details" | "livemode" | "on_behalf_of" | "outcome" | "paid" | "payment_method" | "presentment_details" | "radar_options" | "receipt_number" | "receipt_url" | "refunds" | "review" | "source_transfer" | "transfer" | "transfer_data" | "transfer_group" | "billing_details.address" | "billing_details.email" | "billing_details.name" | "billing_details.phone" | "billing_details.tax_id" | "billing_details.address.city" | "billing_details.address.country" | "billing_details.address.line1" | "billing_details.address.line2" | "billing_details.address.postal_code" | "billing_details.address.state" | `metadata.${string}` | `payment_method_details.${string}` | `shipping.${string}` | `fraud_details.${string}` | `outcome.${string}` | `presentment_details.${string}` | `radar_options.${string}` | `refunds.${string}` | `transfer_data.${string}` | `transfer_group.${string}`>;
|
|
@@ -3,12 +3,14 @@ export declare const CreditNoteStripeToConvex: (creditNote: Stripe.CreditNote) =
|
|
|
3
3
|
customer?: string | null | undefined;
|
|
4
4
|
metadata?: Record<string, string | number | null> | null | undefined;
|
|
5
5
|
invoice?: string | null | undefined;
|
|
6
|
+
shipping_cost?: any;
|
|
6
7
|
memo?: string | null | undefined;
|
|
7
8
|
customer_balance_transaction?: string | null | undefined;
|
|
8
9
|
effective_at?: number | null | undefined;
|
|
9
10
|
out_of_band_amount?: number | null | undefined;
|
|
10
11
|
subtotal_excluding_tax?: number | null | undefined;
|
|
11
12
|
total_excluding_tax?: number | null | undefined;
|
|
13
|
+
total_taxes?: any;
|
|
12
14
|
voided_at?: number | null | undefined;
|
|
13
15
|
number: string;
|
|
14
16
|
object: string;
|
|
@@ -23,7 +25,6 @@ export declare const CreditNoteStripeToConvex: (creditNote: Stripe.CreditNote) =
|
|
|
23
25
|
amount_refunded: number;
|
|
24
26
|
refund: string;
|
|
25
27
|
}[];
|
|
26
|
-
shipping_cost: any;
|
|
27
28
|
lines: any;
|
|
28
29
|
reason: "duplicate" | "fraudulent" | "order_change" | "product_unsatisfactory" | null;
|
|
29
30
|
subtotal: number;
|
|
@@ -43,7 +44,6 @@ export declare const CreditNoteStripeToConvex: (creditNote: Stripe.CreditNote) =
|
|
|
43
44
|
type: "discount" | "credit_balance_transaction";
|
|
44
45
|
amount: number;
|
|
45
46
|
}[];
|
|
46
|
-
total_taxes: any;
|
|
47
47
|
};
|
|
48
48
|
export declare const CreditNoteSchema: {
|
|
49
49
|
id: import('convex/values').VString<string, "required">;
|
|
@@ -106,10 +106,10 @@ export declare const CreditNoteSchema: {
|
|
|
106
106
|
amount_refunded: import('convex/values').VFloat64<number, "required">;
|
|
107
107
|
refund: import('convex/values').VString<string, "required">;
|
|
108
108
|
}, "required", "amount_refunded" | "refund">, "required">;
|
|
109
|
-
shipping_cost: import('convex/values').VAny<any, "
|
|
109
|
+
shipping_cost: import('convex/values').VAny<any, "optional", string>;
|
|
110
110
|
subtotal_excluding_tax: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
111
111
|
total_excluding_tax: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
112
|
-
total_taxes: import('convex/values').VAny<any, "
|
|
112
|
+
total_taxes: import('convex/values').VAny<any, "optional", string>;
|
|
113
113
|
type: import('convex/values').VUnion<"mixed" | "post_payment" | "pre_payment", [import('convex/values').VLiteral<"mixed", "required">, import('convex/values').VLiteral<"post_payment", "required">, import('convex/values').VLiteral<"pre_payment", "required">], "required", never>;
|
|
114
114
|
voided_at: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
115
115
|
};
|
|
@@ -117,12 +117,14 @@ export declare const CreditNoteObject: import('convex/values').VObject<{
|
|
|
117
117
|
customer?: string | null | undefined;
|
|
118
118
|
metadata?: Record<string, string | number | null> | null | undefined;
|
|
119
119
|
invoice?: string | null | undefined;
|
|
120
|
+
shipping_cost?: any;
|
|
120
121
|
memo?: string | null | undefined;
|
|
121
122
|
customer_balance_transaction?: string | null | undefined;
|
|
122
123
|
effective_at?: number | null | undefined;
|
|
123
124
|
out_of_band_amount?: number | null | undefined;
|
|
124
125
|
subtotal_excluding_tax?: number | null | undefined;
|
|
125
126
|
total_excluding_tax?: number | null | undefined;
|
|
127
|
+
total_taxes?: any;
|
|
126
128
|
voided_at?: number | null | undefined;
|
|
127
129
|
number: string;
|
|
128
130
|
object: string;
|
|
@@ -137,7 +139,6 @@ export declare const CreditNoteObject: import('convex/values').VObject<{
|
|
|
137
139
|
amount_refunded: number;
|
|
138
140
|
refund: string;
|
|
139
141
|
}[];
|
|
140
|
-
shipping_cost: any;
|
|
141
142
|
lines: any;
|
|
142
143
|
reason: "duplicate" | "fraudulent" | "order_change" | "product_unsatisfactory" | null;
|
|
143
144
|
subtotal: number;
|
|
@@ -157,7 +158,6 @@ export declare const CreditNoteObject: import('convex/values').VObject<{
|
|
|
157
158
|
type: "discount" | "credit_balance_transaction";
|
|
158
159
|
amount: number;
|
|
159
160
|
}[];
|
|
160
|
-
total_taxes: any;
|
|
161
161
|
}, {
|
|
162
162
|
id: import('convex/values').VString<string, "required">;
|
|
163
163
|
currency: import('convex/values').VString<string, "required">;
|
|
@@ -219,10 +219,10 @@ export declare const CreditNoteObject: import('convex/values').VObject<{
|
|
|
219
219
|
amount_refunded: import('convex/values').VFloat64<number, "required">;
|
|
220
220
|
refund: import('convex/values').VString<string, "required">;
|
|
221
221
|
}, "required", "amount_refunded" | "refund">, "required">;
|
|
222
|
-
shipping_cost: import('convex/values').VAny<any, "
|
|
222
|
+
shipping_cost: import('convex/values').VAny<any, "optional", string>;
|
|
223
223
|
subtotal_excluding_tax: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
224
224
|
total_excluding_tax: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
225
|
-
total_taxes: import('convex/values').VAny<any, "
|
|
225
|
+
total_taxes: import('convex/values').VAny<any, "optional", string>;
|
|
226
226
|
type: import('convex/values').VUnion<"mixed" | "post_payment" | "pre_payment", [import('convex/values').VLiteral<"mixed", "required">, import('convex/values').VLiteral<"post_payment", "required">, import('convex/values').VLiteral<"pre_payment", "required">], "required", never>;
|
|
227
227
|
voided_at: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
228
228
|
}, "required", "number" | "object" | "type" | "id" | "amount" | "currency" | "customer" | "metadata" | "status" | "created" | "livemode" | "refunds" | `metadata.${string}` | "invoice" | "shipping_cost" | `shipping_cost.${string}` | "lines" | "memo" | "reason" | "subtotal" | "total" | "amount_shipping" | "customer_balance_transaction" | "discount_amount" | "discount_amounts" | "effective_at" | "out_of_band_amount" | "pdf" | "post_payment_amount" | "pre_payment_amount" | "pretax_credit_amounts" | "subtotal_excluding_tax" | "total_excluding_tax" | "total_taxes" | "voided_at" | `lines.${string}` | `total_taxes.${string}`>;
|
|
@@ -48,7 +48,7 @@ export declare const CustomerStripeToConvex: (customer: Stripe.Customer) => {
|
|
|
48
48
|
preferred_locales?: string[] | null | undefined;
|
|
49
49
|
sources?: any;
|
|
50
50
|
subscriptions?: any;
|
|
51
|
-
tax_exempt?: "reverse" | "
|
|
51
|
+
tax_exempt?: "reverse" | "none" | "exempt" | null | undefined;
|
|
52
52
|
tax_ids?: any;
|
|
53
53
|
test_clock?: string | null | undefined;
|
|
54
54
|
object: string;
|
|
@@ -182,7 +182,7 @@ export declare const CustomerSchema: {
|
|
|
182
182
|
preferred_locales: import('convex/values').VUnion<string[] | null | undefined, [import('convex/values').VArray<string[], import('convex/values').VString<string, "required">, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
183
183
|
sources: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
184
184
|
subscriptions: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
185
|
-
tax_exempt: import('convex/values').VUnion<"reverse" | "
|
|
185
|
+
tax_exempt: import('convex/values').VUnion<"reverse" | "none" | "exempt" | null | undefined, [import('convex/values').VLiteral<"exempt", "required">, import('convex/values').VLiteral<"none", "required">, import('convex/values').VLiteral<"reverse", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
186
186
|
tax_ids: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
187
187
|
test_clock: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
188
188
|
};
|
|
@@ -235,7 +235,7 @@ export declare const CustomerObject: import('convex/values').VObject<{
|
|
|
235
235
|
preferred_locales?: string[] | null | undefined;
|
|
236
236
|
sources?: any;
|
|
237
237
|
subscriptions?: any;
|
|
238
|
-
tax_exempt?: "reverse" | "
|
|
238
|
+
tax_exempt?: "reverse" | "none" | "exempt" | null | undefined;
|
|
239
239
|
tax_ids?: any;
|
|
240
240
|
test_clock?: string | null | undefined;
|
|
241
241
|
object: string;
|
|
@@ -360,7 +360,7 @@ export declare const CustomerObject: import('convex/values').VObject<{
|
|
|
360
360
|
preferred_locales: import('convex/values').VUnion<string[] | null | undefined, [import('convex/values').VArray<string[], import('convex/values').VString<string, "required">, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
361
361
|
sources: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
362
362
|
subscriptions: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
363
|
-
tax_exempt: import('convex/values').VUnion<"reverse" | "
|
|
363
|
+
tax_exempt: import('convex/values').VUnion<"reverse" | "none" | "exempt" | null | undefined, [import('convex/values').VLiteral<"exempt", "required">, import('convex/values').VLiteral<"none", "required">, import('convex/values').VLiteral<"reverse", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
364
364
|
tax_ids: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
365
365
|
test_clock: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
366
366
|
}, "required", "object" | "id" | "address" | "email" | "name" | "phone" | "address.city" | "address.country" | "address.line1" | "address.line2" | "address.postal_code" | "address.state" | "currency" | "description" | "metadata" | "shipping" | "created" | "livemode" | `metadata.${string}` | "discount" | "tax" | "balance" | "cash_balance" | "default_source" | "delinquent" | "invoice_credit_balance" | "invoice_prefix" | "invoice_settings" | "next_invoice_sequence" | "preferred_locales" | "sources" | "subscriptions" | "tax_exempt" | "tax_ids" | "test_clock" | "shipping.address" | "shipping.name" | "shipping.phone" | "shipping.address.city" | "shipping.address.country" | "shipping.address.line1" | "shipping.address.line2" | "shipping.address.postal_code" | "shipping.address.state" | "shipping.carrier" | "shipping.tracking_number" | `discount.${string}` | "tax.automatic_tax" | "tax.ip_address" | "tax.location" | "tax.location.country" | "tax.location.state" | "tax.location.source" | `cash_balance.${string}` | `invoice_credit_balance.${string}` | `invoice_settings.${string}` | `sources.${string}` | `subscriptions.${string}` | `tax_ids.${string}`>;
|