Skip to content

Commit fcde151

Browse files
authored
Merge pull request stripe#866 from stripe/remi/codegen-4d2f7b4
Add support for `settings[branding][secondary_color]` on `Account`
2 parents 7a5c71f + b34779a commit fcde151

File tree

4 files changed

+21
-6
lines changed

4 files changed

+21
-6
lines changed

types/2020-03-02/Accounts.d.ts

+15
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,11 @@ declare module 'stripe' {
516516
* A CSS hex color value representing the primary branding color for this account
517517
*/
518518
primary_color: string | null;
519+
520+
/**
521+
* A CSS hex color value representing the secondary branding color for this account
522+
*/
523+
secondary_color: string | null;
519524
}
520525

521526
interface CardPayments {
@@ -1145,6 +1150,11 @@ declare module 'stripe' {
11451150
* A CSS hex color value representing the primary branding color for this account.
11461151
*/
11471152
primary_color?: string;
1153+
1154+
/**
1155+
* A CSS hex color value representing the secondary branding color for this account.
1156+
*/
1157+
secondary_color?: string;
11481158
}
11491159

11501160
interface CardPayments {
@@ -1765,6 +1775,11 @@ declare module 'stripe' {
17651775
* A CSS hex color value representing the primary branding color for this account.
17661776
*/
17671777
primary_color?: string;
1778+
1779+
/**
1780+
* A CSS hex color value representing the secondary branding color for this account.
1781+
*/
1782+
secondary_color?: string;
17681783
}
17691784

17701785
interface CardPayments {

types/2020-03-02/PaymentIntents.d.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ declare module 'stripe' {
695695
/**
696696
* Configuration for any card payments attempted on this PaymentIntent.
697697
*/
698-
card?: PaymentMethodOptions.Card;
698+
card?: PaymentMethodOptions.Card | null;
699699
}
700700

701701
namespace PaymentMethodOptions {
@@ -861,7 +861,7 @@ declare module 'stripe' {
861861
/**
862862
* 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`.
863863
*/
864-
metadata?: MetadataParam;
864+
metadata?: MetadataParam | null;
865865

866866
/**
867867
* 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.
@@ -939,7 +939,7 @@ declare module 'stripe' {
939939
/**
940940
* Configuration for any card payments attempted on this PaymentIntent.
941941
*/
942-
card?: PaymentMethodOptions.Card;
942+
card?: PaymentMethodOptions.Card | null;
943943
}
944944

945945
namespace PaymentMethodOptions {
@@ -1299,7 +1299,7 @@ declare module 'stripe' {
12991299
/**
13001300
* Configuration for any card payments attempted on this PaymentIntent.
13011301
*/
1302-
card?: PaymentMethodOptions.Card;
1302+
card?: PaymentMethodOptions.Card | null;
13031303
}
13041304

13051305
namespace PaymentMethodOptions {

types/2020-03-02/PaymentMethods.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ declare module 'stripe' {
646646
/**
647647
* 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`.
648648
*/
649-
metadata?: MetadataParam;
649+
metadata?: MetadataParam | null;
650650

651651
/**
652652
* If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.

types/2020-03-02/SetupIntents.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ declare module 'stripe' {
467467
/**
468468
* 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`.
469469
*/
470-
metadata?: MetadataParam;
470+
metadata?: MetadataParam | null;
471471

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

0 commit comments

Comments
 (0)