Skip to content

Commit

Permalink
Merge pull request #866 from stripe/remi/codegen-4d2f7b4
Browse files Browse the repository at this point in the history
Add support for `settings[branding][secondary_color]` on `Account`
  • Loading branch information
remi-stripe authored Apr 14, 2020
2 parents 2d5bf9e + 59eb584 commit 87ba151
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 6 deletions.
15 changes: 15 additions & 0 deletions types/2020-03-02/Accounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,11 @@ declare module 'stripe' {
* A CSS hex color value representing the primary branding color for this account
*/
primary_color: string | null;

/**
* A CSS hex color value representing the secondary branding color for this account
*/
secondary_color: string | null;
}

interface CardPayments {
Expand Down Expand Up @@ -1145,6 +1150,11 @@ declare module 'stripe' {
* A CSS hex color value representing the primary branding color for this account.
*/
primary_color?: string;

/**
* A CSS hex color value representing the secondary branding color for this account.
*/
secondary_color?: string;
}

interface CardPayments {
Expand Down Expand Up @@ -1765,6 +1775,11 @@ declare module 'stripe' {
* A CSS hex color value representing the primary branding color for this account.
*/
primary_color?: string;

/**
* A CSS hex color value representing the secondary branding color for this account.
*/
secondary_color?: string;
}

interface CardPayments {
Expand Down
8 changes: 4 additions & 4 deletions types/2020-03-02/PaymentIntents.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ declare module 'stripe' {
/**
* Configuration for any card payments attempted on this PaymentIntent.
*/
card?: PaymentMethodOptions.Card;
card?: PaymentMethodOptions.Card | null;
}

namespace PaymentMethodOptions {
Expand Down Expand Up @@ -861,7 +861,7 @@ declare module 'stripe' {
/**
* Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
*/
metadata?: MetadataParam;
metadata?: MetadataParam | null;

/**
* ID of the payment method (a PaymentMethod, Card, or [compatible Source](https://stripe.com/docs/payments/payment-methods#compatibility) object) to attach to this PaymentIntent.
Expand Down Expand Up @@ -939,7 +939,7 @@ declare module 'stripe' {
/**
* Configuration for any card payments attempted on this PaymentIntent.
*/
card?: PaymentMethodOptions.Card;
card?: PaymentMethodOptions.Card | null;
}

namespace PaymentMethodOptions {
Expand Down Expand Up @@ -1299,7 +1299,7 @@ declare module 'stripe' {
/**
* Configuration for any card payments attempted on this PaymentIntent.
*/
card?: PaymentMethodOptions.Card;
card?: PaymentMethodOptions.Card | null;
}

namespace PaymentMethodOptions {
Expand Down
2 changes: 1 addition & 1 deletion types/2020-03-02/PaymentMethods.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ declare module 'stripe' {
/**
* Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
*/
metadata?: MetadataParam;
metadata?: MetadataParam | null;

/**
* If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
Expand Down
2 changes: 1 addition & 1 deletion types/2020-03-02/SetupIntents.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ declare module 'stripe' {
/**
* Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
*/
metadata?: MetadataParam;
metadata?: MetadataParam | null;

/**
* ID of the payment method (a PaymentMethod, Card, or saved Source object) to attach to this SetupIntent.
Expand Down

0 comments on commit 87ba151

Please sign in to comment.