stripe 23.2.0-alpha.1 → 23.2.0-alpha.2

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.
Files changed (153) hide show
  1. package/CHANGELOG.md +55 -0
  2. package/OPENAPI_VERSION +1 -1
  3. package/VERSION +1 -1
  4. package/cjs/StripeEventNotificationHandler.js +2 -0
  5. package/cjs/StripeEventNotificationHandler.js.map +1 -1
  6. package/cjs/WorkloadIdentity.js +1 -1
  7. package/cjs/resources/AccountSessions.d.ts +226 -0
  8. package/cjs/resources/Apps/Installs.d.ts +1 -1
  9. package/cjs/resources/Apps/Installs.js +1 -1
  10. package/cjs/resources/Charges.d.ts +383 -0
  11. package/cjs/resources/Checkout/Sessions.d.ts +82 -6
  12. package/cjs/resources/ConfirmationTokens.d.ts +40 -1
  13. package/cjs/resources/CustomerTaxExemptions.d.ts +28 -0
  14. package/cjs/resources/Customers.d.ts +31 -1
  15. package/cjs/resources/Disputes.d.ts +1 -1
  16. package/cjs/resources/Invoices.d.ts +15 -3
  17. package/cjs/resources/Issuing/Cards.d.ts +2 -2
  18. package/cjs/resources/PaymentAttemptRecords.d.ts +140 -1
  19. package/cjs/resources/PaymentIntentAmountDetailsLineItems.d.ts +48 -0
  20. package/cjs/resources/PaymentIntents.d.ts +532 -20
  21. package/cjs/resources/PaymentLinks.d.ts +3 -3
  22. package/cjs/resources/PaymentMethodConfigurations.d.ts +70 -0
  23. package/cjs/resources/PaymentMethods.d.ts +66 -3
  24. package/cjs/resources/PaymentRecords.d.ts +85 -1
  25. package/cjs/resources/QuotePreviewInvoices.d.ts +1 -1
  26. package/cjs/resources/Quotes.d.ts +2 -2
  27. package/cjs/resources/Radar/PaymentEvaluations.d.ts +45 -4
  28. package/cjs/resources/Refunds.d.ts +31 -1
  29. package/cjs/resources/Reporting/ReportRuns.d.ts +4 -0
  30. package/cjs/resources/SetupAttempts.d.ts +4 -0
  31. package/cjs/resources/SetupIntents.d.ts +129 -15
  32. package/cjs/resources/Subscriptions.d.ts +21 -5
  33. package/cjs/resources/Tax/Certificates.d.ts +107 -0
  34. package/cjs/resources/Tax/Certificates.js +35 -0
  35. package/cjs/resources/Tax/Certificates.js.map +1 -0
  36. package/cjs/resources/Tax/FormCorrections.d.ts +29 -0
  37. package/cjs/resources/Tax/FormCorrections.js +4 -0
  38. package/cjs/resources/Tax/FormCorrections.js.map +1 -0
  39. package/cjs/resources/Tax/Forms.d.ts +376 -1
  40. package/cjs/resources/Tax/Forms.js +6 -0
  41. package/cjs/resources/Tax/Forms.js.map +1 -1
  42. package/cjs/resources/Tax/index.d.ts +38 -25
  43. package/cjs/resources/Tax/index.js +2 -0
  44. package/cjs/resources/Tax/index.js.map +1 -1
  45. package/cjs/resources/TestHelpers/ConfirmationTokens.d.ts +25 -1
  46. package/cjs/resources/Treasury/InboundTransfers.d.ts +22 -0
  47. package/cjs/resources/Treasury/OutboundPayments.d.ts +22 -0
  48. package/cjs/resources/Treasury/OutboundTransfers.d.ts +22 -0
  49. package/cjs/resources/V2/Core/AccountSessions.d.ts +28 -0
  50. package/cjs/resources/V2/Core/ApprovalRequests.d.ts +34 -2
  51. package/cjs/resources/V2/Core/Events.d.ts +85 -5
  52. package/cjs/resources/V2/Extend/ObjectDefinitionVersions.d.ts +222 -0
  53. package/cjs/resources/V2/Extend/ObjectDefinitionVersions.js +4 -0
  54. package/cjs/resources/V2/Extend/ObjectDefinitionVersions.js.map +1 -0
  55. package/cjs/resources/V2/Extend/ObjectDefinitions/Versions.d.ts +33 -0
  56. package/cjs/resources/V2/Extend/ObjectDefinitions/Versions.js +23 -0
  57. package/cjs/resources/V2/Extend/ObjectDefinitions/Versions.js.map +1 -0
  58. package/cjs/resources/V2/Extend/ObjectDefinitions.d.ts +63 -0
  59. package/cjs/resources/V2/Extend/ObjectDefinitions.js +29 -0
  60. package/cjs/resources/V2/Extend/ObjectDefinitions.js.map +1 -0
  61. package/cjs/resources/V2/Extend/index.d.ts +16 -7
  62. package/cjs/resources/V2/Extend/index.js +2 -0
  63. package/cjs/resources/V2/Extend/index.js.map +1 -1
  64. package/cjs/resources/V2/MoneyManagement/Adjustments.d.ts +34 -2
  65. package/cjs/resources/V2/MoneyManagement/FundingIntents.d.ts +30 -2
  66. package/cjs/resources/V2/MoneyManagement/FundingIntents.js.map +1 -1
  67. package/cjs/resources/V2/MoneyManagement/InboundTransfers.d.ts +34 -2
  68. package/cjs/resources/V2/MoneyManagement/OutboundPayments.d.ts +32 -2
  69. package/cjs/resources/V2/MoneyManagement/OutboundPayments.js.map +1 -1
  70. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.d.ts +34 -2
  71. package/cjs/resources/V2/MoneyManagement/TransactionEntries.d.ts +30 -2
  72. package/cjs/resources/V2/MoneyManagement/Transactions.d.ts +30 -2
  73. package/cjs/resources/V2/MoneyManagement/Transactions.js.map +1 -1
  74. package/cjs/resources.js +4 -0
  75. package/cjs/resources.js.map +1 -1
  76. package/cjs/stripe.cjs.node.d.ts +459 -0
  77. package/cjs/stripe.cjs.node.js.map +1 -1
  78. package/cjs/stripe.core.js +1 -1
  79. package/esm/StripeEventNotificationHandler.js +2 -0
  80. package/esm/StripeEventNotificationHandler.js.map +1 -1
  81. package/esm/WorkloadIdentity.js +1 -1
  82. package/esm/resources/AccountSessions.d.ts +226 -0
  83. package/esm/resources/Apps/Installs.d.ts +1 -1
  84. package/esm/resources/Apps/Installs.js +1 -1
  85. package/esm/resources/Charges.d.ts +383 -0
  86. package/esm/resources/Checkout/Sessions.d.ts +82 -6
  87. package/esm/resources/ConfirmationTokens.d.ts +40 -1
  88. package/esm/resources/CustomerTaxExemptions.d.ts +28 -0
  89. package/esm/resources/Customers.d.ts +31 -1
  90. package/esm/resources/Disputes.d.ts +1 -1
  91. package/esm/resources/Invoices.d.ts +15 -3
  92. package/esm/resources/Issuing/Cards.d.ts +2 -2
  93. package/esm/resources/PaymentAttemptRecords.d.ts +140 -1
  94. package/esm/resources/PaymentIntentAmountDetailsLineItems.d.ts +48 -0
  95. package/esm/resources/PaymentIntents.d.ts +532 -20
  96. package/esm/resources/PaymentLinks.d.ts +3 -3
  97. package/esm/resources/PaymentMethodConfigurations.d.ts +70 -0
  98. package/esm/resources/PaymentMethods.d.ts +66 -3
  99. package/esm/resources/PaymentRecords.d.ts +85 -1
  100. package/esm/resources/QuotePreviewInvoices.d.ts +1 -1
  101. package/esm/resources/Quotes.d.ts +2 -2
  102. package/esm/resources/Radar/PaymentEvaluations.d.ts +45 -4
  103. package/esm/resources/Refunds.d.ts +31 -1
  104. package/esm/resources/Reporting/ReportRuns.d.ts +4 -0
  105. package/esm/resources/SetupAttempts.d.ts +4 -0
  106. package/esm/resources/SetupIntents.d.ts +129 -15
  107. package/esm/resources/Subscriptions.d.ts +21 -5
  108. package/esm/resources/Tax/Certificates.d.ts +107 -0
  109. package/esm/resources/Tax/Certificates.js +31 -0
  110. package/esm/resources/Tax/Certificates.js.map +1 -0
  111. package/esm/resources/Tax/FormCorrections.d.ts +29 -0
  112. package/esm/resources/Tax/FormCorrections.js +3 -0
  113. package/esm/resources/Tax/FormCorrections.js.map +1 -0
  114. package/esm/resources/Tax/Forms.d.ts +376 -1
  115. package/esm/resources/Tax/Forms.js +6 -0
  116. package/esm/resources/Tax/Forms.js.map +1 -1
  117. package/esm/resources/Tax/index.d.ts +38 -25
  118. package/esm/resources/Tax/index.js +2 -0
  119. package/esm/resources/Tax/index.js.map +1 -1
  120. package/esm/resources/TestHelpers/ConfirmationTokens.d.ts +25 -1
  121. package/esm/resources/Treasury/InboundTransfers.d.ts +22 -0
  122. package/esm/resources/Treasury/OutboundPayments.d.ts +22 -0
  123. package/esm/resources/Treasury/OutboundTransfers.d.ts +22 -0
  124. package/esm/resources/V2/Core/AccountSessions.d.ts +28 -0
  125. package/esm/resources/V2/Core/ApprovalRequests.d.ts +34 -2
  126. package/esm/resources/V2/Core/Events.d.ts +85 -5
  127. package/esm/resources/V2/Extend/ObjectDefinitionVersions.d.ts +222 -0
  128. package/esm/resources/V2/Extend/ObjectDefinitionVersions.js +3 -0
  129. package/esm/resources/V2/Extend/ObjectDefinitionVersions.js.map +1 -0
  130. package/esm/resources/V2/Extend/ObjectDefinitions/Versions.d.ts +33 -0
  131. package/esm/resources/V2/Extend/ObjectDefinitions/Versions.js +19 -0
  132. package/esm/resources/V2/Extend/ObjectDefinitions/Versions.js.map +1 -0
  133. package/esm/resources/V2/Extend/ObjectDefinitions.d.ts +63 -0
  134. package/esm/resources/V2/Extend/ObjectDefinitions.js +25 -0
  135. package/esm/resources/V2/Extend/ObjectDefinitions.js.map +1 -0
  136. package/esm/resources/V2/Extend/index.d.ts +16 -7
  137. package/esm/resources/V2/Extend/index.js +2 -0
  138. package/esm/resources/V2/Extend/index.js.map +1 -1
  139. package/esm/resources/V2/MoneyManagement/Adjustments.d.ts +34 -2
  140. package/esm/resources/V2/MoneyManagement/FundingIntents.d.ts +30 -2
  141. package/esm/resources/V2/MoneyManagement/FundingIntents.js.map +1 -1
  142. package/esm/resources/V2/MoneyManagement/InboundTransfers.d.ts +34 -2
  143. package/esm/resources/V2/MoneyManagement/OutboundPayments.d.ts +32 -2
  144. package/esm/resources/V2/MoneyManagement/OutboundPayments.js.map +1 -1
  145. package/esm/resources/V2/MoneyManagement/ReceivedCredits.d.ts +34 -2
  146. package/esm/resources/V2/MoneyManagement/TransactionEntries.d.ts +30 -2
  147. package/esm/resources/V2/MoneyManagement/Transactions.d.ts +30 -2
  148. package/esm/resources/V2/MoneyManagement/Transactions.js.map +1 -1
  149. package/esm/resources.js +4 -0
  150. package/esm/resources.js.map +1 -1
  151. package/esm/stripe.core.js +1 -1
  152. package/esm/stripe.esm.node.js +1 -1
  153. package/package.json +1 -1
@@ -0,0 +1,107 @@
1
+ import { StripeResource } from '../../StripeResource.js';
2
+ import { File } from './../Files.js';
3
+ import { CustomerTaxExemption, DeletedCustomerTaxExemption } from './../CustomerTaxExemptions.js';
4
+ import { PaginationParams } from '../../shared.js';
5
+ import { RequestOptions, Response, ApiListPromise } from '../../lib.js';
6
+ export declare class CertificateResource extends StripeResource {
7
+ /**
8
+ * Delete a tax certificate associated with a tax exemption.
9
+ */
10
+ del(id: string, params?: Tax.CertificateDeleteParams, options?: RequestOptions): Promise<Response<DeletedCertificate>>;
11
+ /**
12
+ * Retrieve a tax certificate associated with a tax exemption.
13
+ */
14
+ retrieve(id: string, params?: Tax.CertificateRetrieveParams, options?: RequestOptions): Promise<Response<Certificate>>;
15
+ /**
16
+ * List certificates for an existing tax exemption.
17
+ */
18
+ list(params: Tax.CertificateListParams, options?: RequestOptions): ApiListPromise<Certificate>;
19
+ /**
20
+ * Create a tax certificate associated with a tax exemption.
21
+ */
22
+ create(params: Tax.CertificateCreateParams, options?: RequestOptions): Promise<Response<Certificate>>;
23
+ }
24
+ export interface Certificate {
25
+ /**
26
+ * Unique identifier for the object.
27
+ */
28
+ id: string;
29
+ /**
30
+ * String representing the object's type. Objects of the same type share the same value.
31
+ */
32
+ object: 'tax.certificate';
33
+ /**
34
+ * Time at which the object was created. Measured in seconds since the Unix epoch.
35
+ */
36
+ created: number;
37
+ /**
38
+ * Whether the certificate has been deleted.
39
+ */
40
+ deleted: boolean;
41
+ /**
42
+ * The uploaded certificate file.
43
+ */
44
+ file: string | File;
45
+ /**
46
+ * If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
47
+ */
48
+ livemode: boolean;
49
+ /**
50
+ * The tax exemption associated with this certificate.
51
+ */
52
+ tax_exemption: string | CustomerTaxExemption | DeletedCustomerTaxExemption | null;
53
+ }
54
+ export interface DeletedCertificate {
55
+ /**
56
+ * Unique identifier for the object.
57
+ */
58
+ id: string;
59
+ /**
60
+ * String representing the object's type. Objects of the same type share the same value.
61
+ */
62
+ object: 'tax.certificate';
63
+ /**
64
+ * Always true for a deleted object
65
+ */
66
+ deleted: true;
67
+ }
68
+ export declare namespace Tax {
69
+ interface CertificateCreateParams {
70
+ /**
71
+ * The ID of a file uploaded with purpose `tax_certificate`.
72
+ */
73
+ file: string;
74
+ /**
75
+ * The ID of an existing tax exemption.
76
+ */
77
+ tax_exemption: string;
78
+ /**
79
+ * Specifies which fields in the response should be expanded.
80
+ */
81
+ expand?: Array<string>;
82
+ }
83
+ }
84
+ export declare namespace Tax {
85
+ interface CertificateRetrieveParams {
86
+ /**
87
+ * Specifies which fields in the response should be expanded.
88
+ */
89
+ expand?: Array<string>;
90
+ }
91
+ }
92
+ export declare namespace Tax {
93
+ interface CertificateListParams extends PaginationParams {
94
+ /**
95
+ * The ID of an existing tax exemption.
96
+ */
97
+ tax_exemption: string;
98
+ /**
99
+ * Specifies which fields in the response should be expanded.
100
+ */
101
+ expand?: Array<string>;
102
+ }
103
+ }
104
+ export declare namespace Tax {
105
+ interface CertificateDeleteParams {
106
+ }
107
+ }
@@ -0,0 +1,31 @@
1
+ // File generated from our OpenAPI spec
2
+ import { StripeResource } from '../../StripeResource.js';
3
+ export class CertificateResource extends StripeResource {
4
+ /**
5
+ * Delete a tax certificate associated with a tax exemption.
6
+ */
7
+ del(id, params, options) {
8
+ return this._makeRequest('DELETE', `/v1/tax/certificates/${encodeURIComponent(id)}`, params, options);
9
+ }
10
+ /**
11
+ * Retrieve a tax certificate associated with a tax exemption.
12
+ */
13
+ retrieve(id, params, options) {
14
+ return this._makeRequest('GET', `/v1/tax/certificates/${encodeURIComponent(id)}`, params, options);
15
+ }
16
+ /**
17
+ * List certificates for an existing tax exemption.
18
+ */
19
+ list(params, options) {
20
+ return this._makeRequest('GET', '/v1/tax/certificates', params, options, {
21
+ methodType: 'list',
22
+ });
23
+ }
24
+ /**
25
+ * Create a tax certificate associated with a tax exemption.
26
+ */
27
+ create(params, options) {
28
+ return this._makeRequest('POST', '/v1/tax/certificates', params, options);
29
+ }
30
+ }
31
+ //# sourceMappingURL=Certificates.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Certificates.js","sourceRoot":"","sources":["../../../src/resources/Tax/Certificates.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,yBAAyB,CAAC;AASvD,MAAM,OAAO,mBAAoB,SAAQ,cAAc;IACrD;;OAEG;IACH,GAAG,CACD,EAAU,EACV,MAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,QAAQ,EACR,wBAAwB,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAChD,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,MAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,wBAAwB,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAChD,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,IAAI,CACF,MAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,sBAAsB,EAAE,MAAM,EAAE,OAAO,EAAE;YACvE,UAAU,EAAE,MAAM;SACnB,CAAQ,CAAC;IACZ,CAAC;IACD;;OAEG;IACH,MAAM,CACJ,MAAmC,EACnC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,sBAAsB,EACtB,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF"}
@@ -0,0 +1,29 @@
1
+ export interface FormCorrection {
2
+ /**
3
+ * String representing the object's type. Objects of the same type share the same value.
4
+ */
5
+ object: 'tax.form_correction';
6
+ /**
7
+ * The tax forms created by the correction.
8
+ */
9
+ correction_forms?: Array<FormCorrection.CorrectionForm>;
10
+ /**
11
+ * The original tax form that was corrected.
12
+ */
13
+ original_form?: string;
14
+ }
15
+ export declare namespace FormCorrection {
16
+ interface CorrectionForm {
17
+ /**
18
+ * The kind of information changed by this correction.
19
+ */
20
+ correction_type?: CorrectionForm.CorrectionType;
21
+ /**
22
+ * The corrected tax form.
23
+ */
24
+ form?: string;
25
+ }
26
+ namespace CorrectionForm {
27
+ type CorrectionType = 'payee_changed' | 'totals_changed';
28
+ }
29
+ }
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec
2
+ export {};
3
+ //# sourceMappingURL=FormCorrections.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormCorrections.js","sourceRoot":"","sources":["../../../src/resources/Tax/FormCorrections.ts"],"names":[],"mappings":"AAAA,uCAAuC"}
@@ -1,6 +1,7 @@
1
1
  import { StripeResource } from '../../StripeResource.js';
2
+ import { FormCorrection } from './FormCorrections.js';
2
3
  import { Account } from './../Accounts.js';
3
- import { PaginationParams, OtherString } from '../../shared.js';
4
+ import { AddressParam, PaginationParams, OtherString } from '../../shared.js';
4
5
  import { RequestOptions, ApiListPromise, Response, StripeStreamResponse } from '../../lib.js';
5
6
  export declare class FormResource extends StripeResource {
6
7
  /**
@@ -11,6 +12,10 @@ export declare class FormResource extends StripeResource {
11
12
  * Retrieves the details of a tax form that has previously been created. Supply the unique tax form ID that was returned from your previous request, and Stripe will return the corresponding tax form information.
12
13
  */
13
14
  retrieve(id: string, params?: Tax.FormRetrieveParams, options?: RequestOptions): Promise<Response<Form>>;
15
+ /**
16
+ * Creates a correction for a filed tax form. Supply either payee details or numerical values for the tax form type. Created correction forms are not filed automatically.
17
+ */
18
+ create(id: string, params?: Tax.FormCreateParams, options?: RequestOptions): Promise<Response<FormCorrection>>;
14
19
  /**
15
20
  * Download the PDF for a tax form.
16
21
  */
@@ -539,6 +544,376 @@ export declare namespace Form {
539
544
  }
540
545
  }
541
546
  }
547
+ export declare namespace Tax {
548
+ interface FormCreateParams {
549
+ /**
550
+ * Specifies which fields in the response should be expanded.
551
+ */
552
+ expand?: Array<string>;
553
+ /**
554
+ * Replacement payee details. Cannot be combined with numerical correction fields. Omitted fields remain unchanged.
555
+ */
556
+ payee_details?: FormCreateParams.PayeeDetails;
557
+ /**
558
+ * Whether a second TIN notice was received. Supported for K and MISC forms only; cannot be supplied without a substantive correction.
559
+ */
560
+ second_tin_notice?: boolean;
561
+ /**
562
+ * Replacement numerical values for a 1099-K. Supply only the group matching the original form. Omitted fields remain unchanged.
563
+ */
564
+ us_1099_k?: FormCreateParams.Us1099K;
565
+ /**
566
+ * Replacement numerical values for a 1099-MISC. Supply only the group matching the original form. Omitted fields remain unchanged.
567
+ */
568
+ us_1099_misc?: FormCreateParams.Us1099Misc;
569
+ /**
570
+ * Replacement numerical values for a 1099-NEC. Supply only the group matching the original form. Omitted fields remain unchanged.
571
+ */
572
+ us_1099_nec?: FormCreateParams.Us1099Nec;
573
+ }
574
+ namespace FormCreateParams {
575
+ interface PayeeDetails {
576
+ /**
577
+ * The payee's replacement address fields. Omitted fields remain unchanged.
578
+ */
579
+ address?: AddressParam;
580
+ /**
581
+ * The payee's merchant category code.
582
+ */
583
+ merchant_category_code?: string;
584
+ /**
585
+ * The first line of the payee's name.
586
+ */
587
+ name_line_1?: string;
588
+ /**
589
+ * The second line of the payee's name. An empty string clears this field.
590
+ */
591
+ name_line_2?: string;
592
+ /**
593
+ * The payee's US taxpayer identification number.
594
+ */
595
+ tax_id_number?: string;
596
+ /**
597
+ * The payee's Treasury tipped occupation code, where supported by the reporting year and form type.
598
+ */
599
+ treasury_tipped_occupation_code?: string;
600
+ }
601
+ interface Us1099K {
602
+ /**
603
+ * Replacement card-not-present transaction amount.
604
+ */
605
+ card_not_present_transactions?: Us1099K.CardNotPresentTransactions;
606
+ /**
607
+ * Replacement cash tips, where supported by the reporting year.
608
+ */
609
+ cash_tips?: Us1099K.CashTips;
610
+ /**
611
+ * Replacement federal income tax withheld.
612
+ */
613
+ federal_income_tax_withheld?: Us1099K.FederalIncomeTaxWithheld;
614
+ /**
615
+ * Replacement amounts for all twelve months, from January through December.
616
+ */
617
+ monthly_volumes?: Array<Us1099K.MonthlyVolume>;
618
+ /**
619
+ * Replacement payment transaction count.
620
+ */
621
+ payment_transactions_count?: Us1099K.PaymentTransactionsCount;
622
+ /**
623
+ * Replacement state income tax withheld.
624
+ */
625
+ state_income_tax_withheld?: Us1099K.StateIncomeTaxWithheld;
626
+ }
627
+ interface Us1099Misc {
628
+ /**
629
+ * Replacement cash tips, where supported by the reporting year.
630
+ */
631
+ cash_tips?: Us1099Misc.CashTips;
632
+ /**
633
+ * Replacement crop insurance proceeds.
634
+ */
635
+ crop_insurance_proceeds?: Us1099Misc.CropInsuranceProceeds;
636
+ /**
637
+ * Replacement direct-sales-for-resale indicator.
638
+ */
639
+ direct_sales_for_resale?: boolean;
640
+ /**
641
+ * Replacement excess golden parachute payments, where supported by the reporting year.
642
+ */
643
+ excess_golden_parachute_payments?: Us1099Misc.ExcessGoldenParachutePayments;
644
+ /**
645
+ * Replacement FATCA filing requirement; cannot be supplied without a substantive correction.
646
+ */
647
+ fatca_filing_required?: boolean;
648
+ /**
649
+ * Replacement federal income tax withheld.
650
+ */
651
+ federal_income_tax_withheld?: Us1099Misc.FederalIncomeTaxWithheld;
652
+ /**
653
+ * Replacement fish purchased for resale.
654
+ */
655
+ fish_purchased_for_resale?: Us1099Misc.FishPurchasedForResale;
656
+ /**
657
+ * Replacement fishing boat proceeds.
658
+ */
659
+ fishing_boat_proceeds?: Us1099Misc.FishingBoatProceeds;
660
+ /**
661
+ * Replacement gross proceeds paid to an attorney.
662
+ */
663
+ gross_proceeds_paid_to_an_attorney?: Us1099Misc.GrossProceedsPaidToAnAttorney;
664
+ /**
665
+ * Replacement medical and health care payments.
666
+ */
667
+ medical_and_health_care_payments?: Us1099Misc.MedicalAndHealthCarePayments;
668
+ /**
669
+ * Replacement nonqualified deferred compensation.
670
+ */
671
+ nonqualified_deferred_compensation?: Us1099Misc.NonqualifiedDeferredCompensation;
672
+ /**
673
+ * Replacement other income.
674
+ */
675
+ other_income?: Us1099Misc.OtherIncome;
676
+ /**
677
+ * Replacement overtime compensation, where supported by the reporting year.
678
+ */
679
+ overtime_compensation?: Us1099Misc.OvertimeCompensation;
680
+ /**
681
+ * Replacement rents.
682
+ */
683
+ rents?: Us1099Misc.Rents;
684
+ /**
685
+ * Replacement royalties.
686
+ */
687
+ royalties?: Us1099Misc.Royalties;
688
+ /**
689
+ * Replacement section 409A deferrals.
690
+ */
691
+ section_409a_deferrals?: Us1099Misc.Section409aDeferrals;
692
+ /**
693
+ * Replacement state income.
694
+ */
695
+ state_income?: Us1099Misc.StateIncome;
696
+ /**
697
+ * Replacement state tax withheld.
698
+ */
699
+ state_tax_withheld?: Us1099Misc.StateTaxWithheld;
700
+ /**
701
+ * Replacement substitute payments.
702
+ */
703
+ substitute_payments?: Us1099Misc.SubstitutePayments;
704
+ }
705
+ interface Us1099Nec {
706
+ /**
707
+ * Replacement cash tips, where supported by the reporting year.
708
+ */
709
+ cash_tips?: Us1099Nec.CashTips;
710
+ /**
711
+ * Replacement direct-sales indicator.
712
+ */
713
+ direct_sales_indicator?: boolean;
714
+ /**
715
+ * Replacement federal income tax withheld.
716
+ */
717
+ federal_income_tax_withheld?: Us1099Nec.FederalIncomeTaxWithheld;
718
+ /**
719
+ * Replacement nonemployee compensation.
720
+ */
721
+ nonemployee_compensation?: Us1099Nec.NonemployeeCompensation;
722
+ /**
723
+ * Replacement overtime compensation, where supported by the reporting year.
724
+ */
725
+ overtime_compensation?: Us1099Nec.OvertimeCompensation;
726
+ /**
727
+ * Replacement state income.
728
+ */
729
+ state_income?: Us1099Nec.StateIncome;
730
+ /**
731
+ * Replacement state tax withheld.
732
+ */
733
+ state_tax_withheld?: Us1099Nec.StateTaxWithheld;
734
+ }
735
+ namespace Us1099K {
736
+ interface CardNotPresentTransactions {
737
+ /**
738
+ * The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
739
+ */
740
+ volume_decimal: string;
741
+ }
742
+ interface CashTips {
743
+ /**
744
+ * The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
745
+ */
746
+ volume_decimal: string;
747
+ }
748
+ interface FederalIncomeTaxWithheld {
749
+ /**
750
+ * The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
751
+ */
752
+ volume_decimal: string;
753
+ }
754
+ interface MonthlyVolume {
755
+ /**
756
+ * The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
757
+ */
758
+ volume_decimal: string;
759
+ }
760
+ interface PaymentTransactionsCount {
761
+ /**
762
+ * The replacement non-negative transaction count.
763
+ */
764
+ count: number;
765
+ }
766
+ interface StateIncomeTaxWithheld {
767
+ /**
768
+ * The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
769
+ */
770
+ volume_decimal: string;
771
+ }
772
+ }
773
+ namespace Us1099Misc {
774
+ interface CashTips {
775
+ /**
776
+ * The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
777
+ */
778
+ volume_decimal: string;
779
+ }
780
+ interface CropInsuranceProceeds {
781
+ /**
782
+ * The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
783
+ */
784
+ volume_decimal: string;
785
+ }
786
+ interface ExcessGoldenParachutePayments {
787
+ /**
788
+ * The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
789
+ */
790
+ volume_decimal: string;
791
+ }
792
+ interface FederalIncomeTaxWithheld {
793
+ /**
794
+ * The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
795
+ */
796
+ volume_decimal: string;
797
+ }
798
+ interface FishPurchasedForResale {
799
+ /**
800
+ * The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
801
+ */
802
+ volume_decimal: string;
803
+ }
804
+ interface FishingBoatProceeds {
805
+ /**
806
+ * The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
807
+ */
808
+ volume_decimal: string;
809
+ }
810
+ interface GrossProceedsPaidToAnAttorney {
811
+ /**
812
+ * The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
813
+ */
814
+ volume_decimal: string;
815
+ }
816
+ interface MedicalAndHealthCarePayments {
817
+ /**
818
+ * The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
819
+ */
820
+ volume_decimal: string;
821
+ }
822
+ interface NonqualifiedDeferredCompensation {
823
+ /**
824
+ * The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
825
+ */
826
+ volume_decimal: string;
827
+ }
828
+ interface OtherIncome {
829
+ /**
830
+ * The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
831
+ */
832
+ volume_decimal: string;
833
+ }
834
+ interface OvertimeCompensation {
835
+ /**
836
+ * The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
837
+ */
838
+ volume_decimal: string;
839
+ }
840
+ interface Rents {
841
+ /**
842
+ * The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
843
+ */
844
+ volume_decimal: string;
845
+ }
846
+ interface Royalties {
847
+ /**
848
+ * The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
849
+ */
850
+ volume_decimal: string;
851
+ }
852
+ interface Section409aDeferrals {
853
+ /**
854
+ * The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
855
+ */
856
+ volume_decimal: string;
857
+ }
858
+ interface StateIncome {
859
+ /**
860
+ * The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
861
+ */
862
+ volume_decimal: string;
863
+ }
864
+ interface StateTaxWithheld {
865
+ /**
866
+ * The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
867
+ */
868
+ volume_decimal: string;
869
+ }
870
+ interface SubstitutePayments {
871
+ /**
872
+ * The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
873
+ */
874
+ volume_decimal: string;
875
+ }
876
+ }
877
+ namespace Us1099Nec {
878
+ interface CashTips {
879
+ /**
880
+ * The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
881
+ */
882
+ volume_decimal: string;
883
+ }
884
+ interface FederalIncomeTaxWithheld {
885
+ /**
886
+ * The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
887
+ */
888
+ volume_decimal: string;
889
+ }
890
+ interface NonemployeeCompensation {
891
+ /**
892
+ * The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
893
+ */
894
+ volume_decimal: string;
895
+ }
896
+ interface OvertimeCompensation {
897
+ /**
898
+ * The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
899
+ */
900
+ volume_decimal: string;
901
+ }
902
+ interface StateIncome {
903
+ /**
904
+ * The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
905
+ */
906
+ volume_decimal: string;
907
+ }
908
+ interface StateTaxWithheld {
909
+ /**
910
+ * The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
911
+ */
912
+ volume_decimal: string;
913
+ }
914
+ }
915
+ }
916
+ }
542
917
  export declare namespace Tax {
543
918
  interface FormRetrieveParams {
544
919
  /**
@@ -15,6 +15,12 @@ export class FormResource extends StripeResource {
15
15
  retrieve(id, params, options) {
16
16
  return this._makeRequest('GET', `/v1/tax/forms/${encodeURIComponent(id)}`, params, options);
17
17
  }
18
+ /**
19
+ * Creates a correction for a filed tax form. Supply either payee details or numerical values for the tax form type. Created correction forms are not filed automatically.
20
+ */
21
+ create(id, params, options) {
22
+ return this._makeRequest('POST', `/v1/tax/forms/${encodeURIComponent(id)}/corrections`, params, options);
23
+ }
18
24
  /**
19
25
  * Download the PDF for a tax form.
20
26
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Forms.js","sourceRoot":"","sources":["../../../src/resources/Tax/Forms.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,yBAAyB,CAAC;AAUvD,MAAM,OAAO,YAAa,SAAQ,cAAc;IAC9C;;OAEG;IACH,IAAI,CACF,MAA0B,EAC1B,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,eAAe,EAAE,MAAM,EAAE,OAAO,EAAE;YAChE,UAAU,EAAE,MAAM;SACnB,CAAQ,CAAC;IACZ,CAAC;IACD;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,MAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,iBAAiB,kBAAkB,CAAC,EAAE,CAAC,EAAE,EACzC,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,GAAG,CACD,EAAU,EACV,MAA0B,EAC1B,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,iBAAiB,kBAAkB,CAAC,EAAE,CAAC,MAAM,EAC7C,MAAM,EACN,OAAO,EACP;YACE,OAAO,EAAE,OAAO;YAChB,SAAS,EAAE,IAAI;SAChB,CACK,CAAC;IACX,CAAC;CACF"}
1
+ {"version":3,"file":"Forms.js","sourceRoot":"","sources":["../../../src/resources/Tax/Forms.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,yBAAyB,CAAC;AAWvD,MAAM,OAAO,YAAa,SAAQ,cAAc;IAC9C;;OAEG;IACH,IAAI,CACF,MAA0B,EAC1B,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,eAAe,EAAE,MAAM,EAAE,OAAO,EAAE;YAChE,UAAU,EAAE,MAAM;SACnB,CAAQ,CAAC;IACZ,CAAC;IACD;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,MAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,iBAAiB,kBAAkB,CAAC,EAAE,CAAC,EAAE,EACzC,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,MAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,iBAAiB,kBAAkB,CAAC,EAAE,CAAC,cAAc,EACrD,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,GAAG,CACD,EAAU,EACV,MAA0B,EAC1B,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,iBAAiB,kBAAkB,CAAC,EAAE,CAAC,MAAM,EAC7C,MAAM,EACN,OAAO,EACP;YACE,OAAO,EAAE,OAAO;YAChB,SAAS,EAAE,IAAI;SAChB,CACK,CAAC;IACX,CAAC;CACF"}