11part of '../../../messages.dart' ;
22
3- /// https://stripe.com/docs/ api/checkout/sessions/create
3+ /// https://docs. stripe.com/api/subscriptions/list
44@JsonSerializable ()
55class ListSubscriptionsRequest {
66 /// The ID of the customer whose subscriptions will be retrieved.
@@ -16,13 +16,35 @@ class ListSubscriptionsRequest {
1616 /// value of all will return subscriptions of all statuses.
1717 final SubscriptionStatus ? status;
1818
19+ /// A cursor for use in pagination. ending_before is an object ID that defines
20+ /// your place in the list. For instance, if you make a list request and
21+ /// receive 100 objects, starting with obj_bar, your subsequent call can
22+ /// include ending_before=obj_bar in order to fetch the previous page of the
23+ /// list.
24+ final String ? endingBefore;
25+
26+ /// A limit on the number of objects to be returned. Limit can range between
27+ /// 1 and 100, and the default is 10.
28+ final int ? limit;
29+
30+ /// A cursor for use in pagination. starting_after is an object ID that
31+ /// defines your place in the list. For instance, if you make a list request
32+ /// and receive 100 objects, ending with obj_foo, your subsequent call can
33+ /// include starting_after=obj_foo in order to fetch the next page of the
34+ /// list.
35+ final String ? startingAfter;
36+
1937 ListSubscriptionsRequest ({
2038 this .customer,
2139 this .price,
2240 this .status,
41+ this .endingBefore,
42+ this .limit,
43+ this .startingAfter,
2344 });
2445
2546 factory ListSubscriptionsRequest .fromJson (Map <String , dynamic > json) =>
2647 _$ListSubscriptionsRequestFromJson (json);
48+
2749 Map <String , dynamic > toJson () => _$ListSubscriptionsRequestToJson (this );
2850}
0 commit comments