Skip to content

Commit c3b8547

Browse files
authored
Merge pull request #967 from stripe/remi/codegen-9f798bd
Multiple API changes
2 parents 99fb5e8 + 39c4517 commit c3b8547

14 files changed

+776
-51
lines changed

src/main/java/com/stripe/model/Balance.java

+4
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,10 @@ public static class SourceTypes extends StripeObject {
129129
/** Amount for card. */
130130
@SerializedName("card")
131131
Long card;
132+
133+
/** Amount for FPX. */
134+
@SerializedName("fpx")
135+
Long fpx;
132136
}
133137
}
134138
}

src/main/java/com/stripe/model/PaymentMethod.java

+6
Original file line numberDiff line numberDiff line change
@@ -360,12 +360,18 @@ public PaymentMethod detach(PaymentMethodDetachParams params, RequestOptions opt
360360
@Setter
361361
@EqualsAndHashCode(callSuper = false)
362362
public static class AuBecsDebit extends StripeObject {
363+
/** Six-digit number identifying bank and branch associated with this bank account. */
363364
@SerializedName("bsb_number")
364365
String bsbNumber;
365366

367+
/**
368+
* Uniquely identifies this particular bank account. You can use this attribute to check whether
369+
* two bank accounts are the same.
370+
*/
366371
@SerializedName("fingerprint")
367372
String fingerprint;
368373

374+
/** Last four digits of the bank account number. */
369375
@SerializedName("last4")
370376
String last4;
371377
}

src/main/java/com/stripe/model/Payout.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,10 @@ public class Payout extends ApiResource implements MetadataStore<Payout>, Balanc
127127
@SerializedName("object")
128128
String object;
129129

130-
/** The source balance this payout came from. One of {@code card} or {@code bank_account}. */
130+
/**
131+
* The source balance this payout came from. One of {@code card}, {@code fpx}, or {@code
132+
* bank_account}.
133+
*/
131134
@SerializedName("source_type")
132135
String sourceType;
133136

src/main/java/com/stripe/model/Plan.java

+15-17
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ public class Plan extends ApiResource implements HasId, MetadataStore<Plan> {
2626

2727
/**
2828
* Specifies a usage aggregation strategy for plans of {@code usage_type=metered}. Allowed values
29-
* are {@code sum} for summing up all usage during a period, {@code last_during_period} for
30-
* picking the last usage record reported within a period, {@code last_ever} for picking the last
31-
* usage record ever (across period bounds) or {@code max} which picks the usage record with the
32-
* maximum reported usage during a period. Defaults to {@code sum}.
29+
* are {@code sum} for summing up all usage during a period, {@code last_during_period} for using
30+
* the last usage record reported within a period, {@code last_ever} for using the last usage
31+
* record ever (across period bounds) or {@code max} which uses the usage record with the maximum
32+
* reported usage during a period. Defaults to {@code sum}.
3333
*
3434
* <p>One of {@code last_during_period}, {@code last_ever}, {@code max}, or {@code sum}.
3535
*/
@@ -78,14 +78,14 @@ public class Plan extends ApiResource implements HasId, MetadataStore<Plan> {
7878
String id;
7979

8080
/**
81-
* One of {@code day}, {@code week}, {@code month} or {@code year}. The frequency with which a
82-
* subscription should be billed.
81+
* The frequency at which a subscription is billed. One of {@code day}, {@code week}, {@code
82+
* month} or {@code year}.
8383
*/
8484
@SerializedName("interval")
8585
String interval;
8686

8787
/**
88-
* The number of intervals (specified in the {@code interval} property) between subscription
88+
* The number of intervals (specified in the {@code interval} attribute) between subscription
8989
* billings. For example, {@code interval=month} and {@code interval_count=3} bills every 3
9090
* months.
9191
*/
@@ -134,17 +134,17 @@ public class Plan extends ApiResource implements HasId, MetadataStore<Plan> {
134134

135135
/**
136136
* Defines if the tiering price should be {@code graduated} or {@code volume} based. In {@code
137-
* volume}-based tiering, the maximum quantity within a period determines the per unit price, in
138-
* {@code graduated} tiering pricing can successively change as the quantity grows.
137+
* volume}-based tiering, the maximum quantity within a period determines the per unit price. In
138+
* {@code graduated} tiering, pricing can change as the quantity grows.
139139
*
140140
* <p>One of {@code graduated}, or {@code volume}.
141141
*/
142142
@SerializedName("tiers_mode")
143143
String tiersMode;
144144

145145
/**
146-
* Apply a transformation to the reported usage or set quantity before computing the billed price.
147-
* Cannot be combined with {@code tiers}.
146+
* Apply a transformation to the reported usage or set quantity before computing the amount
147+
* billed. Cannot be combined with {@code tiers}.
148148
*/
149149
@SerializedName("transform_usage")
150150
TransformUsage transformUsage;
@@ -158,12 +158,10 @@ public class Plan extends ApiResource implements HasId, MetadataStore<Plan> {
158158
Long trialPeriodDays;
159159

160160
/**
161-
* Configures how the quantity per period should be determined, can be either {@code metered} or
162-
* {@code licensed}. {@code licensed} will automatically bill the {@code quantity} set when adding
163-
* it to a subscription, {@code metered} will aggregate the total usage based on usage records.
164-
* Defaults to {@code licensed}.
165-
*
166-
* <p>One of {@code licensed}, or {@code metered}.
161+
* Configures how the quantity per period should be determined. Can be either {@code metered} or
162+
* {@code licensed}. {@code licensed} automatically bills the {@code quantity} set when adding it
163+
* to a subscription. {@code metered} aggregates the total usage based on usage records. Defaults
164+
* to {@code licensed}.
167165
*/
168166
@SerializedName("usage_type")
169167
String usageType;

src/main/java/com/stripe/model/Transfer.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,10 @@ public class Transfer extends ApiResource
114114
@Setter(lombok.AccessLevel.NONE)
115115
ExpandableField<Charge> sourceTransaction;
116116

117-
/** The source balance this transfer came from. One of {@code card} or {@code bank_account}. */
117+
/**
118+
* The source balance this transfer came from. One of {@code card}, {@code fpx}, or {@code
119+
* bank_account}.
120+
*/
118121
@SerializedName("source_type")
119122
String sourceType;
120123

src/main/java/com/stripe/model/issuing/Authorization.java

+14-7
Original file line numberDiff line numberDiff line change
@@ -492,27 +492,34 @@ public static class ViolatedAuthorizationControl extends StripeObject {
492492
public static class VerificationData extends StripeObject {
493493
/**
494494
* Whether the cardholder provided an address first line and if it matched the cardholder’s
495-
* {@code billing.address.line1}. One of {@code match}, {@code mismatch}, or {@code
496-
* not_provided}.
495+
* {@code billing.address.line1}.
496+
*
497+
* <p>One of {@code match}, {@code mismatch}, or {@code not_provided}.
497498
*/
498499
@SerializedName("address_line1_check")
499500
String addressLine1Check;
500501

501502
/**
502503
* Whether the cardholder provided a zip (or postal code) and if it matched the cardholder’s
503-
* {@code billing.address.postal_code}. One of {@code match}, {@code mismatch}, or {@code
504-
* not_provided}.
504+
* {@code billing.address.postal_code}.
505+
*
506+
* <p>One of {@code match}, {@code mismatch}, or {@code not_provided}.
505507
*/
506508
@SerializedName("address_zip_check")
507509
String addressZipCheck;
508510

509-
/** One of {@code success}, {@code failure}, {@code exempt}, or {@code none}. */
511+
/**
512+
* Whether 3DS authentication was performed.
513+
*
514+
* <p>One of {@code failure}, {@code none}, or {@code success}.
515+
*/
510516
@SerializedName("authentication")
511517
String authentication;
512518

513519
/**
514-
* Whether the cardholder provided a CVC and if it matched Stripe’s record. One of {@code
515-
* match}, {@code mismatch}, or {@code not_provided}.
520+
* Whether the cardholder provided a CVC and if it matched Stripe’s record.
521+
*
522+
* <p>One of {@code match}, {@code mismatch}, or {@code not_provided}.
516523
*/
517524
@SerializedName("cvc_check")
518525
String cvcCheck;

0 commit comments

Comments
 (0)