mike_shysh
12/26/2017, 3:55 PMparams={"currency_info":{"iso_4217":"CAD","name":"Canadian Dollar","imerchantAccount":0,"ixrateSource":2}}
instead if
params={"currency_info":{"iso_4217":"CAD","name":"Canadian Dollar","i_merchant_account":0,"i_xrate_source":2}}
Here is the data class
data class CurrencyInfo(
@JsonProperty("currency_info") val currencyInfo: CurrencyInfoItem?
)
@JsonInclude(JsonInclude.Include.NON_NULL)
data class CurrencyInfoItem(
@JsonProperty("iso_4217") val iso4217: String?,
@JsonProperty("name") val name: String?,
@JsonProperty("name_major") val nameMajor: String?,
@JsonProperty("name_minor") val nameMinor: String?,
@JsonProperty("i_ma_currency") val iMaCurrency: Int?,
@JsonProperty("i_merchant_account") val iMerchantAccount: Int?,
@JsonProperty("i_x_rate_source") val iXRateSource: Int?,
@JsonProperty("base_units") val baseUnits: Double?,
@JsonProperty("min_allowed_payment") val minAllowedPayment: Int?,
@JsonProperty("decimal_digits") val decimalDigits: Int?,
@JsonProperty("is_used") val isUsed: Boolean?
)