Skip to content

API Updates #1187

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Feb 22, 2021
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ before_install:
env:
global:
# If changing this number, please also change it in `BaseStripeTest.java`.
- STRIPE_MOCK_VERSION=0.101.0
- STRIPE_MOCK_VERSION=0.103.0

matrix:
include:
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/stripe/model/EventDataClassLookup.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ final class EventDataClassLookup {
classLookup.put("usage_record_summary", UsageRecordSummary.class);
classLookup.put("webhook_endpoint", WebhookEndpoint.class);

classLookup.put(
"billing_portal.configuration", com.stripe.model.billingportal.Configuration.class);
classLookup.put("billing_portal.session", com.stripe.model.billingportal.Session.class);

classLookup.put("checkout.session", com.stripe.model.checkout.Session.class);
Expand Down
7 changes: 5 additions & 2 deletions src/main/java/com/stripe/model/Plan.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,16 @@ public class Plan extends ApiResource implements HasId, MetadataStore<Plan> {
@SerializedName("aggregate_usage")
String aggregateUsage;

/** The unit amount in %s to be charged, represented as a whole integer if possible. */
/**
* The unit amount in %s to be charged, represented as a whole integer if possible. Only set if
* {@code billing_scheme=per_unit}.
*/
@SerializedName("amount")
Long amount;

/**
* The unit amount in %s to be charged, represented as a decimal string with at most 12 decimal
* places.
* places. Only set if {@code billing_scheme=per_unit}.
*/
@SerializedName("amount_decimal")
BigDecimal amountDecimal;
Expand Down
7 changes: 5 additions & 2 deletions src/main/java/com/stripe/model/Price.java
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,16 @@ public class Price extends ApiResource implements HasId, MetadataStore<Price> {
@SerializedName("type")
String type;

/** The unit amount in %s to be charged, represented as a whole integer if possible. */
/**
* The unit amount in %s to be charged, represented as a whole integer if possible. Only set if
* {@code billing_scheme=per_unit}.
*/
@SerializedName("unit_amount")
Long unitAmount;

/**
* The unit amount in %s to be charged, represented as a decimal string with at most 12 decimal
* places.
* places. Only set if {@code billing_scheme=per_unit}.
*/
@SerializedName("unit_amount_decimal")
BigDecimal unitAmountDecimal;
Expand Down
Loading