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

stripe / stripe-java / #16599

29 Oct 2024 11:04PM UTC coverage: 12.519% (-0.1%) from 12.62%
#16599

push

github

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

Update generated code for beta

40 of 1580 new or added lines in 51 files covered. (2.53%)

19 existing lines in 15 files now uncovered.

18843 of 150513 relevant lines covered (12.52%)

0.13 hits per line

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

0.0
/src/main/java/com/stripe/param/v2/core/EventDestinationRetrieveParams.java
1
// File generated from our OpenAPI spec
2
package com.stripe.param.v2.core;
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 EventDestinationRetrieveParams extends ApiRequestParams {
14
  /**
15
   * Map of extra parameters for custom features not available in this client library. The content
16
   * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
17
   * key/value pair is serialized as if the key is a root-level field (serialized) name in this
18
   * param object. Effectively, this map is flattened to its parent instance.
19
   */
20
  @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
21
  Map<String, Object> extraParams;
22

23
  /** Additional fields to include in the response. */
24
  @SerializedName("include")
25
  List<EventDestinationRetrieveParams.Include> include;
26

27
  private EventDestinationRetrieveParams(
NEW
28
      Map<String, Object> extraParams, List<EventDestinationRetrieveParams.Include> include) {
×
NEW
29
    this.extraParams = extraParams;
×
NEW
30
    this.include = include;
×
NEW
31
  }
×
32

33
  public static Builder builder() {
NEW
34
    return new Builder();
×
35
  }
36

NEW
37
  public static class Builder {
×
38
    private Map<String, Object> extraParams;
39

40
    private List<EventDestinationRetrieveParams.Include> include;
41

42
    /** Finalize and obtain parameter instance from this builder. */
43
    public EventDestinationRetrieveParams build() {
NEW
44
      return new EventDestinationRetrieveParams(this.extraParams, this.include);
×
45
    }
46

47
    /**
48
     * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
49
     * call, and subsequent calls add additional key/value pairs to the original map. See {@link
50
     * EventDestinationRetrieveParams#extraParams} for the field documentation.
51
     */
52
    public Builder putExtraParam(String key, Object value) {
NEW
53
      if (this.extraParams == null) {
×
NEW
54
        this.extraParams = new HashMap<>();
×
55
      }
NEW
56
      this.extraParams.put(key, value);
×
NEW
57
      return this;
×
58
    }
59

60
    /**
61
     * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
62
     * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
63
     * See {@link EventDestinationRetrieveParams#extraParams} for the field documentation.
64
     */
65
    public Builder putAllExtraParam(Map<String, Object> map) {
NEW
66
      if (this.extraParams == null) {
×
NEW
67
        this.extraParams = new HashMap<>();
×
68
      }
NEW
69
      this.extraParams.putAll(map);
×
NEW
70
      return this;
×
71
    }
72

73
    /**
74
     * Add an element to `include` list. A list is initialized for the first `add/addAll` call, and
75
     * subsequent calls adds additional elements to the original list. See {@link
76
     * EventDestinationRetrieveParams#include} for the field documentation.
77
     */
78
    public Builder addInclude(EventDestinationRetrieveParams.Include element) {
NEW
79
      if (this.include == null) {
×
NEW
80
        this.include = new ArrayList<>();
×
81
      }
NEW
82
      this.include.add(element);
×
NEW
83
      return this;
×
84
    }
85

86
    /**
87
     * Add all elements to `include` list. A list is initialized for the first `add/addAll` call,
88
     * and subsequent calls adds additional elements to the original list. See {@link
89
     * EventDestinationRetrieveParams#include} for the field documentation.
90
     */
91
    public Builder addAllInclude(List<EventDestinationRetrieveParams.Include> elements) {
NEW
92
      if (this.include == null) {
×
NEW
93
        this.include = new ArrayList<>();
×
94
      }
NEW
95
      this.include.addAll(elements);
×
NEW
96
      return this;
×
97
    }
98
  }
99

NEW
100
  public enum Include implements ApiRequestParams.EnumParam {
×
NEW
101
    @SerializedName("webhook_endpoint.url")
×
102
    WEBHOOK_ENDPOINT__URL("webhook_endpoint.url");
103

104
    @Getter(onMethod_ = {@Override})
105
    private final String value;
106

NEW
107
    Include(String value) {
×
NEW
108
      this.value = value;
×
NEW
109
    }
×
110
  }
111
}
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