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

stripe / stripe-java / #14572

pending completion
#14572

push

github-actions

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

Update generated code for beta

170 of 170 new or added lines in 10 files covered. (100.0%)

10352 of 93511 relevant lines covered (11.07%)

0.11 hits per line

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

4.52
/src/main/java/com/stripe/param/WebhookEndpointUpdateParams.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 com.stripe.param.common.EmptyParam;
7
import java.util.ArrayList;
8
import java.util.HashMap;
9
import java.util.List;
10
import java.util.Map;
11
import lombok.Getter;
12

13
@Getter
14
public class WebhookEndpointUpdateParams extends ApiRequestParams {
15
  /** An optional description of what the webhook is used for. */
16
  @SerializedName("description")
17
  Object description;
18

19
  /** Disable the webhook endpoint if set to true. */
20
  @SerializedName("disabled")
21
  Boolean disabled;
22

23
  /**
24
   * The list of events to enable for this endpoint. You may specify {@code ['*']} to enable all
25
   * events, except those that require explicit selection.
26
   */
27
  @SerializedName("enabled_events")
28
  List<WebhookEndpointUpdateParams.EnabledEvent> enabledEvents;
29

30
  /** Specifies which fields in the response should be expanded. */
31
  @SerializedName("expand")
32
  List<String> expand;
33

34
  /**
35
   * Map of extra parameters for custom features not available in this client library. The content
36
   * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
37
   * key/value pair is serialized as if the key is a root-level field (serialized) name in this
38
   * param object. Effectively, this map is flattened to its parent instance.
39
   */
40
  @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
41
  Map<String, Object> extraParams;
42

43
  /**
44
   * Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach
45
   * to an object. This can be useful for storing additional information about the object in a
46
   * structured format. Individual keys can be unset by posting an empty value to them. All keys can
47
   * be unset by posting an empty value to {@code metadata}.
48
   */
49
  @SerializedName("metadata")
50
  Object metadata;
51

52
  /** The URL of the webhook endpoint. */
53
  @SerializedName("url")
54
  Object url;
55

56
  private WebhookEndpointUpdateParams(
57
      Object description,
58
      Boolean disabled,
59
      List<WebhookEndpointUpdateParams.EnabledEvent> enabledEvents,
60
      List<String> expand,
61
      Map<String, Object> extraParams,
62
      Object metadata,
63
      Object url) {
1✔
64
    this.description = description;
1✔
65
    this.disabled = disabled;
1✔
66
    this.enabledEvents = enabledEvents;
1✔
67
    this.expand = expand;
1✔
68
    this.extraParams = extraParams;
1✔
69
    this.metadata = metadata;
1✔
70
    this.url = url;
1✔
71
  }
1✔
72

73
  public static Builder builder() {
74
    return new Builder();
1✔
75
  }
76

77
  public static class Builder {
1✔
78
    private Object description;
79

80
    private Boolean disabled;
81

82
    private List<WebhookEndpointUpdateParams.EnabledEvent> enabledEvents;
83

84
    private List<String> expand;
85

86
    private Map<String, Object> extraParams;
87

88
    private Object metadata;
89

90
    private Object url;
91

92
    /** Finalize and obtain parameter instance from this builder. */
93
    public WebhookEndpointUpdateParams build() {
94
      return new WebhookEndpointUpdateParams(
1✔
95
          this.description,
96
          this.disabled,
97
          this.enabledEvents,
98
          this.expand,
99
          this.extraParams,
100
          this.metadata,
101
          this.url);
102
    }
103

104
    /** An optional description of what the webhook is used for. */
105
    public Builder setDescription(String description) {
106
      this.description = description;
×
107
      return this;
×
108
    }
109

110
    /** An optional description of what the webhook is used for. */
111
    public Builder setDescription(EmptyParam description) {
112
      this.description = description;
×
113
      return this;
×
114
    }
115

116
    /** Disable the webhook endpoint if set to true. */
117
    public Builder setDisabled(Boolean disabled) {
118
      this.disabled = disabled;
×
119
      return this;
×
120
    }
121

122
    /**
123
     * Add an element to `enabledEvents` list. A list is initialized for the first `add/addAll`
124
     * call, and subsequent calls adds additional elements to the original list. See {@link
125
     * WebhookEndpointUpdateParams#enabledEvents} for the field documentation.
126
     */
127
    public Builder addEnabledEvent(WebhookEndpointUpdateParams.EnabledEvent element) {
128
      if (this.enabledEvents == null) {
×
129
        this.enabledEvents = new ArrayList<>();
×
130
      }
131
      this.enabledEvents.add(element);
×
132
      return this;
×
133
    }
134

135
    /**
136
     * Add all elements to `enabledEvents` list. A list is initialized for the first `add/addAll`
137
     * call, and subsequent calls adds additional elements to the original list. See {@link
138
     * WebhookEndpointUpdateParams#enabledEvents} for the field documentation.
139
     */
140
    public Builder addAllEnabledEvent(List<WebhookEndpointUpdateParams.EnabledEvent> elements) {
141
      if (this.enabledEvents == null) {
×
142
        this.enabledEvents = new ArrayList<>();
×
143
      }
144
      this.enabledEvents.addAll(elements);
×
145
      return this;
×
146
    }
147

148
    /**
149
     * Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and
150
     * subsequent calls adds additional elements to the original list. See {@link
151
     * WebhookEndpointUpdateParams#expand} for the field documentation.
152
     */
153
    public Builder addExpand(String element) {
154
      if (this.expand == null) {
×
155
        this.expand = new ArrayList<>();
×
156
      }
157
      this.expand.add(element);
×
158
      return this;
×
159
    }
160

161
    /**
162
     * Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and
163
     * subsequent calls adds additional elements to the original list. See {@link
164
     * WebhookEndpointUpdateParams#expand} for the field documentation.
165
     */
166
    public Builder addAllExpand(List<String> elements) {
167
      if (this.expand == null) {
×
168
        this.expand = new ArrayList<>();
×
169
      }
170
      this.expand.addAll(elements);
×
171
      return this;
×
172
    }
173

174
    /**
175
     * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
176
     * call, and subsequent calls add additional key/value pairs to the original map. See {@link
177
     * WebhookEndpointUpdateParams#extraParams} for the field documentation.
178
     */
179
    public Builder putExtraParam(String key, Object value) {
180
      if (this.extraParams == null) {
×
181
        this.extraParams = new HashMap<>();
×
182
      }
183
      this.extraParams.put(key, value);
×
184
      return this;
×
185
    }
186

187
    /**
188
     * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
189
     * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
190
     * See {@link WebhookEndpointUpdateParams#extraParams} for the field documentation.
191
     */
192
    public Builder putAllExtraParam(Map<String, Object> map) {
193
      if (this.extraParams == null) {
×
194
        this.extraParams = new HashMap<>();
×
195
      }
196
      this.extraParams.putAll(map);
×
197
      return this;
×
198
    }
199

200
    /**
201
     * Add a key/value pair to `metadata` map. A map is initialized for the first `put/putAll` call,
202
     * and subsequent calls add additional key/value pairs to the original map. See {@link
203
     * WebhookEndpointUpdateParams#metadata} for the field documentation.
204
     */
205
    @SuppressWarnings("unchecked")
206
    public Builder putMetadata(String key, String value) {
207
      if (this.metadata == null || this.metadata instanceof EmptyParam) {
×
208
        this.metadata = new HashMap<String, String>();
×
209
      }
210
      ((Map<String, String>) this.metadata).put(key, value);
×
211
      return this;
×
212
    }
213

214
    /**
215
     * Add all map key/value pairs to `metadata` map. A map is initialized for the first
216
     * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
217
     * See {@link WebhookEndpointUpdateParams#metadata} for the field documentation.
218
     */
219
    @SuppressWarnings("unchecked")
220
    public Builder putAllMetadata(Map<String, String> map) {
221
      if (this.metadata == null || this.metadata instanceof EmptyParam) {
×
222
        this.metadata = new HashMap<String, String>();
×
223
      }
224
      ((Map<String, String>) this.metadata).putAll(map);
×
225
      return this;
×
226
    }
227

228
    /**
229
     * Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach
230
     * to an object. This can be useful for storing additional information about the object in a
231
     * structured format. Individual keys can be unset by posting an empty value to them. All keys
232
     * can be unset by posting an empty value to {@code metadata}.
233
     */
234
    public Builder setMetadata(EmptyParam metadata) {
235
      this.metadata = metadata;
×
236
      return this;
×
237
    }
238

239
    /**
240
     * Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach
241
     * to an object. This can be useful for storing additional information about the object in a
242
     * structured format. Individual keys can be unset by posting an empty value to them. All keys
243
     * can be unset by posting an empty value to {@code metadata}.
244
     */
245
    public Builder setMetadata(Map<String, String> metadata) {
246
      this.metadata = metadata;
×
247
      return this;
×
248
    }
249

250
    /** The URL of the webhook endpoint. */
251
    public Builder setUrl(String url) {
252
      this.url = url;
1✔
253
      return this;
1✔
254
    }
255

256
    /** The URL of the webhook endpoint. */
257
    public Builder setUrl(EmptyParam url) {
258
      this.url = url;
×
259
      return this;
×
260
    }
261
  }
262

263
  public enum EnabledEvent implements ApiRequestParams.EnumParam {
×
264
    @SerializedName("*")
×
265
    ALL("*"),
266

267
    @SerializedName("account.application.authorized")
×
268
    ACCOUNT__APPLICATION__AUTHORIZED("account.application.authorized"),
269

270
    @SerializedName("account.application.deauthorized")
×
271
    ACCOUNT__APPLICATION__DEAUTHORIZED("account.application.deauthorized"),
272

273
    @SerializedName("account.external_account.created")
×
274
    ACCOUNT__EXTERNAL_ACCOUNT__CREATED("account.external_account.created"),
275

276
    @SerializedName("account.external_account.deleted")
×
277
    ACCOUNT__EXTERNAL_ACCOUNT__DELETED("account.external_account.deleted"),
278

279
    @SerializedName("account.external_account.updated")
×
280
    ACCOUNT__EXTERNAL_ACCOUNT__UPDATED("account.external_account.updated"),
281

282
    @SerializedName("account.updated")
×
283
    ACCOUNT__UPDATED("account.updated"),
284

285
    @SerializedName("application_fee.created")
×
286
    APPLICATION_FEE__CREATED("application_fee.created"),
287

288
    @SerializedName("application_fee.refund.updated")
×
289
    APPLICATION_FEE__REFUND__UPDATED("application_fee.refund.updated"),
290

291
    @SerializedName("application_fee.refunded")
×
292
    APPLICATION_FEE__REFUNDED("application_fee.refunded"),
293

294
    @SerializedName("balance.available")
×
295
    BALANCE__AVAILABLE("balance.available"),
296

297
    @SerializedName("billing_portal.configuration.created")
×
298
    BILLING_PORTAL__CONFIGURATION__CREATED("billing_portal.configuration.created"),
299

300
    @SerializedName("billing_portal.configuration.updated")
×
301
    BILLING_PORTAL__CONFIGURATION__UPDATED("billing_portal.configuration.updated"),
302

303
    @SerializedName("billing_portal.session.created")
×
304
    BILLING_PORTAL__SESSION__CREATED("billing_portal.session.created"),
305

306
    @SerializedName("capability.updated")
×
307
    CAPABILITY__UPDATED("capability.updated"),
308

309
    @SerializedName("capital.financing_offer.accepted")
×
310
    CAPITAL__FINANCING_OFFER__ACCEPTED("capital.financing_offer.accepted"),
311

312
    @SerializedName("capital.financing_offer.canceled")
×
313
    CAPITAL__FINANCING_OFFER__CANCELED("capital.financing_offer.canceled"),
314

315
    @SerializedName("capital.financing_offer.created")
×
316
    CAPITAL__FINANCING_OFFER__CREATED("capital.financing_offer.created"),
317

318
    @SerializedName("capital.financing_offer.expired")
×
319
    CAPITAL__FINANCING_OFFER__EXPIRED("capital.financing_offer.expired"),
320

321
    @SerializedName("capital.financing_offer.fully_repaid")
×
322
    CAPITAL__FINANCING_OFFER__FULLY_REPAID("capital.financing_offer.fully_repaid"),
323

324
    @SerializedName("capital.financing_offer.paid_out")
×
325
    CAPITAL__FINANCING_OFFER__PAID_OUT("capital.financing_offer.paid_out"),
326

327
    @SerializedName("capital.financing_offer.rejected")
×
328
    CAPITAL__FINANCING_OFFER__REJECTED("capital.financing_offer.rejected"),
329

330
    @SerializedName("capital.financing_offer.replacement_created")
×
331
    CAPITAL__FINANCING_OFFER__REPLACEMENT_CREATED("capital.financing_offer.replacement_created"),
332

333
    @SerializedName("capital.financing_transaction.created")
×
334
    CAPITAL__FINANCING_TRANSACTION__CREATED("capital.financing_transaction.created"),
335

336
    @SerializedName("cash_balance.funds_available")
×
337
    CASH_BALANCE__FUNDS_AVAILABLE("cash_balance.funds_available"),
338

339
    @SerializedName("charge.captured")
×
340
    CHARGE__CAPTURED("charge.captured"),
341

342
    @SerializedName("charge.dispute.closed")
×
343
    CHARGE__DISPUTE__CLOSED("charge.dispute.closed"),
344

345
    @SerializedName("charge.dispute.created")
×
346
    CHARGE__DISPUTE__CREATED("charge.dispute.created"),
347

348
    @SerializedName("charge.dispute.funds_reinstated")
×
349
    CHARGE__DISPUTE__FUNDS_REINSTATED("charge.dispute.funds_reinstated"),
350

351
    @SerializedName("charge.dispute.funds_withdrawn")
×
352
    CHARGE__DISPUTE__FUNDS_WITHDRAWN("charge.dispute.funds_withdrawn"),
353

354
    @SerializedName("charge.dispute.updated")
×
355
    CHARGE__DISPUTE__UPDATED("charge.dispute.updated"),
356

357
    @SerializedName("charge.expired")
×
358
    CHARGE__EXPIRED("charge.expired"),
359

360
    @SerializedName("charge.failed")
×
361
    CHARGE__FAILED("charge.failed"),
362

363
    @SerializedName("charge.pending")
×
364
    CHARGE__PENDING("charge.pending"),
365

366
    @SerializedName("charge.refund.updated")
×
367
    CHARGE__REFUND__UPDATED("charge.refund.updated"),
368

369
    @SerializedName("charge.refunded")
×
370
    CHARGE__REFUNDED("charge.refunded"),
371

372
    @SerializedName("charge.succeeded")
×
373
    CHARGE__SUCCEEDED("charge.succeeded"),
374

375
    @SerializedName("charge.updated")
×
376
    CHARGE__UPDATED("charge.updated"),
377

378
    @SerializedName("checkout.session.async_payment_failed")
×
379
    CHECKOUT__SESSION__ASYNC_PAYMENT_FAILED("checkout.session.async_payment_failed"),
380

381
    @SerializedName("checkout.session.async_payment_succeeded")
×
382
    CHECKOUT__SESSION__ASYNC_PAYMENT_SUCCEEDED("checkout.session.async_payment_succeeded"),
383

384
    @SerializedName("checkout.session.completed")
×
385
    CHECKOUT__SESSION__COMPLETED("checkout.session.completed"),
386

387
    @SerializedName("checkout.session.expired")
×
388
    CHECKOUT__SESSION__EXPIRED("checkout.session.expired"),
389

390
    @SerializedName("coupon.created")
×
391
    COUPON__CREATED("coupon.created"),
392

393
    @SerializedName("coupon.deleted")
×
394
    COUPON__DELETED("coupon.deleted"),
395

396
    @SerializedName("coupon.updated")
×
397
    COUPON__UPDATED("coupon.updated"),
398

399
    @SerializedName("credit_note.created")
×
400
    CREDIT_NOTE__CREATED("credit_note.created"),
401

402
    @SerializedName("credit_note.updated")
×
403
    CREDIT_NOTE__UPDATED("credit_note.updated"),
404

405
    @SerializedName("credit_note.voided")
×
406
    CREDIT_NOTE__VOIDED("credit_note.voided"),
407

408
    @SerializedName("customer.created")
×
409
    CUSTOMER__CREATED("customer.created"),
410

411
    @SerializedName("customer.deleted")
×
412
    CUSTOMER__DELETED("customer.deleted"),
413

414
    @SerializedName("customer.discount.created")
×
415
    CUSTOMER__DISCOUNT__CREATED("customer.discount.created"),
416

417
    @SerializedName("customer.discount.deleted")
×
418
    CUSTOMER__DISCOUNT__DELETED("customer.discount.deleted"),
419

420
    @SerializedName("customer.discount.updated")
×
421
    CUSTOMER__DISCOUNT__UPDATED("customer.discount.updated"),
422

423
    @SerializedName("customer.source.created")
×
424
    CUSTOMER__SOURCE__CREATED("customer.source.created"),
425

426
    @SerializedName("customer.source.deleted")
×
427
    CUSTOMER__SOURCE__DELETED("customer.source.deleted"),
428

429
    @SerializedName("customer.source.expiring")
×
430
    CUSTOMER__SOURCE__EXPIRING("customer.source.expiring"),
431

432
    @SerializedName("customer.source.updated")
×
433
    CUSTOMER__SOURCE__UPDATED("customer.source.updated"),
434

435
    @SerializedName("customer.subscription.collection_paused")
×
436
    CUSTOMER__SUBSCRIPTION__COLLECTION_PAUSED("customer.subscription.collection_paused"),
437

438
    @SerializedName("customer.subscription.collection_resumed")
×
439
    CUSTOMER__SUBSCRIPTION__COLLECTION_RESUMED("customer.subscription.collection_resumed"),
440

441
    @SerializedName("customer.subscription.created")
×
442
    CUSTOMER__SUBSCRIPTION__CREATED("customer.subscription.created"),
443

444
    @SerializedName("customer.subscription.deleted")
×
445
    CUSTOMER__SUBSCRIPTION__DELETED("customer.subscription.deleted"),
446

447
    @SerializedName("customer.subscription.paused")
×
448
    CUSTOMER__SUBSCRIPTION__PAUSED("customer.subscription.paused"),
449

450
    @SerializedName("customer.subscription.pending_update_applied")
×
451
    CUSTOMER__SUBSCRIPTION__PENDING_UPDATE_APPLIED("customer.subscription.pending_update_applied"),
452

453
    @SerializedName("customer.subscription.pending_update_expired")
×
454
    CUSTOMER__SUBSCRIPTION__PENDING_UPDATE_EXPIRED("customer.subscription.pending_update_expired"),
455

456
    @SerializedName("customer.subscription.resumed")
×
457
    CUSTOMER__SUBSCRIPTION__RESUMED("customer.subscription.resumed"),
458

459
    @SerializedName("customer.subscription.trial_will_end")
×
460
    CUSTOMER__SUBSCRIPTION__TRIAL_WILL_END("customer.subscription.trial_will_end"),
461

462
    @SerializedName("customer.subscription.updated")
×
463
    CUSTOMER__SUBSCRIPTION__UPDATED("customer.subscription.updated"),
464

465
    @SerializedName("customer.tax_id.created")
×
466
    CUSTOMER__TAX_ID__CREATED("customer.tax_id.created"),
467

468
    @SerializedName("customer.tax_id.deleted")
×
469
    CUSTOMER__TAX_ID__DELETED("customer.tax_id.deleted"),
470

471
    @SerializedName("customer.tax_id.updated")
×
472
    CUSTOMER__TAX_ID__UPDATED("customer.tax_id.updated"),
473

474
    @SerializedName("customer.updated")
×
475
    CUSTOMER__UPDATED("customer.updated"),
476

477
    @SerializedName("customer_cash_balance_transaction.created")
×
478
    CUSTOMER_CASH_BALANCE_TRANSACTION__CREATED("customer_cash_balance_transaction.created"),
479

480
    @SerializedName("file.created")
×
481
    FILE__CREATED("file.created"),
482

483
    @SerializedName("financial_connections.account.created")
×
484
    FINANCIAL_CONNECTIONS__ACCOUNT__CREATED("financial_connections.account.created"),
485

486
    @SerializedName("financial_connections.account.deactivated")
×
487
    FINANCIAL_CONNECTIONS__ACCOUNT__DEACTIVATED("financial_connections.account.deactivated"),
488

489
    @SerializedName("financial_connections.account.disconnected")
×
490
    FINANCIAL_CONNECTIONS__ACCOUNT__DISCONNECTED("financial_connections.account.disconnected"),
491

492
    @SerializedName("financial_connections.account.reactivated")
×
493
    FINANCIAL_CONNECTIONS__ACCOUNT__REACTIVATED("financial_connections.account.reactivated"),
494

495
    @SerializedName("financial_connections.account.refreshed_balance")
×
496
    FINANCIAL_CONNECTIONS__ACCOUNT__REFRESHED_BALANCE(
497
        "financial_connections.account.refreshed_balance"),
498

499
    @SerializedName("financial_connections.account.refreshed_inferred_balances")
×
500
    FINANCIAL_CONNECTIONS__ACCOUNT__REFRESHED_INFERRED_BALANCES(
501
        "financial_connections.account.refreshed_inferred_balances"),
502

503
    @SerializedName("financial_connections.account.refreshed_ownership")
×
504
    FINANCIAL_CONNECTIONS__ACCOUNT__REFRESHED_OWNERSHIP(
505
        "financial_connections.account.refreshed_ownership"),
506

507
    @SerializedName("financial_connections.account.refreshed_transactions")
×
508
    FINANCIAL_CONNECTIONS__ACCOUNT__REFRESHED_TRANSACTIONS(
509
        "financial_connections.account.refreshed_transactions"),
510

511
    @SerializedName("financial_connections.session.updated")
×
512
    FINANCIAL_CONNECTIONS__SESSION__UPDATED("financial_connections.session.updated"),
513

514
    @SerializedName("identity.verification_session.canceled")
×
515
    IDENTITY__VERIFICATION_SESSION__CANCELED("identity.verification_session.canceled"),
516

517
    @SerializedName("identity.verification_session.created")
×
518
    IDENTITY__VERIFICATION_SESSION__CREATED("identity.verification_session.created"),
519

520
    @SerializedName("identity.verification_session.processing")
×
521
    IDENTITY__VERIFICATION_SESSION__PROCESSING("identity.verification_session.processing"),
522

523
    @SerializedName("identity.verification_session.redacted")
×
524
    IDENTITY__VERIFICATION_SESSION__REDACTED("identity.verification_session.redacted"),
525

526
    @SerializedName("identity.verification_session.requires_input")
×
527
    IDENTITY__VERIFICATION_SESSION__REQUIRES_INPUT("identity.verification_session.requires_input"),
528

529
    @SerializedName("identity.verification_session.verified")
×
530
    IDENTITY__VERIFICATION_SESSION__VERIFIED("identity.verification_session.verified"),
531

532
    @SerializedName("invoice.created")
×
533
    INVOICE__CREATED("invoice.created"),
534

535
    @SerializedName("invoice.deleted")
×
536
    INVOICE__DELETED("invoice.deleted"),
537

538
    @SerializedName("invoice.finalization_failed")
×
539
    INVOICE__FINALIZATION_FAILED("invoice.finalization_failed"),
540

541
    @SerializedName("invoice.finalized")
×
542
    INVOICE__FINALIZED("invoice.finalized"),
543

544
    @SerializedName("invoice.marked_uncollectible")
×
545
    INVOICE__MARKED_UNCOLLECTIBLE("invoice.marked_uncollectible"),
546

547
    @SerializedName("invoice.paid")
×
548
    INVOICE__PAID("invoice.paid"),
549

550
    @SerializedName("invoice.payment_action_required")
×
551
    INVOICE__PAYMENT_ACTION_REQUIRED("invoice.payment_action_required"),
552

553
    @SerializedName("invoice.payment_failed")
×
554
    INVOICE__PAYMENT_FAILED("invoice.payment_failed"),
555

556
    @SerializedName("invoice.payment_succeeded")
×
557
    INVOICE__PAYMENT_SUCCEEDED("invoice.payment_succeeded"),
558

559
    @SerializedName("invoice.sent")
×
560
    INVOICE__SENT("invoice.sent"),
561

562
    @SerializedName("invoice.upcoming")
×
563
    INVOICE__UPCOMING("invoice.upcoming"),
564

565
    @SerializedName("invoice.updated")
×
566
    INVOICE__UPDATED("invoice.updated"),
567

568
    @SerializedName("invoice.voided")
×
569
    INVOICE__VOIDED("invoice.voided"),
570

571
    @SerializedName("invoiceitem.created")
×
572
    INVOICEITEM__CREATED("invoiceitem.created"),
573

574
    @SerializedName("invoiceitem.deleted")
×
575
    INVOICEITEM__DELETED("invoiceitem.deleted"),
576

577
    @SerializedName("invoiceitem.updated")
×
578
    INVOICEITEM__UPDATED("invoiceitem.updated"),
579

580
    @SerializedName("issuing_authorization.created")
×
581
    ISSUING_AUTHORIZATION__CREATED("issuing_authorization.created"),
582

583
    @SerializedName("issuing_authorization.request")
×
584
    ISSUING_AUTHORIZATION__REQUEST("issuing_authorization.request"),
585

586
    @SerializedName("issuing_authorization.updated")
×
587
    ISSUING_AUTHORIZATION__UPDATED("issuing_authorization.updated"),
588

589
    @SerializedName("issuing_card.created")
×
590
    ISSUING_CARD__CREATED("issuing_card.created"),
591

592
    @SerializedName("issuing_card.updated")
×
593
    ISSUING_CARD__UPDATED("issuing_card.updated"),
594

595
    @SerializedName("issuing_card_design.activated")
×
596
    ISSUING_CARD_DESIGN__ACTIVATED("issuing_card_design.activated"),
597

598
    @SerializedName("issuing_card_design.deactivated")
×
599
    ISSUING_CARD_DESIGN__DEACTIVATED("issuing_card_design.deactivated"),
600

601
    @SerializedName("issuing_card_design.updated")
×
602
    ISSUING_CARD_DESIGN__UPDATED("issuing_card_design.updated"),
603

604
    @SerializedName("issuing_cardholder.created")
×
605
    ISSUING_CARDHOLDER__CREATED("issuing_cardholder.created"),
606

607
    @SerializedName("issuing_cardholder.updated")
×
608
    ISSUING_CARDHOLDER__UPDATED("issuing_cardholder.updated"),
609

610
    @SerializedName("issuing_dispute.closed")
×
611
    ISSUING_DISPUTE__CLOSED("issuing_dispute.closed"),
612

613
    @SerializedName("issuing_dispute.created")
×
614
    ISSUING_DISPUTE__CREATED("issuing_dispute.created"),
615

616
    @SerializedName("issuing_dispute.funds_reinstated")
×
617
    ISSUING_DISPUTE__FUNDS_REINSTATED("issuing_dispute.funds_reinstated"),
618

619
    @SerializedName("issuing_dispute.submitted")
×
620
    ISSUING_DISPUTE__SUBMITTED("issuing_dispute.submitted"),
621

622
    @SerializedName("issuing_dispute.updated")
×
623
    ISSUING_DISPUTE__UPDATED("issuing_dispute.updated"),
624

625
    @SerializedName("issuing_transaction.created")
×
626
    ISSUING_TRANSACTION__CREATED("issuing_transaction.created"),
627

628
    @SerializedName("issuing_transaction.updated")
×
629
    ISSUING_TRANSACTION__UPDATED("issuing_transaction.updated"),
630

631
    @SerializedName("mandate.updated")
×
632
    MANDATE__UPDATED("mandate.updated"),
633

634
    @SerializedName("order.created")
×
635
    ORDER__CREATED("order.created"),
636

637
    @SerializedName("payment_intent.amount_capturable_updated")
×
638
    PAYMENT_INTENT__AMOUNT_CAPTURABLE_UPDATED("payment_intent.amount_capturable_updated"),
639

640
    @SerializedName("payment_intent.canceled")
×
641
    PAYMENT_INTENT__CANCELED("payment_intent.canceled"),
642

643
    @SerializedName("payment_intent.created")
×
644
    PAYMENT_INTENT__CREATED("payment_intent.created"),
645

646
    @SerializedName("payment_intent.partially_funded")
×
647
    PAYMENT_INTENT__PARTIALLY_FUNDED("payment_intent.partially_funded"),
648

649
    @SerializedName("payment_intent.payment_failed")
×
650
    PAYMENT_INTENT__PAYMENT_FAILED("payment_intent.payment_failed"),
651

652
    @SerializedName("payment_intent.processing")
×
653
    PAYMENT_INTENT__PROCESSING("payment_intent.processing"),
654

655
    @SerializedName("payment_intent.requires_action")
×
656
    PAYMENT_INTENT__REQUIRES_ACTION("payment_intent.requires_action"),
657

658
    @SerializedName("payment_intent.succeeded")
×
659
    PAYMENT_INTENT__SUCCEEDED("payment_intent.succeeded"),
660

661
    @SerializedName("payment_link.created")
×
662
    PAYMENT_LINK__CREATED("payment_link.created"),
663

664
    @SerializedName("payment_link.updated")
×
665
    PAYMENT_LINK__UPDATED("payment_link.updated"),
666

667
    @SerializedName("payment_method.attached")
×
668
    PAYMENT_METHOD__ATTACHED("payment_method.attached"),
669

670
    @SerializedName("payment_method.automatically_updated")
×
671
    PAYMENT_METHOD__AUTOMATICALLY_UPDATED("payment_method.automatically_updated"),
672

673
    @SerializedName("payment_method.detached")
×
674
    PAYMENT_METHOD__DETACHED("payment_method.detached"),
675

676
    @SerializedName("payment_method.updated")
×
677
    PAYMENT_METHOD__UPDATED("payment_method.updated"),
678

679
    @SerializedName("payout.canceled")
×
680
    PAYOUT__CANCELED("payout.canceled"),
681

682
    @SerializedName("payout.created")
×
683
    PAYOUT__CREATED("payout.created"),
684

685
    @SerializedName("payout.failed")
×
686
    PAYOUT__FAILED("payout.failed"),
687

688
    @SerializedName("payout.paid")
×
689
    PAYOUT__PAID("payout.paid"),
690

691
    @SerializedName("payout.reconciliation_completed")
×
692
    PAYOUT__RECONCILIATION_COMPLETED("payout.reconciliation_completed"),
693

694
    @SerializedName("payout.updated")
×
695
    PAYOUT__UPDATED("payout.updated"),
696

697
    @SerializedName("person.created")
×
698
    PERSON__CREATED("person.created"),
699

700
    @SerializedName("person.deleted")
×
701
    PERSON__DELETED("person.deleted"),
702

703
    @SerializedName("person.updated")
×
704
    PERSON__UPDATED("person.updated"),
705

706
    @SerializedName("plan.created")
×
707
    PLAN__CREATED("plan.created"),
708

709
    @SerializedName("plan.deleted")
×
710
    PLAN__DELETED("plan.deleted"),
711

712
    @SerializedName("plan.updated")
×
713
    PLAN__UPDATED("plan.updated"),
714

715
    @SerializedName("price.created")
×
716
    PRICE__CREATED("price.created"),
717

718
    @SerializedName("price.deleted")
×
719
    PRICE__DELETED("price.deleted"),
720

721
    @SerializedName("price.updated")
×
722
    PRICE__UPDATED("price.updated"),
723

724
    @SerializedName("product.created")
×
725
    PRODUCT__CREATED("product.created"),
726

727
    @SerializedName("product.deleted")
×
728
    PRODUCT__DELETED("product.deleted"),
729

730
    @SerializedName("product.updated")
×
731
    PRODUCT__UPDATED("product.updated"),
732

733
    @SerializedName("promotion_code.created")
×
734
    PROMOTION_CODE__CREATED("promotion_code.created"),
735

736
    @SerializedName("promotion_code.updated")
×
737
    PROMOTION_CODE__UPDATED("promotion_code.updated"),
738

739
    @SerializedName("quote.accepted")
×
740
    QUOTE__ACCEPTED("quote.accepted"),
741

742
    @SerializedName("quote.accepting")
×
743
    QUOTE__ACCEPTING("quote.accepting"),
744

745
    @SerializedName("quote.canceled")
×
746
    QUOTE__CANCELED("quote.canceled"),
747

748
    @SerializedName("quote.created")
×
749
    QUOTE__CREATED("quote.created"),
750

751
    @SerializedName("quote.draft")
×
752
    QUOTE__DRAFT("quote.draft"),
753

754
    @SerializedName("quote.finalized")
×
755
    QUOTE__FINALIZED("quote.finalized"),
756

757
    @SerializedName("quote.reestimated")
×
758
    QUOTE__REESTIMATED("quote.reestimated"),
759

760
    @SerializedName("quote.stale")
×
761
    QUOTE__STALE("quote.stale"),
762

763
    @SerializedName("radar.early_fraud_warning.created")
×
764
    RADAR__EARLY_FRAUD_WARNING__CREATED("radar.early_fraud_warning.created"),
765

766
    @SerializedName("radar.early_fraud_warning.updated")
×
767
    RADAR__EARLY_FRAUD_WARNING__UPDATED("radar.early_fraud_warning.updated"),
768

769
    @SerializedName("recipient.created")
×
770
    RECIPIENT__CREATED("recipient.created"),
771

772
    @SerializedName("recipient.deleted")
×
773
    RECIPIENT__DELETED("recipient.deleted"),
774

775
    @SerializedName("recipient.updated")
×
776
    RECIPIENT__UPDATED("recipient.updated"),
777

778
    @SerializedName("refund.created")
×
779
    REFUND__CREATED("refund.created"),
780

781
    @SerializedName("refund.updated")
×
782
    REFUND__UPDATED("refund.updated"),
783

784
    @SerializedName("reporting.report_run.failed")
×
785
    REPORTING__REPORT_RUN__FAILED("reporting.report_run.failed"),
786

787
    @SerializedName("reporting.report_run.succeeded")
×
788
    REPORTING__REPORT_RUN__SUCCEEDED("reporting.report_run.succeeded"),
789

790
    @SerializedName("reporting.report_type.updated")
×
791
    REPORTING__REPORT_TYPE__UPDATED("reporting.report_type.updated"),
792

793
    @SerializedName("review.closed")
×
794
    REVIEW__CLOSED("review.closed"),
795

796
    @SerializedName("review.opened")
×
797
    REVIEW__OPENED("review.opened"),
798

799
    @SerializedName("setup_intent.canceled")
×
800
    SETUP_INTENT__CANCELED("setup_intent.canceled"),
801

802
    @SerializedName("setup_intent.created")
×
803
    SETUP_INTENT__CREATED("setup_intent.created"),
804

805
    @SerializedName("setup_intent.requires_action")
×
806
    SETUP_INTENT__REQUIRES_ACTION("setup_intent.requires_action"),
807

808
    @SerializedName("setup_intent.setup_failed")
×
809
    SETUP_INTENT__SETUP_FAILED("setup_intent.setup_failed"),
810

811
    @SerializedName("setup_intent.succeeded")
×
812
    SETUP_INTENT__SUCCEEDED("setup_intent.succeeded"),
813

814
    @SerializedName("sigma.scheduled_query_run.created")
×
815
    SIGMA__SCHEDULED_QUERY_RUN__CREATED("sigma.scheduled_query_run.created"),
816

817
    @SerializedName("sku.created")
×
818
    SKU__CREATED("sku.created"),
819

820
    @SerializedName("sku.deleted")
×
821
    SKU__DELETED("sku.deleted"),
822

823
    @SerializedName("sku.updated")
×
824
    SKU__UPDATED("sku.updated"),
825

826
    @SerializedName("source.canceled")
×
827
    SOURCE__CANCELED("source.canceled"),
828

829
    @SerializedName("source.chargeable")
×
830
    SOURCE__CHARGEABLE("source.chargeable"),
831

832
    @SerializedName("source.failed")
×
833
    SOURCE__FAILED("source.failed"),
834

835
    @SerializedName("source.mandate_notification")
×
836
    SOURCE__MANDATE_NOTIFICATION("source.mandate_notification"),
837

838
    @SerializedName("source.refund_attributes_required")
×
839
    SOURCE__REFUND_ATTRIBUTES_REQUIRED("source.refund_attributes_required"),
840

841
    @SerializedName("source.transaction.created")
×
842
    SOURCE__TRANSACTION__CREATED("source.transaction.created"),
843

844
    @SerializedName("source.transaction.updated")
×
845
    SOURCE__TRANSACTION__UPDATED("source.transaction.updated"),
846

847
    @SerializedName("subscription_schedule.aborted")
×
848
    SUBSCRIPTION_SCHEDULE__ABORTED("subscription_schedule.aborted"),
849

850
    @SerializedName("subscription_schedule.canceled")
×
851
    SUBSCRIPTION_SCHEDULE__CANCELED("subscription_schedule.canceled"),
852

853
    @SerializedName("subscription_schedule.completed")
×
854
    SUBSCRIPTION_SCHEDULE__COMPLETED("subscription_schedule.completed"),
855

856
    @SerializedName("subscription_schedule.created")
×
857
    SUBSCRIPTION_SCHEDULE__CREATED("subscription_schedule.created"),
858

859
    @SerializedName("subscription_schedule.expiring")
×
860
    SUBSCRIPTION_SCHEDULE__EXPIRING("subscription_schedule.expiring"),
861

862
    @SerializedName("subscription_schedule.released")
×
863
    SUBSCRIPTION_SCHEDULE__RELEASED("subscription_schedule.released"),
864

865
    @SerializedName("subscription_schedule.updated")
×
866
    SUBSCRIPTION_SCHEDULE__UPDATED("subscription_schedule.updated"),
867

868
    @SerializedName("tax.form.updated")
×
869
    TAX__FORM__UPDATED("tax.form.updated"),
870

871
    @SerializedName("tax.settings.updated")
×
872
    TAX__SETTINGS__UPDATED("tax.settings.updated"),
873

874
    @SerializedName("tax_rate.created")
×
875
    TAX_RATE__CREATED("tax_rate.created"),
876

877
    @SerializedName("tax_rate.updated")
×
878
    TAX_RATE__UPDATED("tax_rate.updated"),
879

880
    @SerializedName("terminal.reader.action_failed")
×
881
    TERMINAL__READER__ACTION_FAILED("terminal.reader.action_failed"),
882

883
    @SerializedName("terminal.reader.action_succeeded")
×
884
    TERMINAL__READER__ACTION_SUCCEEDED("terminal.reader.action_succeeded"),
885

886
    @SerializedName("terminal.reader.action_updated")
×
887
    TERMINAL__READER__ACTION_UPDATED("terminal.reader.action_updated"),
888

889
    @SerializedName("test_helpers.test_clock.advancing")
×
890
    TEST_HELPERS__TEST_CLOCK__ADVANCING("test_helpers.test_clock.advancing"),
891

892
    @SerializedName("test_helpers.test_clock.created")
×
893
    TEST_HELPERS__TEST_CLOCK__CREATED("test_helpers.test_clock.created"),
894

895
    @SerializedName("test_helpers.test_clock.deleted")
×
896
    TEST_HELPERS__TEST_CLOCK__DELETED("test_helpers.test_clock.deleted"),
897

898
    @SerializedName("test_helpers.test_clock.internal_failure")
×
899
    TEST_HELPERS__TEST_CLOCK__INTERNAL_FAILURE("test_helpers.test_clock.internal_failure"),
900

901
    @SerializedName("test_helpers.test_clock.ready")
×
902
    TEST_HELPERS__TEST_CLOCK__READY("test_helpers.test_clock.ready"),
903

904
    @SerializedName("topup.canceled")
×
905
    TOPUP__CANCELED("topup.canceled"),
906

907
    @SerializedName("topup.created")
×
908
    TOPUP__CREATED("topup.created"),
909

910
    @SerializedName("topup.failed")
×
911
    TOPUP__FAILED("topup.failed"),
912

913
    @SerializedName("topup.reversed")
×
914
    TOPUP__REVERSED("topup.reversed"),
915

916
    @SerializedName("topup.succeeded")
×
917
    TOPUP__SUCCEEDED("topup.succeeded"),
918

919
    @SerializedName("transfer.created")
×
920
    TRANSFER__CREATED("transfer.created"),
921

922
    @SerializedName("transfer.reversed")
×
923
    TRANSFER__REVERSED("transfer.reversed"),
924

925
    @SerializedName("transfer.updated")
×
926
    TRANSFER__UPDATED("transfer.updated"),
927

928
    @SerializedName("treasury.credit_reversal.created")
×
929
    TREASURY__CREDIT_REVERSAL__CREATED("treasury.credit_reversal.created"),
930

931
    @SerializedName("treasury.credit_reversal.posted")
×
932
    TREASURY__CREDIT_REVERSAL__POSTED("treasury.credit_reversal.posted"),
933

934
    @SerializedName("treasury.debit_reversal.completed")
×
935
    TREASURY__DEBIT_REVERSAL__COMPLETED("treasury.debit_reversal.completed"),
936

937
    @SerializedName("treasury.debit_reversal.created")
×
938
    TREASURY__DEBIT_REVERSAL__CREATED("treasury.debit_reversal.created"),
939

940
    @SerializedName("treasury.debit_reversal.initial_credit_granted")
×
941
    TREASURY__DEBIT_REVERSAL__INITIAL_CREDIT_GRANTED(
942
        "treasury.debit_reversal.initial_credit_granted"),
943

944
    @SerializedName("treasury.financial_account.closed")
×
945
    TREASURY__FINANCIAL_ACCOUNT__CLOSED("treasury.financial_account.closed"),
946

947
    @SerializedName("treasury.financial_account.created")
×
948
    TREASURY__FINANCIAL_ACCOUNT__CREATED("treasury.financial_account.created"),
949

950
    @SerializedName("treasury.financial_account.features_status_updated")
×
951
    TREASURY__FINANCIAL_ACCOUNT__FEATURES_STATUS_UPDATED(
952
        "treasury.financial_account.features_status_updated"),
953

954
    @SerializedName("treasury.inbound_transfer.canceled")
×
955
    TREASURY__INBOUND_TRANSFER__CANCELED("treasury.inbound_transfer.canceled"),
956

957
    @SerializedName("treasury.inbound_transfer.created")
×
958
    TREASURY__INBOUND_TRANSFER__CREATED("treasury.inbound_transfer.created"),
959

960
    @SerializedName("treasury.inbound_transfer.failed")
×
961
    TREASURY__INBOUND_TRANSFER__FAILED("treasury.inbound_transfer.failed"),
962

963
    @SerializedName("treasury.inbound_transfer.succeeded")
×
964
    TREASURY__INBOUND_TRANSFER__SUCCEEDED("treasury.inbound_transfer.succeeded"),
965

966
    @SerializedName("treasury.outbound_payment.canceled")
×
967
    TREASURY__OUTBOUND_PAYMENT__CANCELED("treasury.outbound_payment.canceled"),
968

969
    @SerializedName("treasury.outbound_payment.created")
×
970
    TREASURY__OUTBOUND_PAYMENT__CREATED("treasury.outbound_payment.created"),
971

972
    @SerializedName("treasury.outbound_payment.expected_arrival_date_updated")
×
973
    TREASURY__OUTBOUND_PAYMENT__EXPECTED_ARRIVAL_DATE_UPDATED(
974
        "treasury.outbound_payment.expected_arrival_date_updated"),
975

976
    @SerializedName("treasury.outbound_payment.failed")
×
977
    TREASURY__OUTBOUND_PAYMENT__FAILED("treasury.outbound_payment.failed"),
978

979
    @SerializedName("treasury.outbound_payment.posted")
×
980
    TREASURY__OUTBOUND_PAYMENT__POSTED("treasury.outbound_payment.posted"),
981

982
    @SerializedName("treasury.outbound_payment.returned")
×
983
    TREASURY__OUTBOUND_PAYMENT__RETURNED("treasury.outbound_payment.returned"),
984

985
    @SerializedName("treasury.outbound_transfer.canceled")
×
986
    TREASURY__OUTBOUND_TRANSFER__CANCELED("treasury.outbound_transfer.canceled"),
987

988
    @SerializedName("treasury.outbound_transfer.created")
×
989
    TREASURY__OUTBOUND_TRANSFER__CREATED("treasury.outbound_transfer.created"),
990

991
    @SerializedName("treasury.outbound_transfer.expected_arrival_date_updated")
×
992
    TREASURY__OUTBOUND_TRANSFER__EXPECTED_ARRIVAL_DATE_UPDATED(
993
        "treasury.outbound_transfer.expected_arrival_date_updated"),
994

995
    @SerializedName("treasury.outbound_transfer.failed")
×
996
    TREASURY__OUTBOUND_TRANSFER__FAILED("treasury.outbound_transfer.failed"),
997

998
    @SerializedName("treasury.outbound_transfer.posted")
×
999
    TREASURY__OUTBOUND_TRANSFER__POSTED("treasury.outbound_transfer.posted"),
1000

1001
    @SerializedName("treasury.outbound_transfer.returned")
×
1002
    TREASURY__OUTBOUND_TRANSFER__RETURNED("treasury.outbound_transfer.returned"),
1003

1004
    @SerializedName("treasury.received_credit.created")
×
1005
    TREASURY__RECEIVED_CREDIT__CREATED("treasury.received_credit.created"),
1006

1007
    @SerializedName("treasury.received_credit.failed")
×
1008
    TREASURY__RECEIVED_CREDIT__FAILED("treasury.received_credit.failed"),
1009

1010
    @SerializedName("treasury.received_credit.succeeded")
×
1011
    TREASURY__RECEIVED_CREDIT__SUCCEEDED("treasury.received_credit.succeeded"),
1012

1013
    @SerializedName("treasury.received_debit.created")
×
1014
    TREASURY__RECEIVED_DEBIT__CREATED("treasury.received_debit.created");
1015

1016
    @Getter(onMethod_ = {@Override})
1017
    private final String value;
1018

1019
    EnabledEvent(String value) {
×
1020
      this.value = value;
×
1021
    }
×
1022
  }
1023
}
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