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

stripe / stripe-java / #16493

03 Oct 2024 07:15PM UTC coverage: 12.942% (+0.08%) from 12.864%
#16493

push

github

web-flow
Merge Stripe-java v27.0.0 to beta branch (#1888)

409 of 1651 new or added lines in 88 files covered. (24.77%)

31 existing lines in 7 files now uncovered.

18773 of 145050 relevant lines covered (12.94%)

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/EventListParams.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.HashMap;
7
import java.util.Map;
8
import lombok.Getter;
9

10
@Getter
11
public class EventListParams extends ApiRequestParams {
12
  /**
13
   * Map of extra parameters for custom features not available in this client library. The content
14
   * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
15
   * key/value pair is serialized as if the key is a root-level field (serialized) name in this
16
   * param object. Effectively, this map is flattened to its parent instance.
17
   */
18
  @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
19
  Map<String, Object> extraParams;
20

21
  /** The page size. */
22
  @SerializedName("limit")
23
  Integer limit;
24

25
  /** <strong>Required.</strong> Primary object ID used to retrieve related events. */
26
  @SerializedName("object_id")
27
  String objectId;
28

29
  /** The requested page number. */
30
  @SerializedName("page")
31
  String page;
32

33
  private EventListParams(
NEW
34
      Map<String, Object> extraParams, Integer limit, String objectId, String page) {
×
NEW
35
    this.extraParams = extraParams;
×
NEW
36
    this.limit = limit;
×
NEW
37
    this.objectId = objectId;
×
NEW
38
    this.page = page;
×
NEW
39
  }
×
40

41
  public static Builder builder() {
NEW
42
    return new Builder();
×
43
  }
44

NEW
45
  public static class Builder {
×
46
    private Map<String, Object> extraParams;
47

48
    private Integer limit;
49

50
    private String objectId;
51

52
    private String page;
53

54
    /** Finalize and obtain parameter instance from this builder. */
55
    public EventListParams build() {
NEW
56
      return new EventListParams(this.extraParams, this.limit, this.objectId, this.page);
×
57
    }
58

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

72
    /**
73
     * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
74
     * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
75
     * See {@link EventListParams#extraParams} for the field documentation.
76
     */
77
    public Builder putAllExtraParam(Map<String, Object> map) {
NEW
78
      if (this.extraParams == null) {
×
NEW
79
        this.extraParams = new HashMap<>();
×
80
      }
NEW
81
      this.extraParams.putAll(map);
×
NEW
82
      return this;
×
83
    }
84

85
    /** The page size. */
86
    public Builder setLimit(Integer limit) {
NEW
87
      this.limit = limit;
×
NEW
88
      return this;
×
89
    }
90

91
    /** <strong>Required.</strong> Primary object ID used to retrieve related events. */
92
    public Builder setObjectId(String objectId) {
NEW
93
      this.objectId = objectId;
×
NEW
94
      return this;
×
95
    }
96

97
    /** The requested page number. */
98
    public Builder setPage(String page) {
NEW
99
      this.page = page;
×
NEW
100
      return this;
×
101
    }
102
  }
103
}
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