RazorpayOrderBaseRequestBody constructor
- @JsonSerializable(includeIfNull: false)
const
RazorpayOrderBaseRequestBody(
{ - required dynamic amount,
- required String currency,
- String? receipt,
- String? offer_id,
- String? method,
- RazorpayOrderBankDetailsCreateRequestBody? bank_account,
- IMap? notes,
- bool? partial_payment,
- int? first_payment_min_amount,
- RazorpayCapturePayment? payment,
- bool? rto_review,
- List<LineItems>? line_items,
- dynamic line_items_total,
- int? shipping_fee,
- int? cod_fee,
- CustomerDetails? customer_details,
- List<Promotion>? promotions,
- DeviceDetails? device_details,
- String? phonepe_switch_context,
})
Implementation
@JsonSerializable(includeIfNull: false)
const factory RazorpayOrderBaseRequestBody({
required dynamic amount, // number | string
required String currency,
String? receipt,
String? offer_id,
String? method, // 'netbanking' | 'upi' | 'card' | 'emandate' | 'nach'
RazorpayOrderBankDetailsCreateRequestBody? bank_account,
IMap<dynamic>? notes,
bool? partial_payment,
int? first_payment_min_amount,
RazorpayCapturePayment? payment,
bool? rto_review,
List<LineItems>? line_items,
dynamic line_items_total, // number | string
int? shipping_fee,
int? cod_fee,
CustomerDetails? customer_details,
List<Promotion>? promotions,
DeviceDetails? device_details,
String? phonepe_switch_context,
// Fields specifically for Transfer Orders (handled in separate model)
// List<RazorpayOrderCreateTransferRequestBody>? transfers,
// Fields specifically for Authorization Orders (handled in separate model)
// bool? payment_capture,
// String? customer_id,
// dynamic token, // Union of Token types
}) = _RazorpayOrderBaseRequestBody;