Skip to content

Commit

Permalink
Erroneous handling of deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
rattrayalex-stripe committed Dec 20, 2019
1 parent b56f772 commit ad64e33
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 7 deletions.
5 changes: 0 additions & 5 deletions types/2019-12-03/Charges.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -365,11 +365,6 @@ declare namespace Stripe {
*/
action: string;

/**
* Always true for a deleted object
*/
deleted?: true;

/**
* Unique identifier for the object.
*/
Expand Down
24 changes: 22 additions & 2 deletions types/2019-12-03/Customers.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -812,14 +812,34 @@ declare namespace Stripe {
params?: CustomerSourceDeleteParams,
options?: RequestOptions
): Promise<
Account | AlipayAccount | BankAccount | BitcoinReceiver | Card | Source

| Account
| AlipayAccount
| BankAccount
| BitcoinReceiver
| Card
| Source
| DeletedAlipayAccount
| DeletedBankAccount
| DeletedBitcoinReceiver
| DeletedCard
>;
deleteSource(
customerId: string,
id: string,
options?: RequestOptions
): Promise<
Account | AlipayAccount | BankAccount | BitcoinReceiver | Card | Source

| Account
| AlipayAccount
| BankAccount
| BitcoinReceiver
| Card
| Source
| DeletedAlipayAccount
| DeletedBankAccount
| DeletedBitcoinReceiver
| DeletedCard
>;

/**
Expand Down

0 comments on commit ad64e33

Please sign in to comment.