RazorpayRegistrationLinkBaseRequestBody constructor

  1. @JsonSerializable(includeIfNull: false)
const RazorpayRegistrationLinkBaseRequestBody({
  1. required String type,
  2. required dynamic subscription_registration,
  3. String? description,
  4. String? customer_id,
  5. String? currency,
  6. RazorpayCustomerDetailsBaseRequestBody? customer,
  7. String? order_id,
  8. int? expire_by,
  9. @JsonKey(toJson: _boolToInt, fromJson: _intToBool) bool? sms_notify,
  10. @JsonKey(toJson: _boolToInt, fromJson: _intToBool) bool? email_notify,
  11. IMap? notes,
  12. String? receipt,
  13. 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;