PPPurchaseUnit constructor

  1. @JsonSerializable(fieldRename: FieldRename.snake)
const PPPurchaseUnit({
  1. String? referenceId,
  2. String? invoiceId,
  3. String? customId,
  4. String? softDescriptor,
  5. PPShipping? shipping,
  6. List<PPItems>? items,
  7. PPPayee? payee,
  8. @JsonKey(name: 'amount') required PPOrderAmount orderAmount,
})

Implementation

@JsonSerializable(fieldRename: FieldRename.snake)
const factory PPPurchaseUnit({
  String? referenceId,
  String? invoiceId,
  String? customId,
  String? softDescriptor,
  PPShipping? shipping,
  List<PPItems>? items,
  PPPayee? payee,
  @JsonKey(name: 'amount') required PPOrderAmount orderAmount,
}) = _PPPurchaseUnit;