RazorpayPaymentS2SCreateRequestBody constructor

  1. @JsonSerializable(includeIfNull: false)
const RazorpayPaymentS2SCreateRequestBody({
  1. required dynamic amount,
  2. required String currency,
  3. required String order_id,
  4. required String email,
  5. required dynamic contact,
  6. required String customer_id,
  7. required dynamic save,
  8. required RazorpayCardS2SMethod card,
  9. Map<String, String?>? notes,
  10. String? description,
  11. String? subscription_id,
  12. String? token,
  13. String? account_id,
  14. String? referer,
  15. String? user_agent,
  16. String? provider_name,
  17. BrowserInfo? browser,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory RazorpayPaymentS2SCreateRequestBody({
  // Base fields
  required dynamic amount, // number | string
  required String currency,
  required String order_id,
  required String email,
  required dynamic contact,
  required String customer_id,
  // PaymentAuthentication? authentication, // Handled inside card?

  // S2S specific
  required dynamic save, // boolean | number (0 or 1)
  required RazorpayCardS2SMethod card, // Reverted to required
  Map<String, String?>? notes, // Kept type change
  String? description,
  String? subscription_id,
  String? token,
  String? account_id, // Sub-merchant ID
  String? referer,
  String? user_agent,
  String? provider_name, // Not in d.ts, check if needed
  BrowserInfo? browser,
}) = _RazorpayPaymentS2SCreateRequestBody;