RazorpayInvoiceUpdateRequestBody constructor
- @JsonSerializable(includeIfNull: false)
const
RazorpayInvoiceUpdateRequestBody(
{ - String? type,
- String? description,
- String? draft,
- int? date,
- String? customer_id,
- String? currency,
- RazorpayCustomerDetailsBaseRequestBody? customer,
- String? order_id,
- List<RazorpayLineItemsBaseRequestBody>? line_items,
- int? expire_by,
- @JsonKey(toJson: _boolToInt, fromJson: _intToBool) bool? sms_notify,
- @JsonKey(toJson: _boolToInt, fromJson: _intToBool) bool? email_notify,
- @JsonKey(toJson: _boolToInt, fromJson: _intToBool) bool? partial_payment,
- IMap? notes,
- String? receipt,
- 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;