RazorpayCustomer constructor
const
RazorpayCustomer({})
Implementation
@JsonSerializable(includeIfNull: false)
const factory RazorpayCustomer({
required String id,
required String entity,
required int created_at,
String? name,
String? email,
dynamic contact, // string | number
String? gstin,
IMap<dynamic>? notes, // IMap<string | number>
// shipping_address type is based on Invoices, ensure it's defined correctly there
List<RazorpayInvoiceAddress>? shipping_address,
@JsonKey(toJson: _boolToInt, fromJson: _intToBool)
bool?
fail_existing, // Although usually not in response, keep if needed based on d.ts
}) = _RazorpayCustomer;