Skip to content

Commit

Permalink
Merge pull request #829 from stripe/remi/codegen-c9e407e
Browse files Browse the repository at this point in the history
Multiple API changes
  • Loading branch information
remi-stripe authored Mar 4, 2020
2 parents 5877417 + 810756a commit fd8269c
Show file tree
Hide file tree
Showing 3 changed files with 371 additions and 2 deletions.
3 changes: 1 addition & 2 deletions types/2020-03-02/Checkout/Sessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,7 @@ declare module 'stripe' {
cancel_url: string;

/**
* A list of the types of payment methods (e.g. card) this Checkout
* Session is allowed to accept. The only supported values today are `card` and `ideal`.
* A list of the types of payment methods (e.g., card) this Checkout session can accept.
*/
payment_method_types: Array<SessionCreateParams.PaymentMethodType>;

Expand Down
9 changes: 9 additions & 0 deletions types/2020-03-02/Issuing/Authorizations.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,8 @@ declare module 'stripe' {
| 'card_inactive'
| 'cardholder_inactive'
| 'cardholder_verification_required'
| 'incorrect_cvc'
| 'incorrect_expiry'
| 'insufficient_funds'
| 'not_allowed'
| 'suspected_fraud'
Expand Down Expand Up @@ -272,6 +274,11 @@ declare module 'stripe' {
* Whether the cardholder provided a CVC and if it matched Stripe's record.
*/
cvc_check: VerificationData.CvcCheck;

/**
* Whether the cardholder provided an expiry date and if it matched Stripe's record.
*/
expiry_check: VerificationData.ExpiryCheck;
}

namespace VerificationData {
Expand All @@ -282,6 +289,8 @@ declare module 'stripe' {
type Authentication = 'failure' | 'none' | 'success';

type CvcCheck = 'match' | 'mismatch' | 'not_provided';

type ExpiryCheck = 'match' | 'mismatch' | 'not_provided';
}
}

Expand Down
Loading

0 comments on commit fd8269c

Please sign in to comment.