diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 87013bbac5f..009014c2d73 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1529 \ No newline at end of file +v1532 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/checkout/Session.java b/src/main/java/com/stripe/model/checkout/Session.java index dcd3fb4aed0..33f51b42699 100644 --- a/src/main/java/com/stripe/model/checkout/Session.java +++ b/src/main/java/com/stripe/model/checkout/Session.java @@ -553,12 +553,12 @@ public void setSubscriptionObject(Subscription expandableObject) { new ExpandableField(expandableObject.getId(), expandableObject); } - /** Creates a Session object. */ + /** Creates a Checkout Session object. */ public static Session create(Map params) throws StripeException { return create(params, (RequestOptions) null); } - /** Creates a Session object. */ + /** Creates a Checkout Session object. */ public static Session create(Map params, RequestOptions options) throws StripeException { String path = "/v1/checkout/sessions"; @@ -567,12 +567,12 @@ public static Session create(Map params, RequestOptions options) return getGlobalResponseGetter().request(request, Session.class); } - /** Creates a Session object. */ + /** Creates a Checkout Session object. */ public static Session create(SessionCreateParams params) throws StripeException { return create(params, (RequestOptions) null); } - /** Creates a Session object. */ + /** Creates a Checkout Session object. */ public static Session create(SessionCreateParams params, RequestOptions options) throws StripeException { String path = "/v1/checkout/sessions"; @@ -588,40 +588,40 @@ public static Session create(SessionCreateParams params, RequestOptions options) } /** - * A Session can be expired when it is in one of these statuses: {@code open} + * A Checkout Session can be expired when it is in one of these statuses: {@code open} * - *

After it expires, a customer can’t complete a Session and customers loading the Session see - * a message saying the Session is expired. + *

After it expires, a customer can’t complete a Checkout Session and customers loading the + * Checkout Session see a message saying the Checkout Session is expired. */ public Session expire() throws StripeException { return expire((Map) null, (RequestOptions) null); } /** - * A Session can be expired when it is in one of these statuses: {@code open} + * A Checkout Session can be expired when it is in one of these statuses: {@code open} * - *

After it expires, a customer can’t complete a Session and customers loading the Session see - * a message saying the Session is expired. + *

After it expires, a customer can’t complete a Checkout Session and customers loading the + * Checkout Session see a message saying the Checkout Session is expired. */ public Session expire(RequestOptions options) throws StripeException { return expire((Map) null, options); } /** - * A Session can be expired when it is in one of these statuses: {@code open} + * A Checkout Session can be expired when it is in one of these statuses: {@code open} * - *

After it expires, a customer can’t complete a Session and customers loading the Session see - * a message saying the Session is expired. + *

After it expires, a customer can’t complete a Checkout Session and customers loading the + * Checkout Session see a message saying the Checkout Session is expired. */ public Session expire(Map params) throws StripeException { return expire(params, (RequestOptions) null); } /** - * A Session can be expired when it is in one of these statuses: {@code open} + * A Checkout Session can be expired when it is in one of these statuses: {@code open} * - *

After it expires, a customer can’t complete a Session and customers loading the Session see - * a message saying the Session is expired. + *

After it expires, a customer can’t complete a Checkout Session and customers loading the + * Checkout Session see a message saying the Checkout Session is expired. */ public Session expire(Map params, RequestOptions options) throws StripeException { String path = @@ -632,20 +632,20 @@ public Session expire(Map params, RequestOptions options) throws } /** - * A Session can be expired when it is in one of these statuses: {@code open} + * A Checkout Session can be expired when it is in one of these statuses: {@code open} * - *

After it expires, a customer can’t complete a Session and customers loading the Session see - * a message saying the Session is expired. + *

After it expires, a customer can’t complete a Checkout Session and customers loading the + * Checkout Session see a message saying the Checkout Session is expired. */ public Session expire(SessionExpireParams params) throws StripeException { return expire(params, (RequestOptions) null); } /** - * A Session can be expired when it is in one of these statuses: {@code open} + * A Checkout Session can be expired when it is in one of these statuses: {@code open} * - *

After it expires, a customer can’t complete a Session and customers loading the Session see - * a message saying the Session is expired. + *

After it expires, a customer can’t complete a Checkout Session and customers loading the + * Checkout Session see a message saying the Checkout Session is expired. */ public Session expire(SessionExpireParams params, RequestOptions options) throws StripeException { String path = @@ -757,17 +757,17 @@ public LineItemCollection listLineItems(SessionListLineItemsParams params, Reque return getResponseGetter().request(request, LineItemCollection.class); } - /** Retrieves a Session object. */ + /** Retrieves a Checkout Session object. */ public static Session retrieve(String session) throws StripeException { return retrieve(session, (Map) null, (RequestOptions) null); } - /** Retrieves a Session object. */ + /** Retrieves a Checkout Session object. */ public static Session retrieve(String session, RequestOptions options) throws StripeException { return retrieve(session, (Map) null, options); } - /** Retrieves a Session object. */ + /** Retrieves a Checkout Session object. */ public static Session retrieve(String session, Map params, RequestOptions options) throws StripeException { String path = String.format("/v1/checkout/sessions/%s", ApiResource.urlEncodeId(session)); @@ -776,7 +776,7 @@ public static Session retrieve(String session, Map params, Reque return getGlobalResponseGetter().request(request, Session.class); } - /** Retrieves a Session object. */ + /** Retrieves a Checkout Session object. */ public static Session retrieve( String session, SessionRetrieveParams params, RequestOptions options) throws StripeException { String path = String.format("/v1/checkout/sessions/%s", ApiResource.urlEncodeId(session)); @@ -791,13 +791,13 @@ public static Session retrieve( return getGlobalResponseGetter().request(request, Session.class); } - /** Updates a Session object. */ + /** Updates a Checkout Session object. */ @Override public Session update(Map params) throws StripeException { return update(params, (RequestOptions) null); } - /** Updates a Session object. */ + /** Updates a Checkout Session object. */ @Override public Session update(Map params, RequestOptions options) throws StripeException { String path = String.format("/v1/checkout/sessions/%s", ApiResource.urlEncodeId(this.getId())); @@ -806,12 +806,12 @@ public Session update(Map params, RequestOptions options) throws return getResponseGetter().request(request, Session.class); } - /** Updates a Session object. */ + /** Updates a Checkout Session object. */ public Session update(SessionUpdateParams params) throws StripeException { return update(params, (RequestOptions) null); } - /** Updates a Session object. */ + /** Updates a Checkout Session object. */ public Session update(SessionUpdateParams params, RequestOptions options) throws StripeException { String path = String.format("/v1/checkout/sessions/%s", ApiResource.urlEncodeId(this.getId())); ApiResource.checkNullTypedParams(path, params); diff --git a/src/main/java/com/stripe/service/checkout/SessionService.java b/src/main/java/com/stripe/service/checkout/SessionService.java index 9cb491709da..7f2c6bdba03 100644 --- a/src/main/java/com/stripe/service/checkout/SessionService.java +++ b/src/main/java/com/stripe/service/checkout/SessionService.java @@ -48,19 +48,19 @@ public StripeCollection list(SessionListParams params, RequestOptions o options); return this.request(request, new TypeToken>() {}.getType()); } - /** Creates a Session object. */ + /** Creates a Checkout Session object. */ public Session create(SessionCreateParams params) throws StripeException { return create(params, (RequestOptions) null); } - /** Creates a Session object. */ + /** Creates a Checkout Session object. */ public Session create(RequestOptions options) throws StripeException { return create((SessionCreateParams) null, options); } - /** Creates a Session object. */ + /** Creates a Checkout Session object. */ public Session create() throws StripeException { return create((SessionCreateParams) null, (RequestOptions) null); } - /** Creates a Session object. */ + /** Creates a Checkout Session object. */ public Session create(SessionCreateParams params, RequestOptions options) throws StripeException { String path = "/v1/checkout/sessions"; ApiRequest request = @@ -72,19 +72,19 @@ public Session create(SessionCreateParams params, RequestOptions options) throws options); return this.request(request, Session.class); } - /** Retrieves a Session object. */ + /** Retrieves a Checkout Session object. */ public Session retrieve(String session, SessionRetrieveParams params) throws StripeException { return retrieve(session, params, (RequestOptions) null); } - /** Retrieves a Session object. */ + /** Retrieves a Checkout Session object. */ public Session retrieve(String session, RequestOptions options) throws StripeException { return retrieve(session, (SessionRetrieveParams) null, options); } - /** Retrieves a Session object. */ + /** Retrieves a Checkout Session object. */ public Session retrieve(String session) throws StripeException { return retrieve(session, (SessionRetrieveParams) null, (RequestOptions) null); } - /** Retrieves a Session object. */ + /** Retrieves a Checkout Session object. */ public Session retrieve(String session, SessionRetrieveParams params, RequestOptions options) throws StripeException { String path = String.format("/v1/checkout/sessions/%s", ApiResource.urlEncodeId(session)); @@ -97,19 +97,19 @@ public Session retrieve(String session, SessionRetrieveParams params, RequestOpt options); return this.request(request, Session.class); } - /** Updates a Session object. */ + /** Updates a Checkout Session object. */ public Session update(String session, SessionUpdateParams params) throws StripeException { return update(session, params, (RequestOptions) null); } - /** Updates a Session object. */ + /** Updates a Checkout Session object. */ public Session update(String session, RequestOptions options) throws StripeException { return update(session, (SessionUpdateParams) null, options); } - /** Updates a Session object. */ + /** Updates a Checkout Session object. */ public Session update(String session) throws StripeException { return update(session, (SessionUpdateParams) null, (RequestOptions) null); } - /** Updates a Session object. */ + /** Updates a Checkout Session object. */ public Session update(String session, SessionUpdateParams params, RequestOptions options) throws StripeException { String path = String.format("/v1/checkout/sessions/%s", ApiResource.urlEncodeId(session)); @@ -123,37 +123,37 @@ public Session update(String session, SessionUpdateParams params, RequestOptions return this.request(request, Session.class); } /** - * A Session can be expired when it is in one of these statuses: {@code open} + * A Checkout Session can be expired when it is in one of these statuses: {@code open} * - *

After it expires, a customer can’t complete a Session and customers loading the Session see - * a message saying the Session is expired. + *

After it expires, a customer can’t complete a Checkout Session and customers loading the + * Checkout Session see a message saying the Checkout Session is expired. */ public Session expire(String session, SessionExpireParams params) throws StripeException { return expire(session, params, (RequestOptions) null); } /** - * A Session can be expired when it is in one of these statuses: {@code open} + * A Checkout Session can be expired when it is in one of these statuses: {@code open} * - *

After it expires, a customer can’t complete a Session and customers loading the Session see - * a message saying the Session is expired. + *

After it expires, a customer can’t complete a Checkout Session and customers loading the + * Checkout Session see a message saying the Checkout Session is expired. */ public Session expire(String session, RequestOptions options) throws StripeException { return expire(session, (SessionExpireParams) null, options); } /** - * A Session can be expired when it is in one of these statuses: {@code open} + * A Checkout Session can be expired when it is in one of these statuses: {@code open} * - *

After it expires, a customer can’t complete a Session and customers loading the Session see - * a message saying the Session is expired. + *

After it expires, a customer can’t complete a Checkout Session and customers loading the + * Checkout Session see a message saying the Checkout Session is expired. */ public Session expire(String session) throws StripeException { return expire(session, (SessionExpireParams) null, (RequestOptions) null); } /** - * A Session can be expired when it is in one of these statuses: {@code open} + * A Checkout Session can be expired when it is in one of these statuses: {@code open} * - *

After it expires, a customer can’t complete a Session and customers loading the Session see - * a message saying the Session is expired. + *

After it expires, a customer can’t complete a Checkout Session and customers loading the + * Checkout Session see a message saying the Checkout Session is expired. */ public Session expire(String session, SessionExpireParams params, RequestOptions options) throws StripeException {