RazorpayRegistrationLinkBaseRequestBody constructor
- @JsonSerializable(includeIfNull: false)
const
RazorpayRegistrationLinkBaseRequestBody(
{ - required String type,
- required dynamic subscription_registration,
- String? description,
- 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,
- IMap? notes,
- String? receipt,
- dynamic amount,
})
Implementation
@JsonSerializable(includeIfNull: false)
const factory RazorpayRegistrationLinkBaseRequestBody({
// Fields from InvoiceBase, excluding some
required String type, // Registration specific field
required dynamic
subscription_registration, // Union type, use Map<String,dynamic>, // Should be 'link'
String? description,
// String? draft, // Not applicable
// int? date, // Not applicable
String? customer_id,
String? currency,
RazorpayCustomerDetailsBaseRequestBody? customer,
String? order_id, // Typically not used for auth links
// required List<RazorpayLineItemsBaseRequestBody> line_items, // Not applicable
int? expire_by,
@JsonKey(toJson: _boolToInt, fromJson: _intToBool) bool? sms_notify,
@JsonKey(toJson: _boolToInt, fromJson: _intToBool) bool? email_notify,
// bool? partial_payment, // Not applicable
IMap<dynamic>? notes,
String? receipt,
dynamic amount, // Auth amount, usually 0 or small
}) = _RazorpayRegistrationLinkBaseRequestBody;