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

stripe / stripe-dotnet / 11295448400

11 Oct 2024 03:54PM UTC coverage: 46.355% (-0.03%) from 46.38%
11295448400

Pull #3000

coveralls.net

web-flow
Merge 8b7d28ece into d2fbce7c7
Pull Request #3000: Update generated code for beta

5169 of 11151 relevant lines covered (46.35%)

96.56 hits per line

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

33.33
/src/Stripe.net/Services/Treasury/InboundTransfers/InboundTransferService.cs
1
// File generated from our OpenAPI spec
2
namespace Stripe.Treasury
3
{
4
    using System;
5
    using System.Collections.Generic;
6
    using System.Net;
7
    using System.Net.Http;
8
    using System.Threading;
9
    using System.Threading.Tasks;
10

11
    public class InboundTransferService : Service<InboundTransfer>,
12
        ICreatable<InboundTransfer, InboundTransferCreateOptions>,
13
        IListable<InboundTransfer, InboundTransferListOptions>,
14
        IRetrievable<InboundTransfer, InboundTransferGetOptions>
15
    {
16
        public InboundTransferService()
×
17
        {
×
18
        }
×
19

20
        internal InboundTransferService(ApiRequestor requestor)
21
            : base(requestor)
×
22
        {
×
23
        }
×
24

25
        public InboundTransferService(IStripeClient client)
26
            : base(client)
4✔
27
        {
4✔
28
        }
4✔
29

30
        /// <summary>
31
        /// <p>Cancels an InboundTransfer.</p>.
32
        /// </summary>
33
        public virtual InboundTransfer Cancel(string id, InboundTransferCancelOptions options = null, RequestOptions requestOptions = null)
34
        {
1✔
35
            return this.Request<InboundTransfer>(BaseAddress.Api, HttpMethod.Post, $"/v1/treasury/inbound_transfers/{WebUtility.UrlEncode(id)}/cancel", options, requestOptions);
1✔
36
        }
1✔
37

38
        /// <summary>
39
        /// <p>Cancels an InboundTransfer.</p>.
40
        /// </summary>
41
        public virtual Task<InboundTransfer> CancelAsync(string id, InboundTransferCancelOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default)
42
        {
×
43
            return this.RequestAsync<InboundTransfer>(BaseAddress.Api, HttpMethod.Post, $"/v1/treasury/inbound_transfers/{WebUtility.UrlEncode(id)}/cancel", options, requestOptions, cancellationToken);
×
44
        }
×
45

46
        /// <summary>
47
        /// <p>Confirm an InboundTransfer.</p>.
48
        /// </summary>
49
        public virtual InboundTransfer Confirm(string id, InboundTransferConfirmOptions options = null, RequestOptions requestOptions = null)
50
        {
×
51
            return this.Request<InboundTransfer>(BaseAddress.Api, HttpMethod.Post, $"/v1/treasury/inbound_transfers/{WebUtility.UrlEncode(id)}/confirm", options, requestOptions);
×
52
        }
×
53

54
        /// <summary>
55
        /// <p>Confirm an InboundTransfer.</p>.
56
        /// </summary>
57
        public virtual Task<InboundTransfer> ConfirmAsync(string id, InboundTransferConfirmOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default)
58
        {
×
59
            return this.RequestAsync<InboundTransfer>(BaseAddress.Api, HttpMethod.Post, $"/v1/treasury/inbound_transfers/{WebUtility.UrlEncode(id)}/confirm", options, requestOptions, cancellationToken);
×
60
        }
×
61

62
        /// <summary>
63
        /// <p>Creates an InboundTransfer.</p>.
64
        /// </summary>
65
        public virtual InboundTransfer Create(InboundTransferCreateOptions options, RequestOptions requestOptions = null)
66
        {
1✔
67
            return this.Request<InboundTransfer>(BaseAddress.Api, HttpMethod.Post, $"/v1/treasury/inbound_transfers", options, requestOptions);
1✔
68
        }
1✔
69

70
        /// <summary>
71
        /// <p>Creates an InboundTransfer.</p>.
72
        /// </summary>
73
        public virtual Task<InboundTransfer> CreateAsync(InboundTransferCreateOptions options, RequestOptions requestOptions = null, CancellationToken cancellationToken = default)
74
        {
×
75
            return this.RequestAsync<InboundTransfer>(BaseAddress.Api, HttpMethod.Post, $"/v1/treasury/inbound_transfers", options, requestOptions, cancellationToken);
×
76
        }
×
77

78
        /// <summary>
79
        /// <p>Retrieves the details of an existing InboundTransfer.</p>.
80
        /// </summary>
81
        public virtual InboundTransfer Get(string id, InboundTransferGetOptions options = null, RequestOptions requestOptions = null)
82
        {
1✔
83
            return this.Request<InboundTransfer>(BaseAddress.Api, HttpMethod.Get, $"/v1/treasury/inbound_transfers/{WebUtility.UrlEncode(id)}", options, requestOptions);
1✔
84
        }
1✔
85

86
        /// <summary>
87
        /// <p>Retrieves the details of an existing InboundTransfer.</p>.
88
        /// </summary>
89
        public virtual Task<InboundTransfer> GetAsync(string id, InboundTransferGetOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default)
90
        {
×
91
            return this.RequestAsync<InboundTransfer>(BaseAddress.Api, HttpMethod.Get, $"/v1/treasury/inbound_transfers/{WebUtility.UrlEncode(id)}", options, requestOptions, cancellationToken);
×
92
        }
×
93

94
        /// <summary>
95
        /// <p>Returns a list of InboundTransfers sent from the specified FinancialAccount.</p>.
96
        /// </summary>
97
        public virtual StripeList<InboundTransfer> List(InboundTransferListOptions options = null, RequestOptions requestOptions = null)
98
        {
1✔
99
            return this.Request<StripeList<InboundTransfer>>(BaseAddress.Api, HttpMethod.Get, $"/v1/treasury/inbound_transfers", options, requestOptions);
1✔
100
        }
1✔
101

102
        /// <summary>
103
        /// <p>Returns a list of InboundTransfers sent from the specified FinancialAccount.</p>.
104
        /// </summary>
105
        public virtual Task<StripeList<InboundTransfer>> ListAsync(InboundTransferListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default)
106
        {
×
107
            return this.RequestAsync<StripeList<InboundTransfer>>(BaseAddress.Api, HttpMethod.Get, $"/v1/treasury/inbound_transfers", options, requestOptions, cancellationToken);
×
108
        }
×
109

110
        /// <summary>
111
        /// <p>Returns a list of InboundTransfers sent from the specified FinancialAccount.</p>.
112
        /// </summary>
113
        public virtual IEnumerable<InboundTransfer> ListAutoPaging(InboundTransferListOptions options = null, RequestOptions requestOptions = null)
114
        {
×
115
            return this.ListRequestAutoPaging<InboundTransfer>($"/v1/treasury/inbound_transfers", options, requestOptions);
×
116
        }
×
117

118
        /// <summary>
119
        /// <p>Returns a list of InboundTransfers sent from the specified FinancialAccount.</p>.
120
        /// </summary>
121
        public virtual IAsyncEnumerable<InboundTransfer> ListAutoPagingAsync(InboundTransferListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default)
122
        {
×
123
            return this.ListRequestAutoPagingAsync<InboundTransfer>($"/v1/treasury/inbound_transfers", options, requestOptions, cancellationToken);
×
124
        }
×
125
    }
126
}
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