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

stripe / stripe-java / #16517

08 Oct 2024 06:27PM UTC coverage: 12.74% (-0.2%) from 12.899%
#16517

push

github

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

Update generated code for beta

53 of 2404 new or added lines in 50 files covered. (2.2%)

91 existing lines in 27 files now uncovered.

18753 of 147196 relevant lines covered (12.74%)

0.13 hits per line

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

63.83
/src/main/java/com/stripe/service/testhelpers/issuing/CardService.java
1
// File generated from our OpenAPI spec
2
package com.stripe.service.testhelpers.issuing;
3

4
import com.stripe.exception.StripeException;
5
import com.stripe.model.issuing.Card;
6
import com.stripe.net.ApiRequest;
7
import com.stripe.net.ApiRequestParams;
8
import com.stripe.net.ApiResource;
9
import com.stripe.net.ApiService;
10
import com.stripe.net.BaseAddress;
11
import com.stripe.net.RequestOptions;
12
import com.stripe.net.StripeResponseGetter;
13
import com.stripe.param.issuing.CardDeliverCardParams;
14
import com.stripe.param.issuing.CardFailCardParams;
15
import com.stripe.param.issuing.CardReturnCardParams;
16
import com.stripe.param.issuing.CardShipCardParams;
17
import com.stripe.param.issuing.CardSubmitCardParams;
18

19
public final class CardService extends ApiService {
20
  public CardService(StripeResponseGetter responseGetter) {
21
    super(responseGetter);
1✔
22
  }
1✔
23

24
  /**
25
   * Updates the shipping status of the specified Issuing {@code Card} object to {@code delivered}.
26
   */
27
  public Card deliverCard(String card, CardDeliverCardParams params) throws StripeException {
28
    return deliverCard(card, params, (RequestOptions) null);
1✔
29
  }
30
  /**
31
   * Updates the shipping status of the specified Issuing {@code Card} object to {@code delivered}.
32
   */
33
  public Card deliverCard(String card, RequestOptions options) throws StripeException {
34
    return deliverCard(card, (CardDeliverCardParams) null, options);
×
35
  }
36
  /**
37
   * Updates the shipping status of the specified Issuing {@code Card} object to {@code delivered}.
38
   */
39
  public Card deliverCard(String card) throws StripeException {
40
    return deliverCard(card, (CardDeliverCardParams) null, (RequestOptions) null);
×
41
  }
42
  /**
43
   * Updates the shipping status of the specified Issuing {@code Card} object to {@code delivered}.
44
   */
45
  public Card deliverCard(String card, CardDeliverCardParams params, RequestOptions options)
46
      throws StripeException {
47
    String path =
1✔
48
        String.format(
1✔
49
            "/v1/test_helpers/issuing/cards/%s/shipping/deliver", ApiResource.urlEncodeId(card));
1✔
50
    ApiRequest request =
1✔
51
        new ApiRequest(
52
            BaseAddress.API,
53
            ApiResource.RequestMethod.POST,
54
            path,
55
            ApiRequestParams.paramsToMap(params),
1✔
56
            options);
57
    return this.request(request, Card.class);
1✔
58
  }
59
  /**
60
   * Updates the shipping status of the specified Issuing {@code Card} object to {@code failure}.
61
   */
62
  public Card failCard(String card, CardFailCardParams params) throws StripeException {
63
    return failCard(card, params, (RequestOptions) null);
1✔
64
  }
65
  /**
66
   * Updates the shipping status of the specified Issuing {@code Card} object to {@code failure}.
67
   */
68
  public Card failCard(String card, RequestOptions options) throws StripeException {
69
    return failCard(card, (CardFailCardParams) null, options);
×
70
  }
71
  /**
72
   * Updates the shipping status of the specified Issuing {@code Card} object to {@code failure}.
73
   */
74
  public Card failCard(String card) throws StripeException {
75
    return failCard(card, (CardFailCardParams) null, (RequestOptions) null);
×
76
  }
77
  /**
78
   * Updates the shipping status of the specified Issuing {@code Card} object to {@code failure}.
79
   */
80
  public Card failCard(String card, CardFailCardParams params, RequestOptions options)
81
      throws StripeException {
82
    String path =
1✔
83
        String.format(
1✔
84
            "/v1/test_helpers/issuing/cards/%s/shipping/fail", ApiResource.urlEncodeId(card));
1✔
85
    ApiRequest request =
1✔
86
        new ApiRequest(
87
            BaseAddress.API,
88
            ApiResource.RequestMethod.POST,
89
            path,
90
            ApiRequestParams.paramsToMap(params),
1✔
91
            options);
92
    return this.request(request, Card.class);
1✔
93
  }
94
  /**
95
   * Updates the shipping status of the specified Issuing {@code Card} object to {@code returned}.
96
   */
97
  public Card returnCard(String card, CardReturnCardParams params) throws StripeException {
98
    return returnCard(card, params, (RequestOptions) null);
1✔
99
  }
100
  /**
101
   * Updates the shipping status of the specified Issuing {@code Card} object to {@code returned}.
102
   */
103
  public Card returnCard(String card, RequestOptions options) throws StripeException {
104
    return returnCard(card, (CardReturnCardParams) null, options);
×
105
  }
106
  /**
107
   * Updates the shipping status of the specified Issuing {@code Card} object to {@code returned}.
108
   */
109
  public Card returnCard(String card) throws StripeException {
110
    return returnCard(card, (CardReturnCardParams) null, (RequestOptions) null);
×
111
  }
112
  /**
113
   * Updates the shipping status of the specified Issuing {@code Card} object to {@code returned}.
114
   */
115
  public Card returnCard(String card, CardReturnCardParams params, RequestOptions options)
116
      throws StripeException {
117
    String path =
1✔
118
        String.format(
1✔
119
            "/v1/test_helpers/issuing/cards/%s/shipping/return", ApiResource.urlEncodeId(card));
1✔
120
    ApiRequest request =
1✔
121
        new ApiRequest(
122
            BaseAddress.API,
123
            ApiResource.RequestMethod.POST,
124
            path,
125
            ApiRequestParams.paramsToMap(params),
1✔
126
            options);
127
    return this.request(request, Card.class);
1✔
128
  }
129
  /**
130
   * Updates the shipping status of the specified Issuing {@code Card} object to {@code shipped}.
131
   */
132
  public Card shipCard(String card, CardShipCardParams params) throws StripeException {
133
    return shipCard(card, params, (RequestOptions) null);
1✔
134
  }
135
  /**
136
   * Updates the shipping status of the specified Issuing {@code Card} object to {@code shipped}.
137
   */
138
  public Card shipCard(String card, RequestOptions options) throws StripeException {
139
    return shipCard(card, (CardShipCardParams) null, options);
×
140
  }
141
  /**
142
   * Updates the shipping status of the specified Issuing {@code Card} object to {@code shipped}.
143
   */
144
  public Card shipCard(String card) throws StripeException {
145
    return shipCard(card, (CardShipCardParams) null, (RequestOptions) null);
×
146
  }
147
  /**
148
   * Updates the shipping status of the specified Issuing {@code Card} object to {@code shipped}.
149
   */
150
  public Card shipCard(String card, CardShipCardParams params, RequestOptions options)
151
      throws StripeException {
152
    String path =
1✔
153
        String.format(
1✔
154
            "/v1/test_helpers/issuing/cards/%s/shipping/ship", ApiResource.urlEncodeId(card));
1✔
155
    ApiRequest request =
1✔
156
        new ApiRequest(
157
            BaseAddress.API,
158
            ApiResource.RequestMethod.POST,
159
            path,
160
            ApiRequestParams.paramsToMap(params),
1✔
161
            options);
162
    return this.request(request, Card.class);
1✔
163
  }
164
  /**
165
   * Updates the shipping status of the specified Issuing {@code Card} object to {@code submitted}.
166
   * This method is only available with Stripe Version ‘2024-09-30.acacia’ or above.
167
   */
168
  public Card submitCard(String card, CardSubmitCardParams params) throws StripeException {
NEW
169
    return submitCard(card, params, (RequestOptions) null);
×
170
  }
171
  /**
172
   * Updates the shipping status of the specified Issuing {@code Card} object to {@code submitted}.
173
   * This method is only available with Stripe Version ‘2024-09-30.acacia’ or above.
174
   */
175
  public Card submitCard(String card, RequestOptions options) throws StripeException {
NEW
176
    return submitCard(card, (CardSubmitCardParams) null, options);
×
177
  }
178
  /**
179
   * Updates the shipping status of the specified Issuing {@code Card} object to {@code submitted}.
180
   * This method is only available with Stripe Version ‘2024-09-30.acacia’ or above.
181
   */
182
  public Card submitCard(String card) throws StripeException {
NEW
183
    return submitCard(card, (CardSubmitCardParams) null, (RequestOptions) null);
×
184
  }
185
  /**
186
   * Updates the shipping status of the specified Issuing {@code Card} object to {@code submitted}.
187
   * This method is only available with Stripe Version ‘2024-09-30.acacia’ or above.
188
   */
189
  public Card submitCard(String card, CardSubmitCardParams params, RequestOptions options)
190
      throws StripeException {
NEW
191
    String path =
×
NEW
192
        String.format(
×
NEW
193
            "/v1/test_helpers/issuing/cards/%s/shipping/submit", ApiResource.urlEncodeId(card));
×
NEW
194
    ApiRequest request =
×
195
        new ApiRequest(
196
            BaseAddress.API,
197
            ApiResource.RequestMethod.POST,
198
            path,
NEW
199
            ApiRequestParams.paramsToMap(params),
×
200
            options);
NEW
201
    return this.request(request, Card.class);
×
202
  }
203
}
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