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

stripe / stripe-java / #16644

14 Nov 2024 11:58PM UTC coverage: 12.414% (-0.005%) from 12.419%
#16644

push

github

web-flow
Update generated code for beta (#1922)

* Update generated code for v1334

* Update generated code for v1335

* Update generated code for v1337

* Update generated code for v1339

* Update generated code for v1340

* Update generated code for v1343

* Update generated code for v1345

* Update generated code for v1346

* Update generated code for v1347

* Update generated code for v1348

* Update generated code for v1349

* Update generated code for v1350

* Update generated code for v1352

* Update generated code for v1353

* Update generated code for v1356

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>

2 of 79 new or added lines in 17 files covered. (2.53%)

1 existing line in 1 file now uncovered.

18857 of 151907 relevant lines covered (12.41%)

0.12 hits per line

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

0.0
/src/main/java/com/stripe/param/issuing/AuthorizationRespondParams.java
1
// File generated from our OpenAPI spec
2
package com.stripe.param.issuing;
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 AuthorizationRespondParams extends ApiRequestParams {
14
  /**
15
   * <strong>Required.</strong> Whether to simulate the user confirming that the transaction was
16
   * legitimate (true) or telling Stripe that it was fraudulent (false).
17
   */
18
  @SerializedName("confirmed")
19
  Boolean confirmed;
20

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

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

34
  private AuthorizationRespondParams(
NEW
35
      Boolean confirmed, List<String> expand, Map<String, Object> extraParams) {
×
NEW
36
    this.confirmed = confirmed;
×
NEW
37
    this.expand = expand;
×
NEW
38
    this.extraParams = extraParams;
×
NEW
39
  }
×
40

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

NEW
45
  public static class Builder {
×
46
    private Boolean confirmed;
47

48
    private List<String> expand;
49

50
    private Map<String, Object> extraParams;
51

52
    /** Finalize and obtain parameter instance from this builder. */
53
    public AuthorizationRespondParams build() {
NEW
54
      return new AuthorizationRespondParams(this.confirmed, this.expand, this.extraParams);
×
55
    }
56

57
    /**
58
     * <strong>Required.</strong> Whether to simulate the user confirming that the transaction was
59
     * legitimate (true) or telling Stripe that it was fraudulent (false).
60
     */
61
    public Builder setConfirmed(Boolean confirmed) {
NEW
62
      this.confirmed = confirmed;
×
NEW
63
      return this;
×
64
    }
65

66
    /**
67
     * Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and
68
     * subsequent calls adds additional elements to the original list. See {@link
69
     * AuthorizationRespondParams#expand} for the field documentation.
70
     */
71
    public Builder addExpand(String element) {
NEW
72
      if (this.expand == null) {
×
NEW
73
        this.expand = new ArrayList<>();
×
74
      }
NEW
75
      this.expand.add(element);
×
NEW
76
      return this;
×
77
    }
78

79
    /**
80
     * Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and
81
     * subsequent calls adds additional elements to the original list. See {@link
82
     * AuthorizationRespondParams#expand} for the field documentation.
83
     */
84
    public Builder addAllExpand(List<String> elements) {
NEW
85
      if (this.expand == null) {
×
NEW
86
        this.expand = new ArrayList<>();
×
87
      }
NEW
88
      this.expand.addAll(elements);
×
NEW
89
      return this;
×
90
    }
91

92
    /**
93
     * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
94
     * call, and subsequent calls add additional key/value pairs to the original map. See {@link
95
     * AuthorizationRespondParams#extraParams} for the field documentation.
96
     */
97
    public Builder putExtraParam(String key, Object value) {
NEW
98
      if (this.extraParams == null) {
×
NEW
99
        this.extraParams = new HashMap<>();
×
100
      }
NEW
101
      this.extraParams.put(key, value);
×
NEW
102
      return this;
×
103
    }
104

105
    /**
106
     * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
107
     * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
108
     * See {@link AuthorizationRespondParams#extraParams} for the field documentation.
109
     */
110
    public Builder putAllExtraParam(Map<String, Object> map) {
NEW
111
      if (this.extraParams == null) {
×
NEW
112
        this.extraParams = new HashMap<>();
×
113
      }
NEW
114
      this.extraParams.putAll(map);
×
NEW
115
      return this;
×
116
    }
117
  }
118
}
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