forked from stripe/stripe-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaccount.go
1341 lines (1227 loc) · 86.8 KB
/
account.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
//
//
// File generated from our OpenAPI spec
//
//
package stripe
import (
"encoding/json"
"github.com/stripe/stripe-go/v74/form"
)
// The business type.
type AccountBusinessType string
// List of values that AccountBusinessType can take
const (
AccountBusinessTypeCompany AccountBusinessType = "company"
AccountBusinessTypeGovernmentEntity AccountBusinessType = "government_entity"
AccountBusinessTypeIndividual AccountBusinessType = "individual"
AccountBusinessTypeNonProfit AccountBusinessType = "non_profit"
)
// The status of the Canadian pre-authorized debits payments capability of the account, or whether the account can directly process Canadian pre-authorized debits charges.
type AccountCapabilityStatus string
// List of values that AccountCapabilityStatus can take
const (
AccountCapabilityStatusActive AccountCapabilityStatus = "active"
AccountCapabilityStatusInactive AccountCapabilityStatus = "inactive"
AccountCapabilityStatusPending AccountCapabilityStatus = "pending"
)
// The category identifying the legal structure of the company or legal entity. See [Business structure](https://stripe.com/docs/connect/identity-verification#business-structure) for more details.
type AccountCompanyStructure string
// List of values that AccountCompanyStructure can take
const (
AccountCompanyStructureFreeZoneEstablishment AccountCompanyStructure = "free_zone_establishment"
AccountCompanyStructureFreeZoneLLC AccountCompanyStructure = "free_zone_llc"
AccountCompanyStructureGovernmentInstrumentality AccountCompanyStructure = "government_instrumentality"
AccountCompanyStructureGovernmentalUnit AccountCompanyStructure = "governmental_unit"
AccountCompanyStructureIncorporatedNonProfit AccountCompanyStructure = "incorporated_non_profit"
AccountCompanyStructureLimitedLiabilityPartnership AccountCompanyStructure = "limited_liability_partnership"
AccountCompanyStructureLLC AccountCompanyStructure = "llc"
AccountCompanyStructureMultiMemberLLC AccountCompanyStructure = "multi_member_llc"
AccountCompanyStructurePrivateCompany AccountCompanyStructure = "private_company"
AccountCompanyStructurePrivateCorporation AccountCompanyStructure = "private_corporation"
AccountCompanyStructurePrivatePartnership AccountCompanyStructure = "private_partnership"
AccountCompanyStructurePublicCompany AccountCompanyStructure = "public_company"
AccountCompanyStructurePublicCorporation AccountCompanyStructure = "public_corporation"
AccountCompanyStructurePublicPartnership AccountCompanyStructure = "public_partnership"
AccountCompanyStructureSingleMemberLLC AccountCompanyStructure = "single_member_llc"
AccountCompanyStructureSoleEstablishment AccountCompanyStructure = "sole_establishment"
AccountCompanyStructureSoleProprietorship AccountCompanyStructure = "sole_proprietorship"
AccountCompanyStructureTaxExemptGovernmentInstrumentality AccountCompanyStructure = "tax_exempt_government_instrumentality"
AccountCompanyStructureUnincorporatedAssociation AccountCompanyStructure = "unincorporated_association"
AccountCompanyStructureUnincorporatedNonProfit AccountCompanyStructure = "unincorporated_non_profit"
)
// One of `document_corrupt`, `document_expired`, `document_failed_copy`, `document_failed_greyscale`, `document_failed_other`, `document_failed_test_mode`, `document_fraudulent`, `document_incomplete`, `document_invalid`, `document_manipulated`, `document_not_readable`, `document_not_uploaded`, `document_type_not_supported`, or `document_too_large`. A machine-readable code specifying the verification state for this document.
type AccountCompanyVerificationDocumentDetailsCode string
// List of values that AccountCompanyVerificationDocumentDetailsCode can take
const (
AccountCompanyVerificationDocumentDetailsCodeDocumentCorrupt AccountCompanyVerificationDocumentDetailsCode = "document_corrupt"
AccountCompanyVerificationDocumentDetailsCodeDocumentExpired AccountCompanyVerificationDocumentDetailsCode = "document_expired"
AccountCompanyVerificationDocumentDetailsCodeDocumentFailedCopy AccountCompanyVerificationDocumentDetailsCode = "document_failed_copy"
AccountCompanyVerificationDocumentDetailsCodeDocumentFailedOther AccountCompanyVerificationDocumentDetailsCode = "document_failed_other"
AccountCompanyVerificationDocumentDetailsCodeDocumentFailedTestMode AccountCompanyVerificationDocumentDetailsCode = "document_failed_test_mode"
AccountCompanyVerificationDocumentDetailsCodeDocumentFailedGreyscale AccountCompanyVerificationDocumentDetailsCode = "document_failed_greyscale"
AccountCompanyVerificationDocumentDetailsCodeDocumentFraudulent AccountCompanyVerificationDocumentDetailsCode = "document_fraudulent"
AccountCompanyVerificationDocumentDetailsCodeDocumentInvalid AccountCompanyVerificationDocumentDetailsCode = "document_invalid"
AccountCompanyVerificationDocumentDetailsCodeDocumentIncomplete AccountCompanyVerificationDocumentDetailsCode = "document_incomplete"
AccountCompanyVerificationDocumentDetailsCodeDocumentManipulated AccountCompanyVerificationDocumentDetailsCode = "document_manipulated"
AccountCompanyVerificationDocumentDetailsCodeDocumentNotReadable AccountCompanyVerificationDocumentDetailsCode = "document_not_readable"
AccountCompanyVerificationDocumentDetailsCodeDocumentNotUploaded AccountCompanyVerificationDocumentDetailsCode = "document_not_uploaded"
AccountCompanyVerificationDocumentDetailsCodeDocumentTooLarge AccountCompanyVerificationDocumentDetailsCode = "document_too_large"
AccountCompanyVerificationDocumentDetailsCodeDocumentTypeNotSupported AccountCompanyVerificationDocumentDetailsCode = "document_type_not_supported"
)
// The controller type. Can be `application`, if a Connect application controls the account, or `account`, if the account controls itself.
type AccountControllerType string
// List of values that AccountControllerType can take
const (
AccountControllerTypeAccount AccountControllerType = "account"
AccountControllerTypeApplication AccountControllerType = "application"
)
type AccountExternalAccountType string
// List of values that AccountExternalAccountType can take
const (
AccountExternalAccountTypeBankAccount AccountExternalAccountType = "bank_account"
AccountExternalAccountTypeCard AccountExternalAccountType = "card"
)
// If the account is disabled, this string describes why. Can be `requirements.past_due`, `requirements.pending_verification`, `listed`, `platform_paused`, `rejected.fraud`, `rejected.listed`, `rejected.terms_of_service`, `rejected.other`, `under_review`, or `other`.
type AccountRequirementsDisabledReason string
// List of values that AccountRequirementsDisabledReason can take
const (
AccountRequirementsDisabledReasonFieldsNeeded AccountRequirementsDisabledReason = "fields_needed"
AccountRequirementsDisabledReasonListed AccountRequirementsDisabledReason = "listed"
AccountRequirementsDisabledReasonOther AccountRequirementsDisabledReason = "other"
AccountRequirementsDisabledReasonRejectedFraud AccountRequirementsDisabledReason = "rejected.fraud"
AccountRequirementsDisabledReasonRejectedListed AccountRequirementsDisabledReason = "rejected.listed"
AccountRequirementsDisabledReasonRejectedOther AccountRequirementsDisabledReason = "rejected.other"
AccountRequirementsDisabledReasonRejectedTermsOfService AccountRequirementsDisabledReason = "rejected.terms_of_service"
AccountRequirementsDisabledReasonUnderReview AccountRequirementsDisabledReason = "under_review"
)
// How frequently funds will be paid out. One of `manual` (payouts only created via API call), `daily`, `weekly`, or `monthly`.
type AccountSettingsPayoutsScheduleInterval string
// List of values that AccountSettingsPayoutsScheduleInterval can take
const (
AccountSettingsPayoutsScheduleIntervalDaily AccountSettingsPayoutsScheduleInterval = "daily"
AccountSettingsPayoutsScheduleIntervalManual AccountSettingsPayoutsScheduleInterval = "manual"
AccountSettingsPayoutsScheduleIntervalMonthly AccountSettingsPayoutsScheduleInterval = "monthly"
AccountSettingsPayoutsScheduleIntervalWeekly AccountSettingsPayoutsScheduleInterval = "weekly"
)
// The user's service agreement type
type AccountTOSAcceptanceServiceAgreement string
// List of values that AccountTOSAcceptanceServiceAgreement can take
const (
AccountTOSAcceptanceServiceAgreementFull AccountTOSAcceptanceServiceAgreement = "full"
AccountTOSAcceptanceServiceAgreementRecipient AccountTOSAcceptanceServiceAgreement = "recipient"
)
// The Stripe account type. Can be `standard`, `express`, or `custom`.
type AccountType string
// List of values that AccountType can take
const (
AccountTypeCustom AccountType = "custom"
AccountTypeExpress AccountType = "express"
AccountTypeStandard AccountType = "standard"
)
// Retrieves the details of an account.
type AccountParams struct {
Params `form:"*"`
// An [account token](https://stripe.com/docs/api#create_account_token), used to securely provide details to the account.
AccountToken *string `form:"account_token"`
// Business information about the account.
BusinessProfile *AccountBusinessProfileParams `form:"business_profile"`
// The business type.
BusinessType *string `form:"business_type"`
// Each key of the dictionary represents a capability, and each capability maps to its settings (e.g. whether it has been requested or not). Each capability will be inactive until you have provided its specific requirements and Stripe has verified them. An account may have some of its requested capabilities be active and some be inactive.
Capabilities *AccountCapabilitiesParams `form:"capabilities"`
// Information about the company or business. This field is available for any `business_type`.
Company *AccountCompanyParams `form:"company"`
// The country in which the account holder resides, or in which the business is legally established. This should be an ISO 3166-1 alpha-2 country code. For example, if you are in the United States and the business for which you're creating an account is legally represented in Canada, you would use `CA` as the country for the account being created. Available countries include [Stripe's global markets](https://stripe.com/global) as well as countries where [cross-border payouts](https://stripe.com/docs/connect/cross-border-payouts) are supported.
Country *string `form:"country"`
// Three-letter ISO currency code representing the default currency for the account. This must be a currency that [Stripe supports in the account's country](https://stripe.com/docs/payouts).
DefaultCurrency *string `form:"default_currency"`
// Documents that may be submitted to satisfy various informational requests.
Documents *AccountDocumentsParams `form:"documents"`
// The email address of the account holder. This is only to make the account easier to identify to you. Stripe only emails Custom accounts with your consent.
Email *string `form:"email"`
// A card or bank account to attach to the account for receiving [payouts](https://stripe.com/docs/connect/bank-debit-card-payouts) (you won't be able to use it for top-ups). You can provide either a token, like the ones returned by [Stripe.js](https://stripe.com/docs/js), or a dictionary, as documented in the `external_account` parameter for [bank account](https://stripe.com/docs/api#account_create_bank_account) creation.
//
// By default, providing an external account sets it as the new default external account for its currency, and deletes the old default if one exists. To add additional external accounts without replacing the existing default for the currency, use the [bank account](https://stripe.com/docs/api#account_create_bank_account) or [card creation](https://stripe.com/docs/api#account_create_card) APIs.
ExternalAccount *AccountExternalAccountParams `form:"external_account"`
// Information about the person represented by the account. This field is null unless `business_type` is set to `individual`.
Individual *PersonParams `form:"individual"`
// Options for customizing how the account functions within Stripe.
Settings *AccountSettingsParams `form:"settings"`
// Details on the account's acceptance of the [Stripe Services Agreement](https://stripe.com/docs/connect/updating-accounts#tos-acceptance).
TOSAcceptance *AccountTOSAcceptanceParams `form:"tos_acceptance"`
// The type of Stripe account to create. May be one of `custom`, `express` or `standard`.
Type *string `form:"type"`
}
// Business information about the account.
type AccountBusinessProfileParams struct {
// [The merchant category code for the account](https://stripe.com/docs/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
MCC *string `form:"mcc"`
// The customer-facing business name.
Name *string `form:"name"`
// Internal-only description of the product sold by, or service provided by, the business. Used by Stripe for risk and underwriting purposes.
ProductDescription *string `form:"product_description"`
// A publicly available mailing address for sending support issues to.
SupportAddress *AddressParams `form:"support_address"`
// A publicly available email address for sending support issues to.
SupportEmail *string `form:"support_email"`
// A publicly available phone number to call with support issues.
SupportPhone *string `form:"support_phone"`
// A publicly available website for handling support issues.
SupportURL *string `form:"support_url"`
// The business's publicly available website.
URL *string `form:"url"`
}
// The acss_debit_payments capability.
type AccountCapabilitiesACSSDebitPaymentsParams struct {
// Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
Requested *bool `form:"requested"`
}
// The affirm_payments capability.
type AccountCapabilitiesAffirmPaymentsParams struct {
// Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
Requested *bool `form:"requested"`
}
// The afterpay_clearpay_payments capability.
type AccountCapabilitiesAfterpayClearpayPaymentsParams struct {
// Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
Requested *bool `form:"requested"`
}
// The au_becs_debit_payments capability.
type AccountCapabilitiesAUBECSDebitPaymentsParams struct {
// Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
Requested *bool `form:"requested"`
}
// The bacs_debit_payments capability.
type AccountCapabilitiesBACSDebitPaymentsParams struct {
// Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
Requested *bool `form:"requested"`
}
// The bancontact_payments capability.
type AccountCapabilitiesBancontactPaymentsParams struct {
// Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
Requested *bool `form:"requested"`
}
// The bank_transfer_payments capability.
type AccountCapabilitiesBankTransferPaymentsParams struct {
// Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
Requested *bool `form:"requested"`
}
// The blik_payments capability.
type AccountCapabilitiesBLIKPaymentsParams struct {
// Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
Requested *bool `form:"requested"`
}
// The boleto_payments capability.
type AccountCapabilitiesBoletoPaymentsParams struct {
// Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
Requested *bool `form:"requested"`
}
// The card_issuing capability.
type AccountCapabilitiesCardIssuingParams struct {
// Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
Requested *bool `form:"requested"`
}
// The card_payments capability.
type AccountCapabilitiesCardPaymentsParams struct {
// Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
Requested *bool `form:"requested"`
}
// The cartes_bancaires_payments capability.
type AccountCapabilitiesCartesBancairesPaymentsParams struct {
// Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
Requested *bool `form:"requested"`
}
// The cashapp_payments capability.
type AccountCapabilitiesCashAppPaymentsParams struct {
// Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
Requested *bool `form:"requested"`
}
// The eps_payments capability.
type AccountCapabilitiesEPSPaymentsParams struct {
// Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
Requested *bool `form:"requested"`
}
// The fpx_payments capability.
type AccountCapabilitiesFPXPaymentsParams struct {
// Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
Requested *bool `form:"requested"`
}
// The giropay_payments capability.
type AccountCapabilitiesGiropayPaymentsParams struct {
// Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
Requested *bool `form:"requested"`
}
// The grabpay_payments capability.
type AccountCapabilitiesGrabpayPaymentsParams struct {
// Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
Requested *bool `form:"requested"`
}
// The ideal_payments capability.
type AccountCapabilitiesIDEALPaymentsParams struct {
// Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
Requested *bool `form:"requested"`
}
// The india_international_payments capability.
type AccountCapabilitiesIndiaInternationalPaymentsParams struct {
// Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
Requested *bool `form:"requested"`
}
// The jcb_payments capability.
type AccountCapabilitiesJCBPaymentsParams struct {
// Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
Requested *bool `form:"requested"`
}
// The klarna_payments capability.
type AccountCapabilitiesKlarnaPaymentsParams struct {
// Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
Requested *bool `form:"requested"`
}
// The konbini_payments capability.
type AccountCapabilitiesKonbiniPaymentsParams struct {
// Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
Requested *bool `form:"requested"`
}
// The legacy_payments capability.
type AccountCapabilitiesLegacyPaymentsParams struct {
// Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
Requested *bool `form:"requested"`
}
// The link_payments capability.
type AccountCapabilitiesLinkPaymentsParams struct {
// Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
Requested *bool `form:"requested"`
}
// The oxxo_payments capability.
type AccountCapabilitiesOXXOPaymentsParams struct {
// Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
Requested *bool `form:"requested"`
}
// The p24_payments capability.
type AccountCapabilitiesP24PaymentsParams struct {
// Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
Requested *bool `form:"requested"`
}
// The paynow_payments capability.
type AccountCapabilitiesPayNowPaymentsParams struct {
// Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
Requested *bool `form:"requested"`
}
// The promptpay_payments capability.
type AccountCapabilitiesPromptPayPaymentsParams struct {
// Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
Requested *bool `form:"requested"`
}
// The sepa_debit_payments capability.
type AccountCapabilitiesSEPADebitPaymentsParams struct {
// Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
Requested *bool `form:"requested"`
}
// The sofort_payments capability.
type AccountCapabilitiesSofortPaymentsParams struct {
// Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
Requested *bool `form:"requested"`
}
// The tax_reporting_us_1099_k capability.
type AccountCapabilitiesTaxReportingUS1099KParams struct {
// Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
Requested *bool `form:"requested"`
}
// The tax_reporting_us_1099_misc capability.
type AccountCapabilitiesTaxReportingUS1099MISCParams struct {
// Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
Requested *bool `form:"requested"`
}
// The transfers capability.
type AccountCapabilitiesTransfersParams struct {
// Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
Requested *bool `form:"requested"`
}
// The treasury capability.
type AccountCapabilitiesTreasuryParams struct {
// Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
Requested *bool `form:"requested"`
}
// The us_bank_account_ach_payments capability.
type AccountCapabilitiesUSBankAccountACHPaymentsParams struct {
// Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
Requested *bool `form:"requested"`
}
// The zip_payments capability.
type AccountCapabilitiesZipPaymentsParams struct {
// Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
Requested *bool `form:"requested"`
}
// Each key of the dictionary represents a capability, and each capability maps to its settings (e.g. whether it has been requested or not). Each capability will be inactive until you have provided its specific requirements and Stripe has verified them. An account may have some of its requested capabilities be active and some be inactive.
type AccountCapabilitiesParams struct {
// The acss_debit_payments capability.
ACSSDebitPayments *AccountCapabilitiesACSSDebitPaymentsParams `form:"acss_debit_payments"`
// The affirm_payments capability.
AffirmPayments *AccountCapabilitiesAffirmPaymentsParams `form:"affirm_payments"`
// The afterpay_clearpay_payments capability.
AfterpayClearpayPayments *AccountCapabilitiesAfterpayClearpayPaymentsParams `form:"afterpay_clearpay_payments"`
// The au_becs_debit_payments capability.
AUBECSDebitPayments *AccountCapabilitiesAUBECSDebitPaymentsParams `form:"au_becs_debit_payments"`
// The bacs_debit_payments capability.
BACSDebitPayments *AccountCapabilitiesBACSDebitPaymentsParams `form:"bacs_debit_payments"`
// The bancontact_payments capability.
BancontactPayments *AccountCapabilitiesBancontactPaymentsParams `form:"bancontact_payments"`
// The bank_transfer_payments capability.
BankTransferPayments *AccountCapabilitiesBankTransferPaymentsParams `form:"bank_transfer_payments"`
// The blik_payments capability.
BLIKPayments *AccountCapabilitiesBLIKPaymentsParams `form:"blik_payments"`
// The boleto_payments capability.
BoletoPayments *AccountCapabilitiesBoletoPaymentsParams `form:"boleto_payments"`
// The card_issuing capability.
CardIssuing *AccountCapabilitiesCardIssuingParams `form:"card_issuing"`
// The card_payments capability.
CardPayments *AccountCapabilitiesCardPaymentsParams `form:"card_payments"`
// The cartes_bancaires_payments capability.
CartesBancairesPayments *AccountCapabilitiesCartesBancairesPaymentsParams `form:"cartes_bancaires_payments"`
// The cashapp_payments capability.
CashAppPayments *AccountCapabilitiesCashAppPaymentsParams `form:"cashapp_payments"`
// The eps_payments capability.
EPSPayments *AccountCapabilitiesEPSPaymentsParams `form:"eps_payments"`
// The fpx_payments capability.
FPXPayments *AccountCapabilitiesFPXPaymentsParams `form:"fpx_payments"`
// The giropay_payments capability.
GiropayPayments *AccountCapabilitiesGiropayPaymentsParams `form:"giropay_payments"`
// The grabpay_payments capability.
GrabpayPayments *AccountCapabilitiesGrabpayPaymentsParams `form:"grabpay_payments"`
// The ideal_payments capability.
IDEALPayments *AccountCapabilitiesIDEALPaymentsParams `form:"ideal_payments"`
// The india_international_payments capability.
IndiaInternationalPayments *AccountCapabilitiesIndiaInternationalPaymentsParams `form:"india_international_payments"`
// The jcb_payments capability.
JCBPayments *AccountCapabilitiesJCBPaymentsParams `form:"jcb_payments"`
// The klarna_payments capability.
KlarnaPayments *AccountCapabilitiesKlarnaPaymentsParams `form:"klarna_payments"`
// The konbini_payments capability.
KonbiniPayments *AccountCapabilitiesKonbiniPaymentsParams `form:"konbini_payments"`
// The legacy_payments capability.
LegacyPayments *AccountCapabilitiesLegacyPaymentsParams `form:"legacy_payments"`
// The link_payments capability.
LinkPayments *AccountCapabilitiesLinkPaymentsParams `form:"link_payments"`
// The oxxo_payments capability.
OXXOPayments *AccountCapabilitiesOXXOPaymentsParams `form:"oxxo_payments"`
// The p24_payments capability.
P24Payments *AccountCapabilitiesP24PaymentsParams `form:"p24_payments"`
// The paynow_payments capability.
PayNowPayments *AccountCapabilitiesPayNowPaymentsParams `form:"paynow_payments"`
// The promptpay_payments capability.
PromptPayPayments *AccountCapabilitiesPromptPayPaymentsParams `form:"promptpay_payments"`
// The sepa_debit_payments capability.
SEPADebitPayments *AccountCapabilitiesSEPADebitPaymentsParams `form:"sepa_debit_payments"`
// The sofort_payments capability.
SofortPayments *AccountCapabilitiesSofortPaymentsParams `form:"sofort_payments"`
// The tax_reporting_us_1099_k capability.
TaxReportingUS1099K *AccountCapabilitiesTaxReportingUS1099KParams `form:"tax_reporting_us_1099_k"`
// The tax_reporting_us_1099_misc capability.
TaxReportingUS1099MISC *AccountCapabilitiesTaxReportingUS1099MISCParams `form:"tax_reporting_us_1099_misc"`
// The transfers capability.
Transfers *AccountCapabilitiesTransfersParams `form:"transfers"`
// The treasury capability.
Treasury *AccountCapabilitiesTreasuryParams `form:"treasury"`
// The us_bank_account_ach_payments capability.
USBankAccountACHPayments *AccountCapabilitiesUSBankAccountACHPaymentsParams `form:"us_bank_account_ach_payments"`
// The zip_payments capability.
ZipPayments *AccountCapabilitiesZipPaymentsParams `form:"zip_payments"`
}
// The Kana variation of the company's primary address (Japan only).
type AccountCompanyAddressKanaParams struct {
// City or ward.
City *string `form:"city"`
// Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
Country *string `form:"country"`
// Block or building number.
Line1 *string `form:"line1"`
// Building details.
Line2 *string `form:"line2"`
// Postal code.
PostalCode *string `form:"postal_code"`
// Prefecture.
State *string `form:"state"`
// Town or cho-me.
Town *string `form:"town"`
}
// The Kanji variation of the company's primary address (Japan only).
type AccountCompanyAddressKanjiParams struct {
// City or ward.
City *string `form:"city"`
// Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
Country *string `form:"country"`
// Block or building number.
Line1 *string `form:"line1"`
// Building details.
Line2 *string `form:"line2"`
// Postal code.
PostalCode *string `form:"postal_code"`
// Prefecture.
State *string `form:"state"`
// Town or cho-me.
Town *string `form:"town"`
}
// This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct.
type AccountCompanyOwnershipDeclarationParams struct {
// The Unix timestamp marking when the beneficial owner attestation was made.
Date *int64 `form:"date"`
// The IP address from which the beneficial owner attestation was made.
IP *string `form:"ip"`
// The user agent of the browser from which the beneficial owner attestation was made.
UserAgent *string `form:"user_agent"`
}
// A document verifying the business.
type AccountCompanyVerificationDocumentParams struct {
// The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
Back *string `form:"back"`
// The front of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
Front *string `form:"front"`
}
// Information on the verification state of the company.
type AccountCompanyVerificationParams struct {
// A document verifying the business.
Document *AccountCompanyVerificationDocumentParams `form:"document"`
}
// Information about the company or business. This field is available for any `business_type`.
type AccountCompanyParams struct {
// The company's primary address.
Address *AddressParams `form:"address"`
// The Kana variation of the company's primary address (Japan only).
AddressKana *AccountCompanyAddressKanaParams `form:"address_kana"`
// The Kanji variation of the company's primary address (Japan only).
AddressKanji *AccountCompanyAddressKanjiParams `form:"address_kanji"`
// Whether the company's directors have been provided. Set this Boolean to `true` after creating all the company's directors with [the Persons API](https://stripe.com/docs/api/persons) for accounts with a `relationship.director` requirement. This value is not automatically set to `true` after creating directors, so it needs to be updated to indicate all directors have been provided.
DirectorsProvided *bool `form:"directors_provided"`
// Whether the company's executives have been provided. Set this Boolean to `true` after creating all the company's executives with [the Persons API](https://stripe.com/docs/api/persons) for accounts with a `relationship.executive` requirement.
ExecutivesProvided *bool `form:"executives_provided"`
// The export license ID number of the company, also referred as Import Export Code (India only).
ExportLicenseID *string `form:"export_license_id"`
// The purpose code to use for export transactions (India only).
ExportPurposeCode *string `form:"export_purpose_code"`
// The company's legal name.
Name *string `form:"name"`
// The Kana variation of the company's legal name (Japan only).
NameKana *string `form:"name_kana"`
// The Kanji variation of the company's legal name (Japan only).
NameKanji *string `form:"name_kanji"`
// This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct.
OwnershipDeclaration *AccountCompanyOwnershipDeclarationParams `form:"ownership_declaration"`
// This parameter can only be used on Token creation.
OwnershipDeclarationShownAndSigned *bool `form:"ownership_declaration_shown_and_signed"`
// Whether the company's owners have been provided. Set this Boolean to `true` after creating all the company's owners with [the Persons API](https://stripe.com/docs/api/persons) for accounts with a `relationship.owner` requirement.
OwnersProvided *bool `form:"owners_provided"`
// The company's phone number (used for verification).
Phone *string `form:"phone"`
// The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong).
RegistrationNumber *string `form:"registration_number"`
// The category identifying the legal structure of the company or legal entity. See [Business structure](https://stripe.com/docs/connect/identity-verification#business-structure) for more details.
Structure *string `form:"structure"`
// The business ID number of the company, as appropriate for the company's country. (Examples are an Employer ID Number in the U.S., a Business Number in Canada, or a Company Number in the UK.)
TaxID *string `form:"tax_id"`
// The jurisdiction in which the `tax_id` is registered (Germany-based companies only).
TaxIDRegistrar *string `form:"tax_id_registrar"`
// The VAT number of the company.
VATID *string `form:"vat_id"`
// Information on the verification state of the company.
Verification *AccountCompanyVerificationParams `form:"verification"`
}
// One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. Must be a document associated with the account's primary active bank account that displays the last 4 digits of the account number, either a statement or a voided check.
type AccountDocumentsBankAccountOwnershipVerificationParams struct {
// One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
Files []*string `form:"files"`
}
// One or more documents that demonstrate proof of a company's license to operate.
type AccountDocumentsCompanyLicenseParams struct {
// One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
Files []*string `form:"files"`
}
// One or more documents showing the company's Memorandum of Association.
type AccountDocumentsCompanyMemorandumOfAssociationParams struct {
// One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
Files []*string `form:"files"`
}
// (Certain countries only) One or more documents showing the ministerial decree legalizing the company's establishment.
type AccountDocumentsCompanyMinisterialDecreeParams struct {
// One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
Files []*string `form:"files"`
}
// One or more documents that demonstrate proof of a company's registration with the appropriate local authorities.
type AccountDocumentsCompanyRegistrationVerificationParams struct {
// One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
Files []*string `form:"files"`
}
// One or more documents that demonstrate proof of a company's tax ID.
type AccountDocumentsCompanyTaxIDVerificationParams struct {
// One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
Files []*string `form:"files"`
}
// One or more documents showing the company's proof of registration with the national business registry.
type AccountDocumentsProofOfRegistrationParams struct {
// One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
Files []*string `form:"files"`
}
// Documents that may be submitted to satisfy various informational requests.
type AccountDocumentsParams struct {
// One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. Must be a document associated with the account's primary active bank account that displays the last 4 digits of the account number, either a statement or a voided check.
BankAccountOwnershipVerification *AccountDocumentsBankAccountOwnershipVerificationParams `form:"bank_account_ownership_verification"`
// One or more documents that demonstrate proof of a company's license to operate.
CompanyLicense *AccountDocumentsCompanyLicenseParams `form:"company_license"`
// One or more documents showing the company's Memorandum of Association.
CompanyMemorandumOfAssociation *AccountDocumentsCompanyMemorandumOfAssociationParams `form:"company_memorandum_of_association"`
// (Certain countries only) One or more documents showing the ministerial decree legalizing the company's establishment.
CompanyMinisterialDecree *AccountDocumentsCompanyMinisterialDecreeParams `form:"company_ministerial_decree"`
// One or more documents that demonstrate proof of a company's registration with the appropriate local authorities.
CompanyRegistrationVerification *AccountDocumentsCompanyRegistrationVerificationParams `form:"company_registration_verification"`
// One or more documents that demonstrate proof of a company's tax ID.
CompanyTaxIDVerification *AccountDocumentsCompanyTaxIDVerificationParams `form:"company_tax_id_verification"`
// One or more documents showing the company's proof of registration with the national business registry.
ProofOfRegistration *AccountDocumentsProofOfRegistrationParams `form:"proof_of_registration"`
}
// Settings used to apply the account's branding to email receipts, invoices, Checkout, and other products.
type AccountSettingsBrandingParams struct {
// (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) An icon for the account. Must be square and at least 128px x 128px.
Icon *string `form:"icon"`
// (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) A logo for the account that will be used in Checkout instead of the icon and without the account's name next to it if provided. Must be at least 128px x 128px.
Logo *string `form:"logo"`
// A CSS hex color value representing the primary branding color for this account.
PrimaryColor *string `form:"primary_color"`
// A CSS hex color value representing the secondary branding color for this account.
SecondaryColor *string `form:"secondary_color"`
}
// Details on the account's acceptance of the [Stripe Issuing Terms and Disclosures](https://stripe.com/docs/issuing/connect/tos_acceptance).
type AccountSettingsCardIssuingTOSAcceptanceParams struct {
// The Unix timestamp marking when the account representative accepted the service agreement.
Date *int64 `form:"date"`
// The IP address from which the account representative accepted the service agreement.
IP *string `form:"ip"`
// The user agent of the browser from which the account representative accepted the service agreement.
UserAgent *string `form:"user_agent"`
}
// Settings specific to the account's use of the Card Issuing product.
type AccountSettingsCardIssuingParams struct {
// Details on the account's acceptance of the [Stripe Issuing Terms and Disclosures](https://stripe.com/docs/issuing/connect/tos_acceptance).
TOSAcceptance *AccountSettingsCardIssuingTOSAcceptanceParams `form:"tos_acceptance"`
}
// Automatically declines certain charge types regardless of whether the card issuer accepted or declined the charge.
type AccountSettingsCardPaymentsDeclineOnParams struct {
// Whether Stripe automatically declines charges with an incorrect ZIP or postal code. This setting only applies when a ZIP or postal code is provided and they fail bank verification.
AVSFailure *bool `form:"avs_failure"`
// Whether Stripe automatically declines charges with an incorrect CVC. This setting only applies when a CVC is provided and it fails bank verification.
CVCFailure *bool `form:"cvc_failure"`
}
// Settings specific to card charging on the account.
type AccountSettingsCardPaymentsParams struct {
// Automatically declines certain charge types regardless of whether the card issuer accepted or declined the charge.
DeclineOn *AccountSettingsCardPaymentsDeclineOnParams `form:"decline_on"`
// The default text that appears on credit card statements when a charge is made. This field prefixes any dynamic `statement_descriptor` specified on the charge. `statement_descriptor_prefix` is useful for maximizing descriptor space for the dynamic portion.
StatementDescriptorPrefix *string `form:"statement_descriptor_prefix"`
// The Kana variation of the default text that appears on credit card statements when a charge is made (Japan only). This field prefixes any dynamic `statement_descriptor_suffix_kana` specified on the charge. `statement_descriptor_prefix_kana` is useful for maximizing descriptor space for the dynamic portion.
StatementDescriptorPrefixKana *string `form:"statement_descriptor_prefix_kana"`
// The Kanji variation of the default text that appears on credit card statements when a charge is made (Japan only). This field prefixes any dynamic `statement_descriptor_suffix_kanji` specified on the charge. `statement_descriptor_prefix_kanji` is useful for maximizing descriptor space for the dynamic portion.
StatementDescriptorPrefixKanji *string `form:"statement_descriptor_prefix_kanji"`
}
// Settings that apply across payment methods for charging on the account.
type AccountSettingsPaymentsParams struct {
// The default text that appears on credit card statements when a charge is made. This field prefixes any dynamic `statement_descriptor` specified on the charge.
StatementDescriptor *string `form:"statement_descriptor"`
// The Kana variation of the default text that appears on credit card statements when a charge is made (Japan only).
StatementDescriptorKana *string `form:"statement_descriptor_kana"`
// The Kanji variation of the default text that appears on credit card statements when a charge is made (Japan only).
StatementDescriptorKanji *string `form:"statement_descriptor_kanji"`
}
// Details on when funds from charges are available, and when they are paid out to an external account. For details, see our [Setting Bank and Debit Card Payouts](https://stripe.com/docs/connect/bank-transfers#payout-information) documentation.
type AccountSettingsPayoutsScheduleParams struct {
// The number of days charge funds are held before being paid out. May also be set to `minimum`, representing the lowest available value for the account country. Default is `minimum`. The `delay_days` parameter remains at the last configured value if `interval` is `manual`. [Learn more about controlling payout delay days](https://stripe.com/docs/connect/manage-payout-schedule).
DelayDays *int64 `form:"delay_days"`
DelayDaysMinimum *bool `form:"-"` // See custom AppendTo
// How frequently available funds are paid out. One of: `daily`, `manual`, `weekly`, or `monthly`. Default is `daily`.
Interval *string `form:"interval"`
// The day of the month when available funds are paid out, specified as a number between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly`.
MonthlyAnchor *int64 `form:"monthly_anchor"`
// The day of the week when available funds are paid out, specified as `monday`, `tuesday`, etc. (required and applicable only if `interval` is `weekly`.)
WeeklyAnchor *string `form:"weekly_anchor"`
}
// AppendTo implements custom encoding logic for AccountSettingsPayoutsScheduleParams.
func (a *AccountSettingsPayoutsScheduleParams) AppendTo(body *form.Values, keyParts []string) {
if BoolValue(a.DelayDaysMinimum) {
body.Add(form.FormatKey(append(keyParts, "delay_days")), "minimum")
}
}
// Settings specific to the account's payouts.
type AccountSettingsPayoutsParams struct {
// A Boolean indicating whether Stripe should try to reclaim negative balances from an attached bank account. For details, see [Understanding Connect Account Balances](https://stripe.com/docs/connect/account-balances).
DebitNegativeBalances *bool `form:"debit_negative_balances"`
// Details on when funds from charges are available, and when they are paid out to an external account. For details, see our [Setting Bank and Debit Card Payouts](https://stripe.com/docs/connect/bank-transfers#payout-information) documentation.
Schedule *AccountSettingsPayoutsScheduleParams `form:"schedule"`
// The text that appears on the bank account statement for payouts. If not set, this defaults to the platform's bank descriptor as set in the Dashboard.
StatementDescriptor *string `form:"statement_descriptor"`
}
// Details on the account's acceptance of the Stripe Treasury Services Agreement.
type AccountSettingsTreasuryTOSAcceptanceParams struct {
// The Unix timestamp marking when the account representative accepted the service agreement.
Date *int64 `form:"date"`
// The IP address from which the account representative accepted the service agreement.
IP *string `form:"ip"`
// The user agent of the browser from which the account representative accepted the service agreement.
UserAgent *string `form:"user_agent"`
}
// Settings specific to the account's Treasury FinancialAccounts.
type AccountSettingsTreasuryParams struct {
// Details on the account's acceptance of the Stripe Treasury Services Agreement.
TOSAcceptance *AccountSettingsTreasuryTOSAcceptanceParams `form:"tos_acceptance"`
}
type AccountSettingsBACSDebitPaymentsParams struct {
DisplayName *string `form:"display_name"`
}
// Options for customizing how the account functions within Stripe.
type AccountSettingsParams struct {
BACSDebitPayments *AccountSettingsBACSDebitPaymentsParams `form:"bacs_debit_payments"`
// Settings used to apply the account's branding to email receipts, invoices, Checkout, and other products.
Branding *AccountSettingsBrandingParams `form:"branding"`
// Settings specific to the account's use of the Card Issuing product.
CardIssuing *AccountSettingsCardIssuingParams `form:"card_issuing"`
// Settings specific to card charging on the account.
CardPayments *AccountSettingsCardPaymentsParams `form:"card_payments"`
// Settings that apply across payment methods for charging on the account.
Payments *AccountSettingsPaymentsParams `form:"payments"`
// Settings specific to the account's payouts.
Payouts *AccountSettingsPayoutsParams `form:"payouts"`
// Settings specific to the account's Treasury FinancialAccounts.
Treasury *AccountSettingsTreasuryParams `form:"treasury"`
}
// Details on the account's acceptance of the [Stripe Services Agreement](https://stripe.com/docs/connect/updating-accounts#tos-acceptance).
type AccountTOSAcceptanceParams struct {
// The Unix timestamp marking when the account representative accepted their service agreement.
Date *int64 `form:"date"`
// The IP address from which the account representative accepted their service agreement.
IP *string `form:"ip"`
// The user's service agreement type.
ServiceAgreement *string `form:"service_agreement"`
// The user agent of the browser from which the account representative accepted their service agreement.
UserAgent *string `form:"user_agent"`
}
// Returns a list of accounts connected to your platform via [Connect](https://stripe.com/docs/connect). If you're not a platform, the list is empty.
type AccountListParams struct {
ListParams `form:"*"`
Created *int64 `form:"created"`
CreatedRange *RangeQueryParams `form:"created"`
}
// With [Connect](https://stripe.com/docs/connect), you may flag accounts as suspicious.
//
// Test-mode Custom and Express accounts can be rejected at any time. Accounts created using live-mode keys may only be rejected once all balances are zero.
type AccountRejectParams struct {
Params `form:"*"`
// The reason for rejecting the account. Can be `fraud`, `terms_of_service`, or `other`.
Reason *string `form:"reason"`
}
// AccountExternalAccountParams are the parameters allowed to reference an
// external account when creating an account. It should either have Token set
// or everything else.
type AccountExternalAccountParams struct {
Params `form:"*"`
AccountNumber *string `form:"account_number"`
AccountHolderName *string `form:"account_holder_name"`
AccountHolderType *string `form:"account_holder_type"`
Country *string `form:"country"`
Currency *string `form:"currency"`
RoutingNumber *string `form:"routing_number"`
Token *string `form:"token"`
}
// AppendTo implements custom encoding logic for AccountExternalAccountParams
// so that we can send the special required `object` field up along with the
// other specified parameters or the token value.
func (p *AccountExternalAccountParams) AppendTo(body *form.Values, keyParts []string) {
if p.Token != nil {
body.Add(form.FormatKey(keyParts), StringValue(p.Token))
} else {
body.Add(form.FormatKey(append(keyParts, "object")), "bank_account")
}
}
// Business information about the account.
type AccountBusinessProfile struct {
// [The merchant category code for the account](https://stripe.com/docs/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
MCC string `json:"mcc"`
// The customer-facing business name.
Name string `json:"name"`
// Internal-only description of the product sold or service provided by the business. It's used by Stripe for risk and underwriting purposes.
ProductDescription string `json:"product_description"`
// A publicly available mailing address for sending support issues to.
SupportAddress *Address `json:"support_address"`
// A publicly available email address for sending support issues to.
SupportEmail string `json:"support_email"`
// A publicly available phone number to call with support issues.
SupportPhone string `json:"support_phone"`
// A publicly available website for handling support issues.
SupportURL string `json:"support_url"`
// The business's publicly available website.
URL string `json:"url"`
}
type AccountCapabilities struct {
// The status of the Canadian pre-authorized debits payments capability of the account, or whether the account can directly process Canadian pre-authorized debits charges.
ACSSDebitPayments AccountCapabilityStatus `json:"acss_debit_payments"`
// The status of the Affirm capability of the account, or whether the account can directly process Affirm charges.
AffirmPayments AccountCapabilityStatus `json:"affirm_payments"`
// The status of the Afterpay Clearpay capability of the account, or whether the account can directly process Afterpay Clearpay charges.
AfterpayClearpayPayments AccountCapabilityStatus `json:"afterpay_clearpay_payments"`
// The status of the BECS Direct Debit (AU) payments capability of the account, or whether the account can directly process BECS Direct Debit (AU) charges.
AUBECSDebitPayments AccountCapabilityStatus `json:"au_becs_debit_payments"`
// The status of the Bacs Direct Debits payments capability of the account, or whether the account can directly process Bacs Direct Debits charges.
BACSDebitPayments AccountCapabilityStatus `json:"bacs_debit_payments"`
// The status of the Bancontact payments capability of the account, or whether the account can directly process Bancontact charges.
BancontactPayments AccountCapabilityStatus `json:"bancontact_payments"`
// The status of the customer_balance payments capability of the account, or whether the account can directly process customer_balance charges.
BankTransferPayments AccountCapabilityStatus `json:"bank_transfer_payments"`
// The status of the blik payments capability of the account, or whether the account can directly process blik charges.
BLIKPayments AccountCapabilityStatus `json:"blik_payments"`
// The status of the boleto payments capability of the account, or whether the account can directly process boleto charges.
BoletoPayments AccountCapabilityStatus `json:"boleto_payments"`
// The status of the card issuing capability of the account, or whether you can use Issuing to distribute funds on cards
CardIssuing AccountCapabilityStatus `json:"card_issuing"`
// The status of the card payments capability of the account, or whether the account can directly process credit and debit card charges.
CardPayments AccountCapabilityStatus `json:"card_payments"`
// The status of the Cartes Bancaires payments capability of the account, or whether the account can directly process Cartes Bancaires card charges in EUR currency.
CartesBancairesPayments AccountCapabilityStatus `json:"cartes_bancaires_payments"`
// The status of the Cash App Pay capability of the account, or whether the account can directly process Cash App Pay payments.
CashAppPayments AccountCapabilityStatus `json:"cashapp_payments"`
// The status of the EPS payments capability of the account, or whether the account can directly process EPS charges.
EPSPayments AccountCapabilityStatus `json:"eps_payments"`
// The status of the FPX payments capability of the account, or whether the account can directly process FPX charges.
FPXPayments AccountCapabilityStatus `json:"fpx_payments"`
// The status of the giropay payments capability of the account, or whether the account can directly process giropay charges.
GiropayPayments AccountCapabilityStatus `json:"giropay_payments"`
// The status of the GrabPay payments capability of the account, or whether the account can directly process GrabPay charges.
GrabpayPayments AccountCapabilityStatus `json:"grabpay_payments"`
// The status of the iDEAL payments capability of the account, or whether the account can directly process iDEAL charges.
IDEALPayments AccountCapabilityStatus `json:"ideal_payments"`
// The status of the india_international_payments capability of the account, or whether the account can process international charges (non INR) in India.
IndiaInternationalPayments AccountCapabilityStatus `json:"india_international_payments"`
// The status of the JCB payments capability of the account, or whether the account (Japan only) can directly process JCB credit card charges in JPY currency.
JCBPayments AccountCapabilityStatus `json:"jcb_payments"`
// The status of the Klarna payments capability of the account, or whether the account can directly process Klarna charges.
KlarnaPayments AccountCapabilityStatus `json:"klarna_payments"`
// The status of the konbini payments capability of the account, or whether the account can directly process konbini charges.
KonbiniPayments AccountCapabilityStatus `json:"konbini_payments"`
// The status of the legacy payments capability of the account.
LegacyPayments AccountCapabilityStatus `json:"legacy_payments"`
// The status of the link_payments capability of the account, or whether the account can directly process Link charges.
LinkPayments AccountCapabilityStatus `json:"link_payments"`
// The status of the OXXO payments capability of the account, or whether the account can directly process OXXO charges.
OXXOPayments AccountCapabilityStatus `json:"oxxo_payments"`
// The status of the P24 payments capability of the account, or whether the account can directly process P24 charges.
P24Payments AccountCapabilityStatus `json:"p24_payments"`
// The status of the paynow payments capability of the account, or whether the account can directly process paynow charges.
PayNowPayments AccountCapabilityStatus `json:"paynow_payments"`
// The status of the promptpay payments capability of the account, or whether the account can directly process promptpay charges.
PromptPayPayments AccountCapabilityStatus `json:"promptpay_payments"`
// The status of the SEPA Direct Debits payments capability of the account, or whether the account can directly process SEPA Direct Debits charges.
SEPADebitPayments AccountCapabilityStatus `json:"sepa_debit_payments"`
// The status of the Sofort payments capability of the account, or whether the account can directly process Sofort charges.
SofortPayments AccountCapabilityStatus `json:"sofort_payments"`
// The status of the tax reporting 1099-K (US) capability of the account.
TaxReportingUS1099K AccountCapabilityStatus `json:"tax_reporting_us_1099_k"`
// The status of the tax reporting 1099-MISC (US) capability of the account.
TaxReportingUS1099MISC AccountCapabilityStatus `json:"tax_reporting_us_1099_misc"`
// The status of the transfers capability of the account, or whether your platform can transfer funds to the account.
Transfers AccountCapabilityStatus `json:"transfers"`
// The status of the banking capability, or whether the account can have bank accounts.
Treasury AccountCapabilityStatus `json:"treasury"`
// The status of the US bank account ACH payments capability of the account, or whether the account can directly process US bank account charges.
USBankAccountACHPayments AccountCapabilityStatus `json:"us_bank_account_ach_payments"`
// The status of the Zip capability of the account, or whether the account can directly process Zip charges.
ZipPayments AccountCapabilityStatus `json:"zip_payments"`
}
// The Kana variation of the company's primary address (Japan only).
type AccountCompanyAddressKana struct {
// City/Ward.
City string `json:"city"`
// Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
Country string `json:"country"`
// Block/Building number.
Line1 string `json:"line1"`
// Building details.
Line2 string `json:"line2"`
// ZIP or postal code.
PostalCode string `json:"postal_code"`
// Prefecture.
State string `json:"state"`
// Town/cho-me.
Town string `json:"town"`
}
// The Kanji variation of the company's primary address (Japan only).
type AccountCompanyAddressKanji struct {
// City/Ward.
City string `json:"city"`
// Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
Country string `json:"country"`
// Block/Building number.
Line1 string `json:"line1"`
// Building details.
Line2 string `json:"line2"`
// ZIP or postal code.
PostalCode string `json:"postal_code"`
// Prefecture.
State string `json:"state"`
// Town/cho-me.
Town string `json:"town"`
}
// This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct.
type AccountCompanyOwnershipDeclaration struct {
// The Unix timestamp marking when the beneficial owner attestation was made.
Date int64 `json:"date"`
// The IP address from which the beneficial owner attestation was made.
IP string `json:"ip"`
// The user-agent string from the browser where the beneficial owner attestation was made.
UserAgent string `json:"user_agent"`
}
type AccountCompanyVerificationDocument struct {
// The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`.
Back *File `json:"back"`
// A user-displayable string describing the verification state of this document.
Details string `json:"details"`
// One of `document_corrupt`, `document_expired`, `document_failed_copy`, `document_failed_greyscale`, `document_failed_other`, `document_failed_test_mode`, `document_fraudulent`, `document_incomplete`, `document_invalid`, `document_manipulated`, `document_not_readable`, `document_not_uploaded`, `document_type_not_supported`, or `document_too_large`. A machine-readable code specifying the verification state for this document.
DetailsCode AccountCompanyVerificationDocumentDetailsCode `json:"details_code"`
// The front of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`.
Front *File `json:"front"`
}
// Information on the verification state of the company.
type AccountCompanyVerification struct {
Document *AccountCompanyVerificationDocument `json:"document"`
}
type AccountCompany struct {
Address *Address `json:"address"`
// The Kana variation of the company's primary address (Japan only).
AddressKana *AccountCompanyAddressKana `json:"address_kana"`
// The Kanji variation of the company's primary address (Japan only).
AddressKanji *AccountCompanyAddressKanji `json:"address_kanji"`
// Whether the company's directors have been provided. This Boolean will be `true` if you've manually indicated that all directors are provided via [the `directors_provided` parameter](https://stripe.com/docs/api/accounts/update#update_account-company-directors_provided).
DirectorsProvided bool `json:"directors_provided"`
// Whether the company's executives have been provided. This Boolean will be `true` if you've manually indicated that all executives are provided via [the `executives_provided` parameter](https://stripe.com/docs/api/accounts/update#update_account-company-executives_provided), or if Stripe determined that sufficient executives were provided.
ExecutivesProvided bool `json:"executives_provided"`
// The export license ID number of the company, also referred as Import Export Code (India only).
ExportLicenseID string `json:"export_license_id"`
// The purpose code to use for export transactions (India only).
ExportPurposeCode string `json:"export_purpose_code"`