@Test public void testMapCreation() { assertMapEquals(mShippingMethod.toMap(), EXAMPLE_MAP_SHIPPING_ADDRESS); }
@NonNull @Override public Map<String, Object> toMap() { Map<String, Object> map = new HashMap<>(); map.put(FIELD_AMOUNT, mAmount); map.put(FIELD_CURRENCY_CODE, mCurrencyCode); map.put(FIELD_DETAIL, mDetail); map.put(FIELD_IDENTIFIER, mIdentifier); map.put(FIELD_LABEL, mLabel); return map; }
ShippingMethod extends StripeJsonModel implements Parcelable { @NonNull @Override public Map<String, Object> toMap() { Map<String, Object> map = new HashMap<>(); map.put(FIELD_AMOUNT, mAmount); map.put(FIELD_CURRENCY_CODE, mCurrencyCode); map.put(FIELD_DETAIL, mDetail); map.put(FIELD_IDENTIFIER, mIdentifier); map.put(FIELD_LABEL, mLabel); return map; } }
ShippingMethod extends StripeJsonModel implements Parcelable { @NonNull @Override public Map<String, Object> toMap() { Map<String, Object> map = new HashMap<>(); map.put(FIELD_AMOUNT, mAmount); map.put(FIELD_CURRENCY_CODE, mCurrencyCode); map.put(FIELD_DETAIL, mDetail); map.put(FIELD_IDENTIFIER, mIdentifier); map.put(FIELD_LABEL, mLabel); return map; } ShippingMethod(@NonNull String label,
                          @NonNull String identifier,
                          @NonNull long amount,
                          @NonNull @Size(min=0, max=3) String currencyCode);  ShippingMethod(@NonNull String label,
                          @NonNull String identifier,
                          @Nullable String detail,
                          @NonNull long amount,
                          @NonNull @Size(min=0, max=3) String currencyCode); private  ShippingMethod(Parcel in); }
ShippingMethod extends StripeJsonModel implements Parcelable { @NonNull @Override public Map<String, Object> toMap() { Map<String, Object> map = new HashMap<>(); map.put(FIELD_AMOUNT, mAmount); map.put(FIELD_CURRENCY_CODE, mCurrencyCode); map.put(FIELD_DETAIL, mDetail); map.put(FIELD_IDENTIFIER, mIdentifier); map.put(FIELD_LABEL, mLabel); return map; } ShippingMethod(@NonNull String label,
                          @NonNull String identifier,
                          @NonNull long amount,
                          @NonNull @Size(min=0, max=3) String currencyCode);  ShippingMethod(@NonNull String label,
                          @NonNull String identifier,
                          @Nullable String detail,
                          @NonNull long amount,
                          @NonNull @Size(min=0, max=3) String currencyCode); private  ShippingMethod(Parcel in); @NonNull Currency getCurrency(); long getAmount(); @NonNull String getLabel(); @Nullable String getDetail(); @NonNull String getIdentifier(); @NonNull @Override JSONObject toJson(); @NonNull @Override Map<String, Object> toMap(); @Override int describeContents(); @Override void writeToParcel(Parcel parcel, int i); }
ShippingMethod extends StripeJsonModel implements Parcelable { @NonNull @Override public Map<String, Object> toMap() { Map<String, Object> map = new HashMap<>(); map.put(FIELD_AMOUNT, mAmount); map.put(FIELD_CURRENCY_CODE, mCurrencyCode); map.put(FIELD_DETAIL, mDetail); map.put(FIELD_IDENTIFIER, mIdentifier); map.put(FIELD_LABEL, mLabel); return map; } ShippingMethod(@NonNull String label,
                          @NonNull String identifier,
                          @NonNull long amount,
                          @NonNull @Size(min=0, max=3) String currencyCode);  ShippingMethod(@NonNull String label,
                          @NonNull String identifier,
                          @Nullable String detail,
                          @NonNull long amount,
                          @NonNull @Size(min=0, max=3) String currencyCode); private  ShippingMethod(Parcel in); @NonNull Currency getCurrency(); long getAmount(); @NonNull String getLabel(); @Nullable String getDetail(); @NonNull String getIdentifier(); @NonNull @Override JSONObject toJson(); @NonNull @Override Map<String, Object> toMap(); @Override int describeContents(); @Override void writeToParcel(Parcel parcel, int i); static final Parcelable.Creator<ShippingMethod> CREATOR; }