Skip to content

Commit

Permalink
Update generated code for v1532
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Mar 7, 2025
1 parent da70c0d commit b810e01
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 55 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1529
v1532
60 changes: 30 additions & 30 deletions src/main/java/com/stripe/model/checkout/Session.java
Original file line number Diff line number Diff line change
Expand Up @@ -553,12 +553,12 @@ public void setSubscriptionObject(Subscription expandableObject) {
new ExpandableField<Subscription>(expandableObject.getId(), expandableObject);
}

/** Creates a Session object. */
/** Creates a Checkout Session object. */
public static Session create(Map<String, Object> params) throws StripeException {
return create(params, (RequestOptions) null);
}

/** Creates a Session object. */
/** Creates a Checkout Session object. */
public static Session create(Map<String, Object> params, RequestOptions options)
throws StripeException {
String path = "/v1/checkout/sessions";
Expand All @@ -567,12 +567,12 @@ public static Session create(Map<String, Object> 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";
Expand All @@ -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}
*
* <p>After it expires, a customer can’t complete a Session and customers loading the Session see
* a message saying the Session is expired.
* <p>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<String, Object>) 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}
*
* <p>After it expires, a customer can’t complete a Session and customers loading the Session see
* a message saying the Session is expired.
* <p>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<String, Object>) 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}
*
* <p>After it expires, a customer can’t complete a Session and customers loading the Session see
* a message saying the Session is expired.
* <p>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<String, Object> 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}
*
* <p>After it expires, a customer can’t complete a Session and customers loading the Session see
* a message saying the Session is expired.
* <p>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<String, Object> params, RequestOptions options) throws StripeException {
String path =
Expand All @@ -632,20 +632,20 @@ public Session expire(Map<String, Object> 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}
*
* <p>After it expires, a customer can’t complete a Session and customers loading the Session see
* a message saying the Session is expired.
* <p>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}
*
* <p>After it expires, a customer can’t complete a Session and customers loading the Session see
* a message saying the Session is expired.
* <p>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 =
Expand Down Expand Up @@ -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<String, Object>) 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<String, Object>) null, options);
}

/** Retrieves a Session object. */
/** Retrieves a Checkout Session object. */
public static Session retrieve(String session, Map<String, Object> params, RequestOptions options)
throws StripeException {
String path = String.format("/v1/checkout/sessions/%s", ApiResource.urlEncodeId(session));
Expand All @@ -776,7 +776,7 @@ public static Session retrieve(String session, Map<String, Object> 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));
Expand All @@ -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<String, Object> params) throws StripeException {
return update(params, (RequestOptions) null);
}

/** Updates a Session object. */
/** Updates a Checkout Session object. */
@Override
public Session update(Map<String, Object> params, RequestOptions options) throws StripeException {
String path = String.format("/v1/checkout/sessions/%s", ApiResource.urlEncodeId(this.getId()));
Expand All @@ -806,12 +806,12 @@ public Session update(Map<String, Object> 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);
Expand Down
48 changes: 24 additions & 24 deletions src/main/java/com/stripe/service/checkout/SessionService.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,19 @@ public StripeCollection<Session> list(SessionListParams params, RequestOptions o
options);
return this.request(request, new TypeToken<StripeCollection<Session>>() {}.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 =
Expand All @@ -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));
Expand All @@ -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));
Expand All @@ -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}
*
* <p>After it expires, a customer can’t complete a Session and customers loading the Session see
* a message saying the Session is expired.
* <p>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}
*
* <p>After it expires, a customer can’t complete a Session and customers loading the Session see
* a message saying the Session is expired.
* <p>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}
*
* <p>After it expires, a customer can’t complete a Session and customers loading the Session see
* a message saying the Session is expired.
* <p>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}
*
* <p>After it expires, a customer can’t complete a Session and customers loading the Session see
* a message saying the Session is expired.
* <p>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 {
Expand Down

0 comments on commit b810e01

Please sign in to comment.