RazorpayInvoiceUpdateRequestBody constructor

  1. @JsonSerializable(includeIfNull: false)
const RazorpayInvoiceUpdateRequestBody({
  1. String? type,
  2. String? description,
  3. String? draft,
  4. int? date,
  5. String? customer_id,
  6. String? currency,
  7. RazorpayCustomerDetailsBaseRequestBody? customer,
  8. String? order_id,
  9. List<RazorpayLineItemsBaseRequestBody>? line_items,
  10. int? expire_by,
  11. @JsonKey(toJson: _boolToInt, fromJson: _intToBool) bool? sms_notify,
  12. @JsonKey(toJson: _boolToInt, fromJson: _intToBool) bool? email_notify,
  13. @JsonKey(toJson: _boolToInt, fromJson: _intToBool) bool? partial_payment,
  14. IMap? notes,
  15. String? receipt,
  16. dynamic amount,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory RazorpayInvoiceUpdateRequestBody({
  String? type, // 'invoice' | 'link'
  String? description,
  String? draft, // '1' or null/omitted
  int? date, // Nullable Unix timestamp
  String? customer_id, // Either customer_id or customer object
  String? currency, // Typically INR
  RazorpayCustomerDetailsBaseRequestBody? customer,
  String? order_id,
  List<RazorpayLineItemsBaseRequestBody>? line_items,
  int? expire_by, // Nullable Unix timestamp
  @JsonKey(toJson: _boolToInt, fromJson: _intToBool)
  bool? sms_notify, // Default 1
  @JsonKey(toJson: _boolToInt, fromJson: _intToBool)
  bool? email_notify, // Default 1
  @JsonKey(toJson: _boolToInt, fromJson: _intToBool)
  bool? partial_payment, // Default false
  IMap<dynamic>? notes, // IMap<string | number>
  String? receipt,
  dynamic amount, // number | string (Only for type=link?)
}) = _RazorpayInvoiceUpdateRequestBody;