Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 16 additions & 8 deletions src/main/java/com/meteroid/api/Customers.java
Original file line number Diff line number Diff line change
Expand Up @@ -417,8 +417,10 @@ MeteroidHttpClient.Exchange<EffectiveEntitlementListResponse> exchangeListEntitl
/**
* Generate a portal token for a customer
*
* <p>Generates a JWT token that grants access to the customer portal. The token can be used to
* access invoices, payment methods, and other portal features.
* <p>Generates an opaque token that grants access to the customer portal. A call may return the
* token of an earlier call with the same scopes, with up to 10% less lifetime: rely on <code>
* expires_at</code>. The token can be used to access invoices, payment methods, and other
* portal features.
*
* @param idOrAlias the {@code id_or_alias} path parameter
* @param customerPortalTokenRequest the request body
Expand All @@ -432,8 +434,10 @@ public CustomerPortalTokenResponse createPortalToken(
/**
* Generate a portal token for a customer
*
* <p>Generates a JWT token that grants access to the customer portal. The token can be used to
* access invoices, payment methods, and other portal features.
* <p>Generates an opaque token that grants access to the customer portal. A call may return the
* token of an earlier call with the same scopes, with up to 10% less lifetime: rely on <code>
* expires_at</code>. The token can be used to access invoices, payment methods, and other
* portal features.
*
* @param idOrAlias the {@code id_or_alias} path parameter
* @param customerPortalTokenRequest the request body
Expand Down Expand Up @@ -722,8 +726,10 @@ public ApiResponse<EffectiveEntitlementListResponse> listEntitlements(
/**
* Generate a portal token for a customer
*
* <p>Generates a JWT token that grants access to the customer portal. The token can be used
* to access invoices, payment methods, and other portal features.
* <p>Generates an opaque token that grants access to the customer portal. A call may return
* the token of an earlier call with the same scopes, with up to 10% less lifetime: rely on
* <code>expires_at</code>. The token can be used to access invoices, payment methods, and
* other portal features.
*
* @param idOrAlias the {@code id_or_alias} path parameter
* @param customerPortalTokenRequest the request body
Expand All @@ -738,8 +744,10 @@ public ApiResponse<CustomerPortalTokenResponse> createPortalToken(
/**
* Generate a portal token for a customer
*
* <p>Generates a JWT token that grants access to the customer portal. The token can be used
* to access invoices, payment methods, and other portal features.
* <p>Generates an opaque token that grants access to the customer portal. A call may return
* the token of an earlier call with the same scopes, with up to 10% less lifetime: rely on
* <code>expires_at</code>. The token can be used to access invoices, payment methods, and
* other portal features.
*
* @param idOrAlias the {@code id_or_alias} path parameter
* @param customerPortalTokenRequest the request body
Expand Down
24 changes: 16 additions & 8 deletions src/main/java/com/meteroid/api/CustomersAsync.java
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,10 @@ public CompletableFuture<EffectiveEntitlementListResponse> listEntitlements(
/**
* Generate a portal token for a customer
*
* <p>Generates a JWT token that grants access to the customer portal. The token can be used to
* access invoices, payment methods, and other portal features.
* <p>Generates an opaque token that grants access to the customer portal. A call may return the
* token of an earlier call with the same scopes, with up to 10% less lifetime: rely on <code>
* expires_at</code>. The token can be used to access invoices, payment methods, and other
* portal features.
*
* @param idOrAlias the {@code id_or_alias} path parameter
* @param customerPortalTokenRequest the request body
Expand All @@ -275,8 +277,10 @@ public CompletableFuture<CustomerPortalTokenResponse> createPortalToken(
/**
* Generate a portal token for a customer
*
* <p>Generates a JWT token that grants access to the customer portal. The token can be used to
* access invoices, payment methods, and other portal features.
* <p>Generates an opaque token that grants access to the customer portal. A call may return the
* token of an earlier call with the same scopes, with up to 10% less lifetime: rely on <code>
* expires_at</code>. The token can be used to access invoices, payment methods, and other
* portal features.
*
* @param idOrAlias the {@code id_or_alias} path parameter
* @param customerPortalTokenRequest the request body
Expand Down Expand Up @@ -531,8 +535,10 @@ public CompletableFuture<ApiResponse<EffectiveEntitlementListResponse>> listEnti
/**
* Generate a portal token for a customer
*
* <p>Generates a JWT token that grants access to the customer portal. The token can be used
* to access invoices, payment methods, and other portal features.
* <p>Generates an opaque token that grants access to the customer portal. A call may return
* the token of an earlier call with the same scopes, with up to 10% less lifetime: rely on
* <code>expires_at</code>. The token can be used to access invoices, payment methods, and
* other portal features.
*
* @param idOrAlias the {@code id_or_alias} path parameter
* @param customerPortalTokenRequest the request body
Expand All @@ -547,8 +553,10 @@ public CompletableFuture<ApiResponse<CustomerPortalTokenResponse>> createPortalT
/**
* Generate a portal token for a customer
*
* <p>Generates a JWT token that grants access to the customer portal. The token can be used
* to access invoices, payment methods, and other portal features.
* <p>Generates an opaque token that grants access to the customer portal. A call may return
* the token of an earlier call with the same scopes, with up to 10% less lifetime: rely on
* <code>expires_at</code>. The token can be used to access invoices, payment methods, and
* other portal features.
*
* @param idOrAlias the {@code id_or_alias} path parameter
* @param customerPortalTokenRequest the request body
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/meteroid/api/UsageCostsCustomer.java
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ MeteroidHttpClient.Exchange<UsageCostListResponse> exchangeListCosts(
com.meteroid.models.RestErrorResponse.class,
"400",
"401",
"403",
"404",
"429",
"500")
Expand Down Expand Up @@ -372,6 +373,7 @@ MeteroidHttpClient.Exchange<UsageEventListResponse> exchangeListEvents(
com.meteroid.models.RestErrorResponse.class,
"400",
"401",
"403",
"404",
"429",
"500")
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/meteroid/api/UsageCostsSubscription.java
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ MeteroidHttpClient.Exchange<UsageCostListResponse> exchangeListCosts(
com.meteroid.models.RestErrorResponse.class,
"400",
"401",
"403",
"404",
"429",
"500")
Expand Down Expand Up @@ -358,6 +359,7 @@ MeteroidHttpClient.Exchange<UsageEventListResponse> exchangeListEvents(
com.meteroid.models.RestErrorResponse.class,
"400",
"401",
"403",
"404",
"429",
"500")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public String portalUrl() {
}

/**
* JWT token for portal access
* Opaque token for portal access
*
* @return the value, never null
*/
Expand Down Expand Up @@ -238,7 +238,7 @@ public Builder portalUrl(String portalUrl) {
}

/**
* JWT token for portal access
* Opaque token for portal access
*
* @param token the value
* @return this builder
Expand Down
12 changes: 10 additions & 2 deletions src/main/java/com/meteroid/models/DeclineKind.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ public final class DeclineKind implements ToQueryParam {
public static final DeclineKind DO_NOT_RETRY =
new DeclineKind("DO_NOT_RETRY", Value.DO_NOT_RETRY);

/** The value {@code "UNCONFIRMED"}. */
public static final DeclineKind UNCONFIRMED = new DeclineKind("UNCONFIRMED", Value.UNCONFIRMED);

private static final Map<String, DeclineKind> constants =
Map.ofEntries(
Map.entry("INSUFFICIENT_FUNDS", INSUFFICIENT_FUNDS),
Expand All @@ -60,7 +63,8 @@ public final class DeclineKind implements ToQueryParam {
Map.entry("FRAUD", FRAUD),
Map.entry("PROCESSING_ERROR", PROCESSING_ERROR),
Map.entry("OTHER", OTHER),
Map.entry("DO_NOT_RETRY", DO_NOT_RETRY));
Map.entry("DO_NOT_RETRY", DO_NOT_RETRY),
Map.entry("UNCONFIRMED", UNCONFIRMED));

private final String value;
private final Value variant;
Expand Down Expand Up @@ -163,7 +167,9 @@ public enum Known {
/** The {@code OTHER} constant. */
OTHER,
/** The {@code DO_NOT_RETRY} constant. */
DO_NOT_RETRY
DO_NOT_RETRY,
/** The {@code UNCONFIRMED} constant. */
UNCONFIRMED
}

/** The values this version of the SDK knows, and {@code _UNKNOWN} for the others. */
Expand All @@ -186,6 +192,8 @@ public enum Value {
OTHER,
/** The {@code DO_NOT_RETRY} constant. */
DO_NOT_RETRY,
/** The {@code UNCONFIRMED} constant. */
UNCONFIRMED,
/** A value this version of the SDK does not know. */
_UNKNOWN
}
Expand Down
Loading