Skip to content

Commit

Permalink
Update generated code for v1520
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Feb 28, 2025
1 parent ac8b868 commit 999ae36
Show file tree
Hide file tree
Showing 8 changed files with 160 additions and 61 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1518
v1520
60 changes: 30 additions & 30 deletions src/main/java/com/stripe/model/PaymentMethodDomain.java
Original file line number Diff line number Diff line change
Expand Up @@ -236,13 +236,13 @@ public PaymentMethodDomain update(PaymentMethodDomainUpdateParams params, Reques
}

/**
* Some payment methods such as Apple Pay require additional steps to verify a domain. If the
* requirements weren’t satisfied when the domain was created, the payment method will be inactive
* on the domain. The payment method doesn’t appear in Elements for this domain until it is
* active.
* Some payment methods might require additional steps to register a domain. If the requirements
* weren’t satisfied when the domain was created, the payment method will be inactive on the
* domain. The payment method doesn’t appear in Elements or Embedded Checkout for this domain
* until it is active.
*
* <p>To activate a payment method on an existing payment method domain, complete the required
* validation steps specific to the payment method, and then validate the payment method domain
* registration steps specific to the payment method, and then validate the payment method domain
* with this endpoint.
*
* <p>Related guides: <a
Expand All @@ -254,13 +254,13 @@ public PaymentMethodDomain validate() throws StripeException {
}

/**
* Some payment methods such as Apple Pay require additional steps to verify a domain. If the
* requirements weren’t satisfied when the domain was created, the payment method will be inactive
* on the domain. The payment method doesn’t appear in Elements for this domain until it is
* active.
* Some payment methods might require additional steps to register a domain. If the requirements
* weren’t satisfied when the domain was created, the payment method will be inactive on the
* domain. The payment method doesn’t appear in Elements or Embedded Checkout for this domain
* until it is active.
*
* <p>To activate a payment method on an existing payment method domain, complete the required
* validation steps specific to the payment method, and then validate the payment method domain
* registration steps specific to the payment method, and then validate the payment method domain
* with this endpoint.
*
* <p>Related guides: <a
Expand All @@ -272,13 +272,13 @@ public PaymentMethodDomain validate(RequestOptions options) throws StripeExcepti
}

/**
* Some payment methods such as Apple Pay require additional steps to verify a domain. If the
* requirements weren’t satisfied when the domain was created, the payment method will be inactive
* on the domain. The payment method doesn’t appear in Elements for this domain until it is
* active.
* Some payment methods might require additional steps to register a domain. If the requirements
* weren’t satisfied when the domain was created, the payment method will be inactive on the
* domain. The payment method doesn’t appear in Elements or Embedded Checkout for this domain
* until it is active.
*
* <p>To activate a payment method on an existing payment method domain, complete the required
* validation steps specific to the payment method, and then validate the payment method domain
* registration steps specific to the payment method, and then validate the payment method domain
* with this endpoint.
*
* <p>Related guides: <a
Expand All @@ -290,13 +290,13 @@ public PaymentMethodDomain validate(Map<String, Object> params) throws StripeExc
}

/**
* Some payment methods such as Apple Pay require additional steps to verify a domain. If the
* requirements weren’t satisfied when the domain was created, the payment method will be inactive
* on the domain. The payment method doesn’t appear in Elements for this domain until it is
* active.
* Some payment methods might require additional steps to register a domain. If the requirements
* weren’t satisfied when the domain was created, the payment method will be inactive on the
* domain. The payment method doesn’t appear in Elements or Embedded Checkout for this domain
* until it is active.
*
* <p>To activate a payment method on an existing payment method domain, complete the required
* validation steps specific to the payment method, and then validate the payment method domain
* registration steps specific to the payment method, and then validate the payment method domain
* with this endpoint.
*
* <p>Related guides: <a
Expand All @@ -314,13 +314,13 @@ public PaymentMethodDomain validate(Map<String, Object> params, RequestOptions o
}

/**
* Some payment methods such as Apple Pay require additional steps to verify a domain. If the
* requirements weren’t satisfied when the domain was created, the payment method will be inactive
* on the domain. The payment method doesn’t appear in Elements for this domain until it is
* active.
* Some payment methods might require additional steps to register a domain. If the requirements
* weren’t satisfied when the domain was created, the payment method will be inactive on the
* domain. The payment method doesn’t appear in Elements or Embedded Checkout for this domain
* until it is active.
*
* <p>To activate a payment method on an existing payment method domain, complete the required
* validation steps specific to the payment method, and then validate the payment method domain
* registration steps specific to the payment method, and then validate the payment method domain
* with this endpoint.
*
* <p>Related guides: <a
Expand All @@ -333,13 +333,13 @@ public PaymentMethodDomain validate(PaymentMethodDomainValidateParams params)
}

/**
* Some payment methods such as Apple Pay require additional steps to verify a domain. If the
* requirements weren’t satisfied when the domain was created, the payment method will be inactive
* on the domain. The payment method doesn’t appear in Elements for this domain until it is
* active.
* Some payment methods might require additional steps to register a domain. If the requirements
* weren’t satisfied when the domain was created, the payment method will be inactive on the
* domain. The payment method doesn’t appear in Elements or Embedded Checkout for this domain
* until it is active.
*
* <p>To activate a payment method on an existing payment method domain, complete the required
* validation steps specific to the payment method, and then validate the payment method domain
* registration steps specific to the payment method, and then validate the payment method domain
* with this endpoint.
*
* <p>Related guides: <a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class PaymentMethodDomainCreateParams extends ApiRequestParams {

/**
* Whether this payment method domain is enabled. If the domain is not enabled, payment methods
* that require a payment method domain will not appear in Elements.
* that require a payment method domain will not appear in Elements or Embedded Checkout.
*/
@SerializedName("enabled")
Boolean enabled;
Expand Down Expand Up @@ -74,7 +74,7 @@ public Builder setDomainName(String domainName) {

/**
* Whether this payment method domain is enabled. If the domain is not enabled, payment methods
* that require a payment method domain will not appear in Elements.
* that require a payment method domain will not appear in Elements or Embedded Checkout.
*/
public Builder setEnabled(Boolean enabled) {
this.enabled = enabled;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class PaymentMethodDomainListParams extends ApiRequestParams {

/**
* Whether this payment method domain is enabled. If the domain is not enabled, payment methods
* will not appear in Elements
* will not appear in Elements or Embedded Checkout
*/
@SerializedName("enabled")
Boolean enabled;
Expand Down Expand Up @@ -116,7 +116,7 @@ public Builder setDomainName(String domainName) {

/**
* Whether this payment method domain is enabled. If the domain is not enabled, payment methods
* will not appear in Elements
* will not appear in Elements or Embedded Checkout
*/
public Builder setEnabled(Boolean enabled) {
this.enabled = enabled;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
public class PaymentMethodDomainUpdateParams extends ApiRequestParams {
/**
* Whether this payment method domain is enabled. If the domain is not enabled, payment methods
* that require a payment method domain will not appear in Elements.
* that require a payment method domain will not appear in Elements or Embedded Checkout.
*/
@SerializedName("enabled")
Boolean enabled;
Expand Down Expand Up @@ -56,7 +56,7 @@ public PaymentMethodDomainUpdateParams build() {

/**
* Whether this payment method domain is enabled. If the domain is not enabled, payment methods
* that require a payment method domain will not appear in Elements.
* that require a payment method domain will not appear in Elements or Embedded Checkout.
*/
public Builder setEnabled(Boolean enabled) {
this.enabled = enabled;
Expand Down
99 changes: 95 additions & 4 deletions src/main/java/com/stripe/param/v2/core/EventListParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,37 @@

import com.google.gson.annotations.SerializedName;
import com.stripe.net.ApiRequestParams;
import java.time.Instant;
import java.util.HashMap;
import java.util.Map;
import lombok.Getter;

@Getter
public class EventListParams extends ApiRequestParams {
/** Filter for events created after the specified timestamp. */
@SerializedName("created_gt")
Instant createdGt;

/** Filter for events created at or after the specified timestamp. */
@SerializedName("created_gte")
Instant createdGte;

/** Filter for events created before the specified timestamp. */
@SerializedName("created_lt")
Instant createdLt;

/** Filter for events created at or before the specified timestamp. */
@SerializedName("created_lte")
Instant createdLte;

/**
* Filter events based on whether they were successfully delivered to all subscribed event
* destinations. If false, events which are still pending or have failed all delivery attempts to
* a event destination will be returned.
*/
@SerializedName("delivery_success")
Boolean deliverySuccess;

/**
* Map of extra parameters for custom features not available in this client library. The content
* in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
Expand All @@ -22,7 +47,7 @@ public class EventListParams extends ApiRequestParams {
@SerializedName("limit")
Integer limit;

/** <strong>Required.</strong> Primary object ID used to retrieve related events. */
/** Primary object ID used to retrieve related events. */
@SerializedName("object_id")
String objectId;

Expand All @@ -31,7 +56,20 @@ public class EventListParams extends ApiRequestParams {
String page;

private EventListParams(
Map<String, Object> extraParams, Integer limit, String objectId, String page) {
Instant createdGt,
Instant createdGte,
Instant createdLt,
Instant createdLte,
Boolean deliverySuccess,
Map<String, Object> extraParams,
Integer limit,
String objectId,
String page) {
this.createdGt = createdGt;
this.createdGte = createdGte;
this.createdLt = createdLt;
this.createdLte = createdLte;
this.deliverySuccess = deliverySuccess;
this.extraParams = extraParams;
this.limit = limit;
this.objectId = objectId;
Expand All @@ -43,6 +81,16 @@ public static Builder builder() {
}

public static class Builder {
private Instant createdGt;

private Instant createdGte;

private Instant createdLt;

private Instant createdLte;

private Boolean deliverySuccess;

private Map<String, Object> extraParams;

private Integer limit;
Expand All @@ -53,7 +101,50 @@ public static class Builder {

/** Finalize and obtain parameter instance from this builder. */
public EventListParams build() {
return new EventListParams(this.extraParams, this.limit, this.objectId, this.page);
return new EventListParams(
this.createdGt,
this.createdGte,
this.createdLt,
this.createdLte,
this.deliverySuccess,
this.extraParams,
this.limit,
this.objectId,
this.page);
}

/** Filter for events created after the specified timestamp. */
public Builder setCreatedGt(Instant createdGt) {
this.createdGt = createdGt;
return this;
}

/** Filter for events created at or after the specified timestamp. */
public Builder setCreatedGte(Instant createdGte) {
this.createdGte = createdGte;
return this;
}

/** Filter for events created before the specified timestamp. */
public Builder setCreatedLt(Instant createdLt) {
this.createdLt = createdLt;
return this;
}

/** Filter for events created at or before the specified timestamp. */
public Builder setCreatedLte(Instant createdLte) {
this.createdLte = createdLte;
return this;
}

/**
* Filter events based on whether they were successfully delivered to all subscribed event
* destinations. If false, events which are still pending or have failed all delivery attempts
* to a event destination will be returned.
*/
public Builder setDeliverySuccess(Boolean deliverySuccess) {
this.deliverySuccess = deliverySuccess;
return this;
}

/**
Expand Down Expand Up @@ -88,7 +179,7 @@ public Builder setLimit(Integer limit) {
return this;
}

/** <strong>Required.</strong> Primary object ID used to retrieve related events. */
/** Primary object ID used to retrieve related events. */
public Builder setObjectId(String objectId) {
this.objectId = objectId;
return this;
Expand Down
40 changes: 20 additions & 20 deletions src/main/java/com/stripe/service/PaymentMethodDomainService.java
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,13 @@ public PaymentMethodDomain update(
return this.request(request, PaymentMethodDomain.class);
}
/**
* Some payment methods such as Apple Pay require additional steps to verify a domain. If the
* requirements weren’t satisfied when the domain was created, the payment method will be inactive
* on the domain. The payment method doesn’t appear in Elements for this domain until it is
* active.
* Some payment methods might require additional steps to register a domain. If the requirements
* weren’t satisfied when the domain was created, the payment method will be inactive on the
* domain. The payment method doesn’t appear in Elements or Embedded Checkout for this domain
* until it is active.
*
* <p>To activate a payment method on an existing payment method domain, complete the required
* validation steps specific to the payment method, and then validate the payment method domain
* registration steps specific to the payment method, and then validate the payment method domain
* with this endpoint.
*
* <p>Related guides: <a
Expand All @@ -148,13 +148,13 @@ public PaymentMethodDomain validate(
return validate(paymentMethodDomain, params, (RequestOptions) null);
}
/**
* Some payment methods such as Apple Pay require additional steps to verify a domain. If the
* requirements weren’t satisfied when the domain was created, the payment method will be inactive
* on the domain. The payment method doesn’t appear in Elements for this domain until it is
* active.
* Some payment methods might require additional steps to register a domain. If the requirements
* weren’t satisfied when the domain was created, the payment method will be inactive on the
* domain. The payment method doesn’t appear in Elements or Embedded Checkout for this domain
* until it is active.
*
* <p>To activate a payment method on an existing payment method domain, complete the required
* validation steps specific to the payment method, and then validate the payment method domain
* registration steps specific to the payment method, and then validate the payment method domain
* with this endpoint.
*
* <p>Related guides: <a
Expand All @@ -166,13 +166,13 @@ public PaymentMethodDomain validate(String paymentMethodDomain, RequestOptions o
return validate(paymentMethodDomain, (PaymentMethodDomainValidateParams) null, options);
}
/**
* Some payment methods such as Apple Pay require additional steps to verify a domain. If the
* requirements weren’t satisfied when the domain was created, the payment method will be inactive
* on the domain. The payment method doesn’t appear in Elements for this domain until it is
* active.
* Some payment methods might require additional steps to register a domain. If the requirements
* weren’t satisfied when the domain was created, the payment method will be inactive on the
* domain. The payment method doesn’t appear in Elements or Embedded Checkout for this domain
* until it is active.
*
* <p>To activate a payment method on an existing payment method domain, complete the required
* validation steps specific to the payment method, and then validate the payment method domain
* registration steps specific to the payment method, and then validate the payment method domain
* with this endpoint.
*
* <p>Related guides: <a
Expand All @@ -184,13 +184,13 @@ public PaymentMethodDomain validate(String paymentMethodDomain) throws StripeExc
paymentMethodDomain, (PaymentMethodDomainValidateParams) null, (RequestOptions) null);
}
/**
* Some payment methods such as Apple Pay require additional steps to verify a domain. If the
* requirements weren’t satisfied when the domain was created, the payment method will be inactive
* on the domain. The payment method doesn’t appear in Elements for this domain until it is
* active.
* Some payment methods might require additional steps to register a domain. If the requirements
* weren’t satisfied when the domain was created, the payment method will be inactive on the
* domain. The payment method doesn’t appear in Elements or Embedded Checkout for this domain
* until it is active.
*
* <p>To activate a payment method on an existing payment method domain, complete the required
* validation steps specific to the payment method, and then validate the payment method domain
* registration steps specific to the payment method, and then validate the payment method domain
* with this endpoint.
*
* <p>Related guides: <a
Expand Down
Loading

0 comments on commit 999ae36

Please sign in to comment.