Skip to content

Commit

Permalink
Regenerate
Browse files Browse the repository at this point in the history
  • Loading branch information
richardm-stripe committed Jan 10, 2024
1 parent a2262ab commit aac8f8d
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 120 deletions.
17 changes: 0 additions & 17 deletions src/main/java/com/stripe/model/Customer.java
Original file line number Diff line number Diff line change
Expand Up @@ -603,17 +603,6 @@ public static Customer retrieve(
return getGlobalResponseGetter().request(request, Customer.class);
}

/** Retrieves a PaymentMethod object for a given Customer. */
public PaymentMethod retrievePaymentMethod(String paymentMethod) throws StripeException {
return retrievePaymentMethod(paymentMethod, (Map<String, Object>) null, (RequestOptions) null);
}

/** Retrieves a PaymentMethod object for a given Customer. */
public PaymentMethod retrievePaymentMethod(String paymentMethod, Map<String, Object> params)
throws StripeException {
return retrievePaymentMethod(paymentMethod, params, (RequestOptions) null);
}

/** Retrieves a PaymentMethod object for a given Customer. */
public PaymentMethod retrievePaymentMethod(
String paymentMethod, Map<String, Object> params, RequestOptions options)
Expand All @@ -628,12 +617,6 @@ public PaymentMethod retrievePaymentMethod(
return getResponseGetter().request(request, PaymentMethod.class);
}

/** Retrieves a PaymentMethod object for a given Customer. */
public PaymentMethod retrievePaymentMethod(
String paymentMethod, CustomerRetrievePaymentMethodParams params) throws StripeException {
return retrievePaymentMethod(paymentMethod, params, (RequestOptions) null);
}

/** Retrieves a PaymentMethod object for a given Customer. */
public PaymentMethod retrievePaymentMethod(
String paymentMethod, CustomerRetrievePaymentMethodParams params, RequestOptions options)
Expand Down
47 changes: 0 additions & 47 deletions src/main/java/com/stripe/model/LoginLink.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,41 +38,6 @@ public class LoginLink extends ApiResource {
@SerializedName("url")
String url;

/**
* Creates a single-use login link for an Express account to access their Stripe dashboard.
*
* <p><strong>You may only create login links for <a
* href="https://stripe.com/docs/connect/express-accounts">Express accounts</a> connected to your
* platform</strong>.
*/
public static LoginLink createOnAccount(String account) throws StripeException {
return createOnAccount(account, (Map<String, Object>) null, (RequestOptions) null);
}

/**
* Creates a single-use login link for an Express account to access their Stripe dashboard.
*
* <p><strong>You may only create login links for <a
* href="https://stripe.com/docs/connect/express-accounts">Express accounts</a> connected to your
* platform</strong>.
*/
public static LoginLink createOnAccount(String account, RequestOptions options)
throws StripeException {
return createOnAccount(account, (Map<String, Object>) null, options);
}

/**
* Creates a single-use login link for an Express account to access their Stripe dashboard.
*
* <p><strong>You may only create login links for <a
* href="https://stripe.com/docs/connect/express-accounts">Express accounts</a> connected to your
* platform</strong>.
*/
public static LoginLink createOnAccount(String account, Map<String, Object> params)
throws StripeException {
return createOnAccount(account, params, (RequestOptions) null);
}

/**
* Creates a single-use login link for an Express account to access their Stripe dashboard.
*
Expand All @@ -89,18 +54,6 @@ public static LoginLink createOnAccount(
return getGlobalResponseGetter().request(request, LoginLink.class);
}

/**
* Creates a single-use login link for an Express account to access their Stripe dashboard.
*
* <p><strong>You may only create login links for <a
* href="https://stripe.com/docs/connect/express-accounts">Express accounts</a> connected to your
* platform</strong>.
*/
public static LoginLink createOnAccount(String account, LoginLinkCreateOnAccountParams params)
throws StripeException {
return createOnAccount(account, params, (RequestOptions) null);
}

/**
* Creates a single-use login link for an Express account to access their Stripe dashboard.
*
Expand Down
55 changes: 0 additions & 55 deletions src/main/java/com/stripe/model/UsageRecord.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,33 +58,6 @@ public class UsageRecord extends ApiResource implements HasId {
@SerializedName("timestamp")
Long timestamp;

/**
* Creates a usage record for a specified subscription item and date, and fills it with a
* quantity.
*
* <p>Usage records provide {@code quantity} information that Stripe uses to track how much a
* customer is using your service. With usage information and the pricing model set up by the <a
* href="https://stripe.com/docs/billing/subscriptions/metered-billing">metered billing</a> plan,
* Stripe helps you send accurate invoices to your customers.
*
* <p>The default calculation for usage is to add up all the {@code quantity} values of the usage
* records within a billing period. You can change this default behavior with the billing plan’s
* {@code aggregate_usage} <a
* href="https://stripe.com/docs/api/plans/create#create_plan-aggregate_usage">parameter</a>. When
* there is more than one usage record with the same timestamp, Stripe adds the {@code quantity}
* values together. In most cases, this is the desired resolution, however, you can change this
* behavior with the {@code action} parameter.
*
* <p>The default pricing model for metered billing is <a
* href="https://stripe.com/docs/api/plans/object#plan_object-billing_scheme">per-unit
* pricing</a>. For finer granularity, you can configure metered billing to have a <a
* href="https://stripe.com/docs/billing/subscriptions/tiers">tiered pricing</a> model.
*/
public static UsageRecord createOnSubscriptionItem(
String subscriptionItem, Map<String, Object> params) throws StripeException {
return createOnSubscriptionItem(subscriptionItem, params, (RequestOptions) null);
}

/**
* Creates a usage record for a specified subscription item and date, and fills it with a
* quantity.
Expand Down Expand Up @@ -119,34 +92,6 @@ public static UsageRecord createOnSubscriptionItem(
return getGlobalResponseGetter().request(request, UsageRecord.class);
}

/**
* Creates a usage record for a specified subscription item and date, and fills it with a
* quantity.
*
* <p>Usage records provide {@code quantity} information that Stripe uses to track how much a
* customer is using your service. With usage information and the pricing model set up by the <a
* href="https://stripe.com/docs/billing/subscriptions/metered-billing">metered billing</a> plan,
* Stripe helps you send accurate invoices to your customers.
*
* <p>The default calculation for usage is to add up all the {@code quantity} values of the usage
* records within a billing period. You can change this default behavior with the billing plan’s
* {@code aggregate_usage} <a
* href="https://stripe.com/docs/api/plans/create#create_plan-aggregate_usage">parameter</a>. When
* there is more than one usage record with the same timestamp, Stripe adds the {@code quantity}
* values together. In most cases, this is the desired resolution, however, you can change this
* behavior with the {@code action} parameter.
*
* <p>The default pricing model for metered billing is <a
* href="https://stripe.com/docs/api/plans/object#plan_object-billing_scheme">per-unit
* pricing</a>. For finer granularity, you can configure metered billing to have a <a
* href="https://stripe.com/docs/billing/subscriptions/tiers">tiered pricing</a> model.
*/
public static UsageRecord createOnSubscriptionItem(
String subscriptionItem, UsageRecordCreateOnSubscriptionItemParams params)
throws StripeException {
return createOnSubscriptionItem(subscriptionItem, params, (RequestOptions) null);
}

/**
* Creates a usage record for a specified subscription item and date, and fills it with a
* quantity.
Expand Down
3 changes: 2 additions & 1 deletion src/test/java/com/stripe/functional/GeneratedExamples.java
Original file line number Diff line number Diff line change
Expand Up @@ -9826,7 +9826,8 @@ public void testSubscriptionItemsUsageRecordsPost() throws StripeException {
.setTimestamp(1571252444L)
.build();

UsageRecord usageRecord = UsageRecord.createOnSubscriptionItem("si_xxxxxxxxxxxxx", params);
UsageRecord usageRecord =
UsageRecord.createOnSubscriptionItem("si_xxxxxxxxxxxxx", params, null);
assertNotNull(usageRecord);
verifyRequest(
BaseAddress.API,
Expand Down

0 comments on commit aac8f8d

Please sign in to comment.