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
2 changes: 1 addition & 1 deletion CODEGEN_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
74913070eb5bc81c058d07ad167346b6d68d8b0b
afce9794b52053b2efda64fd3af04dcf9225eafa
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2164
v2169
7 changes: 7 additions & 0 deletions src/main/java/com/stripe/model/ApplicationFee.java
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,13 @@ public class ApplicationFee extends ApiResource implements BalanceTransactionSou
@SerializedName("refunds")
FeeRefundCollection refunds;

/**
* Type of settlement for the application fee. One of {@code net_settled} or {@code
* gross_settled}.
*/
@SerializedName("settlement_type")
String settlementType;

/** Get ID of expandable {@code account} object. */
public String getAccount() {
return (this.account != null) ? this.account.getId() : null;
Expand Down
115 changes: 92 additions & 23 deletions src/main/java/com/stripe/model/FrMealVouchersOnboarding.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,18 @@
import lombok.Setter;

/**
* The French Meal Vouchers Onboarding resource encapsulates the onboarding status and other related
* information for a single restaurant (SIRET number) in the context of the French Meal Vouchers
* program.
* The {@code French Meal Vouchers Onboarding} resource encapsulates the onboarding status and other
* related information for a single restaurant (SIRET number) in the context of the French Meal
* Vouchers program.
*
* <p>To onboard a restaurant for the French Meal Vouchers program, you create a {@code French Meal
* Vouchers Onboarding} object. You can retrieve individual objects, list all such objects, or
* update objects to correct the postal code of the restaurant. We identify {@code French Meal
* Vouchers Onboarding} objects with a unique, random ID.
*
* <p>Related guide: <a
* href="https://docs.stripe.com/payments/meal-vouchers/fr-meal-vouchers/set-up-restaurant">Set up a
* restaurant for titres-restaurant payments</a>
*/
@Getter
@Setter
Expand Down Expand Up @@ -75,16 +84,16 @@ public class FrMealVouchersOnboarding extends ApiResource
String siret;

/**
* Creates a French Meal Vouchers Onboarding object that represents a restaurant’s onboarding
* status and starts the onboarding process.
* Creates a {@code French Meal Vouchers Onboarding} object that represents a restaurant’s
* onboarding status and starts the onboarding process.
*/
public static FrMealVouchersOnboarding create(Map<String, Object> params) throws StripeException {
return create(params, (RequestOptions) null);
}

/**
* Creates a French Meal Vouchers Onboarding object that represents a restaurant’s onboarding
* status and starts the onboarding process.
* Creates a {@code French Meal Vouchers Onboarding} object that represents a restaurant’s
* onboarding status and starts the onboarding process.
*/
public static FrMealVouchersOnboarding create(Map<String, Object> params, RequestOptions options)
throws StripeException {
Expand All @@ -95,17 +104,17 @@ public static FrMealVouchersOnboarding create(Map<String, Object> params, Reques
}

/**
* Creates a French Meal Vouchers Onboarding object that represents a restaurant’s onboarding
* status and starts the onboarding process.
* Creates a {@code French Meal Vouchers Onboarding} object that represents a restaurant’s
* onboarding status and starts the onboarding process.
*/
public static FrMealVouchersOnboarding create(FrMealVouchersOnboardingCreateParams params)
throws StripeException {
return create(params, (RequestOptions) null);
}

/**
* Creates a French Meal Vouchers Onboarding object that represents a restaurant’s onboarding
* status and starts the onboarding process.
* Creates a {@code French Meal Vouchers Onboarding} object that represents a restaurant’s
* onboarding status and starts the onboarding process.
*/
public static FrMealVouchersOnboarding create(
FrMealVouchersOnboardingCreateParams params, RequestOptions options) throws StripeException {
Expand All @@ -121,13 +130,19 @@ public static FrMealVouchersOnboarding create(
return getGlobalResponseGetter().request(request, FrMealVouchersOnboarding.class);
}

/** Lists French Meal Vouchers Onboarding objects. */
/**
* Lists {@code French Meal Vouchers Onboarding} objects. The objects are returned in sorted
* order, with the most recently created objects appearing first.
*/
public static FrMealVouchersOnboardingCollection list(Map<String, Object> params)
throws StripeException {
return list(params, (RequestOptions) null);
}

/** Lists French Meal Vouchers Onboarding objects. */
/**
* Lists {@code French Meal Vouchers Onboarding} objects. The objects are returned in sorted
* order, with the most recently created objects appearing first.
*/
public static FrMealVouchersOnboardingCollection list(
Map<String, Object> params, RequestOptions options) throws StripeException {
String path = "/v1/fr_meal_vouchers_onboardings";
Expand All @@ -136,13 +151,19 @@ public static FrMealVouchersOnboardingCollection list(
return getGlobalResponseGetter().request(request, FrMealVouchersOnboardingCollection.class);
}

/** Lists French Meal Vouchers Onboarding objects. */
/**
* Lists {@code French Meal Vouchers Onboarding} objects. The objects are returned in sorted
* order, with the most recently created objects appearing first.
*/
public static FrMealVouchersOnboardingCollection list(FrMealVouchersOnboardingListParams params)
throws StripeException {
return list(params, (RequestOptions) null);
}

/** Lists French Meal Vouchers Onboarding objects. */
/**
* Lists {@code French Meal Vouchers Onboarding} objects. The objects are returned in sorted
* order, with the most recently created objects appearing first.
*/
public static FrMealVouchersOnboardingCollection list(
FrMealVouchersOnboardingListParams params, RequestOptions options) throws StripeException {
String path = "/v1/fr_meal_vouchers_onboardings";
Expand All @@ -157,18 +178,33 @@ public static FrMealVouchersOnboardingCollection list(
return getGlobalResponseGetter().request(request, FrMealVouchersOnboardingCollection.class);
}

/** Retrieves the details of a French Meal Vouchers Onboarding object. */
/**
* Retrieves the details of a previously created {@code French Meal Vouchers Onboarding} object.
*
* <p>Supply the unique {@code French Meal Vouchers Onboarding} ID that was returned from your
* previous request, and Stripe returns the corresponding onboarding information.
*/
public static FrMealVouchersOnboarding retrieve(String id) throws StripeException {
return retrieve(id, (Map<String, Object>) null, (RequestOptions) null);
}

/** Retrieves the details of a French Meal Vouchers Onboarding object. */
/**
* Retrieves the details of a previously created {@code French Meal Vouchers Onboarding} object.
*
* <p>Supply the unique {@code French Meal Vouchers Onboarding} ID that was returned from your
* previous request, and Stripe returns the corresponding onboarding information.
*/
public static FrMealVouchersOnboarding retrieve(String id, RequestOptions options)
throws StripeException {
return retrieve(id, (Map<String, Object>) null, options);
}

/** Retrieves the details of a French Meal Vouchers Onboarding object. */
/**
* Retrieves the details of a previously created {@code French Meal Vouchers Onboarding} object.
*
* <p>Supply the unique {@code French Meal Vouchers Onboarding} ID that was returned from your
* previous request, and Stripe returns the corresponding onboarding information.
*/
public static FrMealVouchersOnboarding retrieve(
String id, Map<String, Object> params, RequestOptions options) throws StripeException {
String path = String.format("/v1/fr_meal_vouchers_onboardings/%s", ApiResource.urlEncodeId(id));
Expand All @@ -177,7 +213,12 @@ public static FrMealVouchersOnboarding retrieve(
return getGlobalResponseGetter().request(request, FrMealVouchersOnboarding.class);
}

/** Retrieves the details of a French Meal Vouchers Onboarding object. */
/**
* Retrieves the details of a previously created {@code French Meal Vouchers Onboarding} object.
*
* <p>Supply the unique {@code French Meal Vouchers Onboarding} ID that was returned from your
* previous request, and Stripe returns the corresponding onboarding information.
*/
public static FrMealVouchersOnboarding retrieve(
String id, FrMealVouchersOnboardingRetrieveParams params, RequestOptions options)
throws StripeException {
Expand All @@ -193,13 +234,27 @@ public static FrMealVouchersOnboarding retrieve(
return getGlobalResponseGetter().request(request, FrMealVouchersOnboarding.class);
}

/** Updates the details of a restaurant’s French Meal Vouchers Onboarding object. */
/**
* Updates the details of a restaurant’s {@code French Meal Vouchers Onboarding} object by setting
* the values of the parameters passed. Any parameters not provided are left unchanged. After you
* update the object, the onboarding process automatically restarts.
*
* <p>You can only update {@code French Meal Vouchers Onboarding} objects with the {@code
* postal_code} field requirement in {@code past_due}.
*/
@Override
public FrMealVouchersOnboarding update(Map<String, Object> params) throws StripeException {
return update(params, (RequestOptions) null);
}

/** Updates the details of a restaurant’s French Meal Vouchers Onboarding object. */
/**
* Updates the details of a restaurant’s {@code French Meal Vouchers Onboarding} object by setting
* the values of the parameters passed. Any parameters not provided are left unchanged. After you
* update the object, the onboarding process automatically restarts.
*
* <p>You can only update {@code French Meal Vouchers Onboarding} objects with the {@code
* postal_code} field requirement in {@code past_due}.
*/
@Override
public FrMealVouchersOnboarding update(Map<String, Object> params, RequestOptions options)
throws StripeException {
Expand All @@ -210,13 +265,27 @@ public FrMealVouchersOnboarding update(Map<String, Object> params, RequestOption
return getResponseGetter().request(request, FrMealVouchersOnboarding.class);
}

/** Updates the details of a restaurant’s French Meal Vouchers Onboarding object. */
/**
* Updates the details of a restaurant’s {@code French Meal Vouchers Onboarding} object by setting
* the values of the parameters passed. Any parameters not provided are left unchanged. After you
* update the object, the onboarding process automatically restarts.
*
* <p>You can only update {@code French Meal Vouchers Onboarding} objects with the {@code
* postal_code} field requirement in {@code past_due}.
*/
public FrMealVouchersOnboarding update(FrMealVouchersOnboardingUpdateParams params)
throws StripeException {
return update(params, (RequestOptions) null);
}

/** Updates the details of a restaurant’s French Meal Vouchers Onboarding object. */
/**
* Updates the details of a restaurant’s {@code French Meal Vouchers Onboarding} object by setting
* the values of the parameters passed. Any parameters not provided are left unchanged. After you
* update the object, the onboarding process automatically restarts.
*
* <p>You can only update {@code French Meal Vouchers Onboarding} objects with the {@code
* postal_code} field requirement in {@code past_due}.
*/
public FrMealVouchersOnboarding update(
FrMealVouchersOnboardingUpdateParams params, RequestOptions options) throws StripeException {
String path =
Expand Down
32 changes: 30 additions & 2 deletions src/main/java/com/stripe/model/InvoiceItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -679,14 +679,17 @@ public static class Pricing extends StripeObject {
@SerializedName("price_details")
PriceDetails priceDetails;

@SerializedName("rate_card_custom_pricing_unit_overage_rate_details")
RateCardCustomPricingUnitOverageRateDetails rateCardCustomPricingUnitOverageRateDetails;

@SerializedName("rate_card_rate_details")
RateCardRateDetails rateCardRateDetails;

/**
* The type of the pricing details.
*
* <p>One of {@code license_fee_details}, {@code price_details}, or {@code
* rate_card_rate_details}.
* <p>One of {@code license_fee_details}, {@code price_details}, {@code
* rate_card_custom_pricing_unit_overage_rate_details}, or {@code rate_card_rate_details}.
*/
@SerializedName("type")
String type;
Expand Down Expand Up @@ -756,6 +759,31 @@ public void setPriceObject(Price expandableObject) {
}
}

/**
* For more details about RateCardCustomPricingUnitOverageRateDetails, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class RateCardCustomPricingUnitOverageRateDetails extends StripeObject {
/** The ID of the custom pricing unit this item is associated with. */
@SerializedName("custom_pricing_unit")
String customPricingUnit;

/** The ID of the custom pricing unit overage rate this item is associated with. */
@SerializedName("custom_pricing_unit_overage_rate")
String customPricingUnitOverageRate;

/** The ID of the one-time item this custom pricing unit overage rate is associated with. */
@SerializedName("one_time_item")
String oneTimeItem;

/** The ID of the rate card this item is associated with. */
@SerializedName("rate_card")
String rateCard;
}

/**
* For more details about RateCardRateDetails, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
Expand Down
32 changes: 30 additions & 2 deletions src/main/java/com/stripe/model/InvoiceLineItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -750,14 +750,17 @@ public static class Pricing extends StripeObject {
@SerializedName("price_details")
PriceDetails priceDetails;

@SerializedName("rate_card_custom_pricing_unit_overage_rate_details")
RateCardCustomPricingUnitOverageRateDetails rateCardCustomPricingUnitOverageRateDetails;

@SerializedName("rate_card_rate_details")
RateCardRateDetails rateCardRateDetails;

/**
* The type of the pricing details.
*
* <p>One of {@code license_fee_details}, {@code price_details}, or {@code
* rate_card_rate_details}.
* <p>One of {@code license_fee_details}, {@code price_details}, {@code
* rate_card_custom_pricing_unit_overage_rate_details}, or {@code rate_card_rate_details}.
*/
@SerializedName("type")
String type;
Expand Down Expand Up @@ -827,6 +830,31 @@ public void setPriceObject(Price expandableObject) {
}
}

/**
* For more details about RateCardCustomPricingUnitOverageRateDetails, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class RateCardCustomPricingUnitOverageRateDetails extends StripeObject {
/** The ID of the custom pricing unit this item is associated with. */
@SerializedName("custom_pricing_unit")
String customPricingUnit;

/** The ID of the custom pricing unit overage rate this item is associated with. */
@SerializedName("custom_pricing_unit_overage_rate")
String customPricingUnitOverageRate;

/** The ID of the one-time item this custom pricing unit overage rate is associated with. */
@SerializedName("one_time_item")
String oneTimeItem;

/** The ID of the rate card this item is associated with. */
@SerializedName("rate_card")
String rateCard;
}

/**
* For more details about RateCardRateDetails, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/com/stripe/model/v2/EventDataClassLookup.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ public final class EventDataClassLookup {
classLookup.put(
"v2.billing.bill_setting_version", com.stripe.model.v2.billing.BillSettingVersion.class);
classLookup.put("v2.billing.cadence", com.stripe.model.v2.billing.Cadence.class);
classLookup.put(
"v2.billing.cadence_spend_modifier",
com.stripe.model.v2.billing.CadenceSpendModifier.class);
classLookup.put(
"v2.billing.collection_setting", com.stripe.model.v2.billing.CollectionSetting.class);
classLookup.put(
Expand All @@ -53,6 +56,7 @@ public final class EventDataClassLookup {
classLookup.put(
"v2.billing.meter_event_session", com.stripe.model.v2.billing.MeterEventSession.class);
classLookup.put("v2.billing.metered_item", com.stripe.model.v2.billing.MeteredItem.class);
classLookup.put("v2.billing.one_time_item", com.stripe.model.v2.billing.OneTimeItem.class);
classLookup.put("v2.billing.pricing_plan", com.stripe.model.v2.billing.PricingPlan.class);
classLookup.put(
"v2.billing.pricing_plan_component",
Expand All @@ -67,6 +71,9 @@ public final class EventDataClassLookup {
"v2.billing.pricing_plan_version", com.stripe.model.v2.billing.PricingPlanVersion.class);
classLookup.put("v2.billing.profile", com.stripe.model.v2.billing.Profile.class);
classLookup.put("v2.billing.rate_card", com.stripe.model.v2.billing.RateCard.class);
classLookup.put(
"v2.billing.rate_card_custom_pricing_unit_overage_rate",
com.stripe.model.v2.billing.RateCardCustomPricingUnitOverageRate.class);
classLookup.put("v2.billing.rate_card_rate", com.stripe.model.v2.billing.RateCardRate.class);
classLookup.put(
"v2.billing.rate_card_subscription",
Expand Down
Loading
Loading