Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new capabilities for AU Becs Debit and tax reporting #847

Merged
merged 1 commit into from
Mar 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions types/2020-03-02/Accounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,11 @@ declare module 'stripe' {
| 'non_profit';

interface Capabilities {
/**
* 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.
*/
au_becs_debit_payments?: Capabilities.AuBecsDebitPayments;

/**
* The status of the card issuing capability of the account, or whether you can use Issuing to distribute funds on cards
*/
Expand All @@ -162,19 +167,35 @@ declare module 'stripe' {
*/
legacy_payments?: Capabilities.LegacyPayments;

/**
* The status of the tax reporting 1099-K (US) capability of the account.
*/
tax_reporting_us_1099_k?: Capabilities.TaxReportingUs1099K;

/**
* The status of the tax reporting 1099-MISC (US) capability of the account.
*/
tax_reporting_us_1099_misc?: Capabilities.TaxReportingUs1099Misc;

/**
* The status of the transfers capability of the account, or whether your platform can transfer funds to the account.
*/
transfers?: Capabilities.Transfers;
}

namespace Capabilities {
type AuBecsDebitPayments = 'active' | 'inactive' | 'pending';

type CardIssuing = 'active' | 'inactive' | 'pending';

type CardPayments = 'active' | 'inactive' | 'pending';

type LegacyPayments = 'active' | 'inactive' | 'pending';

type TaxReportingUs1099K = 'active' | 'inactive' | 'pending';

type TaxReportingUs1099Misc = 'active' | 'inactive' | 'pending';

type Transfers = 'active' | 'inactive' | 'pending';
}

Expand Down Expand Up @@ -1078,9 +1099,12 @@ declare module 'stripe' {
}

type RequestedCapability =
| 'au_becs_debit_payments'
| 'card_issuing'
| 'card_payments'
| 'legacy_payments'
| 'tax_reporting_us_1099_k'
| 'tax_reporting_us_1099_misc'
| 'transfers';

interface Settings {
Expand Down Expand Up @@ -1695,9 +1719,12 @@ declare module 'stripe' {
}

type RequestedCapability =
| 'au_becs_debit_payments'
| 'card_issuing'
| 'card_payments'
| 'legacy_payments'
| 'tax_reporting_us_1099_k'
| 'tax_reporting_us_1099_misc'
| 'transfers';

interface Settings {
Expand Down
2 changes: 1 addition & 1 deletion types/2020-03-02/Charges.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ declare module 'stripe' {
stripe_account?: PaymentMethodDetails.StripeAccount;

/**
* The type of transaction-specific details of the payment method used in the payment, one of `ach_credit_transfer`, `ach_debit`, `alipay`, `bancontact`, `card`, `card_present`, `eps`, `giropay`, `ideal`, `klarna`, `multibanco`, `p24`, `sepa_debit`, `sofort`, `stripe_account`, or `wechat`.
* The type of transaction-specific details of the payment method used in the payment, one of `ach_credit_transfer`, `ach_debit`, `alipay`, `au_becs_debit`, `bancontact`, `card`, `card_present`, `eps`, `giropay`, `ideal`, `klarna`, `multibanco`, `p24`, `sepa_debit`, `sofort`, `stripe_account`, or `wechat`.
* An additional hash is included on `payment_method_details` with a name matching this value.
* It contains information specific to the payment method.
*/
Expand Down
3 changes: 3 additions & 0 deletions types/2020-03-02/Mandates.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ declare module 'stripe' {

namespace PaymentMethodDetails {
interface AuBecsDebit {
/**
* The URL of the mandate. This URL generally contains sensitive information about the customer and should be shared with them exclusively.
*/
url: string;
}

Expand Down
14 changes: 13 additions & 1 deletion types/2020-03-02/PaymentMethods.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -450,8 +450,14 @@ declare module 'stripe' {

namespace PaymentMethodCreateParams {
interface AuBecsDebit {
/**
* The account number for the bank account.
*/
account_number: string;

/**
* Bank-State-Branch number of the bank account.
*/
bsb_number: string;
}

Expand Down Expand Up @@ -738,7 +744,13 @@ declare module 'stripe' {
}

namespace PaymentMethodListParams {
type Type = 'card' | 'card_present' | 'fpx' | 'ideal' | 'sepa_debit';
type Type =
| 'au_becs_debit'
| 'card'
| 'card_present'
| 'fpx'
| 'ideal'
| 'sepa_debit';
}

interface PaymentMethodAttachParams {
Expand Down