• 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/service/QuotePhaseService.java
1
// File generated from our OpenAPI spec
2
package com.stripe.service;
3

4
import com.google.gson.reflect.TypeToken;
5
import com.stripe.exception.StripeException;
6
import com.stripe.model.LineItem;
7
import com.stripe.model.QuotePhase;
8
import com.stripe.model.StripeCollection;
9
import com.stripe.net.ApiRequest;
10
import com.stripe.net.ApiRequestParams;
11
import com.stripe.net.ApiResource;
12
import com.stripe.net.ApiService;
13
import com.stripe.net.BaseAddress;
14
import com.stripe.net.RequestOptions;
15
import com.stripe.net.StripeResponseGetter;
16
import com.stripe.param.QuotePhaseListLineItemsParams;
17
import com.stripe.param.QuotePhaseRetrieveParams;
18

19
public final class QuotePhaseService extends ApiService {
20
  public QuotePhaseService(StripeResponseGetter responseGetter) {
21
    super(responseGetter);
×
22
  }
×
23

24
  /** Retrieves the quote phase with the given ID. */
25
  public QuotePhase retrieve(String quotePhase, QuotePhaseRetrieveParams params)
26
      throws StripeException {
27
    return retrieve(quotePhase, params, (RequestOptions) null);
×
28
  }
29
  /** Retrieves the quote phase with the given ID. */
30
  public QuotePhase retrieve(String quotePhase, RequestOptions options) throws StripeException {
31
    return retrieve(quotePhase, (QuotePhaseRetrieveParams) null, options);
×
32
  }
33
  /** Retrieves the quote phase with the given ID. */
34
  public QuotePhase retrieve(String quotePhase) throws StripeException {
35
    return retrieve(quotePhase, (QuotePhaseRetrieveParams) null, (RequestOptions) null);
×
36
  }
37
  /** Retrieves the quote phase with the given ID. */
38
  public QuotePhase retrieve(
39
      String quotePhase, QuotePhaseRetrieveParams params, RequestOptions options)
40
      throws StripeException {
41
    String path = String.format("/v1/quote_phases/%s", ApiResource.urlEncodeId(quotePhase));
×
42
    ApiRequest request =
×
43
        new ApiRequest(
44
            BaseAddress.API,
45
            ApiResource.RequestMethod.GET,
46
            path,
47
            ApiRequestParams.paramsToMap(params),
×
48
            options);
49
    return this.request(request, QuotePhase.class);
×
50
  }
51
  /**
52
   * When retrieving a quote phase, there is an includable <strong>line_items</strong> property
53
   * containing the first handful of those items. There is also a URL where you can retrieve the
54
   * full (paginated) list of line items.
55
   */
56
  public StripeCollection<LineItem> listLineItems(
57
      String quotePhase, QuotePhaseListLineItemsParams params) throws StripeException {
NEW
58
    return listLineItems(quotePhase, params, (RequestOptions) null);
×
59
  }
60
  /**
61
   * When retrieving a quote phase, there is an includable <strong>line_items</strong> property
62
   * containing the first handful of those items. There is also a URL where you can retrieve the
63
   * full (paginated) list of line items.
64
   */
65
  public StripeCollection<LineItem> listLineItems(String quotePhase, RequestOptions options)
66
      throws StripeException {
NEW
67
    return listLineItems(quotePhase, (QuotePhaseListLineItemsParams) null, options);
×
68
  }
69
  /**
70
   * When retrieving a quote phase, there is an includable <strong>line_items</strong> property
71
   * containing the first handful of those items. There is also a URL where you can retrieve the
72
   * full (paginated) list of line items.
73
   */
74
  public StripeCollection<LineItem> listLineItems(String quotePhase) throws StripeException {
NEW
75
    return listLineItems(quotePhase, (QuotePhaseListLineItemsParams) null, (RequestOptions) null);
×
76
  }
77
  /**
78
   * When retrieving a quote phase, there is an includable <strong>line_items</strong> property
79
   * containing the first handful of those items. There is also a URL where you can retrieve the
80
   * full (paginated) list of line items.
81
   */
82
  public StripeCollection<LineItem> listLineItems(
83
      String quotePhase, QuotePhaseListLineItemsParams params, RequestOptions options)
84
      throws StripeException {
NEW
85
    String path =
×
NEW
86
        String.format("/v1/quote_phases/%s/line_items", ApiResource.urlEncodeId(quotePhase));
×
NEW
87
    ApiRequest request =
×
88
        new ApiRequest(
89
            BaseAddress.API,
90
            ApiResource.RequestMethod.GET,
91
            path,
NEW
92
            ApiRequestParams.paramsToMap(params),
×
93
            options);
NEW
94
    return this.request(request, new TypeToken<StripeCollection<LineItem>>() {}.getType());
×
95
  }
96
}
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