Skip to content

Commit

Permalink
Merge pull request #1862 from stripe/latest-codegen-beta
Browse files Browse the repository at this point in the history
Update generated code for beta
  • Loading branch information
stripe-openapi[bot] authored Sep 13, 2024
2 parents 7042f57 + a864aa3 commit e3f42b9
Show file tree
Hide file tree
Showing 44 changed files with 5,700 additions and 4,326 deletions.
7,832 changes: 3,912 additions & 3,920 deletions CHANGELOG.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1247
v1259
4 changes: 4 additions & 0 deletions src/main/java/com/stripe/StripeClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,10 @@ public com.stripe.service.InvoiceItemService invoiceItems() {
return new com.stripe.service.InvoiceItemService(this.getResponseGetter());
}

public com.stripe.service.InvoiceRenderingTemplateService invoiceRenderingTemplates() {
return new com.stripe.service.InvoiceRenderingTemplateService(this.getResponseGetter());
}

public com.stripe.service.InvoiceService invoices() {
return new com.stripe.service.InvoiceService(this.getResponseGetter());
}
Expand Down
8 changes: 8 additions & 0 deletions src/main/java/com/stripe/model/Customer.java
Original file line number Diff line number Diff line change
Expand Up @@ -916,6 +916,14 @@ public static class RenderingOptions extends StripeObject {
/** How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. */
@SerializedName("amount_tax_display")
String amountTaxDisplay;

/**
* ID of the invoice rendering template to be used for this customer's invoices. If set, the
* template will be used on all invoices for this customer unless a template is set directly
* on the invoice.
*/
@SerializedName("template")
String template;
}
}

Expand Down
70 changes: 36 additions & 34 deletions src/main/java/com/stripe/model/Event.java
Original file line number Diff line number Diff line change
Expand Up @@ -171,40 +171,42 @@ public class Event extends ApiResource implements HasId {
* issuing_dispute.closed}, {@code issuing_dispute.created}, {@code
* issuing_dispute.funds_reinstated}, {@code issuing_dispute.funds_rescinded}, {@code
* issuing_dispute.submitted}, {@code issuing_dispute.updated}, {@code
* issuing_personalization_design.activated}, {@code issuing_personalization_design.deactivated},
* {@code issuing_personalization_design.rejected}, {@code
* issuing_personalization_design.updated}, {@code issuing_token.created}, {@code
* issuing_token.updated}, {@code issuing_transaction.created}, {@code
* issuing_transaction.updated}, {@code mandate.updated}, {@code
* payment_intent.amount_capturable_updated}, {@code payment_intent.canceled}, {@code
* payment_intent.created}, {@code payment_intent.partially_funded}, {@code
* payment_intent.payment_failed}, {@code payment_intent.processing}, {@code
* payment_intent.requires_action}, {@code payment_intent.succeeded}, {@code
* payment_link.created}, {@code payment_link.updated}, {@code payment_method.attached}, {@code
* payment_method.automatically_updated}, {@code payment_method.detached}, {@code
* payment_method.updated}, {@code payout.canceled}, {@code payout.created}, {@code
* payout.failed}, {@code payout.paid}, {@code payout.reconciliation_completed}, {@code
* payout.updated}, {@code person.created}, {@code person.deleted}, {@code person.updated}, {@code
* plan.created}, {@code plan.deleted}, {@code plan.updated}, {@code price.created}, {@code
* price.deleted}, {@code price.updated}, {@code product.created}, {@code product.deleted}, {@code
* product.updated}, {@code promotion_code.created}, {@code promotion_code.updated}, {@code
* quote.accept_failed}, {@code quote.accepted}, {@code quote.accepting}, {@code quote.canceled},
* {@code quote.created}, {@code quote.draft}, {@code quote.finalized}, {@code
* quote.reestimate_failed}, {@code quote.reestimated}, {@code quote.stale}, {@code
* radar.early_fraud_warning.created}, {@code radar.early_fraud_warning.updated}, {@code
* refund.created}, {@code refund.updated}, {@code reporting.report_run.failed}, {@code
* reporting.report_run.succeeded}, {@code reporting.report_type.updated}, {@code review.closed},
* {@code review.opened}, {@code setup_intent.canceled}, {@code setup_intent.created}, {@code
* setup_intent.requires_action}, {@code setup_intent.setup_failed}, {@code
* setup_intent.succeeded}, {@code sigma.scheduled_query_run.created}, {@code source.canceled},
* {@code source.chargeable}, {@code source.failed}, {@code source.mandate_notification}, {@code
* source.refund_attributes_required}, {@code source.transaction.created}, {@code
* source.transaction.updated}, {@code subscription_schedule.aborted}, {@code
* subscription_schedule.canceled}, {@code subscription_schedule.completed}, {@code
* subscription_schedule.created}, {@code subscription_schedule.expiring}, {@code
* subscription_schedule.price_migration_failed}, {@code subscription_schedule.released}, {@code
* subscription_schedule.updated}, {@code tax.form.updated}, {@code tax.settings.updated}, {@code
* tax_rate.created}, {@code tax_rate.updated}, {@code terminal.reader.action_failed}, {@code
* issuing_dispute_settlement_detail.created}, {@code issuing_dispute_settlement_detail.updated},
* {@code issuing_personalization_design.activated}, {@code
* issuing_personalization_design.deactivated}, {@code issuing_personalization_design.rejected},
* {@code issuing_personalization_design.updated}, {@code issuing_settlement.created}, {@code
* issuing_settlement.updated}, {@code issuing_token.created}, {@code issuing_token.updated},
* {@code issuing_transaction.created}, {@code issuing_transaction.updated}, {@code
* mandate.updated}, {@code payment_intent.amount_capturable_updated}, {@code
* payment_intent.canceled}, {@code payment_intent.created}, {@code
* payment_intent.partially_funded}, {@code payment_intent.payment_failed}, {@code
* payment_intent.processing}, {@code payment_intent.requires_action}, {@code
* payment_intent.succeeded}, {@code payment_link.created}, {@code payment_link.updated}, {@code
* payment_method.attached}, {@code payment_method.automatically_updated}, {@code
* payment_method.detached}, {@code payment_method.updated}, {@code payout.canceled}, {@code
* payout.created}, {@code payout.failed}, {@code payout.paid}, {@code
* payout.reconciliation_completed}, {@code payout.updated}, {@code person.created}, {@code
* person.deleted}, {@code person.updated}, {@code plan.created}, {@code plan.deleted}, {@code
* plan.updated}, {@code price.created}, {@code price.deleted}, {@code price.updated}, {@code
* product.created}, {@code product.deleted}, {@code product.updated}, {@code
* promotion_code.created}, {@code promotion_code.updated}, {@code quote.accept_failed}, {@code
* quote.accepted}, {@code quote.accepting}, {@code quote.canceled}, {@code quote.created}, {@code
* quote.draft}, {@code quote.finalized}, {@code quote.reestimate_failed}, {@code
* quote.reestimated}, {@code quote.stale}, {@code radar.early_fraud_warning.created}, {@code
* radar.early_fraud_warning.updated}, {@code refund.created}, {@code refund.updated}, {@code
* reporting.report_run.failed}, {@code reporting.report_run.succeeded}, {@code
* reporting.report_type.updated}, {@code review.closed}, {@code review.opened}, {@code
* setup_intent.canceled}, {@code setup_intent.created}, {@code setup_intent.requires_action},
* {@code setup_intent.setup_failed}, {@code setup_intent.succeeded}, {@code
* sigma.scheduled_query_run.created}, {@code source.canceled}, {@code source.chargeable}, {@code
* source.failed}, {@code source.mandate_notification}, {@code source.refund_attributes_required},
* {@code source.transaction.created}, {@code source.transaction.updated}, {@code
* subscription_schedule.aborted}, {@code subscription_schedule.canceled}, {@code
* subscription_schedule.completed}, {@code subscription_schedule.created}, {@code
* subscription_schedule.expiring}, {@code subscription_schedule.price_migration_failed}, {@code
* subscription_schedule.released}, {@code subscription_schedule.updated}, {@code
* tax.form.updated}, {@code tax.settings.updated}, {@code tax_rate.created}, {@code
* tax_rate.updated}, {@code terminal.reader.action_failed}, {@code
* terminal.reader.action_succeeded}, {@code terminal.reader.action_updated}, {@code
* test_helpers.test_clock.advancing}, {@code test_helpers.test_clock.created}, {@code
* test_helpers.test_clock.deleted}, {@code test_helpers.test_clock.internal_failure}, {@code
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/com/stripe/model/EventDataClassLookup.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ final class EventDataClassLookup {
classLookup.put("funding_instructions", FundingInstructions.class);
classLookup.put("invoice", Invoice.class);
classLookup.put("invoice_payment", InvoicePayment.class);
classLookup.put("invoice_rendering_template", InvoiceRenderingTemplate.class);
classLookup.put("invoiceitem", InvoiceItem.class);
classLookup.put("item", LineItem.class);
classLookup.put("line_item", InvoiceLineItem.class);
Expand Down Expand Up @@ -166,9 +167,13 @@ final class EventDataClassLookup {
"issuing.credit_underwriting_record",
com.stripe.model.issuing.CreditUnderwritingRecord.class);
classLookup.put("issuing.dispute", com.stripe.model.issuing.Dispute.class);
classLookup.put(
"issuing.dispute_settlement_detail",
com.stripe.model.issuing.DisputeSettlementDetail.class);
classLookup.put(
"issuing.personalization_design", com.stripe.model.issuing.PersonalizationDesign.class);
classLookup.put("issuing.physical_bundle", com.stripe.model.issuing.PhysicalBundle.class);
classLookup.put("issuing.settlement", com.stripe.model.issuing.Settlement.class);
classLookup.put("issuing.token", com.stripe.model.issuing.Token.class);
classLookup.put("issuing.transaction", com.stripe.model.issuing.Transaction.class);

Expand Down
8 changes: 8 additions & 0 deletions src/main/java/com/stripe/model/Invoice.java
Original file line number Diff line number Diff line change
Expand Up @@ -2933,6 +2933,14 @@ public static class Rendering extends StripeObject {
@SerializedName("pdf")
Pdf pdf;

/** ID of the rendering template that the invoice is formatted by. */
@SerializedName("template")
String template;

/** Version of the rendering template that the invoice is using. */
@SerializedName("template_version")
Long templateVersion;

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
Expand Down
Loading

0 comments on commit e3f42b9

Please sign in to comment.