|
| 1 | +part of '../../../messages.dart'; |
| 2 | + |
| 3 | +/// https://docs.stripe.com/api/coupons/list |
| 4 | +@JsonSerializable() |
| 5 | +class ListCouponsRequest { |
| 6 | + /// A filter on the list, based on the object created field. The value can be |
| 7 | + /// a string with an integer Unix timestamp, or it can be a dictionary with a |
| 8 | + /// number of different query options. |
| 9 | + final CreatedRequest? created; |
| 10 | + |
| 11 | + /// A cursor for use in pagination. ending_before is an object ID that defines |
| 12 | + /// your place in the list. For instance, if you make a list request and |
| 13 | + /// receive 100 objects, starting with obj_bar, your subsequent call can |
| 14 | + /// include ending_before=obj_bar in order to fetch the previous page of the |
| 15 | + /// list. |
| 16 | + final String? endingBefore; |
| 17 | + |
| 18 | + /// A limit on the number of objects to be returned. Limit can range between |
| 19 | + /// 1 and 100, and the default is 10. |
| 20 | + final int? limit; |
| 21 | + |
| 22 | + /// A cursor for use in pagination. starting_after is an object ID that |
| 23 | + /// defines your place in the list. For instance, if you make a list request |
| 24 | + /// and receive 100 objects, ending with obj_foo, your subsequent call can |
| 25 | + /// include starting_after=obj_foo in order to fetch the next page of the |
| 26 | + /// list. |
| 27 | + final String? startingAfter; |
| 28 | + |
| 29 | + ListCouponsRequest({ |
| 30 | + this.created, |
| 31 | + this.endingBefore, |
| 32 | + this.limit, |
| 33 | + this.startingAfter, |
| 34 | + }); |
| 35 | + |
| 36 | + factory ListCouponsRequest.fromJson(Map<String, dynamic> json) => |
| 37 | + _$ListCouponsRequestFromJson(json); |
| 38 | + |
| 39 | + Map<String, dynamic> toJson() => _$ListCouponsRequestToJson(this); |
| 40 | +} |
0 commit comments