diff --git a/src/resources/customer_ext.rs b/src/resources/customer_ext.rs index 5e1b03215..efbc5f2d5 100644 --- a/src/resources/customer_ext.rs +++ b/src/resources/customer_ext.rs @@ -9,39 +9,40 @@ use crate::resources::{ #[derive(Clone, Debug, Serialize, Eq, PartialEq)] pub struct CustomerPaymentMethodRetrieval<'a> { - ///A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. + /// A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. ///For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, ///your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. #[serde(skip_serializing_if = "Option::is_none")] pub ending_before: Option, - ///Specifies which fields in the response should be expanded. + /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Expand::is_empty")] pub expand: &'a [&'a str], - ///A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. + /// A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. #[serde(skip_serializing_if = "Option::is_none")] pub limit: Option, - ///A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. + /// A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. ///For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, ///your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list. #[serde(skip_serializing_if = "Option::is_none")] pub starting_after: Option, - ///A required filter on the list, based on the object `type` field. + /// An optional filter on the list, based on the object type field. Without the filter, the list includes all current and future payment method types. If your integration expects only one type of payment method in the response, make sure to provide a type value in the request. #[serde(rename = "type")] - pub type_: CustomerPaymentMethodRetrievalType, + #[serde(skip_serializing_if = "Option::is_none")] + pub type_: Option, } impl<'a> CustomerPaymentMethodRetrieval<'a> { - pub fn new(the_type: CustomerPaymentMethodRetrievalType) -> Self { + pub fn new() -> Self { CustomerPaymentMethodRetrieval { ending_before: None, expand: &[], limit: None, starting_after: None, - type_: the_type, + type_: None, } } }