RazorpayInvoiceCreateRequestBody constructor
- @JsonSerializable(includeIfNull: false)
const
RazorpayInvoiceCreateRequestBody(
{ - required String type,
- required List<RazorpayLineItemsBaseRequestBody> line_items,
- String? description,
- String? draft,
- int? date,
- String? customer_id,
- String? currency,
- RazorpayCustomerDetailsBaseRequestBody? customer,
- String? order_id,
- 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 RazorpayInvoiceCreateRequestBody({
required String type,
required List<RazorpayLineItemsBaseRequestBody>
line_items, // '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,
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?)
}) = _RazorpayInvoiceCreateRequestBody;