• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stripe / stripe-java / #16698

12 Dec 2024 10:54PM UTC coverage: 12.384% (-0.007%) from 12.391%
#16698

push

github

web-flow
Update generated code for beta (#1929)

* Update generated code for v1386

* Update generated code for v1387

* Update generated code for v1388

* Update generated code for v1388

* Update generated code for v1389

* Update generated code for v1390

* Update generated code for v1392

* Update generated code for v1394

* Update generated code for v1395

* Update generated code for v1396

* Update generated code for v1397

* Update generated code for v1398

* Update generated code for v1400

* Update generated code for v1401

* Update generated code for v1405

* Update generated code for v1406

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>

18 of 230 new or added lines in 16 files covered. (7.83%)

111 existing lines in 11 files now uncovered.

18879 of 152444 relevant lines covered (12.38%)

0.12 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/main/java/com/stripe/param/TaxIdCollectionCreateParams.java
1
// File generated from our OpenAPI spec
2
package com.stripe.param;
3

4
import com.google.gson.annotations.SerializedName;
5
import com.stripe.net.ApiRequestParams;
6
import java.util.ArrayList;
7
import java.util.HashMap;
8
import java.util.List;
9
import java.util.Map;
10
import lombok.Getter;
11

12
@Getter
13
public class TaxIdCollectionCreateParams extends ApiRequestParams {
14
  /** Specifies which fields in the response should be expanded. */
15
  @SerializedName("expand")
16
  List<String> expand;
17

18
  /**
19
   * Map of extra parameters for custom features not available in this client library. The content
20
   * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
21
   * key/value pair is serialized as if the key is a root-level field (serialized) name in this
22
   * param object. Effectively, this map is flattened to its parent instance.
23
   */
24
  @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
25
  Map<String, Object> extraParams;
26

27
  /**
28
   * <strong>Required.</strong> Type of the tax ID, one of {@code ad_nrt}, {@code ae_trn}, {@code
29
   * am_tin}, {@code ao_tin}, {@code ar_cuit}, {@code au_abn}, {@code au_arn}, {@code ba_tin},
30
   * {@code bb_tin}, {@code bg_uic}, {@code bh_vat}, {@code bo_tin}, {@code br_cnpj}, {@code
31
   * br_cpf}, {@code bs_tin}, {@code by_tin}, {@code ca_bn}, {@code ca_gst_hst}, {@code ca_pst_bc},
32
   * {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code cd_nif}, {@code ch_uid}, {@code
33
   * ch_vat}, {@code cl_tin}, {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code de_stn}, {@code
34
   * do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat}, {@code eu_vat},
35
   * {@code gb_vat}, {@code ge_vat}, {@code gn_nif}, {@code hk_br}, {@code hr_oib}, {@code hu_tin},
36
   * {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code jp_rn},
37
   * {@code jp_trn}, {@code ke_pin}, {@code kh_tin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid},
38
   * {@code li_vat}, {@code ma_vat}, {@code md_vat}, {@code me_pib}, {@code mk_vat}, {@code mr_nif},
39
   * {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat},
40
   * {@code no_voec}, {@code np_pan}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code
41
   * ph_tin}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code
42
   * sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sn_ninea}, {@code sr_fin}, {@code sv_nit},
43
   * {@code th_vat}, {@code tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code ua_vat},
44
   * {@code ug_tin}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code ve_rif},
45
   * {@code vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code zw_tin}
46
   */
47
  @SerializedName("type")
48
  Type type;
49

50
  /** <strong>Required.</strong> Value of the tax ID. */
51
  @SerializedName("value")
52
  String value;
53

54
  private TaxIdCollectionCreateParams(
55
      List<String> expand, Map<String, Object> extraParams, Type type, String value) {
×
56
    this.expand = expand;
×
57
    this.extraParams = extraParams;
×
58
    this.type = type;
×
59
    this.value = value;
×
60
  }
×
61

62
  public static Builder builder() {
63
    return new Builder();
×
64
  }
65

66
  public static class Builder {
×
67
    private List<String> expand;
68

69
    private Map<String, Object> extraParams;
70

71
    private Type type;
72

73
    private String value;
74

75
    /** Finalize and obtain parameter instance from this builder. */
76
    public TaxIdCollectionCreateParams build() {
77
      return new TaxIdCollectionCreateParams(this.expand, this.extraParams, this.type, this.value);
×
78
    }
79

80
    /**
81
     * Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and
82
     * subsequent calls adds additional elements to the original list. See {@link
83
     * TaxIdCollectionCreateParams#expand} for the field documentation.
84
     */
85
    public Builder addExpand(String element) {
86
      if (this.expand == null) {
×
87
        this.expand = new ArrayList<>();
×
88
      }
89
      this.expand.add(element);
×
90
      return this;
×
91
    }
92

93
    /**
94
     * Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and
95
     * subsequent calls adds additional elements to the original list. See {@link
96
     * TaxIdCollectionCreateParams#expand} for the field documentation.
97
     */
98
    public Builder addAllExpand(List<String> elements) {
99
      if (this.expand == null) {
×
100
        this.expand = new ArrayList<>();
×
101
      }
102
      this.expand.addAll(elements);
×
103
      return this;
×
104
    }
105

106
    /**
107
     * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
108
     * call, and subsequent calls add additional key/value pairs to the original map. See {@link
109
     * TaxIdCollectionCreateParams#extraParams} for the field documentation.
110
     */
111
    public Builder putExtraParam(String key, Object value) {
112
      if (this.extraParams == null) {
×
113
        this.extraParams = new HashMap<>();
×
114
      }
115
      this.extraParams.put(key, value);
×
116
      return this;
×
117
    }
118

119
    /**
120
     * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
121
     * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
122
     * See {@link TaxIdCollectionCreateParams#extraParams} for the field documentation.
123
     */
124
    public Builder putAllExtraParam(Map<String, Object> map) {
125
      if (this.extraParams == null) {
×
126
        this.extraParams = new HashMap<>();
×
127
      }
128
      this.extraParams.putAll(map);
×
129
      return this;
×
130
    }
131

132
    /**
133
     * <strong>Required.</strong> Type of the tax ID, one of {@code ad_nrt}, {@code ae_trn}, {@code
134
     * am_tin}, {@code ao_tin}, {@code ar_cuit}, {@code au_abn}, {@code au_arn}, {@code ba_tin},
135
     * {@code bb_tin}, {@code bg_uic}, {@code bh_vat}, {@code bo_tin}, {@code br_cnpj}, {@code
136
     * br_cpf}, {@code bs_tin}, {@code by_tin}, {@code ca_bn}, {@code ca_gst_hst}, {@code
137
     * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code cd_nif}, {@code
138
     * ch_uid}, {@code ch_vat}, {@code cl_tin}, {@code cn_tin}, {@code co_nit}, {@code cr_tin},
139
     * {@code de_stn}, {@code do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code
140
     * eu_oss_vat}, {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code gn_nif}, {@code hk_br},
141
     * {@code hr_oib}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code
142
     * is_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kh_tin}, {@code
143
     * kr_brn}, {@code kz_bin}, {@code li_uid}, {@code li_vat}, {@code ma_vat}, {@code md_vat},
144
     * {@code me_pib}, {@code mk_vat}, {@code mr_nif}, {@code mx_rfc}, {@code my_frp}, {@code
145
     * my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code np_pan},
146
     * {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code
147
     * rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen},
148
     * {@code si_tin}, {@code sn_ninea}, {@code sr_fin}, {@code sv_nit}, {@code th_vat}, {@code
149
     * tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code ua_vat}, {@code ug_tin},
150
     * {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, {@code
151
     * vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code zw_tin}
152
     */
153
    public Builder setType(TaxIdCollectionCreateParams.Type type) {
154
      this.type = type;
×
155
      return this;
×
156
    }
157

158
    /** <strong>Required.</strong> Value of the tax ID. */
159
    public Builder setValue(String value) {
160
      this.value = value;
×
161
      return this;
×
162
    }
163
  }
164

165
  public enum Type implements ApiRequestParams.EnumParam {
×
166
    @SerializedName("ad_nrt")
×
167
    AD_NRT("ad_nrt"),
168

169
    @SerializedName("ae_trn")
×
170
    AE_TRN("ae_trn"),
171

NEW
172
    @SerializedName("am_tin")
×
173
    AM_TIN("am_tin"),
174

NEW
175
    @SerializedName("ao_tin")
×
176
    AO_TIN("ao_tin"),
177

UNCOV
178
    @SerializedName("ar_cuit")
×
179
    AR_CUIT("ar_cuit"),
180

181
    @SerializedName("au_abn")
×
182
    AU_ABN("au_abn"),
183

184
    @SerializedName("au_arn")
×
185
    AU_ARN("au_arn"),
186

NEW
187
    @SerializedName("ba_tin")
×
188
    BA_TIN("ba_tin"),
189

NEW
190
    @SerializedName("bb_tin")
×
191
    BB_TIN("bb_tin"),
192

UNCOV
193
    @SerializedName("bg_uic")
×
194
    BG_UIC("bg_uic"),
195

196
    @SerializedName("bh_vat")
×
197
    BH_VAT("bh_vat"),
198

199
    @SerializedName("bo_tin")
×
200
    BO_TIN("bo_tin"),
201

202
    @SerializedName("br_cnpj")
×
203
    BR_CNPJ("br_cnpj"),
204

205
    @SerializedName("br_cpf")
×
206
    BR_CPF("br_cpf"),
207

NEW
208
    @SerializedName("bs_tin")
×
209
    BS_TIN("bs_tin"),
210

UNCOV
211
    @SerializedName("by_tin")
×
212
    BY_TIN("by_tin"),
213

214
    @SerializedName("ca_bn")
×
215
    CA_BN("ca_bn"),
216

217
    @SerializedName("ca_gst_hst")
×
218
    CA_GST_HST("ca_gst_hst"),
219

220
    @SerializedName("ca_pst_bc")
×
221
    CA_PST_BC("ca_pst_bc"),
222

223
    @SerializedName("ca_pst_mb")
×
224
    CA_PST_MB("ca_pst_mb"),
225

226
    @SerializedName("ca_pst_sk")
×
227
    CA_PST_SK("ca_pst_sk"),
228

229
    @SerializedName("ca_qst")
×
230
    CA_QST("ca_qst"),
231

NEW
232
    @SerializedName("cd_nif")
×
233
    CD_NIF("cd_nif"),
234

UNCOV
235
    @SerializedName("ch_uid")
×
236
    CH_UID("ch_uid"),
237

238
    @SerializedName("ch_vat")
×
239
    CH_VAT("ch_vat"),
240

241
    @SerializedName("cl_tin")
×
242
    CL_TIN("cl_tin"),
243

244
    @SerializedName("cn_tin")
×
245
    CN_TIN("cn_tin"),
246

247
    @SerializedName("co_nit")
×
248
    CO_NIT("co_nit"),
249

250
    @SerializedName("cr_tin")
×
251
    CR_TIN("cr_tin"),
252

253
    @SerializedName("de_stn")
×
254
    DE_STN("de_stn"),
255

256
    @SerializedName("do_rcn")
×
257
    DO_RCN("do_rcn"),
258

259
    @SerializedName("ec_ruc")
×
260
    EC_RUC("ec_ruc"),
261

262
    @SerializedName("eg_tin")
×
263
    EG_TIN("eg_tin"),
264

265
    @SerializedName("es_cif")
×
266
    ES_CIF("es_cif"),
267

268
    @SerializedName("eu_oss_vat")
×
269
    EU_OSS_VAT("eu_oss_vat"),
270

271
    @SerializedName("eu_vat")
×
272
    EU_VAT("eu_vat"),
273

274
    @SerializedName("gb_vat")
×
275
    GB_VAT("gb_vat"),
276

277
    @SerializedName("ge_vat")
×
278
    GE_VAT("ge_vat"),
279

NEW
280
    @SerializedName("gn_nif")
×
281
    GN_NIF("gn_nif"),
282

UNCOV
283
    @SerializedName("hk_br")
×
284
    HK_BR("hk_br"),
285

286
    @SerializedName("hr_oib")
×
287
    HR_OIB("hr_oib"),
288

289
    @SerializedName("hu_tin")
×
290
    HU_TIN("hu_tin"),
291

292
    @SerializedName("id_npwp")
×
293
    ID_NPWP("id_npwp"),
294

295
    @SerializedName("il_vat")
×
296
    IL_VAT("il_vat"),
297

298
    @SerializedName("in_gst")
×
299
    IN_GST("in_gst"),
300

301
    @SerializedName("is_vat")
×
302
    IS_VAT("is_vat"),
303

304
    @SerializedName("jp_cn")
×
305
    JP_CN("jp_cn"),
306

307
    @SerializedName("jp_rn")
×
308
    JP_RN("jp_rn"),
309

310
    @SerializedName("jp_trn")
×
311
    JP_TRN("jp_trn"),
312

313
    @SerializedName("ke_pin")
×
314
    KE_PIN("ke_pin"),
315

NEW
316
    @SerializedName("kh_tin")
×
317
    KH_TIN("kh_tin"),
318

UNCOV
319
    @SerializedName("kr_brn")
×
320
    KR_BRN("kr_brn"),
321

322
    @SerializedName("kz_bin")
×
323
    KZ_BIN("kz_bin"),
324

325
    @SerializedName("li_uid")
×
326
    LI_UID("li_uid"),
327

328
    @SerializedName("li_vat")
×
329
    LI_VAT("li_vat"),
330

331
    @SerializedName("ma_vat")
×
332
    MA_VAT("ma_vat"),
333

334
    @SerializedName("md_vat")
×
335
    MD_VAT("md_vat"),
336

NEW
337
    @SerializedName("me_pib")
×
338
    ME_PIB("me_pib"),
339

NEW
340
    @SerializedName("mk_vat")
×
341
    MK_VAT("mk_vat"),
342

NEW
343
    @SerializedName("mr_nif")
×
344
    MR_NIF("mr_nif"),
345

UNCOV
346
    @SerializedName("mx_rfc")
×
347
    MX_RFC("mx_rfc"),
348

349
    @SerializedName("my_frp")
×
350
    MY_FRP("my_frp"),
351

352
    @SerializedName("my_itn")
×
353
    MY_ITN("my_itn"),
354

355
    @SerializedName("my_sst")
×
356
    MY_SST("my_sst"),
357

358
    @SerializedName("ng_tin")
×
359
    NG_TIN("ng_tin"),
360

361
    @SerializedName("no_vat")
×
362
    NO_VAT("no_vat"),
363

364
    @SerializedName("no_voec")
×
365
    NO_VOEC("no_voec"),
366

NEW
367
    @SerializedName("np_pan")
×
368
    NP_PAN("np_pan"),
369

UNCOV
370
    @SerializedName("nz_gst")
×
371
    NZ_GST("nz_gst"),
372

373
    @SerializedName("om_vat")
×
374
    OM_VAT("om_vat"),
375

376
    @SerializedName("pe_ruc")
×
377
    PE_RUC("pe_ruc"),
378

379
    @SerializedName("ph_tin")
×
380
    PH_TIN("ph_tin"),
381

382
    @SerializedName("ro_tin")
×
383
    RO_TIN("ro_tin"),
384

385
    @SerializedName("rs_pib")
×
386
    RS_PIB("rs_pib"),
387

388
    @SerializedName("ru_inn")
×
389
    RU_INN("ru_inn"),
390

391
    @SerializedName("ru_kpp")
×
392
    RU_KPP("ru_kpp"),
393

394
    @SerializedName("sa_vat")
×
395
    SA_VAT("sa_vat"),
396

397
    @SerializedName("sg_gst")
×
398
    SG_GST("sg_gst"),
399

400
    @SerializedName("sg_uen")
×
401
    SG_UEN("sg_uen"),
402

403
    @SerializedName("si_tin")
×
404
    SI_TIN("si_tin"),
405

NEW
406
    @SerializedName("sn_ninea")
×
407
    SN_NINEA("sn_ninea"),
408

NEW
409
    @SerializedName("sr_fin")
×
410
    SR_FIN("sr_fin"),
411

UNCOV
412
    @SerializedName("sv_nit")
×
413
    SV_NIT("sv_nit"),
414

415
    @SerializedName("th_vat")
×
416
    TH_VAT("th_vat"),
417

NEW
418
    @SerializedName("tj_tin")
×
419
    TJ_TIN("tj_tin"),
420

UNCOV
421
    @SerializedName("tr_tin")
×
422
    TR_TIN("tr_tin"),
423

424
    @SerializedName("tw_vat")
×
425
    TW_VAT("tw_vat"),
426

427
    @SerializedName("tz_vat")
×
428
    TZ_VAT("tz_vat"),
429

430
    @SerializedName("ua_vat")
×
431
    UA_VAT("ua_vat"),
432

NEW
433
    @SerializedName("ug_tin")
×
434
    UG_TIN("ug_tin"),
435

UNCOV
436
    @SerializedName("us_ein")
×
437
    US_EIN("us_ein"),
438

439
    @SerializedName("uy_ruc")
×
440
    UY_RUC("uy_ruc"),
441

442
    @SerializedName("uz_tin")
×
443
    UZ_TIN("uz_tin"),
444

445
    @SerializedName("uz_vat")
×
446
    UZ_VAT("uz_vat"),
447

448
    @SerializedName("ve_rif")
×
449
    VE_RIF("ve_rif"),
450

451
    @SerializedName("vn_tin")
×
452
    VN_TIN("vn_tin"),
453

454
    @SerializedName("za_vat")
×
455
    ZA_VAT("za_vat"),
456

NEW
457
    @SerializedName("zm_tin")
×
458
    ZM_TIN("zm_tin"),
459

NEW
460
    @SerializedName("zw_tin")
×
461
    ZW_TIN("zw_tin");
462

463
    @Getter(onMethod_ = {@Override})
464
    private final String value;
465

466
    Type(String value) {
×
467
      this.value = value;
×
468
    }
×
469
  }
470
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc