• 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/EventDestinationListParams.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 EventDestinationListParams 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
  /**
24
   * Additional fields to include in the response. Currently supports {@code webhook_endpoint.url}.
25
   */
26
  @SerializedName("include")
27
  List<EventDestinationListParams.Include> include;
28

29
  /** The page size. */
30
  @SerializedName("limit")
31
  Integer limit;
32

33
  /** The requested page. */
34
  @SerializedName("page")
35
  String page;
36

37
  private EventDestinationListParams(
38
      Map<String, Object> extraParams,
39
      List<EventDestinationListParams.Include> include,
40
      Integer limit,
NEW
41
      String page) {
×
NEW
42
    this.extraParams = extraParams;
×
NEW
43
    this.include = include;
×
NEW
44
    this.limit = limit;
×
NEW
45
    this.page = page;
×
NEW
46
  }
×
47

48
  public static Builder builder() {
NEW
49
    return new Builder();
×
50
  }
51

NEW
52
  public static class Builder {
×
53
    private Map<String, Object> extraParams;
54

55
    private List<EventDestinationListParams.Include> include;
56

57
    private Integer limit;
58

59
    private String page;
60

61
    /** Finalize and obtain parameter instance from this builder. */
62
    public EventDestinationListParams build() {
NEW
63
      return new EventDestinationListParams(this.extraParams, this.include, this.limit, this.page);
×
64
    }
65

66
    /**
67
     * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
68
     * call, and subsequent calls add additional key/value pairs to the original map. See {@link
69
     * EventDestinationListParams#extraParams} for the field documentation.
70
     */
71
    public Builder putExtraParam(String key, Object value) {
NEW
72
      if (this.extraParams == null) {
×
NEW
73
        this.extraParams = new HashMap<>();
×
74
      }
NEW
75
      this.extraParams.put(key, value);
×
NEW
76
      return this;
×
77
    }
78

79
    /**
80
     * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
81
     * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
82
     * See {@link EventDestinationListParams#extraParams} for the field documentation.
83
     */
84
    public Builder putAllExtraParam(Map<String, Object> map) {
NEW
85
      if (this.extraParams == null) {
×
NEW
86
        this.extraParams = new HashMap<>();
×
87
      }
NEW
88
      this.extraParams.putAll(map);
×
NEW
89
      return this;
×
90
    }
91

92
    /**
93
     * Add an element to `include` list. A list is initialized for the first `add/addAll` call, and
94
     * subsequent calls adds additional elements to the original list. See {@link
95
     * EventDestinationListParams#include} for the field documentation.
96
     */
97
    public Builder addInclude(EventDestinationListParams.Include element) {
NEW
98
      if (this.include == null) {
×
NEW
99
        this.include = new ArrayList<>();
×
100
      }
NEW
101
      this.include.add(element);
×
NEW
102
      return this;
×
103
    }
104

105
    /**
106
     * Add all elements to `include` list. A list is initialized for the first `add/addAll` call,
107
     * and subsequent calls adds additional elements to the original list. See {@link
108
     * EventDestinationListParams#include} for the field documentation.
109
     */
110
    public Builder addAllInclude(List<EventDestinationListParams.Include> elements) {
NEW
111
      if (this.include == null) {
×
NEW
112
        this.include = new ArrayList<>();
×
113
      }
NEW
114
      this.include.addAll(elements);
×
NEW
115
      return this;
×
116
    }
117

118
    /** The page size. */
119
    public Builder setLimit(Integer limit) {
NEW
120
      this.limit = limit;
×
NEW
121
      return this;
×
122
    }
123

124
    /** The requested page. */
125
    public Builder setPage(String page) {
NEW
126
      this.page = page;
×
NEW
127
      return this;
×
128
    }
129
  }
130

NEW
131
  public enum Include implements ApiRequestParams.EnumParam {
×
NEW
132
    @SerializedName("webhook_endpoint.url")
×
133
    WEBHOOK_ENDPOINT__URL("webhook_endpoint.url");
134

135
    @Getter(onMethod_ = {@Override})
136
    private final String value;
137

NEW
138
    Include(String value) {
×
NEW
139
      this.value = value;
×
NEW
140
    }
×
141
  }
142
}
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