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

stripe / stripe-java / #16624

07 Nov 2024 10:04PM UTC coverage: 12.419% (-0.1%) from 12.519%
#16624

push

github

web-flow
Merge pull request #1917 from stripe/latest-codegen-beta

Update generated code for beta

17 of 1341 new or added lines in 57 files covered. (1.27%)

33 existing lines in 29 files now uncovered.

18855 of 151828 relevant lines covered (12.42%)

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
   * ar_cuit}, {@code au_abn}, {@code au_arn}, {@code bg_uic}, {@code bh_vat}, {@code bo_tin},
30
   * {@code br_cnpj}, {@code br_cpf}, {@code by_tin}, {@code ca_bn}, {@code ca_gst_hst}, {@code
31
   * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code
32
   * ch_vat}, {@code cl_tin}, {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code de_stn}, {@code
33
   * do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat}, {@code eu_vat},
34
   * {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, {@code id_npwp},
35
   * {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn},
36
   * {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, {@code li_vat}, {@code ma_vat},
37
   * {@code md_vat}, {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin},
38
   * {@code no_vat}, {@code no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code
39
   * ph_tin}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code
40
   * sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code
41
   * tw_vat}, {@code tz_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code
42
   * uz_vat}, {@code ve_rif}, {@code vn_tin}, or {@code za_vat}
43
   */
44
  @SerializedName("type")
45
  Type type;
46

47
  /** <strong>Required.</strong> Value of the tax ID. */
48
  @SerializedName("value")
49
  String value;
50

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

59
  public static Builder builder() {
60
    return new Builder();
×
61
  }
62

63
  public static class Builder {
×
64
    private List<String> expand;
65

66
    private Map<String, Object> extraParams;
67

68
    private Type type;
69

70
    private String value;
71

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

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

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

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

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

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

152
    /** <strong>Required.</strong> Value of the tax ID. */
153
    public Builder setValue(String value) {
154
      this.value = value;
×
155
      return this;
×
156
    }
157
  }
158

159
  public enum Type implements ApiRequestParams.EnumParam {
×
160
    @SerializedName("ad_nrt")
×
161
    AD_NRT("ad_nrt"),
162

163
    @SerializedName("ae_trn")
×
164
    AE_TRN("ae_trn"),
165

166
    @SerializedName("ar_cuit")
×
167
    AR_CUIT("ar_cuit"),
168

169
    @SerializedName("au_abn")
×
170
    AU_ABN("au_abn"),
171

172
    @SerializedName("au_arn")
×
173
    AU_ARN("au_arn"),
174

175
    @SerializedName("bg_uic")
×
176
    BG_UIC("bg_uic"),
177

178
    @SerializedName("bh_vat")
×
179
    BH_VAT("bh_vat"),
180

181
    @SerializedName("bo_tin")
×
182
    BO_TIN("bo_tin"),
183

184
    @SerializedName("br_cnpj")
×
185
    BR_CNPJ("br_cnpj"),
186

187
    @SerializedName("br_cpf")
×
188
    BR_CPF("br_cpf"),
189

190
    @SerializedName("by_tin")
×
191
    BY_TIN("by_tin"),
192

193
    @SerializedName("ca_bn")
×
194
    CA_BN("ca_bn"),
195

196
    @SerializedName("ca_gst_hst")
×
197
    CA_GST_HST("ca_gst_hst"),
198

199
    @SerializedName("ca_pst_bc")
×
200
    CA_PST_BC("ca_pst_bc"),
201

202
    @SerializedName("ca_pst_mb")
×
203
    CA_PST_MB("ca_pst_mb"),
204

205
    @SerializedName("ca_pst_sk")
×
206
    CA_PST_SK("ca_pst_sk"),
207

208
    @SerializedName("ca_qst")
×
209
    CA_QST("ca_qst"),
210

211
    @SerializedName("ch_uid")
×
212
    CH_UID("ch_uid"),
213

214
    @SerializedName("ch_vat")
×
215
    CH_VAT("ch_vat"),
216

217
    @SerializedName("cl_tin")
×
218
    CL_TIN("cl_tin"),
219

220
    @SerializedName("cn_tin")
×
221
    CN_TIN("cn_tin"),
222

223
    @SerializedName("co_nit")
×
224
    CO_NIT("co_nit"),
225

226
    @SerializedName("cr_tin")
×
227
    CR_TIN("cr_tin"),
228

229
    @SerializedName("de_stn")
×
230
    DE_STN("de_stn"),
231

232
    @SerializedName("do_rcn")
×
233
    DO_RCN("do_rcn"),
234

235
    @SerializedName("ec_ruc")
×
236
    EC_RUC("ec_ruc"),
237

238
    @SerializedName("eg_tin")
×
239
    EG_TIN("eg_tin"),
240

241
    @SerializedName("es_cif")
×
242
    ES_CIF("es_cif"),
243

244
    @SerializedName("eu_oss_vat")
×
245
    EU_OSS_VAT("eu_oss_vat"),
246

247
    @SerializedName("eu_vat")
×
248
    EU_VAT("eu_vat"),
249

250
    @SerializedName("gb_vat")
×
251
    GB_VAT("gb_vat"),
252

253
    @SerializedName("ge_vat")
×
254
    GE_VAT("ge_vat"),
255

256
    @SerializedName("hk_br")
×
257
    HK_BR("hk_br"),
258

259
    @SerializedName("hr_oib")
×
260
    HR_OIB("hr_oib"),
261

262
    @SerializedName("hu_tin")
×
263
    HU_TIN("hu_tin"),
264

265
    @SerializedName("id_npwp")
×
266
    ID_NPWP("id_npwp"),
267

268
    @SerializedName("il_vat")
×
269
    IL_VAT("il_vat"),
270

271
    @SerializedName("in_gst")
×
272
    IN_GST("in_gst"),
273

274
    @SerializedName("is_vat")
×
275
    IS_VAT("is_vat"),
276

277
    @SerializedName("jp_cn")
×
278
    JP_CN("jp_cn"),
279

280
    @SerializedName("jp_rn")
×
281
    JP_RN("jp_rn"),
282

283
    @SerializedName("jp_trn")
×
284
    JP_TRN("jp_trn"),
285

286
    @SerializedName("ke_pin")
×
287
    KE_PIN("ke_pin"),
288

289
    @SerializedName("kr_brn")
×
290
    KR_BRN("kr_brn"),
291

292
    @SerializedName("kz_bin")
×
293
    KZ_BIN("kz_bin"),
294

295
    @SerializedName("li_uid")
×
296
    LI_UID("li_uid"),
297

NEW
298
    @SerializedName("li_vat")
×
299
    LI_VAT("li_vat"),
300

UNCOV
301
    @SerializedName("ma_vat")
×
302
    MA_VAT("ma_vat"),
303

304
    @SerializedName("md_vat")
×
305
    MD_VAT("md_vat"),
306

307
    @SerializedName("mx_rfc")
×
308
    MX_RFC("mx_rfc"),
309

310
    @SerializedName("my_frp")
×
311
    MY_FRP("my_frp"),
312

313
    @SerializedName("my_itn")
×
314
    MY_ITN("my_itn"),
315

316
    @SerializedName("my_sst")
×
317
    MY_SST("my_sst"),
318

319
    @SerializedName("ng_tin")
×
320
    NG_TIN("ng_tin"),
321

322
    @SerializedName("no_vat")
×
323
    NO_VAT("no_vat"),
324

325
    @SerializedName("no_voec")
×
326
    NO_VOEC("no_voec"),
327

328
    @SerializedName("nz_gst")
×
329
    NZ_GST("nz_gst"),
330

331
    @SerializedName("om_vat")
×
332
    OM_VAT("om_vat"),
333

334
    @SerializedName("pe_ruc")
×
335
    PE_RUC("pe_ruc"),
336

337
    @SerializedName("ph_tin")
×
338
    PH_TIN("ph_tin"),
339

340
    @SerializedName("ro_tin")
×
341
    RO_TIN("ro_tin"),
342

343
    @SerializedName("rs_pib")
×
344
    RS_PIB("rs_pib"),
345

346
    @SerializedName("ru_inn")
×
347
    RU_INN("ru_inn"),
348

349
    @SerializedName("ru_kpp")
×
350
    RU_KPP("ru_kpp"),
351

352
    @SerializedName("sa_vat")
×
353
    SA_VAT("sa_vat"),
354

355
    @SerializedName("sg_gst")
×
356
    SG_GST("sg_gst"),
357

358
    @SerializedName("sg_uen")
×
359
    SG_UEN("sg_uen"),
360

361
    @SerializedName("si_tin")
×
362
    SI_TIN("si_tin"),
363

364
    @SerializedName("sv_nit")
×
365
    SV_NIT("sv_nit"),
366

367
    @SerializedName("th_vat")
×
368
    TH_VAT("th_vat"),
369

370
    @SerializedName("tr_tin")
×
371
    TR_TIN("tr_tin"),
372

373
    @SerializedName("tw_vat")
×
374
    TW_VAT("tw_vat"),
375

376
    @SerializedName("tz_vat")
×
377
    TZ_VAT("tz_vat"),
378

379
    @SerializedName("ua_vat")
×
380
    UA_VAT("ua_vat"),
381

382
    @SerializedName("us_ein")
×
383
    US_EIN("us_ein"),
384

385
    @SerializedName("uy_ruc")
×
386
    UY_RUC("uy_ruc"),
387

388
    @SerializedName("uz_tin")
×
389
    UZ_TIN("uz_tin"),
390

391
    @SerializedName("uz_vat")
×
392
    UZ_VAT("uz_vat"),
393

394
    @SerializedName("ve_rif")
×
395
    VE_RIF("ve_rif"),
396

397
    @SerializedName("vn_tin")
×
398
    VN_TIN("vn_tin"),
399

400
    @SerializedName("za_vat")
×
401
    ZA_VAT("za_vat");
402

403
    @Getter(onMethod_ = {@Override})
404
    private final String value;
405

406
    Type(String value) {
×
407
      this.value = value;
×
408
    }
×
409
  }
410
}
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

© 2026 Coveralls, Inc