@@ -66,6 +66,12 @@ public class Invoice extends ApiResource implements HasId, MetadataStore<Invoice
66
66
@ SerializedName ("amount_remaining" )
67
67
Long amountRemaining ;
68
68
69
+ /** ID of the Connect Application that created the invoice. */
70
+ @ SerializedName ("application" )
71
+ @ Getter (lombok .AccessLevel .NONE )
72
+ @ Setter (lombok .AccessLevel .NONE )
73
+ ExpandableField <Application > application ;
74
+
69
75
/**
70
76
* The fee in %s that will be applied to the invoice and transferred to the application owner's
71
77
* Stripe account when the invoice is paid.
@@ -495,6 +501,24 @@ public class Invoice extends ApiResource implements HasId, MetadataStore<Invoice
495
501
@ SerializedName ("webhooks_delivered_at" )
496
502
Long webhooksDeliveredAt ;
497
503
504
+ /** Get ID of expandable {@code application} object. */
505
+ public String getApplication () {
506
+ return (this .application != null ) ? this .application .getId () : null ;
507
+ }
508
+
509
+ public void setApplication (String id ) {
510
+ this .application = ApiResource .setExpandableFieldId (id , this .application );
511
+ }
512
+
513
+ /** Get expanded {@code application}. */
514
+ public Application getApplicationObject () {
515
+ return (this .application != null ) ? this .application .getExpanded () : null ;
516
+ }
517
+
518
+ public void setApplicationObject (Application expandableObject ) {
519
+ this .application = new ExpandableField <Application >(expandableObject .getId (), expandableObject );
520
+ }
521
+
498
522
/** Get ID of expandable {@code charge} object. */
499
523
public String getCharge () {
500
524
return (this .charge != null ) ? this .charge .getId () : null ;
@@ -1548,14 +1572,14 @@ public static class CustomField extends StripeObject {
1548
1572
public static class CustomerTaxId extends StripeObject {
1549
1573
/**
1550
1574
* The type of the tax ID, one of {@code eu_vat}, {@code br_cnpj}, {@code br_cpf}, {@code
1551
- * gb_vat }, {@code nz_gst }, {@code au_abn }, {@code au_arn }, {@code in_gst }, {@code no_vat },
1552
- * {@code za_vat }, {@code ch_vat }, {@code mx_rfc }, {@code sg_uen }, {@code ru_inn }, {@code
1553
- * ru_kpp }, {@code ca_bn }, {@code hk_br }, {@code es_cif }, {@code tw_vat }, {@code th_vat }, {@code
1554
- * jp_cn }, {@code jp_rn }, {@code li_uid }, {@code my_itn }, {@code us_ein }, {@code kr_brn }, {@code
1555
- * ca_qst }, {@code ca_gst_hst }, {@code ca_pst_bc }, {@code ca_pst_mb }, {@code ca_pst_sk }, {@code
1556
- * my_sst }, {@code sg_gst }, {@code ae_trn }, {@code cl_tin }, {@code sa_vat }, {@code id_npwp },
1557
- * {@code my_frp }, {@code il_vat }, {@code ge_vat }, {@code ua_vat }, {@code is_vat }, {@code
1558
- * bg_uic}, {@code hu_tin}, {@code si_tin}, or {@code unknown}.
1575
+ * eu_oss_vat }, {@code gb_vat }, {@code nz_gst }, {@code au_abn }, {@code au_arn }, {@code in_gst },
1576
+ * {@code no_vat }, {@code za_vat }, {@code ch_vat }, {@code mx_rfc }, {@code sg_uen }, {@code
1577
+ * ru_inn }, {@code ru_kpp }, {@code ca_bn }, {@code hk_br }, {@code es_cif }, {@code tw_vat }, {@code
1578
+ * th_vat }, {@code jp_cn }, {@code jp_rn }, {@code li_uid }, {@code my_itn }, {@code us_ein }, {@code
1579
+ * kr_brn }, {@code ca_qst }, {@code ca_gst_hst }, {@code ca_pst_bc }, {@code ca_pst_mb }, {@code
1580
+ * ca_pst_sk }, {@code my_sst }, {@code sg_gst }, {@code ae_trn }, {@code cl_tin }, {@code sa_vat },
1581
+ * {@code id_npwp }, {@code my_frp }, {@code il_vat }, {@code ge_vat }, {@code ua_vat }, {@code
1582
+ * is_vat}, {@code bg_uic}, {@code hu_tin}, {@code si_tin}, or {@code unknown}.
1559
1583
*/
1560
1584
@ SerializedName ("type" )
1561
1585
String type ;
0 commit comments