stripe 23.2.0-alpha.1 → 23.2.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +80 -0
- package/OPENAPI_VERSION +1 -1
- package/VERSION +1 -1
- package/cjs/StripeEventNotificationHandler.js +7 -0
- package/cjs/StripeEventNotificationHandler.js.map +1 -1
- package/cjs/Webhooks.js +159 -42
- package/cjs/Webhooks.js.map +1 -1
- package/cjs/WorkloadIdentity.js +1 -1
- package/cjs/crypto/CryptoProvider.d.ts +4 -0
- package/cjs/crypto/CryptoProvider.js +6 -0
- package/cjs/crypto/CryptoProvider.js.map +1 -1
- package/cjs/crypto/NodeCryptoProvider.d.ts +2 -0
- package/cjs/crypto/NodeCryptoProvider.js +6 -2
- package/cjs/crypto/NodeCryptoProvider.js.map +1 -1
- package/cjs/crypto/SubtleCryptoProvider.d.ts +2 -0
- package/cjs/crypto/SubtleCryptoProvider.js +4 -0
- package/cjs/crypto/SubtleCryptoProvider.js.map +1 -1
- package/cjs/resources/AccountSessions.d.ts +226 -0
- package/cjs/resources/Apps/Installs.d.ts +1 -1
- package/cjs/resources/Apps/Installs.js +1 -1
- package/cjs/resources/BalanceTransactions.d.ts +1 -1
- package/cjs/resources/Charges.d.ts +402 -2
- package/cjs/resources/Checkout/Sessions.d.ts +88 -6
- package/cjs/resources/Checkout/Sessions.js +2 -0
- package/cjs/resources/Checkout/Sessions.js.map +1 -1
- package/cjs/resources/ConfirmationTokens.d.ts +59 -3
- package/cjs/resources/CustomerTaxExemptions.d.ts +28 -0
- package/cjs/resources/Customers.d.ts +81 -1
- package/cjs/resources/Disputes.d.ts +1 -1
- package/cjs/resources/FxQuotes.d.ts +2 -2
- package/cjs/resources/Identity/VerificationReports.d.ts +32 -0
- package/cjs/resources/Invoices.d.ts +15 -3
- package/cjs/resources/Issuing/Cards.d.ts +2 -2
- package/cjs/resources/Mandates.d.ts +7 -0
- package/cjs/resources/PaymentAttemptRecords.d.ts +238 -2
- package/cjs/resources/PaymentIntentAmountDetailsLineItems.d.ts +48 -0
- package/cjs/resources/PaymentIntents.d.ts +559 -20
- package/cjs/resources/PaymentLinks.d.ts +3 -3
- package/cjs/resources/PaymentMethodConfigurations.d.ts +140 -0
- package/cjs/resources/PaymentMethods.d.ts +85 -5
- package/cjs/resources/PaymentRecords.d.ts +217 -2
- package/cjs/resources/QuotePreviewInvoices.d.ts +1 -1
- package/cjs/resources/Quotes.d.ts +2 -2
- package/cjs/resources/Radar/PaymentEvaluations.d.ts +69 -4
- package/cjs/resources/Refunds.d.ts +31 -1
- package/cjs/resources/Reporting/ReportRuns.d.ts +4 -0
- package/cjs/resources/Reserve/Holds.d.ts +2 -2
- package/cjs/resources/Reserve/Holds.js +2 -2
- package/cjs/resources/Reserve/Plans.d.ts +2 -2
- package/cjs/resources/Reserve/Plans.js +2 -2
- package/cjs/resources/Reserve/Releases.d.ts +2 -2
- package/cjs/resources/Reserve/Releases.js +2 -2
- package/cjs/resources/SetupAttempts.d.ts +13 -2
- package/cjs/resources/SetupIntents.d.ts +163 -15
- package/cjs/resources/SharedPayment/GrantedTokens.d.ts +21 -2
- package/cjs/resources/SharedPayment/IssuedTokens.d.ts +36 -0
- package/cjs/resources/Subscriptions.d.ts +21 -5
- package/cjs/resources/Tax/Certificates.d.ts +107 -0
- package/cjs/resources/Tax/Certificates.js +35 -0
- package/cjs/resources/Tax/Certificates.js.map +1 -0
- package/cjs/resources/Tax/FormCorrections.d.ts +29 -0
- package/cjs/resources/Tax/FormCorrections.js +4 -0
- package/cjs/resources/Tax/FormCorrections.js.map +1 -0
- package/cjs/resources/Tax/Forms.d.ts +376 -1
- package/cjs/resources/Tax/Forms.js +6 -0
- package/cjs/resources/Tax/Forms.js.map +1 -1
- package/cjs/resources/Tax/index.d.ts +38 -25
- package/cjs/resources/Tax/index.js +2 -0
- package/cjs/resources/Tax/index.js.map +1 -1
- package/cjs/resources/Terminal/Readers.d.ts +20 -2
- package/cjs/resources/TestHelpers/ConfirmationTokens.d.ts +25 -1
- package/cjs/resources/Treasury/InboundTransfers.d.ts +22 -0
- package/cjs/resources/Treasury/OutboundPayments.d.ts +22 -0
- package/cjs/resources/Treasury/OutboundTransfers.d.ts +22 -0
- package/cjs/resources/V2/Core/AccountSessions.d.ts +28 -0
- package/cjs/resources/V2/Core/ApprovalRequests.d.ts +34 -2
- package/cjs/resources/V2/Core/Events.d.ts +163 -7
- package/cjs/resources/V2/Core/Events.js +12 -6
- package/cjs/resources/V2/Core/Events.js.map +1 -1
- package/cjs/resources/V2/Core/Vault/NetworkTokens.d.ts +1 -0
- package/cjs/resources/V2/Core/Vault/NetworkTokens.js +1 -0
- package/cjs/resources/V2/Core/Vault/NetworkTokens.js.map +1 -1
- package/cjs/resources/V2/Extend/ObjectDefinitionVersions.d.ts +222 -0
- package/cjs/resources/V2/Extend/ObjectDefinitionVersions.js +4 -0
- package/cjs/resources/V2/Extend/ObjectDefinitionVersions.js.map +1 -0
- package/cjs/resources/V2/Extend/ObjectDefinitions/Versions.d.ts +33 -0
- package/cjs/resources/V2/Extend/ObjectDefinitions/Versions.js +23 -0
- package/cjs/resources/V2/Extend/ObjectDefinitions/Versions.js.map +1 -0
- package/cjs/resources/V2/Extend/ObjectDefinitions.d.ts +63 -0
- package/cjs/resources/V2/Extend/ObjectDefinitions.js +29 -0
- package/cjs/resources/V2/Extend/ObjectDefinitions.js.map +1 -0
- package/cjs/resources/V2/Extend/index.d.ts +16 -7
- package/cjs/resources/V2/Extend/index.js +2 -0
- package/cjs/resources/V2/Extend/index.js.map +1 -1
- package/cjs/resources/V2/MoneyManagement/Adjustments.d.ts +34 -2
- package/cjs/resources/V2/MoneyManagement/FundingIntents.d.ts +30 -2
- package/cjs/resources/V2/MoneyManagement/FundingIntents.js.map +1 -1
- package/cjs/resources/V2/MoneyManagement/InboundTransfers.d.ts +34 -2
- package/cjs/resources/V2/MoneyManagement/OutboundPayments.d.ts +151 -3
- package/cjs/resources/V2/MoneyManagement/OutboundPayments.js.map +1 -1
- package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.d.ts +44 -2
- package/cjs/resources/V2/MoneyManagement/PayoutIntents.d.ts +76 -1
- package/cjs/resources/V2/MoneyManagement/PayoutMethods.d.ts +43 -1
- package/cjs/resources/V2/MoneyManagement/ReceivedCredits.d.ts +34 -2
- package/cjs/resources/V2/MoneyManagement/ReceivedDebitMandates.d.ts +3 -0
- package/cjs/resources/V2/MoneyManagement/ReceivedDebitMandates.js +3 -0
- package/cjs/resources/V2/MoneyManagement/ReceivedDebitMandates.js.map +1 -1
- package/cjs/resources/V2/MoneyManagement/ReceivedDebits.d.ts +10 -1
- package/cjs/resources/V2/MoneyManagement/SpendingMandates.d.ts +171 -0
- package/cjs/resources/V2/MoneyManagement/SpendingMandates.js +29 -0
- package/cjs/resources/V2/MoneyManagement/SpendingMandates.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/TransactionEntries.d.ts +30 -2
- package/cjs/resources/V2/MoneyManagement/Transactions.d.ts +30 -2
- package/cjs/resources/V2/MoneyManagement/Transactions.js.map +1 -1
- package/cjs/resources/V2/MoneyManagement/index.d.ts +15 -8
- package/cjs/resources/V2/MoneyManagement/index.js +2 -0
- package/cjs/resources/V2/MoneyManagement/index.js.map +1 -1
- package/cjs/resources.js +6 -0
- package/cjs/resources.js.map +1 -1
- package/cjs/stripe.cjs.node.d.ts +646 -0
- package/cjs/stripe.cjs.node.js.map +1 -1
- package/cjs/stripe.core.js +7 -3
- package/cjs/stripe.core.js.map +1 -1
- package/esm/StripeEventNotificationHandler.js +7 -0
- package/esm/StripeEventNotificationHandler.js.map +1 -1
- package/esm/Webhooks.js +159 -42
- package/esm/Webhooks.js.map +1 -1
- package/esm/WorkloadIdentity.js +1 -1
- package/esm/crypto/CryptoProvider.d.ts +4 -0
- package/esm/crypto/CryptoProvider.js +6 -0
- package/esm/crypto/CryptoProvider.js.map +1 -1
- package/esm/crypto/NodeCryptoProvider.d.ts +2 -0
- package/esm/crypto/NodeCryptoProvider.js +6 -2
- package/esm/crypto/NodeCryptoProvider.js.map +1 -1
- package/esm/crypto/SubtleCryptoProvider.d.ts +2 -0
- package/esm/crypto/SubtleCryptoProvider.js +4 -0
- package/esm/crypto/SubtleCryptoProvider.js.map +1 -1
- package/esm/resources/AccountSessions.d.ts +226 -0
- package/esm/resources/Apps/Installs.d.ts +1 -1
- package/esm/resources/Apps/Installs.js +1 -1
- package/esm/resources/BalanceTransactions.d.ts +1 -1
- package/esm/resources/Charges.d.ts +402 -2
- package/esm/resources/Checkout/Sessions.d.ts +88 -6
- package/esm/resources/Checkout/Sessions.js +2 -0
- package/esm/resources/Checkout/Sessions.js.map +1 -1
- package/esm/resources/ConfirmationTokens.d.ts +59 -3
- package/esm/resources/CustomerTaxExemptions.d.ts +28 -0
- package/esm/resources/Customers.d.ts +81 -1
- package/esm/resources/Disputes.d.ts +1 -1
- package/esm/resources/FxQuotes.d.ts +2 -2
- package/esm/resources/Identity/VerificationReports.d.ts +32 -0
- package/esm/resources/Invoices.d.ts +15 -3
- package/esm/resources/Issuing/Cards.d.ts +2 -2
- package/esm/resources/Mandates.d.ts +7 -0
- package/esm/resources/PaymentAttemptRecords.d.ts +238 -2
- package/esm/resources/PaymentIntentAmountDetailsLineItems.d.ts +48 -0
- package/esm/resources/PaymentIntents.d.ts +559 -20
- package/esm/resources/PaymentLinks.d.ts +3 -3
- package/esm/resources/PaymentMethodConfigurations.d.ts +140 -0
- package/esm/resources/PaymentMethods.d.ts +85 -5
- package/esm/resources/PaymentRecords.d.ts +217 -2
- package/esm/resources/QuotePreviewInvoices.d.ts +1 -1
- package/esm/resources/Quotes.d.ts +2 -2
- package/esm/resources/Radar/PaymentEvaluations.d.ts +69 -4
- package/esm/resources/Refunds.d.ts +31 -1
- package/esm/resources/Reporting/ReportRuns.d.ts +4 -0
- package/esm/resources/Reserve/Holds.d.ts +2 -2
- package/esm/resources/Reserve/Holds.js +2 -2
- package/esm/resources/Reserve/Plans.d.ts +2 -2
- package/esm/resources/Reserve/Plans.js +2 -2
- package/esm/resources/Reserve/Releases.d.ts +2 -2
- package/esm/resources/Reserve/Releases.js +2 -2
- package/esm/resources/SetupAttempts.d.ts +13 -2
- package/esm/resources/SetupIntents.d.ts +163 -15
- package/esm/resources/SharedPayment/GrantedTokens.d.ts +21 -2
- package/esm/resources/SharedPayment/IssuedTokens.d.ts +36 -0
- package/esm/resources/Subscriptions.d.ts +21 -5
- package/esm/resources/Tax/Certificates.d.ts +107 -0
- package/esm/resources/Tax/Certificates.js +31 -0
- package/esm/resources/Tax/Certificates.js.map +1 -0
- package/esm/resources/Tax/FormCorrections.d.ts +29 -0
- package/esm/resources/Tax/FormCorrections.js +3 -0
- package/esm/resources/Tax/FormCorrections.js.map +1 -0
- package/esm/resources/Tax/Forms.d.ts +376 -1
- package/esm/resources/Tax/Forms.js +6 -0
- package/esm/resources/Tax/Forms.js.map +1 -1
- package/esm/resources/Tax/index.d.ts +38 -25
- package/esm/resources/Tax/index.js +2 -0
- package/esm/resources/Tax/index.js.map +1 -1
- package/esm/resources/Terminal/Readers.d.ts +20 -2
- package/esm/resources/TestHelpers/ConfirmationTokens.d.ts +25 -1
- package/esm/resources/Treasury/InboundTransfers.d.ts +22 -0
- package/esm/resources/Treasury/OutboundPayments.d.ts +22 -0
- package/esm/resources/Treasury/OutboundTransfers.d.ts +22 -0
- package/esm/resources/V2/Core/AccountSessions.d.ts +28 -0
- package/esm/resources/V2/Core/ApprovalRequests.d.ts +34 -2
- package/esm/resources/V2/Core/Events.d.ts +163 -7
- package/esm/resources/V2/Core/Events.js +12 -6
- package/esm/resources/V2/Core/Events.js.map +1 -1
- package/esm/resources/V2/Core/Vault/NetworkTokens.d.ts +1 -0
- package/esm/resources/V2/Core/Vault/NetworkTokens.js +1 -0
- package/esm/resources/V2/Core/Vault/NetworkTokens.js.map +1 -1
- package/esm/resources/V2/Extend/ObjectDefinitionVersions.d.ts +222 -0
- package/esm/resources/V2/Extend/ObjectDefinitionVersions.js +3 -0
- package/esm/resources/V2/Extend/ObjectDefinitionVersions.js.map +1 -0
- package/esm/resources/V2/Extend/ObjectDefinitions/Versions.d.ts +33 -0
- package/esm/resources/V2/Extend/ObjectDefinitions/Versions.js +19 -0
- package/esm/resources/V2/Extend/ObjectDefinitions/Versions.js.map +1 -0
- package/esm/resources/V2/Extend/ObjectDefinitions.d.ts +63 -0
- package/esm/resources/V2/Extend/ObjectDefinitions.js +25 -0
- package/esm/resources/V2/Extend/ObjectDefinitions.js.map +1 -0
- package/esm/resources/V2/Extend/index.d.ts +16 -7
- package/esm/resources/V2/Extend/index.js +2 -0
- package/esm/resources/V2/Extend/index.js.map +1 -1
- package/esm/resources/V2/MoneyManagement/Adjustments.d.ts +34 -2
- package/esm/resources/V2/MoneyManagement/FundingIntents.d.ts +30 -2
- package/esm/resources/V2/MoneyManagement/FundingIntents.js.map +1 -1
- package/esm/resources/V2/MoneyManagement/InboundTransfers.d.ts +34 -2
- package/esm/resources/V2/MoneyManagement/OutboundPayments.d.ts +151 -3
- package/esm/resources/V2/MoneyManagement/OutboundPayments.js.map +1 -1
- package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.d.ts +44 -2
- package/esm/resources/V2/MoneyManagement/PayoutIntents.d.ts +76 -1
- package/esm/resources/V2/MoneyManagement/PayoutMethods.d.ts +43 -1
- package/esm/resources/V2/MoneyManagement/ReceivedCredits.d.ts +34 -2
- package/esm/resources/V2/MoneyManagement/ReceivedDebitMandates.d.ts +3 -0
- package/esm/resources/V2/MoneyManagement/ReceivedDebitMandates.js +3 -0
- package/esm/resources/V2/MoneyManagement/ReceivedDebitMandates.js.map +1 -1
- package/esm/resources/V2/MoneyManagement/ReceivedDebits.d.ts +10 -1
- package/esm/resources/V2/MoneyManagement/SpendingMandates.d.ts +171 -0
- package/esm/resources/V2/MoneyManagement/SpendingMandates.js +25 -0
- package/esm/resources/V2/MoneyManagement/SpendingMandates.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/TransactionEntries.d.ts +30 -2
- package/esm/resources/V2/MoneyManagement/Transactions.d.ts +30 -2
- package/esm/resources/V2/MoneyManagement/Transactions.js.map +1 -1
- package/esm/resources/V2/MoneyManagement/index.d.ts +15 -8
- package/esm/resources/V2/MoneyManagement/index.js +2 -0
- package/esm/resources/V2/MoneyManagement/index.js.map +1 -1
- package/esm/resources.js +6 -0
- package/esm/resources.js.map +1 -1
- package/esm/stripe.core.js +7 -3
- package/esm/stripe.core.js.map +1 -1
- package/esm/stripe.esm.node.js +7 -3
- package/esm/stripe.esm.node.js.map +1 -1
- package/package.json +1 -1
|
@@ -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;
|
|
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"}
|
|
@@ -1,26 +1,31 @@
|
|
|
1
1
|
import { Stripe } from '../../stripe.core.js';
|
|
2
2
|
import { Tax as TaxNamespace0, Association, AssociationResource } from './Associations.js';
|
|
3
3
|
import { Tax as TaxNamespace1, Calculation, CalculationResource } from './Calculations.js';
|
|
4
|
-
import { Tax as TaxNamespace2,
|
|
5
|
-
import { Tax as TaxNamespace3,
|
|
6
|
-
import { Tax as TaxNamespace4,
|
|
7
|
-
import { Tax as TaxNamespace5,
|
|
8
|
-
import { Tax as TaxNamespace6,
|
|
4
|
+
import { Tax as TaxNamespace2, Certificate, DeletedCertificate, CertificateResource } from './Certificates.js';
|
|
5
|
+
import { Tax as TaxNamespace3, Form, FormResource } from './Forms.js';
|
|
6
|
+
import { Tax as TaxNamespace4, Location, LocationResource } from './Locations.js';
|
|
7
|
+
import { Tax as TaxNamespace5, Registration, RegistrationResource } from './Registrations.js';
|
|
8
|
+
import { Tax as TaxNamespace6, Settings, SettingResource } from './Settings.js';
|
|
9
|
+
import { Tax as TaxNamespace7, Transaction, TransactionResource } from './Transactions.js';
|
|
9
10
|
import { CalculationLineItem } from './CalculationLineItems.js';
|
|
11
|
+
import { FormCorrection } from './FormCorrections.js';
|
|
10
12
|
import { TransactionLineItem } from './TransactionLineItems.js';
|
|
11
13
|
export { Association } from './Associations.js';
|
|
12
14
|
export { Calculation } from './Calculations.js';
|
|
15
|
+
export { Certificate } from './Certificates.js';
|
|
13
16
|
export { Form } from './Forms.js';
|
|
14
17
|
export { Location } from './Locations.js';
|
|
15
18
|
export { Registration } from './Registrations.js';
|
|
16
19
|
export { Settings } from './Settings.js';
|
|
17
20
|
export { Transaction } from './Transactions.js';
|
|
18
21
|
export { CalculationLineItem } from './CalculationLineItems.js';
|
|
22
|
+
export { FormCorrection } from './FormCorrections.js';
|
|
19
23
|
export { TransactionLineItem } from './TransactionLineItems.js';
|
|
20
24
|
export declare class Tax {
|
|
21
25
|
private readonly stripe;
|
|
22
26
|
associations: AssociationResource;
|
|
23
27
|
calculations: CalculationResource;
|
|
28
|
+
certificates: CertificateResource;
|
|
24
29
|
forms: FormResource;
|
|
25
30
|
locations: LocationResource;
|
|
26
31
|
registrations: RegistrationResource;
|
|
@@ -35,31 +40,39 @@ export declare namespace Tax {
|
|
|
35
40
|
export import CalculationCreateParams = TaxNamespace1.CalculationCreateParams;
|
|
36
41
|
export import CalculationListLineItemsParams = TaxNamespace1.CalculationListLineItemsParams;
|
|
37
42
|
export { Calculation, CalculationResource };
|
|
38
|
-
export import
|
|
39
|
-
export import
|
|
40
|
-
export import
|
|
43
|
+
export import CertificateDeleteParams = TaxNamespace2.CertificateDeleteParams;
|
|
44
|
+
export import CertificateRetrieveParams = TaxNamespace2.CertificateRetrieveParams;
|
|
45
|
+
export import CertificateListParams = TaxNamespace2.CertificateListParams;
|
|
46
|
+
export import CertificateCreateParams = TaxNamespace2.CertificateCreateParams;
|
|
47
|
+
export { DeletedCertificate };
|
|
48
|
+
export { Certificate, CertificateResource };
|
|
49
|
+
export import FormListParams = TaxNamespace3.FormListParams;
|
|
50
|
+
export import FormRetrieveParams = TaxNamespace3.FormRetrieveParams;
|
|
51
|
+
export import FormCreateParams = TaxNamespace3.FormCreateParams;
|
|
52
|
+
export import FormPdfParams = TaxNamespace3.FormPdfParams;
|
|
41
53
|
export { Form, FormResource };
|
|
42
|
-
export import LocationListParams =
|
|
43
|
-
export import LocationCreateParams =
|
|
44
|
-
export import LocationRetrieveParams =
|
|
54
|
+
export import LocationListParams = TaxNamespace4.LocationListParams;
|
|
55
|
+
export import LocationCreateParams = TaxNamespace4.LocationCreateParams;
|
|
56
|
+
export import LocationRetrieveParams = TaxNamespace4.LocationRetrieveParams;
|
|
45
57
|
export { Location, LocationResource };
|
|
46
|
-
export import RegistrationListParams =
|
|
47
|
-
export import RegistrationCreateParams =
|
|
48
|
-
export import RegistrationRetrieveParams =
|
|
49
|
-
export import RegistrationUpdateParams =
|
|
50
|
-
export import RegistrationSerializeBatchCreateParams =
|
|
51
|
-
export import RegistrationSerializeBatchUpdateParams =
|
|
58
|
+
export import RegistrationListParams = TaxNamespace5.RegistrationListParams;
|
|
59
|
+
export import RegistrationCreateParams = TaxNamespace5.RegistrationCreateParams;
|
|
60
|
+
export import RegistrationRetrieveParams = TaxNamespace5.RegistrationRetrieveParams;
|
|
61
|
+
export import RegistrationUpdateParams = TaxNamespace5.RegistrationUpdateParams;
|
|
62
|
+
export import RegistrationSerializeBatchCreateParams = TaxNamespace5.RegistrationSerializeBatchCreateParams;
|
|
63
|
+
export import RegistrationSerializeBatchUpdateParams = TaxNamespace5.RegistrationSerializeBatchUpdateParams;
|
|
52
64
|
export { Registration, RegistrationResource };
|
|
53
|
-
export import SettingsRetrieveParams =
|
|
54
|
-
export import SettingsUpdateParams =
|
|
55
|
-
export import SettingsSerializeBatchUpdateParams =
|
|
65
|
+
export import SettingsRetrieveParams = TaxNamespace6.SettingsRetrieveParams;
|
|
66
|
+
export import SettingsUpdateParams = TaxNamespace6.SettingsUpdateParams;
|
|
67
|
+
export import SettingsSerializeBatchUpdateParams = TaxNamespace6.SettingsSerializeBatchUpdateParams;
|
|
56
68
|
export { Settings, SettingResource };
|
|
57
|
-
export import TransactionRetrieveParams =
|
|
58
|
-
export import TransactionCreateFromCalculationParams =
|
|
59
|
-
export import TransactionCreateReversalParams =
|
|
60
|
-
export import TransactionSerializeBatchCreateReversalParams =
|
|
61
|
-
export import TransactionListLineItemsParams =
|
|
69
|
+
export import TransactionRetrieveParams = TaxNamespace7.TransactionRetrieveParams;
|
|
70
|
+
export import TransactionCreateFromCalculationParams = TaxNamespace7.TransactionCreateFromCalculationParams;
|
|
71
|
+
export import TransactionCreateReversalParams = TaxNamespace7.TransactionCreateReversalParams;
|
|
72
|
+
export import TransactionSerializeBatchCreateReversalParams = TaxNamespace7.TransactionSerializeBatchCreateReversalParams;
|
|
73
|
+
export import TransactionListLineItemsParams = TaxNamespace7.TransactionListLineItemsParams;
|
|
62
74
|
export { Transaction, TransactionResource };
|
|
63
75
|
export { CalculationLineItem };
|
|
76
|
+
export { FormCorrection };
|
|
64
77
|
export { TransactionLineItem };
|
|
65
78
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec
|
|
2
2
|
import { AssociationResource, } from './Associations.js';
|
|
3
3
|
import { CalculationResource, } from './Calculations.js';
|
|
4
|
+
import { CertificateResource, } from './Certificates.js';
|
|
4
5
|
import { FormResource } from './Forms.js';
|
|
5
6
|
import { LocationResource } from './Locations.js';
|
|
6
7
|
import { RegistrationResource, } from './Registrations.js';
|
|
@@ -11,6 +12,7 @@ export class Tax {
|
|
|
11
12
|
this.stripe = stripe;
|
|
12
13
|
this.associations = new AssociationResource(stripe);
|
|
13
14
|
this.calculations = new CalculationResource(stripe);
|
|
15
|
+
this.certificates = new CertificateResource(stripe);
|
|
14
16
|
this.forms = new FormResource(stripe);
|
|
15
17
|
this.locations = new LocationResource(stripe);
|
|
16
18
|
this.registrations = new RegistrationResource(stripe);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/Tax/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAGvC,OAAO,EAGL,mBAAmB,GACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAGL,mBAAmB,GACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAA6B,YAAY,EAAC,MAAM,YAAY,CAAC;AACpE,OAAO,EAAiC,gBAAgB,EAAC,MAAM,gBAAgB,CAAC;AAChF,OAAO,EAGL,oBAAoB,GACrB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAiC,eAAe,EAAC,MAAM,eAAe,CAAC;AAC9E,OAAO,EAGL,mBAAmB,GACpB,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/Tax/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAGvC,OAAO,EAGL,mBAAmB,GACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAGL,mBAAmB,GACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAIL,mBAAmB,GACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAA6B,YAAY,EAAC,MAAM,YAAY,CAAC;AACpE,OAAO,EAAiC,gBAAgB,EAAC,MAAM,gBAAgB,CAAC;AAChF,OAAO,EAGL,oBAAoB,GACrB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAiC,eAAe,EAAC,MAAM,eAAe,CAAC;AAC9E,OAAO,EAGL,mBAAmB,GACpB,MAAM,mBAAmB,CAAC;AAiB3B,MAAM,OAAO,GAAG;IAUd,YAA6B,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;QACzC,IAAI,CAAC,YAAY,GAAG,IAAI,mBAAmB,CAAC,MAAM,CAAC,CAAC;QACpD,IAAI,CAAC,YAAY,GAAG,IAAI,mBAAmB,CAAC,MAAM,CAAC,CAAC;QACpD,IAAI,CAAC,YAAY,GAAG,IAAI,mBAAmB,CAAC,MAAM,CAAC,CAAC;QACpD,IAAI,CAAC,KAAK,GAAG,IAAI,YAAY,CAAC,MAAM,CAAC,CAAC;QACtC,IAAI,CAAC,SAAS,GAAG,IAAI,gBAAgB,CAAC,MAAM,CAAC,CAAC;QAC9C,IAAI,CAAC,aAAa,GAAG,IAAI,oBAAoB,CAAC,MAAM,CAAC,CAAC;QACtD,IAAI,CAAC,QAAQ,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC,CAAC;QAC5C,IAAI,CAAC,YAAY,GAAG,IAAI,mBAAmB,CAAC,MAAM,CAAC,CAAC;IACtD,CAAC;CACF"}
|
|
@@ -97,6 +97,14 @@ export interface Reader {
|
|
|
97
97
|
* Always true for a deleted object
|
|
98
98
|
*/
|
|
99
99
|
deleted?: void;
|
|
100
|
+
/**
|
|
101
|
+
* The overall device health of the reader: `healthy` or `unhealthy`. Renamed to `no_issues_detected` and `needs_attention` respectively; see `device_health_details` for the specific conditions.
|
|
102
|
+
*/
|
|
103
|
+
device_health: Reader.DeviceHealth | null;
|
|
104
|
+
/**
|
|
105
|
+
* The set of conditions affecting the reader's device health. Empty when there are no conditions.
|
|
106
|
+
*/
|
|
107
|
+
device_health_details: Array<Reader.DeviceHealthDetail> | null;
|
|
100
108
|
/**
|
|
101
109
|
* The current software version of the reader.
|
|
102
110
|
*/
|
|
@@ -161,7 +169,7 @@ export interface DeletedReader {
|
|
|
161
169
|
serial_number: string;
|
|
162
170
|
}
|
|
163
171
|
export declare namespace DeletedReader {
|
|
164
|
-
type DeviceType = 'bbpos_chipper2x' | 'bbpos_wisepad3' | 'bbpos_wisepos_e' | 'mobile_phone_reader' | 'simulated_stripe_s700' | 'simulated_stripe_s710' | 'simulated_stripe_t600' | 'simulated_verifone_m425' | 'simulated_verifone_p630' | 'simulated_verifone_ux700' | 'simulated_verifone_v660p' | 'simulated_wisepos_e' | 'stripe_m2' | 'stripe_s700' | 'stripe_s710' | 'stripe_t600' | 'verifone_P400' | 'verifone_m425' | 'verifone_p630' | 'verifone_ux700' | 'verifone_v660p' | OtherString;
|
|
172
|
+
type DeviceType = 'bbpos_chipper2x' | 'bbpos_wisepad3' | 'bbpos_wisepos_e' | 'mobile_phone_reader' | 'simulated_stripe_s700' | 'simulated_stripe_s710' | 'simulated_stripe_t600' | 'simulated_verifone_m425' | 'simulated_verifone_p630' | 'simulated_verifone_ux700' | 'simulated_verifone_v660p' | 'simulated_wisepos_e' | 'stripe_m2' | 'stripe_s700' | 'stripe_s700_devkit' | 'stripe_s710' | 'stripe_s710_devkit' | 'stripe_t600' | 'stripe_t600_devkit' | 'verifone_P400' | 'verifone_m425' | 'verifone_p630' | 'verifone_ux700' | 'verifone_ux700_devkit' | 'verifone_v660p' | 'verifone_v660p_devkit' | OtherString;
|
|
165
173
|
}
|
|
166
174
|
export declare namespace Reader {
|
|
167
175
|
interface Action {
|
|
@@ -238,6 +246,13 @@ export declare namespace Reader {
|
|
|
238
246
|
*/
|
|
239
247
|
type: Action.Type;
|
|
240
248
|
}
|
|
249
|
+
type DeviceHealth = 'healthy' | 'unhealthy' | OtherString;
|
|
250
|
+
interface DeviceHealthDetail {
|
|
251
|
+
/**
|
|
252
|
+
* The type of condition affecting the reader's device health.
|
|
253
|
+
*/
|
|
254
|
+
type: DeviceHealthDetail.Type;
|
|
255
|
+
}
|
|
241
256
|
type DeviceType = 'bbpos_chipper2x' | 'bbpos_wisepad3' | 'bbpos_wisepos_e' | 'mobile_phone_reader' | 'simulated_stripe_s700' | 'simulated_stripe_s710' | 'simulated_stripe_t600' | 'simulated_verifone_m425' | 'simulated_verifone_p630' | 'simulated_verifone_ux700' | 'simulated_verifone_v660p' | 'simulated_wisepos_e' | 'stripe_m2' | 'stripe_s700' | 'stripe_s710' | 'stripe_t600' | 'verifone_P400' | 'verifone_m425' | 'verifone_p630' | 'verifone_ux700' | 'verifone_v660p' | OtherString;
|
|
242
257
|
type Status = 'offline' | 'online' | OtherString;
|
|
243
258
|
namespace Action {
|
|
@@ -823,6 +838,9 @@ export declare namespace Reader {
|
|
|
823
838
|
}
|
|
824
839
|
}
|
|
825
840
|
}
|
|
841
|
+
namespace DeviceHealthDetail {
|
|
842
|
+
type Type = 'unrecoverable_tamper' | OtherString;
|
|
843
|
+
}
|
|
826
844
|
}
|
|
827
845
|
export declare namespace Terminal {
|
|
828
846
|
interface ReaderCreateParams {
|
|
@@ -896,7 +914,7 @@ export declare namespace Terminal {
|
|
|
896
914
|
status?: ReaderListParams.Status;
|
|
897
915
|
}
|
|
898
916
|
namespace ReaderListParams {
|
|
899
|
-
type DeviceType = 'bbpos_chipper2x' | 'bbpos_wisepad3' | 'bbpos_wisepos_e' | 'mobile_phone_reader' | 'simulated_stripe_s700' | 'simulated_stripe_s710' | 'simulated_stripe_t600' | 'simulated_verifone_m425' | 'simulated_verifone_p630' | 'simulated_verifone_ux700' | 'simulated_verifone_v660p' | 'simulated_wisepos_e' | 'stripe_m2' | 'stripe_s700' | 'stripe_s710' | 'stripe_t600' | 'verifone_P400' | 'verifone_m425' | 'verifone_p630' | 'verifone_ux700' | 'verifone_v660p' | OtherString;
|
|
917
|
+
type DeviceType = 'bbpos_chipper2x' | 'bbpos_wisepad3' | 'bbpos_wisepos_e' | 'mobile_phone_reader' | 'simulated_stripe_s700' | 'simulated_stripe_s710' | 'simulated_stripe_t600' | 'simulated_verifone_m425' | 'simulated_verifone_p630' | 'simulated_verifone_ux700' | 'simulated_verifone_v660p' | 'simulated_wisepos_e' | 'stripe_m2' | 'stripe_s700' | 'stripe_s700_devkit' | 'stripe_s710' | 'stripe_s710_devkit' | 'stripe_t600' | 'stripe_t600_devkit' | 'verifone_P400' | 'verifone_m425' | 'verifone_p630' | 'verifone_ux700' | 'verifone_ux700_devkit' | 'verifone_v660p' | 'verifone_v660p_devkit' | OtherString;
|
|
900
918
|
type Status = 'offline' | 'online' | OtherString;
|
|
901
919
|
}
|
|
902
920
|
}
|