AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
PaymentsClient.h
1
6#pragma once
7#include <aws/core/client/AWSClient.h>
8#include <aws/core/client/AWSClientAsyncCRTP.h>
9#include <aws/core/client/ClientConfiguration.h>
10#include <aws/core/utils/json/JsonSerializer.h>
11#include <aws/payments/PaymentsPaginationBase.h>
12#include <aws/payments/PaymentsServiceClientModel.h>
13#include <aws/payments/PaymentsWaiter.h>
14#include <aws/payments/Payments_EXPORTS.h>
15
16namespace Aws {
17namespace Payments {
34class AWS_PAYMENTS_API PaymentsClient : public Aws::Client::AWSJsonClient,
36 public PaymentsPaginationBase<PaymentsClient>,
37 public PaymentsWaiter<PaymentsClient> {
38 public:
40 static const char* GetServiceName();
41 static const char* GetAllocationTag();
42
43 typedef PaymentsClientConfiguration ClientConfigurationType;
45
50 PaymentsClient(const Aws::Payments::PaymentsClientConfiguration& clientConfiguration = Aws::Payments::PaymentsClientConfiguration(),
51 std::shared_ptr<PaymentsEndpointProviderBase> endpointProvider = nullptr);
52
57 PaymentsClient(const Aws::Auth::AWSCredentials& credentials, std::shared_ptr<PaymentsEndpointProviderBase> endpointProvider = nullptr,
58 const Aws::Payments::PaymentsClientConfiguration& clientConfiguration = Aws::Payments::PaymentsClientConfiguration());
59
64 PaymentsClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
65 std::shared_ptr<PaymentsEndpointProviderBase> endpointProvider = nullptr,
66 const Aws::Payments::PaymentsClientConfiguration& clientConfiguration = Aws::Payments::PaymentsClientConfiguration());
67
68 /* Legacy constructors due deprecation */
74
79 PaymentsClient(const Aws::Auth::AWSCredentials& credentials, const Aws::Client::ClientConfiguration& clientConfiguration);
80
85 PaymentsClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
86 const Aws::Client::ClientConfiguration& clientConfiguration);
87
88 /* End of legacy constructors due deprecation */
89 virtual ~PaymentsClient();
90
106
111 template <typename BatchGetFinancialRecordRequestT = Model::BatchGetFinancialRecordRequest>
112 Model::BatchGetFinancialRecordOutcomeCallable BatchGetFinancialRecordCallable(const BatchGetFinancialRecordRequestT& request) const {
113 return SubmitCallable(&PaymentsClient::BatchGetFinancialRecord, request);
114 }
115
120 template <typename BatchGetFinancialRecordRequestT = Model::BatchGetFinancialRecordRequest>
121 void BatchGetFinancialRecordAsync(const BatchGetFinancialRecordRequestT& request,
123 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
124 return SubmitAsync(&PaymentsClient::BatchGetFinancialRecord, request, handler, context);
125 }
126
141
146 template <typename GetAccountBalanceRequestT = Model::GetAccountBalanceRequest>
147 Model::GetAccountBalanceOutcomeCallable GetAccountBalanceCallable(const GetAccountBalanceRequestT& request) const {
148 return SubmitCallable(&PaymentsClient::GetAccountBalance, request);
149 }
150
155 template <typename GetAccountBalanceRequestT = Model::GetAccountBalanceRequest>
156 void GetAccountBalanceAsync(const GetAccountBalanceRequestT& request, const GetAccountBalanceResponseReceivedHandler& handler,
157 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
158 return SubmitAsync(&PaymentsClient::GetAccountBalance, request, handler, context);
159 }
160
179
184 template <typename GetFinancialRecordRequestT = Model::GetFinancialRecordRequest>
185 Model::GetFinancialRecordOutcomeCallable GetFinancialRecordCallable(const GetFinancialRecordRequestT& request = {}) const {
186 return SubmitCallable(&PaymentsClient::GetFinancialRecord, request);
187 }
188
193 template <typename GetFinancialRecordRequestT = Model::GetFinancialRecordRequest>
195 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr,
196 const GetFinancialRecordRequestT& request = {}) const {
197 return SubmitAsync(&PaymentsClient::GetFinancialRecord, request, handler, context);
198 }
199
212
217 template <typename GetPaymentInstrumentRequestT = Model::GetPaymentInstrumentRequest>
218 Model::GetPaymentInstrumentOutcomeCallable GetPaymentInstrumentCallable(const GetPaymentInstrumentRequestT& request) const {
219 return SubmitCallable(&PaymentsClient::GetPaymentInstrument, request);
220 }
221
226 template <typename GetPaymentInstrumentRequestT = Model::GetPaymentInstrumentRequest>
227 void GetPaymentInstrumentAsync(const GetPaymentInstrumentRequestT& request, const GetPaymentInstrumentResponseReceivedHandler& handler,
228 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
229 return SubmitAsync(&PaymentsClient::GetPaymentInstrument, request, handler, context);
230 }
231
247
252 template <typename ListFinancialRecordsRequestT = Model::ListFinancialRecordsRequest>
253 Model::ListFinancialRecordsOutcomeCallable ListFinancialRecordsCallable(const ListFinancialRecordsRequestT& request) const {
254 return SubmitCallable(&PaymentsClient::ListFinancialRecords, request);
255 }
256
261 template <typename ListFinancialRecordsRequestT = Model::ListFinancialRecordsRequest>
262 void ListFinancialRecordsAsync(const ListFinancialRecordsRequestT& request, const ListFinancialRecordsResponseReceivedHandler& handler,
263 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
264 return SubmitAsync(&PaymentsClient::ListFinancialRecords, request, handler, context);
265 }
266
279
284 template <typename ListPaymentInstrumentsRequestT = Model::ListPaymentInstrumentsRequest>
285 Model::ListPaymentInstrumentsOutcomeCallable ListPaymentInstrumentsCallable(const ListPaymentInstrumentsRequestT& request = {}) const {
286 return SubmitCallable(&PaymentsClient::ListPaymentInstruments, request);
287 }
288
293 template <typename ListPaymentInstrumentsRequestT = Model::ListPaymentInstrumentsRequest>
295 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr,
296 const ListPaymentInstrumentsRequestT& request = {}) const {
297 return SubmitAsync(&PaymentsClient::ListPaymentInstruments, request, handler, context);
298 }
299
300 virtual void OverrideEndpoint(const Aws::String& endpoint);
301 virtual std::shared_ptr<PaymentsEndpointProviderBase>& accessEndpointProvider();
302
303 private:
305 void init(const PaymentsClientConfiguration& clientConfiguration);
306
308
309 InvokeOperationOutcome InvokeServiceOperation(const AmazonWebServiceRequest& request, Aws::Http::HttpMethod httpMethod) const;
310
311 PaymentsClientConfiguration m_clientConfiguration;
312 std::shared_ptr<PaymentsEndpointProviderBase> m_endpointProvider;
313};
314
315} // namespace Payments
316} // namespace Aws
void GetFinancialRecordAsync(const GetFinancialRecordResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr, const GetFinancialRecordRequestT &request={}) const
Aws::Client::AWSJsonClient BASECLASS
Model::GetFinancialRecordOutcomeCallable GetFinancialRecordCallable(const GetFinancialRecordRequestT &request={}) const
static const char * GetServiceName()
Model::ListFinancialRecordsOutcomeCallable ListFinancialRecordsCallable(const ListFinancialRecordsRequestT &request) const
PaymentsClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, std::shared_ptr< PaymentsEndpointProviderBase > endpointProvider=nullptr, const Aws::Payments::PaymentsClientConfiguration &clientConfiguration=Aws::Payments::PaymentsClientConfiguration())
PaymentsClient(const Aws::Payments::PaymentsClientConfiguration &clientConfiguration=Aws::Payments::PaymentsClientConfiguration(), std::shared_ptr< PaymentsEndpointProviderBase > endpointProvider=nullptr)
Model::GetPaymentInstrumentOutcomeCallable GetPaymentInstrumentCallable(const GetPaymentInstrumentRequestT &request) const
void GetPaymentInstrumentAsync(const GetPaymentInstrumentRequestT &request, const GetPaymentInstrumentResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
static const char * GetAllocationTag()
virtual std::shared_ptr< PaymentsEndpointProviderBase > & accessEndpointProvider()
virtual void OverrideEndpoint(const Aws::String &endpoint)
virtual Model::BatchGetFinancialRecordOutcome BatchGetFinancialRecord(const Model::BatchGetFinancialRecordRequest &request) const
PaymentsEndpointProvider EndpointProviderType
virtual Model::GetFinancialRecordOutcome GetFinancialRecord(const Model::GetFinancialRecordRequest &request={}) const
PaymentsClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, const Aws::Client::ClientConfiguration &clientConfiguration)
void ListFinancialRecordsAsync(const ListFinancialRecordsRequestT &request, const ListFinancialRecordsResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
PaymentsClient(const Aws::Client::ClientConfiguration &clientConfiguration)
virtual Model::GetPaymentInstrumentOutcome GetPaymentInstrument(const Model::GetPaymentInstrumentRequest &request) const
Model::BatchGetFinancialRecordOutcomeCallable BatchGetFinancialRecordCallable(const BatchGetFinancialRecordRequestT &request) const
PaymentsClient(const Aws::Auth::AWSCredentials &credentials, std::shared_ptr< PaymentsEndpointProviderBase > endpointProvider=nullptr, const Aws::Payments::PaymentsClientConfiguration &clientConfiguration=Aws::Payments::PaymentsClientConfiguration())
PaymentsClientConfiguration ClientConfigurationType
Model::GetAccountBalanceOutcomeCallable GetAccountBalanceCallable(const GetAccountBalanceRequestT &request) const
Model::ListPaymentInstrumentsOutcomeCallable ListPaymentInstrumentsCallable(const ListPaymentInstrumentsRequestT &request={}) const
void GetAccountBalanceAsync(const GetAccountBalanceRequestT &request, const GetAccountBalanceResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
void BatchGetFinancialRecordAsync(const BatchGetFinancialRecordRequestT &request, const BatchGetFinancialRecordResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
void ListPaymentInstrumentsAsync(const ListPaymentInstrumentsResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr, const ListPaymentInstrumentsRequestT &request={}) const
virtual Model::ListFinancialRecordsOutcome ListFinancialRecords(const Model::ListFinancialRecordsRequest &request) const
PaymentsClient(const Aws::Auth::AWSCredentials &credentials, const Aws::Client::ClientConfiguration &clientConfiguration)
virtual Model::ListPaymentInstrumentsOutcome ListPaymentInstruments(const Model::ListPaymentInstrumentsRequest &request={}) const
virtual Model::GetAccountBalanceOutcome GetAccountBalance(const Model::GetAccountBalanceRequest &request) const
std::future< ListFinancialRecordsOutcome > ListFinancialRecordsOutcomeCallable
std::future< BatchGetFinancialRecordOutcome > BatchGetFinancialRecordOutcomeCallable
std::future< GetAccountBalanceOutcome > GetAccountBalanceOutcomeCallable
std::future< GetPaymentInstrumentOutcome > GetPaymentInstrumentOutcomeCallable
std::future< ListPaymentInstrumentsOutcome > ListPaymentInstrumentsOutcomeCallable
std::future< GetFinancialRecordOutcome > GetFinancialRecordOutcomeCallable
std::function< void(const PaymentsClient *, const Model::GetPaymentInstrumentRequest &, const Model::GetPaymentInstrumentOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> GetPaymentInstrumentResponseReceivedHandler
std::function< void(const PaymentsClient *, const Model::GetFinancialRecordRequest &, const Model::GetFinancialRecordOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> GetFinancialRecordResponseReceivedHandler
std::function< void(const PaymentsClient *, const Model::ListPaymentInstrumentsRequest &, const Model::ListPaymentInstrumentsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> ListPaymentInstrumentsResponseReceivedHandler
std::function< void(const PaymentsClient *, const Model::BatchGetFinancialRecordRequest &, const Model::BatchGetFinancialRecordOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> BatchGetFinancialRecordResponseReceivedHandler
std::function< void(const PaymentsClient *, const Model::GetAccountBalanceRequest &, const Model::GetAccountBalanceOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> GetAccountBalanceResponseReceivedHandler
std::function< void(const PaymentsClient *, const Model::ListFinancialRecordsRequest &, const Model::ListFinancialRecordsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> ListFinancialRecordsResponseReceivedHandler
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String