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

stripe / stripe-java / #16725

08 Jan 2025 03:19PM UTC coverage: 12.341% (-0.04%) from 12.384%
#16725

Pull #1932

github

web-flow
Merge 1890010d3 into 9aeb03b42
Pull Request #1932: Update generated code for beta

29 of 1339 new or added lines in 25 files covered. (2.17%)

45 existing lines in 12 files now uncovered.

18905 of 153189 relevant lines covered (12.34%)

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
   * al_tin}, {@code am_tin}, {@code ao_tin}, {@code ar_cuit}, {@code au_abn}, {@code au_arn},
30
   * {@code ba_tin}, {@code bb_tin}, {@code bg_uic}, {@code bh_vat}, {@code bo_tin}, {@code
31
   * br_cnpj}, {@code br_cpf}, {@code bs_tin}, {@code by_tin}, {@code ca_bn}, {@code ca_gst_hst},
32
   * {@code ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code cd_nif}, {@code
33
   * ch_uid}, {@code ch_vat}, {@code cl_tin}, {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code
34
   * de_stn}, {@code do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat},
35
   * {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code gn_nif}, {@code hk_br}, {@code hr_oib},
36
   * {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn},
37
   * {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kh_tin}, {@code kr_brn}, {@code kz_bin},
38
   * {@code li_uid}, {@code li_vat}, {@code ma_vat}, {@code md_vat}, {@code me_pib}, {@code mk_vat},
39
   * {@code mr_nif}, {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin},
40
   * {@code no_vat}, {@code no_voec}, {@code np_pan}, {@code nz_gst}, {@code om_vat}, {@code
41
   * pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code
42
   * sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sn_ninea}, {@code sr_fin},
43
   * {@code sv_nit}, {@code th_vat}, {@code tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat},
44
   * {@code ua_vat}, {@code ug_tin}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat},
45
   * {@code ve_rif}, {@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
     * al_tin}, {@code am_tin}, {@code ao_tin}, {@code ar_cuit}, {@code au_abn}, {@code au_arn},
135
     * {@code ba_tin}, {@code bb_tin}, {@code bg_uic}, {@code bh_vat}, {@code bo_tin}, {@code
136
     * br_cnpj}, {@code br_cpf}, {@code bs_tin}, {@code by_tin}, {@code ca_bn}, {@code ca_gst_hst},
137
     * {@code ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code cd_nif},
138
     * {@code ch_uid}, {@code ch_vat}, {@code cl_tin}, {@code cn_tin}, {@code co_nit}, {@code
139
     * cr_tin}, {@code de_stn}, {@code do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif},
140
     * {@code eu_oss_vat}, {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code gn_nif}, {@code
141
     * hk_br}, {@code hr_oib}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst},
142
     * {@code is_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kh_tin},
143
     * {@code kr_brn}, {@code kz_bin}, {@code li_uid}, {@code li_vat}, {@code ma_vat}, {@code
144
     * md_vat}, {@code me_pib}, {@code mk_vat}, {@code mr_nif}, {@code mx_rfc}, {@code my_frp},
145
     * {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code
146
     * np_pan}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin},
147
     * {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code
148
     * sg_uen}, {@code si_tin}, {@code sn_ninea}, {@code sr_fin}, {@code sv_nit}, {@code th_vat},
149
     * {@code tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code ua_vat}, {@code
150
     * ug_tin}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code ve_rif},
151
     * {@code 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("al_tin")
×
173
    AL_TIN("al_tin"),
174

UNCOV
175
    @SerializedName("am_tin")
×
176
    AM_TIN("am_tin"),
177

178
    @SerializedName("ao_tin")
×
179
    AO_TIN("ao_tin"),
180

181
    @SerializedName("ar_cuit")
×
182
    AR_CUIT("ar_cuit"),
183

184
    @SerializedName("au_abn")
×
185
    AU_ABN("au_abn"),
186

187
    @SerializedName("au_arn")
×
188
    AU_ARN("au_arn"),
189

190
    @SerializedName("ba_tin")
×
191
    BA_TIN("ba_tin"),
192

193
    @SerializedName("bb_tin")
×
194
    BB_TIN("bb_tin"),
195

196
    @SerializedName("bg_uic")
×
197
    BG_UIC("bg_uic"),
198

199
    @SerializedName("bh_vat")
×
200
    BH_VAT("bh_vat"),
201

202
    @SerializedName("bo_tin")
×
203
    BO_TIN("bo_tin"),
204

205
    @SerializedName("br_cnpj")
×
206
    BR_CNPJ("br_cnpj"),
207

208
    @SerializedName("br_cpf")
×
209
    BR_CPF("br_cpf"),
210

211
    @SerializedName("bs_tin")
×
212
    BS_TIN("bs_tin"),
213

214
    @SerializedName("by_tin")
×
215
    BY_TIN("by_tin"),
216

217
    @SerializedName("ca_bn")
×
218
    CA_BN("ca_bn"),
219

220
    @SerializedName("ca_gst_hst")
×
221
    CA_GST_HST("ca_gst_hst"),
222

223
    @SerializedName("ca_pst_bc")
×
224
    CA_PST_BC("ca_pst_bc"),
225

226
    @SerializedName("ca_pst_mb")
×
227
    CA_PST_MB("ca_pst_mb"),
228

229
    @SerializedName("ca_pst_sk")
×
230
    CA_PST_SK("ca_pst_sk"),
231

232
    @SerializedName("ca_qst")
×
233
    CA_QST("ca_qst"),
234

235
    @SerializedName("cd_nif")
×
236
    CD_NIF("cd_nif"),
237

238
    @SerializedName("ch_uid")
×
239
    CH_UID("ch_uid"),
240

241
    @SerializedName("ch_vat")
×
242
    CH_VAT("ch_vat"),
243

244
    @SerializedName("cl_tin")
×
245
    CL_TIN("cl_tin"),
246

247
    @SerializedName("cn_tin")
×
248
    CN_TIN("cn_tin"),
249

250
    @SerializedName("co_nit")
×
251
    CO_NIT("co_nit"),
252

253
    @SerializedName("cr_tin")
×
254
    CR_TIN("cr_tin"),
255

256
    @SerializedName("de_stn")
×
257
    DE_STN("de_stn"),
258

259
    @SerializedName("do_rcn")
×
260
    DO_RCN("do_rcn"),
261

262
    @SerializedName("ec_ruc")
×
263
    EC_RUC("ec_ruc"),
264

265
    @SerializedName("eg_tin")
×
266
    EG_TIN("eg_tin"),
267

268
    @SerializedName("es_cif")
×
269
    ES_CIF("es_cif"),
270

271
    @SerializedName("eu_oss_vat")
×
272
    EU_OSS_VAT("eu_oss_vat"),
273

274
    @SerializedName("eu_vat")
×
275
    EU_VAT("eu_vat"),
276

277
    @SerializedName("gb_vat")
×
278
    GB_VAT("gb_vat"),
279

280
    @SerializedName("ge_vat")
×
281
    GE_VAT("ge_vat"),
282

283
    @SerializedName("gn_nif")
×
284
    GN_NIF("gn_nif"),
285

286
    @SerializedName("hk_br")
×
287
    HK_BR("hk_br"),
288

289
    @SerializedName("hr_oib")
×
290
    HR_OIB("hr_oib"),
291

292
    @SerializedName("hu_tin")
×
293
    HU_TIN("hu_tin"),
294

295
    @SerializedName("id_npwp")
×
296
    ID_NPWP("id_npwp"),
297

298
    @SerializedName("il_vat")
×
299
    IL_VAT("il_vat"),
300

301
    @SerializedName("in_gst")
×
302
    IN_GST("in_gst"),
303

304
    @SerializedName("is_vat")
×
305
    IS_VAT("is_vat"),
306

307
    @SerializedName("jp_cn")
×
308
    JP_CN("jp_cn"),
309

310
    @SerializedName("jp_rn")
×
311
    JP_RN("jp_rn"),
312

313
    @SerializedName("jp_trn")
×
314
    JP_TRN("jp_trn"),
315

316
    @SerializedName("ke_pin")
×
317
    KE_PIN("ke_pin"),
318

319
    @SerializedName("kh_tin")
×
320
    KH_TIN("kh_tin"),
321

322
    @SerializedName("kr_brn")
×
323
    KR_BRN("kr_brn"),
324

325
    @SerializedName("kz_bin")
×
326
    KZ_BIN("kz_bin"),
327

328
    @SerializedName("li_uid")
×
329
    LI_UID("li_uid"),
330

331
    @SerializedName("li_vat")
×
332
    LI_VAT("li_vat"),
333

334
    @SerializedName("ma_vat")
×
335
    MA_VAT("ma_vat"),
336

337
    @SerializedName("md_vat")
×
338
    MD_VAT("md_vat"),
339

340
    @SerializedName("me_pib")
×
341
    ME_PIB("me_pib"),
342

343
    @SerializedName("mk_vat")
×
344
    MK_VAT("mk_vat"),
345

346
    @SerializedName("mr_nif")
×
347
    MR_NIF("mr_nif"),
348

349
    @SerializedName("mx_rfc")
×
350
    MX_RFC("mx_rfc"),
351

352
    @SerializedName("my_frp")
×
353
    MY_FRP("my_frp"),
354

355
    @SerializedName("my_itn")
×
356
    MY_ITN("my_itn"),
357

358
    @SerializedName("my_sst")
×
359
    MY_SST("my_sst"),
360

361
    @SerializedName("ng_tin")
×
362
    NG_TIN("ng_tin"),
363

364
    @SerializedName("no_vat")
×
365
    NO_VAT("no_vat"),
366

367
    @SerializedName("no_voec")
×
368
    NO_VOEC("no_voec"),
369

370
    @SerializedName("np_pan")
×
371
    NP_PAN("np_pan"),
372

373
    @SerializedName("nz_gst")
×
374
    NZ_GST("nz_gst"),
375

376
    @SerializedName("om_vat")
×
377
    OM_VAT("om_vat"),
378

379
    @SerializedName("pe_ruc")
×
380
    PE_RUC("pe_ruc"),
381

382
    @SerializedName("ph_tin")
×
383
    PH_TIN("ph_tin"),
384

385
    @SerializedName("ro_tin")
×
386
    RO_TIN("ro_tin"),
387

388
    @SerializedName("rs_pib")
×
389
    RS_PIB("rs_pib"),
390

391
    @SerializedName("ru_inn")
×
392
    RU_INN("ru_inn"),
393

394
    @SerializedName("ru_kpp")
×
395
    RU_KPP("ru_kpp"),
396

397
    @SerializedName("sa_vat")
×
398
    SA_VAT("sa_vat"),
399

400
    @SerializedName("sg_gst")
×
401
    SG_GST("sg_gst"),
402

403
    @SerializedName("sg_uen")
×
404
    SG_UEN("sg_uen"),
405

406
    @SerializedName("si_tin")
×
407
    SI_TIN("si_tin"),
408

409
    @SerializedName("sn_ninea")
×
410
    SN_NINEA("sn_ninea"),
411

412
    @SerializedName("sr_fin")
×
413
    SR_FIN("sr_fin"),
414

415
    @SerializedName("sv_nit")
×
416
    SV_NIT("sv_nit"),
417

418
    @SerializedName("th_vat")
×
419
    TH_VAT("th_vat"),
420

421
    @SerializedName("tj_tin")
×
422
    TJ_TIN("tj_tin"),
423

424
    @SerializedName("tr_tin")
×
425
    TR_TIN("tr_tin"),
426

427
    @SerializedName("tw_vat")
×
428
    TW_VAT("tw_vat"),
429

430
    @SerializedName("tz_vat")
×
431
    TZ_VAT("tz_vat"),
432

433
    @SerializedName("ua_vat")
×
434
    UA_VAT("ua_vat"),
435

436
    @SerializedName("ug_tin")
×
437
    UG_TIN("ug_tin"),
438

439
    @SerializedName("us_ein")
×
440
    US_EIN("us_ein"),
441

442
    @SerializedName("uy_ruc")
×
443
    UY_RUC("uy_ruc"),
444

445
    @SerializedName("uz_tin")
×
446
    UZ_TIN("uz_tin"),
447

448
    @SerializedName("uz_vat")
×
449
    UZ_VAT("uz_vat"),
450

451
    @SerializedName("ve_rif")
×
452
    VE_RIF("ve_rif"),
453

454
    @SerializedName("vn_tin")
×
455
    VN_TIN("vn_tin"),
456

457
    @SerializedName("za_vat")
×
458
    ZA_VAT("za_vat"),
459

460
    @SerializedName("zm_tin")
×
461
    ZM_TIN("zm_tin"),
462

463
    @SerializedName("zw_tin")
×
464
    ZW_TIN("zw_tin");
465

466
    @Getter(onMethod_ = {@Override})
467
    private final String value;
468

469
    Type(String value) {
×
470
      this.value = value;
×
471
    }
×
472
  }
473
}
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