|
15 | 15 | import com.stripe.param.SubscriptionCreateParams; |
16 | 16 | import com.stripe.param.SubscriptionListParams; |
17 | 17 | import com.stripe.param.SubscriptionMigrateParams; |
18 | | -import com.stripe.param.SubscriptionPauseParams; |
19 | 18 | import com.stripe.param.SubscriptionResumeParams; |
20 | 19 | import com.stripe.param.SubscriptionRetrieveParams; |
21 | 20 | import com.stripe.param.SubscriptionSearchParams; |
@@ -968,58 +967,6 @@ public Subscription migrate(SubscriptionMigrateParams params, RequestOptions opt |
968 | 967 | return getResponseGetter().request(request, Subscription.class); |
969 | 968 | } |
970 | 969 |
|
971 | | - /** |
972 | | - * Pauses a subscription by transitioning it to the paused status. A paused subscription does not |
973 | | - * generate invoices and will not advance to new billing periods. The subscription can be resumed |
974 | | - * later using the resume endpoint. Cannot pause subscriptions with attached schedules. |
975 | | - */ |
976 | | - public Subscription pause(Map<String, Object> params) throws StripeException { |
977 | | - return pause(params, (RequestOptions) null); |
978 | | - } |
979 | | - |
980 | | - /** |
981 | | - * Pauses a subscription by transitioning it to the paused status. A paused subscription does not |
982 | | - * generate invoices and will not advance to new billing periods. The subscription can be resumed |
983 | | - * later using the resume endpoint. Cannot pause subscriptions with attached schedules. |
984 | | - */ |
985 | | - public Subscription pause(Map<String, Object> params, RequestOptions options) |
986 | | - throws StripeException { |
987 | | - String path = |
988 | | - String.format("/v1/subscriptions/%s/pause", ApiResource.urlEncodeId(this.getId())); |
989 | | - ApiRequest request = |
990 | | - new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options); |
991 | | - return getResponseGetter().request(request, Subscription.class); |
992 | | - } |
993 | | - |
994 | | - /** |
995 | | - * Pauses a subscription by transitioning it to the paused status. A paused subscription does not |
996 | | - * generate invoices and will not advance to new billing periods. The subscription can be resumed |
997 | | - * later using the resume endpoint. Cannot pause subscriptions with attached schedules. |
998 | | - */ |
999 | | - public Subscription pause(SubscriptionPauseParams params) throws StripeException { |
1000 | | - return pause(params, (RequestOptions) null); |
1001 | | - } |
1002 | | - |
1003 | | - /** |
1004 | | - * Pauses a subscription by transitioning it to the paused status. A paused subscription does not |
1005 | | - * generate invoices and will not advance to new billing periods. The subscription can be resumed |
1006 | | - * later using the resume endpoint. Cannot pause subscriptions with attached schedules. |
1007 | | - */ |
1008 | | - public Subscription pause(SubscriptionPauseParams params, RequestOptions options) |
1009 | | - throws StripeException { |
1010 | | - String path = |
1011 | | - String.format("/v1/subscriptions/%s/pause", ApiResource.urlEncodeId(this.getId())); |
1012 | | - ApiResource.checkNullTypedParams(path, params); |
1013 | | - ApiRequest request = |
1014 | | - new ApiRequest( |
1015 | | - BaseAddress.API, |
1016 | | - ApiResource.RequestMethod.POST, |
1017 | | - path, |
1018 | | - ApiRequestParams.paramsToMap(params), |
1019 | | - options); |
1020 | | - return getResponseGetter().request(request, Subscription.class); |
1021 | | - } |
1022 | | - |
1023 | 970 | /** |
1024 | 971 | * Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor |
1025 | 972 | * and creating prorations. If a resumption invoice is generated, it must be paid or marked |
|
0 commit comments