From 4a954a4fe5a65ca2d298ba5dc6a7bd2680b0822a Mon Sep 17 00:00:00 2001 From: Joey Dong Date: Mon, 11 Jun 2018 16:32:24 -0700 Subject: [PATCH] Add `RequiredBillingAddressFields.NAME` option to enumeration --- CHANGELOG | 1 + stripe/src/main/java/com/stripe/android/model/Address.java | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 5b3ff3eadd5..e74f2bdf98c 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,4 +1,5 @@ Add EPS and Multibanco support to `SourceParams` (https://github.com/stripe/stripe-android/pull/583) + Add `RequiredBillingAddressFields.NAME` option to enumeration (https://github.com/stripe/stripe-android/pull/586) 7.0.1 2018-05-25 Make iDEAL params match API - `name` is optional and optional ideal `bank` and `statement_descriptor` can be set independently diff --git a/stripe/src/main/java/com/stripe/android/model/Address.java b/stripe/src/main/java/com/stripe/android/model/Address.java index 4ffa8097ac0..2d6cf414445 100644 --- a/stripe/src/main/java/com/stripe/android/model/Address.java +++ b/stripe/src/main/java/com/stripe/android/model/Address.java @@ -26,12 +26,14 @@ public class Address extends StripeJsonModel implements Parcelable { @IntDef({ RequiredBillingAddressFields.NONE, RequiredBillingAddressFields.ZIP, - RequiredBillingAddressFields.FULL}) + RequiredBillingAddressFields.FULL, + RequiredBillingAddressFields.NAME}) @Retention(RetentionPolicy.SOURCE) public @interface RequiredBillingAddressFields { int NONE = 0; int ZIP = 1; int FULL = 2; + int NAME = 3; } private static final String FIELD_CITY = "city";