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

stripe / stripe-java / #16418

13 Sep 2024 05:53PM UTC coverage: 12.856% (-0.02%) from 12.874%
#16418

push

github

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

Update generated code for beta

9 of 344 new or added lines in 28 files covered. (2.62%)

10 existing lines in 8 files now uncovered.

18470 of 143664 relevant lines covered (12.86%)

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/InvoiceRenderingTemplateArchiveParams.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 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 InvoiceRenderingTemplateArchiveParams extends ApiRequestParams {
14
  /** Specifies which fields in the response should be expanded. */
15
  @SerializedName("expand")
16
  List<String> expand;
17

18
  /**
19
   * Map of extra parameters for custom features not available in this client library. The content
20
   * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
21
   * key/value pair is serialized as if the key is a root-level field (serialized) name in this
22
   * param object. Effectively, this map is flattened to its parent instance.
23
   */
24
  @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
25
  Map<String, Object> extraParams;
26

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

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

NEW
37
  public static class Builder {
×
38
    private List<String> expand;
39

40
    private Map<String, Object> extraParams;
41

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

47
    /**
48
     * Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and
49
     * subsequent calls adds additional elements to the original list. See {@link
50
     * InvoiceRenderingTemplateArchiveParams#expand} for the field documentation.
51
     */
52
    public Builder addExpand(String element) {
NEW
53
      if (this.expand == null) {
×
NEW
54
        this.expand = new ArrayList<>();
×
55
      }
NEW
56
      this.expand.add(element);
×
NEW
57
      return this;
×
58
    }
59

60
    /**
61
     * Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and
62
     * subsequent calls adds additional elements to the original list. See {@link
63
     * InvoiceRenderingTemplateArchiveParams#expand} for the field documentation.
64
     */
65
    public Builder addAllExpand(List<String> elements) {
NEW
66
      if (this.expand == null) {
×
NEW
67
        this.expand = new ArrayList<>();
×
68
      }
NEW
69
      this.expand.addAll(elements);
×
NEW
70
      return this;
×
71
    }
72

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

86
    /**
87
     * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
88
     * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
89
     * See {@link InvoiceRenderingTemplateArchiveParams#extraParams} for the field documentation.
90
     */
91
    public Builder putAllExtraParam(Map<String, Object> map) {
NEW
92
      if (this.extraParams == null) {
×
NEW
93
        this.extraParams = new HashMap<>();
×
94
      }
NEW
95
      this.extraParams.putAll(map);
×
NEW
96
      return this;
×
97
    }
98
  }
99
}
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