Skip to content

Commit

Permalink
Add support for Subscription Schedule APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
remi-stripe committed Feb 12, 2019
1 parent 1af0003 commit db4119b
Show file tree
Hide file tree
Showing 12 changed files with 831 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ before_install:

env:
global:
- STRIPE_MOCK_VERSION=0.43.0
- STRIPE_MOCK_VERSION=0.44.0

matrix:
include:
Expand Down
10 changes: 10 additions & 0 deletions src/main/java/com/stripe/model/Customer.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import com.stripe.net.ApiResource;
import com.stripe.net.RequestOptions;

import java.util.List;
import java.util.Map;

import lombok.AccessLevel;
Expand All @@ -28,6 +29,7 @@ public class Customer extends ApiResource implements MetadataStore<Customer>, Ha
Discount discount;
String email;
String invoicePrefix;
InvoiceSettings invoiceSettings;
Boolean livemode;
@Getter(onMethod = @__({@Override})) Map<String, String> metadata;
ShippingDetails shipping;
Expand Down Expand Up @@ -235,6 +237,14 @@ public static class NextRecurringCharge extends StripeObject {
String date;
}

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class InvoiceSettings extends StripeObject {
List<Invoice.CustomField> customFields;
String footer;
}

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
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 @@ -63,6 +63,8 @@ final class EventDataClassLookup {
classLookup.put("source_transaction", SourceTransaction.class);
classLookup.put("subscription", Subscription.class);
classLookup.put("subscription_item", SubscriptionItem.class);
classLookup.put("subscription_schedule", SubscriptionSchedule.class);
classLookup.put("subscription_schedule_revision", SubscriptionScheduleRevision.class);
classLookup.put("summary", Transfer.Summary.class);
classLookup.put("terminal.connection_token", com.stripe.model.terminal.ConnectionToken.class);
classLookup.put("terminal.location", com.stripe.model.terminal.Location.class);
Expand Down

0 comments on commit db4119b

Please sign in to comment.