Skip to content

Commit

Permalink
Update generated code for v994
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Apr 26, 2024
1 parent 9ef0736 commit 3d1a3b5
Show file tree
Hide file tree
Showing 5 changed files with 384 additions and 10 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
@@ -1 +1 @@
v992
v994
18 changes: 9 additions & 9 deletions src/main/java/com/stripe/model/StripeError.java
Expand Up @@ -86,15 +86,15 @@ public class StripeError extends StripeObject {
* {@code secret_key_required}, {@code sepa_unsupported_account}, {@code setup_attempt_failed},
* {@code setup_intent_authentication_failure}, {@code setup_intent_invalid_parameter}, {@code
* setup_intent_mandate_invalid}, {@code setup_intent_setup_attempt_expired}, {@code
* setup_intent_unexpected_state}, {@code shipping_calculation_failed}, {@code sku_inactive},
* {@code state_unsupported}, {@code status_transition_invalid}, {@code stripe_tax_inactive},
* {@code tax_id_invalid}, {@code taxes_calculation_failed}, {@code
* terminal_location_country_unsupported}, {@code terminal_reader_busy}, {@code
* terminal_reader_hardware_fault}, {@code terminal_reader_offline}, {@code
* terminal_reader_timeout}, {@code testmode_charges_only}, {@code tls_version_unsupported},
* {@code token_already_used}, {@code token_card_network_invalid}, {@code token_in_use}, {@code
* transfer_source_balance_parameters_mismatch}, {@code transfers_not_allowed}, or {@code
* url_invalid}.
* setup_intent_unexpected_state}, {@code shipping_address_invalid}, {@code
* shipping_calculation_failed}, {@code sku_inactive}, {@code state_unsupported}, {@code
* status_transition_invalid}, {@code stripe_tax_inactive}, {@code tax_id_invalid}, {@code
* taxes_calculation_failed}, {@code terminal_location_country_unsupported}, {@code
* terminal_reader_busy}, {@code terminal_reader_hardware_fault}, {@code terminal_reader_offline},
* {@code terminal_reader_timeout}, {@code testmode_charges_only}, {@code
* tls_version_unsupported}, {@code token_already_used}, {@code token_card_network_invalid},
* {@code token_in_use}, {@code transfer_source_balance_parameters_mismatch}, {@code
* transfers_not_allowed}, or {@code url_invalid}.
*/
@SerializedName("code")
String code;
Expand Down
48 changes: 48 additions & 0 deletions src/main/java/com/stripe/model/tax/Calculation.java
Expand Up @@ -79,6 +79,10 @@ public class Calculation extends ApiResource implements HasId {
@SerializedName("object")
String object;

/** The details of the ship from location, such as the address. */
@SerializedName("ship_from_details")
ShipFromDetails shipFromDetails;

/** The shipping cost details for the calculation. */
@SerializedName("shipping_cost")
ShippingCost shippingCost;
Expand Down Expand Up @@ -276,6 +280,49 @@ public static class TaxId extends StripeObject {
}
}

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class ShipFromDetails extends StripeObject {
@SerializedName("address")
Address address;

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Address extends StripeObject {
/** City, district, suburb, town, or village. */
@SerializedName("city")
String city;

/**
* Two-letter country code (<a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO
* 3166-1 alpha-2</a>).
*/
@SerializedName("country")
String country;

/** Address line 1 (e.g., street, PO Box, or company name). */
@SerializedName("line1")
String line1;

/** Address line 2 (e.g., apartment, suite, unit, or building). */
@SerializedName("line2")
String line2;

/** ZIP or postal code. */
@SerializedName("postal_code")
String postalCode;

/**
* State/province as an <a href="https://en.wikipedia.org/wiki/ISO_3166-2">ISO 3166-2</a>
* subdivision code, without country prefix. Example: &quot;NY&quot; or &quot;TX&quot;.
*/
@SerializedName("state")
String state;
}
}

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
Expand Down Expand Up @@ -508,6 +555,7 @@ public void setResponseGetter(StripeResponseGetter responseGetter) {
super.setResponseGetter(responseGetter);
trySetResponseGetter(customerDetails, responseGetter);
trySetResponseGetter(lineItems, responseGetter);
trySetResponseGetter(shipFromDetails, responseGetter);
trySetResponseGetter(shippingCost, responseGetter);
}
}
48 changes: 48 additions & 0 deletions src/main/java/com/stripe/model/tax/Transaction.java
Expand Up @@ -93,6 +93,10 @@ public class Transaction extends ApiResource implements HasId {
@SerializedName("reversal")
Reversal reversal;

/** The details of the ship from location, such as the address. */
@SerializedName("ship_from_details")
ShipFromDetails shipFromDetails;

/** The shipping cost details for the transaction. */
@SerializedName("shipping_cost")
ShippingCost shippingCost;
Expand Down Expand Up @@ -374,6 +378,49 @@ public static class Reversal extends StripeObject {
String originalTransaction;
}

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class ShipFromDetails extends StripeObject {
@SerializedName("address")
Address address;

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Address extends StripeObject {
/** City, district, suburb, town, or village. */
@SerializedName("city")
String city;

/**
* Two-letter country code (<a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO
* 3166-1 alpha-2</a>).
*/
@SerializedName("country")
String country;

/** Address line 1 (e.g., street, PO Box, or company name). */
@SerializedName("line1")
String line1;

/** Address line 2 (e.g., apartment, suite, unit, or building). */
@SerializedName("line2")
String line2;

/** ZIP or postal code. */
@SerializedName("postal_code")
String postalCode;

/**
* State/province as an <a href="https://en.wikipedia.org/wiki/ISO_3166-2">ISO 3166-2</a>
* subdivision code, without country prefix. Example: &quot;NY&quot; or &quot;TX&quot;.
*/
@SerializedName("state")
String state;
}
}

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
Expand Down Expand Up @@ -541,6 +588,7 @@ public void setResponseGetter(StripeResponseGetter responseGetter) {
trySetResponseGetter(customerDetails, responseGetter);
trySetResponseGetter(lineItems, responseGetter);
trySetResponseGetter(reversal, responseGetter);
trySetResponseGetter(shipFromDetails, responseGetter);
trySetResponseGetter(shippingCost, responseGetter);
}
}

0 comments on commit 3d1a3b5

Please sign in to comment.