@@ -133,41 +133,37 @@ public static Configuration create(ConfigurationCreateParams params, RequestOpti
133
133
}
134
134
135
135
/** Updates a configuration that describes the functionality of the customer portal. */
136
- public static Configuration update (String configuration , Map <String , Object > params )
137
- throws StripeException {
138
- return update (configuration , params , (RequestOptions ) null );
136
+ public Configuration update (Map <String , Object > params ) throws StripeException {
137
+ return update (params , (RequestOptions ) null );
139
138
}
140
139
141
140
/** Updates a configuration that describes the functionality of the customer portal. */
142
- public static Configuration update (
143
- String configuration , Map <String , Object > params , RequestOptions options )
141
+ public Configuration update (Map <String , Object > params , RequestOptions options )
144
142
throws StripeException {
145
143
String url =
146
144
String .format (
147
145
"%s%s" ,
148
146
Stripe .getApiBase (),
149
147
String .format (
150
- "/v1/billing_portal/configurations/%s" , ApiResource .urlEncodeId (configuration )));
148
+ "/v1/billing_portal/configurations/%s" , ApiResource .urlEncodeId (this . getId () )));
151
149
return ApiResource .request (
152
150
ApiResource .RequestMethod .POST , url , params , Configuration .class , options );
153
151
}
154
152
155
153
/** Updates a configuration that describes the functionality of the customer portal. */
156
- public static Configuration update (String configuration , ConfigurationUpdateParams params )
157
- throws StripeException {
158
- return update (configuration , params , (RequestOptions ) null );
154
+ public Configuration update (ConfigurationUpdateParams params ) throws StripeException {
155
+ return update (params , (RequestOptions ) null );
159
156
}
160
157
161
158
/** Updates a configuration that describes the functionality of the customer portal. */
162
- public static Configuration update (
163
- String configuration , ConfigurationUpdateParams params , RequestOptions options )
159
+ public Configuration update (ConfigurationUpdateParams params , RequestOptions options )
164
160
throws StripeException {
165
161
String url =
166
162
String .format (
167
163
"%s%s" ,
168
164
Stripe .getApiBase (),
169
165
String .format (
170
- "/v1/billing_portal/configurations/%s" , ApiResource .urlEncodeId (configuration )));
166
+ "/v1/billing_portal/configurations/%s" , ApiResource .urlEncodeId (this . getId () )));
171
167
return ApiResource .request (
172
168
ApiResource .RequestMethod .POST , url , params , Configuration .class , options );
173
169
}
@@ -338,6 +334,10 @@ public static class SubscriptionUpdate extends StripeObject {
338
334
@ Setter
339
335
@ EqualsAndHashCode (callSuper = false )
340
336
public static class SubscriptionUpdateProduct extends StripeObject {
337
+ /** The list of price IDs which, when subscribed to, a subscription can be updated. */
338
+ @ SerializedName ("prices" )
339
+ List <String > prices ;
340
+
341
341
/** The product ID. */
342
342
@ SerializedName ("product" )
343
343
String product ;
0 commit comments