RazorpaySubscriptionUpdateRequestBody constructor

  1. @JsonSerializable(includeIfNull: false)
const RazorpaySubscriptionUpdateRequestBody({
  1. String? plan_id,
  2. int? total_count,
  3. @JsonKey(toJson: _boolToInt, fromJson: _intToBool) bool? customer_notify,
  4. int? quantity,
  5. String? offer_id,
  6. int? start_at,
  7. int? expire_by,
  8. List<RazorpaySubscriptionAddonsItem>? addons,
  9. IMap? notes,
  10. ScheduleChangeAt? schedule_change_at,
  11. int? remaining_count,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory RazorpaySubscriptionUpdateRequestBody({
  String? plan_id, // Optional
  int? total_count, // Optional
  @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,
  int? remaining_count, // Specific to update
}) = _RazorpaySubscriptionUpdateRequestBody;