RazorpaySubscriptionCreateRequestBody constructor
- @JsonSerializable(includeIfNull: false)
const
RazorpaySubscriptionCreateRequestBody(
{ - required String plan_id,
- required int total_count,
- @JsonKey(toJson: _boolToInt, fromJson: _intToBool) bool? customer_notify,
- int? quantity,
- String? offer_id,
- int? start_at,
- int? expire_by,
- List<RazorpaySubscriptionAddonsItem>? addons,
- IMap? notes,
- ScheduleChangeAt? schedule_change_at,
})
Implementation
@JsonSerializable(includeIfNull: false)
const factory RazorpaySubscriptionCreateRequestBody({
required String plan_id,
required int total_count,
@JsonKey(toJson: _boolToInt, fromJson: _intToBool) bool? customer_notify,
int? quantity,
String? offer_id,
int? start_at,
int? expire_by,
List<RazorpaySubscriptionAddonsItem>? addons,
IMap<dynamic>? notes,
ScheduleChangeAt?
schedule_change_at, // Although usually for update, d.ts includes it here
}) = _RazorpaySubscriptionCreateRequestBody;