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

stripe / stripe-java / #14665

16 Aug 2023 06:23PM UTC coverage: 18.919% (+4.6%) from 14.344%
#14665

push

github-actions

web-flow
stripe-java v23 release (#1622)

11114 of 11114 new or added lines in 307 files covered. (100.0%)

14987 of 79217 relevant lines covered (18.92%)

0.19 hits per line

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

0.0
/src/main/java/com/stripe/param/tax/CalculationLineItemListParams.java
1
// File generated from our OpenAPI spec
2
package com.stripe.param.tax;
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 CalculationLineItemListParams extends ApiRequestParams {
14
  /**
15
   * A cursor for use in pagination. {@code ending_before} is an object ID that defines your place
16
   * in the list. For instance, if you make a list request and receive 100 objects, starting with
17
   * {@code obj_bar}, your subsequent call can include {@code ending_before=obj_bar} in order to
18
   * fetch the previous page of the list.
19
   */
20
  @SerializedName("ending_before")
21
  String endingBefore;
22

23
  /** Specifies which fields in the response should be expanded. */
24
  @SerializedName("expand")
25
  List<String> expand;
26

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

36
  /**
37
   * A limit on the number of objects to be returned. Limit can range between 1 and 100, and the
38
   * default is 10.
39
   */
40
  @SerializedName("limit")
41
  Long limit;
42

43
  /**
44
   * A cursor for use in pagination. {@code starting_after} is an object ID that defines your place
45
   * in the list. For instance, if you make a list request and receive 100 objects, ending with
46
   * {@code obj_foo}, your subsequent call can include {@code starting_after=obj_foo} in order to
47
   * fetch the next page of the list.
48
   */
49
  @SerializedName("starting_after")
50
  String startingAfter;
51

52
  private CalculationLineItemListParams(
53
      String endingBefore,
54
      List<String> expand,
55
      Map<String, Object> extraParams,
56
      Long limit,
57
      String startingAfter) {
×
58
    this.endingBefore = endingBefore;
×
59
    this.expand = expand;
×
60
    this.extraParams = extraParams;
×
61
    this.limit = limit;
×
62
    this.startingAfter = startingAfter;
×
63
  }
×
64

65
  public static Builder builder() {
66
    return new Builder();
×
67
  }
68

69
  public static class Builder {
×
70
    private String endingBefore;
71

72
    private List<String> expand;
73

74
    private Map<String, Object> extraParams;
75

76
    private Long limit;
77

78
    private String startingAfter;
79

80
    /** Finalize and obtain parameter instance from this builder. */
81
    public CalculationLineItemListParams build() {
82
      return new CalculationLineItemListParams(
×
83
          this.endingBefore, this.expand, this.extraParams, this.limit, this.startingAfter);
84
    }
85

86
    /**
87
     * A cursor for use in pagination. {@code ending_before} is an object ID that defines your place
88
     * in the list. For instance, if you make a list request and receive 100 objects, starting with
89
     * {@code obj_bar}, your subsequent call can include {@code ending_before=obj_bar} in order to
90
     * fetch the previous page of the list.
91
     */
92
    public Builder setEndingBefore(String endingBefore) {
93
      this.endingBefore = endingBefore;
×
94
      return this;
×
95
    }
96

97
    /**
98
     * Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and
99
     * subsequent calls adds additional elements to the original list. See {@link
100
     * CalculationLineItemListParams#expand} for the field documentation.
101
     */
102
    public Builder addExpand(String element) {
103
      if (this.expand == null) {
×
104
        this.expand = new ArrayList<>();
×
105
      }
106
      this.expand.add(element);
×
107
      return this;
×
108
    }
109

110
    /**
111
     * Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and
112
     * subsequent calls adds additional elements to the original list. See {@link
113
     * CalculationLineItemListParams#expand} for the field documentation.
114
     */
115
    public Builder addAllExpand(List<String> elements) {
116
      if (this.expand == null) {
×
117
        this.expand = new ArrayList<>();
×
118
      }
119
      this.expand.addAll(elements);
×
120
      return this;
×
121
    }
122

123
    /**
124
     * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
125
     * call, and subsequent calls add additional key/value pairs to the original map. See {@link
126
     * CalculationLineItemListParams#extraParams} for the field documentation.
127
     */
128
    public Builder putExtraParam(String key, Object value) {
129
      if (this.extraParams == null) {
×
130
        this.extraParams = new HashMap<>();
×
131
      }
132
      this.extraParams.put(key, value);
×
133
      return this;
×
134
    }
135

136
    /**
137
     * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
138
     * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
139
     * See {@link CalculationLineItemListParams#extraParams} for the field documentation.
140
     */
141
    public Builder putAllExtraParam(Map<String, Object> map) {
142
      if (this.extraParams == null) {
×
143
        this.extraParams = new HashMap<>();
×
144
      }
145
      this.extraParams.putAll(map);
×
146
      return this;
×
147
    }
148

149
    /**
150
     * A limit on the number of objects to be returned. Limit can range between 1 and 100, and the
151
     * default is 10.
152
     */
153
    public Builder setLimit(Long limit) {
154
      this.limit = limit;
×
155
      return this;
×
156
    }
157

158
    /**
159
     * A cursor for use in pagination. {@code starting_after} is an object ID that defines your
160
     * place in the list. For instance, if you make a list request and receive 100 objects, ending
161
     * with {@code obj_foo}, your subsequent call can include {@code starting_after=obj_foo} in
162
     * order to fetch the next page of the list.
163
     */
164
    public Builder setStartingAfter(String startingAfter) {
165
      this.startingAfter = startingAfter;
×
166
      return this;
×
167
    }
168
  }
169
}
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