PPOrderAmount constructor

  1. @JsonSerializable(fieldRename: FieldRename.snake, explicitToJson: true)
const PPOrderAmount({
  1. required PPCurrencyCode currencyCode,
  2. required String value,
})

Implementation

@JsonSerializable(fieldRename: FieldRename.snake, explicitToJson: true)
const factory PPOrderAmount({
  /// The three-character ISO-4217 currency code that identifies the currency. See [PPCurrencyCode].
  required PPCurrencyCode currencyCode,

  /// The value, which might be:
  /// - An integer for currencies like JPY that are not typically fractional.
  /// - A decimal fraction for currencies like TND that are subdivided into thousandths.
  /// For the required number of decimal places for a currency code, see Currency Codes.
  required String value,
}) = _PPOrderAmount;