aws-sdk-payments 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/CHANGELOG.md +8 -0
- data/LICENSE.txt +202 -0
- data/VERSION +1 -0
- data/lib/aws-sdk-payments/client.rb +1276 -0
- data/lib/aws-sdk-payments/client_api.rb +470 -0
- data/lib/aws-sdk-payments/customizations.rb +0 -0
- data/lib/aws-sdk-payments/endpoint_parameters.rb +59 -0
- data/lib/aws-sdk-payments/endpoint_provider.rb +32 -0
- data/lib/aws-sdk-payments/endpoints.rb +20 -0
- data/lib/aws-sdk-payments/errors.rb +165 -0
- data/lib/aws-sdk-payments/plugins/endpoints.rb +77 -0
- data/lib/aws-sdk-payments/resource.rb +26 -0
- data/lib/aws-sdk-payments/types.rb +1474 -0
- data/lib/aws-sdk-payments/waiters.rb +15 -0
- data/lib/aws-sdk-payments.rb +62 -0
- data/sig/client.rbs +165 -0
- data/sig/errors.rbs +38 -0
- data/sig/resource.rbs +87 -0
- data/sig/types.rbs +334 -0
- data/sig/waiters.rbs +13 -0
- metadata +97 -0
|
@@ -0,0 +1,470 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
|
4
|
+
#
|
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
|
7
|
+
#
|
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
module Aws::Payments
|
|
12
|
+
# @api private
|
|
13
|
+
module ClientApi
|
|
14
|
+
|
|
15
|
+
include Seahorse::Model
|
|
16
|
+
|
|
17
|
+
AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
|
|
18
|
+
AccessDeniedExceptionReason = Shapes::StringShape.new(name: 'AccessDeniedExceptionReason')
|
|
19
|
+
AccountBalance = Shapes::StructureShape.new(name: 'AccountBalance')
|
|
20
|
+
AccountBalanceList = Shapes::ListShape.new(name: 'AccountBalanceList')
|
|
21
|
+
AccountHolderName = Shapes::StringShape.new(name: 'AccountHolderName')
|
|
22
|
+
BalanceType = Shapes::StringShape.new(name: 'BalanceType')
|
|
23
|
+
Balances = Shapes::StructureShape.new(name: 'Balances')
|
|
24
|
+
BankAccountNumberTail = Shapes::StringShape.new(name: 'BankAccountNumberTail')
|
|
25
|
+
BankAccountType = Shapes::StringShape.new(name: 'BankAccountType')
|
|
26
|
+
BankCode = Shapes::StringShape.new(name: 'BankCode')
|
|
27
|
+
BankName = Shapes::StringShape.new(name: 'BankName')
|
|
28
|
+
BatchErrorCode = Shapes::StringShape.new(name: 'BatchErrorCode')
|
|
29
|
+
BatchGetFinancialRecordRequest = Shapes::StructureShape.new(name: 'BatchGetFinancialRecordRequest')
|
|
30
|
+
BatchGetFinancialRecordResponse = Shapes::StructureShape.new(name: 'BatchGetFinancialRecordResponse')
|
|
31
|
+
BillingPeriod = Shapes::StructureShape.new(name: 'BillingPeriod')
|
|
32
|
+
BusinessUnit = Shapes::StructureShape.new(name: 'BusinessUnit')
|
|
33
|
+
Card = Shapes::StructureShape.new(name: 'Card')
|
|
34
|
+
CardBrand = Shapes::StringShape.new(name: 'CardBrand')
|
|
35
|
+
CardType = Shapes::StringShape.new(name: 'CardType')
|
|
36
|
+
CnBankRedirect = Shapes::StructureShape.new(name: 'CnBankRedirect')
|
|
37
|
+
CountryCode = Shapes::StringShape.new(name: 'CountryCode')
|
|
38
|
+
CreditMemoDetails = Shapes::StructureShape.new(name: 'CreditMemoDetails')
|
|
39
|
+
CurrencyAmount = Shapes::StructureShape.new(name: 'CurrencyAmount')
|
|
40
|
+
CurrencyCode = Shapes::StringShape.new(name: 'CurrencyCode')
|
|
41
|
+
DecimalString = Shapes::StringShape.new(name: 'DecimalString')
|
|
42
|
+
DisplayLabel = Shapes::StringShape.new(name: 'DisplayLabel')
|
|
43
|
+
DueStatus = Shapes::StringShape.new(name: 'DueStatus')
|
|
44
|
+
ExpirationMonth = Shapes::IntegerShape.new(name: 'ExpirationMonth')
|
|
45
|
+
ExpirationYear = Shapes::IntegerShape.new(name: 'ExpirationYear')
|
|
46
|
+
FinancialRecord = Shapes::StructureShape.new(name: 'FinancialRecord')
|
|
47
|
+
FinancialRecordDetails = Shapes::UnionShape.new(name: 'FinancialRecordDetails')
|
|
48
|
+
FinancialRecordError = Shapes::StructureShape.new(name: 'FinancialRecordError')
|
|
49
|
+
FinancialRecordErrorList = Shapes::ListShape.new(name: 'FinancialRecordErrorList')
|
|
50
|
+
FinancialRecordId = Shapes::StringShape.new(name: 'FinancialRecordId')
|
|
51
|
+
FinancialRecordIdentifier = Shapes::StringShape.new(name: 'FinancialRecordIdentifier')
|
|
52
|
+
FinancialRecordKey = Shapes::UnionShape.new(name: 'FinancialRecordKey')
|
|
53
|
+
FinancialRecordKeyList = Shapes::ListShape.new(name: 'FinancialRecordKeyList')
|
|
54
|
+
FinancialRecordList = Shapes::ListShape.new(name: 'FinancialRecordList')
|
|
55
|
+
FinancialRecordSortField = Shapes::StringShape.new(name: 'FinancialRecordSortField')
|
|
56
|
+
FinancialRecordStatus = Shapes::StringShape.new(name: 'FinancialRecordStatus')
|
|
57
|
+
FinancialRecordSummary = Shapes::StructureShape.new(name: 'FinancialRecordSummary')
|
|
58
|
+
FinancialRecordSummaryList = Shapes::ListShape.new(name: 'FinancialRecordSummaryList')
|
|
59
|
+
FinancialRecordType = Shapes::StringShape.new(name: 'FinancialRecordType')
|
|
60
|
+
FinancialRecordTypeList = Shapes::ListShape.new(name: 'FinancialRecordTypeList')
|
|
61
|
+
GetAccountBalanceRequest = Shapes::StructureShape.new(name: 'GetAccountBalanceRequest')
|
|
62
|
+
GetAccountBalanceRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'GetAccountBalanceRequestMaxResultsInteger')
|
|
63
|
+
GetAccountBalanceResponse = Shapes::StructureShape.new(name: 'GetAccountBalanceResponse')
|
|
64
|
+
GetFinancialRecordRequest = Shapes::StructureShape.new(name: 'GetFinancialRecordRequest')
|
|
65
|
+
GetFinancialRecordResponse = Shapes::StructureShape.new(name: 'GetFinancialRecordResponse')
|
|
66
|
+
GetPaymentInstrumentRequest = Shapes::StructureShape.new(name: 'GetPaymentInstrumentRequest')
|
|
67
|
+
GetPaymentInstrumentResponse = Shapes::StructureShape.new(name: 'GetPaymentInstrumentResponse')
|
|
68
|
+
InNetBanking = Shapes::StructureShape.new(name: 'InNetBanking')
|
|
69
|
+
Integer = Shapes::IntegerShape.new(name: 'Integer')
|
|
70
|
+
InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
|
|
71
|
+
InvoiceDetails = Shapes::StructureShape.new(name: 'InvoiceDetails')
|
|
72
|
+
InvoiceFrequency = Shapes::StringShape.new(name: 'InvoiceFrequency')
|
|
73
|
+
InvoiceId = Shapes::StringShape.new(name: 'InvoiceId')
|
|
74
|
+
Last4 = Shapes::StringShape.new(name: 'Last4')
|
|
75
|
+
LineOfBusiness = Shapes::StringShape.new(name: 'LineOfBusiness')
|
|
76
|
+
ListFinancialRecordsRequest = Shapes::StructureShape.new(name: 'ListFinancialRecordsRequest')
|
|
77
|
+
ListFinancialRecordsRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListFinancialRecordsRequestMaxResultsInteger')
|
|
78
|
+
ListFinancialRecordsResponse = Shapes::StructureShape.new(name: 'ListFinancialRecordsResponse')
|
|
79
|
+
ListPaymentInstrumentsRequest = Shapes::StructureShape.new(name: 'ListPaymentInstrumentsRequest')
|
|
80
|
+
ListPaymentInstrumentsRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListPaymentInstrumentsRequestMaxResultsInteger')
|
|
81
|
+
ListPaymentInstrumentsResponse = Shapes::StructureShape.new(name: 'ListPaymentInstrumentsResponse')
|
|
82
|
+
MerchantOfRecord = Shapes::StringShape.new(name: 'MerchantOfRecord')
|
|
83
|
+
PaginationToken = Shapes::StringShape.new(name: 'PaginationToken')
|
|
84
|
+
PaymentInstrument = Shapes::StructureShape.new(name: 'PaymentInstrument')
|
|
85
|
+
PaymentInstrumentArn = Shapes::StringShape.new(name: 'PaymentInstrumentArn')
|
|
86
|
+
PaymentInstrumentDetails = Shapes::UnionShape.new(name: 'PaymentInstrumentDetails')
|
|
87
|
+
PaymentInstrumentId = Shapes::StringShape.new(name: 'PaymentInstrumentId')
|
|
88
|
+
PaymentInstrumentIdentifier = Shapes::StringShape.new(name: 'PaymentInstrumentIdentifier')
|
|
89
|
+
PaymentInstrumentStatus = Shapes::StringShape.new(name: 'PaymentInstrumentStatus')
|
|
90
|
+
PaymentInstrumentSummary = Shapes::StructureShape.new(name: 'PaymentInstrumentSummary')
|
|
91
|
+
PaymentInstrumentSummaryList = Shapes::ListShape.new(name: 'PaymentInstrumentSummaryList')
|
|
92
|
+
PaymentMethod = Shapes::StringShape.new(name: 'PaymentMethod')
|
|
93
|
+
PaymentTerms = Shapes::StringShape.new(name: 'PaymentTerms')
|
|
94
|
+
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
|
95
|
+
SepaBankAccount = Shapes::StructureShape.new(name: 'SepaBankAccount')
|
|
96
|
+
SettlementStatus = Shapes::StringShape.new(name: 'SettlementStatus')
|
|
97
|
+
SettlementStatusList = Shapes::ListShape.new(name: 'SettlementStatusList')
|
|
98
|
+
SortOrder = Shapes::StringShape.new(name: 'SortOrder')
|
|
99
|
+
String = Shapes::StringShape.new(name: 'String')
|
|
100
|
+
ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
|
|
101
|
+
Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
|
|
102
|
+
UkBacsBankAccount = Shapes::StructureShape.new(name: 'UkBacsBankAccount')
|
|
103
|
+
Upi = Shapes::StructureShape.new(name: 'Upi')
|
|
104
|
+
UsAchBankAccount = Shapes::StructureShape.new(name: 'UsAchBankAccount')
|
|
105
|
+
ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
|
|
106
|
+
ValidationExceptionField = Shapes::StructureShape.new(name: 'ValidationExceptionField')
|
|
107
|
+
ValidationExceptionFieldList = Shapes::ListShape.new(name: 'ValidationExceptionFieldList')
|
|
108
|
+
ValidationExceptionFieldName = Shapes::StringShape.new(name: 'ValidationExceptionFieldName')
|
|
109
|
+
ValidationExceptionReason = Shapes::StringShape.new(name: 'ValidationExceptionReason')
|
|
110
|
+
|
|
111
|
+
AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
|
112
|
+
AccessDeniedException.add_member(:reason, Shapes::ShapeRef.new(shape: AccessDeniedExceptionReason, location_name: "reason"))
|
|
113
|
+
AccessDeniedException.struct_class = Types::AccessDeniedException
|
|
114
|
+
|
|
115
|
+
AccountBalance.add_member(:amount, Shapes::ShapeRef.new(shape: CurrencyAmount, required: true, location_name: "amount"))
|
|
116
|
+
AccountBalance.add_member(:merchant_of_record, Shapes::ShapeRef.new(shape: MerchantOfRecord, required: true, location_name: "merchantOfRecord"))
|
|
117
|
+
AccountBalance.struct_class = Types::AccountBalance
|
|
118
|
+
|
|
119
|
+
AccountBalanceList.member = Shapes::ShapeRef.new(shape: AccountBalance)
|
|
120
|
+
|
|
121
|
+
Balances.add_member(:outstanding, Shapes::ShapeRef.new(shape: CurrencyAmount, required: true, location_name: "outstanding"))
|
|
122
|
+
Balances.add_member(:processing, Shapes::ShapeRef.new(shape: CurrencyAmount, required: true, location_name: "processing"))
|
|
123
|
+
Balances.add_member(:settled, Shapes::ShapeRef.new(shape: CurrencyAmount, required: true, location_name: "settled"))
|
|
124
|
+
Balances.add_member(:canceled, Shapes::ShapeRef.new(shape: CurrencyAmount, required: true, location_name: "canceled"))
|
|
125
|
+
Balances.struct_class = Types::Balances
|
|
126
|
+
|
|
127
|
+
BatchGetFinancialRecordRequest.add_member(:keys, Shapes::ShapeRef.new(shape: FinancialRecordKeyList, required: true, location_name: "keys"))
|
|
128
|
+
BatchGetFinancialRecordRequest.struct_class = Types::BatchGetFinancialRecordRequest
|
|
129
|
+
|
|
130
|
+
BatchGetFinancialRecordResponse.add_member(:financial_records, Shapes::ShapeRef.new(shape: FinancialRecordList, required: true, location_name: "financialRecords"))
|
|
131
|
+
BatchGetFinancialRecordResponse.add_member(:errors, Shapes::ShapeRef.new(shape: FinancialRecordErrorList, required: true, location_name: "errors"))
|
|
132
|
+
BatchGetFinancialRecordResponse.struct_class = Types::BatchGetFinancialRecordResponse
|
|
133
|
+
|
|
134
|
+
BillingPeriod.add_member(:start_date, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "startDate"))
|
|
135
|
+
BillingPeriod.add_member(:end_date, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "endDate"))
|
|
136
|
+
BillingPeriod.struct_class = Types::BillingPeriod
|
|
137
|
+
|
|
138
|
+
BusinessUnit.add_member(:merchant_of_record, Shapes::ShapeRef.new(shape: MerchantOfRecord, required: true, location_name: "merchantOfRecord"))
|
|
139
|
+
BusinessUnit.add_member(:line_of_business, Shapes::ShapeRef.new(shape: LineOfBusiness, location_name: "lineOfBusiness"))
|
|
140
|
+
BusinessUnit.struct_class = Types::BusinessUnit
|
|
141
|
+
|
|
142
|
+
Card.add_member(:brand, Shapes::ShapeRef.new(shape: CardBrand, location_name: "brand"))
|
|
143
|
+
Card.add_member(:last4, Shapes::ShapeRef.new(shape: Last4, required: true, location_name: "last4"))
|
|
144
|
+
Card.add_member(:expiration_month, Shapes::ShapeRef.new(shape: ExpirationMonth, location_name: "expirationMonth"))
|
|
145
|
+
Card.add_member(:expiration_year, Shapes::ShapeRef.new(shape: ExpirationYear, location_name: "expirationYear"))
|
|
146
|
+
Card.add_member(:card_type, Shapes::ShapeRef.new(shape: CardType, location_name: "cardType"))
|
|
147
|
+
Card.add_member(:issuing_bank, Shapes::ShapeRef.new(shape: BankName, location_name: "issuingBank"))
|
|
148
|
+
Card.add_member(:issuer_country, Shapes::ShapeRef.new(shape: CountryCode, location_name: "issuerCountry"))
|
|
149
|
+
Card.struct_class = Types::Card
|
|
150
|
+
|
|
151
|
+
CnBankRedirect.add_member(:bank_code, Shapes::ShapeRef.new(shape: BankCode, location_name: "bankCode"))
|
|
152
|
+
CnBankRedirect.struct_class = Types::CnBankRedirect
|
|
153
|
+
|
|
154
|
+
CreditMemoDetails.add_member(:invoice_id, Shapes::ShapeRef.new(shape: InvoiceId, required: true, location_name: "invoiceId"))
|
|
155
|
+
CreditMemoDetails.add_member(:billing_period, Shapes::ShapeRef.new(shape: BillingPeriod, required: true, location_name: "billingPeriod"))
|
|
156
|
+
CreditMemoDetails.struct_class = Types::CreditMemoDetails
|
|
157
|
+
|
|
158
|
+
CurrencyAmount.add_member(:value, Shapes::ShapeRef.new(shape: DecimalString, required: true, location_name: "value"))
|
|
159
|
+
CurrencyAmount.add_member(:currency, Shapes::ShapeRef.new(shape: CurrencyCode, required: true, location_name: "currency"))
|
|
160
|
+
CurrencyAmount.struct_class = Types::CurrencyAmount
|
|
161
|
+
|
|
162
|
+
FinancialRecord.add_member(:id, Shapes::ShapeRef.new(shape: FinancialRecordId, required: true, location_name: "id"))
|
|
163
|
+
FinancialRecord.add_member(:type, Shapes::ShapeRef.new(shape: FinancialRecordType, required: true, location_name: "type"))
|
|
164
|
+
FinancialRecord.add_member(:business_unit, Shapes::ShapeRef.new(shape: BusinessUnit, required: true, location_name: "businessUnit"))
|
|
165
|
+
FinancialRecord.add_member(:amount, Shapes::ShapeRef.new(shape: CurrencyAmount, required: true, location_name: "amount"))
|
|
166
|
+
FinancialRecord.add_member(:balances, Shapes::ShapeRef.new(shape: Balances, required: true, location_name: "balances"))
|
|
167
|
+
FinancialRecord.add_member(:settlement_status, Shapes::ShapeRef.new(shape: SettlementStatus, required: true, location_name: "settlementStatus"))
|
|
168
|
+
FinancialRecord.add_member(:status, Shapes::ShapeRef.new(shape: FinancialRecordStatus, required: true, location_name: "status"))
|
|
169
|
+
FinancialRecord.add_member(:issued_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "issuedAt"))
|
|
170
|
+
FinancialRecord.add_member(:closed_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "closedAt"))
|
|
171
|
+
FinancialRecord.add_member(:details, Shapes::ShapeRef.new(shape: FinancialRecordDetails, required: true, location_name: "details"))
|
|
172
|
+
FinancialRecord.struct_class = Types::FinancialRecord
|
|
173
|
+
|
|
174
|
+
FinancialRecordDetails.add_member(:invoice_details, Shapes::ShapeRef.new(shape: InvoiceDetails, location_name: "invoiceDetails"))
|
|
175
|
+
FinancialRecordDetails.add_member(:credit_memo_details, Shapes::ShapeRef.new(shape: CreditMemoDetails, location_name: "creditMemoDetails"))
|
|
176
|
+
FinancialRecordDetails.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
|
177
|
+
FinancialRecordDetails.add_member_subclass(:invoice_details, Types::FinancialRecordDetails::InvoiceDetails)
|
|
178
|
+
FinancialRecordDetails.add_member_subclass(:credit_memo_details, Types::FinancialRecordDetails::CreditMemoDetails)
|
|
179
|
+
FinancialRecordDetails.add_member_subclass(:unknown, Types::FinancialRecordDetails::Unknown)
|
|
180
|
+
FinancialRecordDetails.struct_class = Types::FinancialRecordDetails
|
|
181
|
+
|
|
182
|
+
FinancialRecordError.add_member(:key, Shapes::ShapeRef.new(shape: FinancialRecordKey, required: true, location_name: "key"))
|
|
183
|
+
FinancialRecordError.add_member(:code, Shapes::ShapeRef.new(shape: BatchErrorCode, required: true, location_name: "code"))
|
|
184
|
+
FinancialRecordError.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
|
185
|
+
FinancialRecordError.struct_class = Types::FinancialRecordError
|
|
186
|
+
|
|
187
|
+
FinancialRecordErrorList.member = Shapes::ShapeRef.new(shape: FinancialRecordError)
|
|
188
|
+
|
|
189
|
+
FinancialRecordKey.add_member(:identifier, Shapes::ShapeRef.new(shape: FinancialRecordIdentifier, location_name: "identifier"))
|
|
190
|
+
FinancialRecordKey.add_member(:invoice_identifier, Shapes::ShapeRef.new(shape: InvoiceId, location_name: "invoiceIdentifier"))
|
|
191
|
+
FinancialRecordKey.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
|
192
|
+
FinancialRecordKey.add_member_subclass(:identifier, Types::FinancialRecordKey::Identifier)
|
|
193
|
+
FinancialRecordKey.add_member_subclass(:invoice_identifier, Types::FinancialRecordKey::InvoiceIdentifier)
|
|
194
|
+
FinancialRecordKey.add_member_subclass(:unknown, Types::FinancialRecordKey::Unknown)
|
|
195
|
+
FinancialRecordKey.struct_class = Types::FinancialRecordKey
|
|
196
|
+
|
|
197
|
+
FinancialRecordKeyList.member = Shapes::ShapeRef.new(shape: FinancialRecordKey)
|
|
198
|
+
|
|
199
|
+
FinancialRecordList.member = Shapes::ShapeRef.new(shape: FinancialRecord)
|
|
200
|
+
|
|
201
|
+
FinancialRecordSummary.add_member(:id, Shapes::ShapeRef.new(shape: FinancialRecordId, required: true, location_name: "id"))
|
|
202
|
+
FinancialRecordSummary.add_member(:type, Shapes::ShapeRef.new(shape: FinancialRecordType, required: true, location_name: "type"))
|
|
203
|
+
FinancialRecordSummary.add_member(:business_unit, Shapes::ShapeRef.new(shape: BusinessUnit, required: true, location_name: "businessUnit"))
|
|
204
|
+
FinancialRecordSummary.add_member(:amount, Shapes::ShapeRef.new(shape: CurrencyAmount, required: true, location_name: "amount"))
|
|
205
|
+
FinancialRecordSummary.add_member(:balances, Shapes::ShapeRef.new(shape: Balances, required: true, location_name: "balances"))
|
|
206
|
+
FinancialRecordSummary.add_member(:settlement_status, Shapes::ShapeRef.new(shape: SettlementStatus, required: true, location_name: "settlementStatus"))
|
|
207
|
+
FinancialRecordSummary.add_member(:status, Shapes::ShapeRef.new(shape: FinancialRecordStatus, required: true, location_name: "status"))
|
|
208
|
+
FinancialRecordSummary.add_member(:issued_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "issuedAt"))
|
|
209
|
+
FinancialRecordSummary.add_member(:closed_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "closedAt"))
|
|
210
|
+
FinancialRecordSummary.struct_class = Types::FinancialRecordSummary
|
|
211
|
+
|
|
212
|
+
FinancialRecordSummaryList.member = Shapes::ShapeRef.new(shape: FinancialRecordSummary)
|
|
213
|
+
|
|
214
|
+
FinancialRecordTypeList.member = Shapes::ShapeRef.new(shape: FinancialRecordType)
|
|
215
|
+
|
|
216
|
+
GetAccountBalanceRequest.add_member(:balance_type, Shapes::ShapeRef.new(shape: BalanceType, required: true, location_name: "balanceType"))
|
|
217
|
+
GetAccountBalanceRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
|
|
218
|
+
GetAccountBalanceRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: GetAccountBalanceRequestMaxResultsInteger, location_name: "maxResults"))
|
|
219
|
+
GetAccountBalanceRequest.struct_class = Types::GetAccountBalanceRequest
|
|
220
|
+
|
|
221
|
+
GetAccountBalanceResponse.add_member(:account_balances, Shapes::ShapeRef.new(shape: AccountBalanceList, required: true, location_name: "accountBalances"))
|
|
222
|
+
GetAccountBalanceResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
|
|
223
|
+
GetAccountBalanceResponse.struct_class = Types::GetAccountBalanceResponse
|
|
224
|
+
|
|
225
|
+
GetFinancialRecordRequest.add_member(:identifier, Shapes::ShapeRef.new(shape: FinancialRecordIdentifier, location_name: "identifier"))
|
|
226
|
+
GetFinancialRecordRequest.add_member(:invoice_identifier, Shapes::ShapeRef.new(shape: InvoiceId, location_name: "invoiceIdentifier"))
|
|
227
|
+
GetFinancialRecordRequest.struct_class = Types::GetFinancialRecordRequest
|
|
228
|
+
|
|
229
|
+
GetFinancialRecordResponse.add_member(:financial_record, Shapes::ShapeRef.new(shape: FinancialRecord, required: true, location_name: "financialRecord"))
|
|
230
|
+
GetFinancialRecordResponse.struct_class = Types::GetFinancialRecordResponse
|
|
231
|
+
|
|
232
|
+
GetPaymentInstrumentRequest.add_member(:identifier, Shapes::ShapeRef.new(shape: PaymentInstrumentIdentifier, required: true, location_name: "identifier"))
|
|
233
|
+
GetPaymentInstrumentRequest.struct_class = Types::GetPaymentInstrumentRequest
|
|
234
|
+
|
|
235
|
+
GetPaymentInstrumentResponse.add_member(:payment_instrument, Shapes::ShapeRef.new(shape: PaymentInstrument, required: true, location_name: "paymentInstrument"))
|
|
236
|
+
GetPaymentInstrumentResponse.struct_class = Types::GetPaymentInstrumentResponse
|
|
237
|
+
|
|
238
|
+
InNetBanking.add_member(:bank_code, Shapes::ShapeRef.new(shape: BankCode, required: true, location_name: "bankCode"))
|
|
239
|
+
InNetBanking.add_member(:bank_name, Shapes::ShapeRef.new(shape: BankName, location_name: "bankName"))
|
|
240
|
+
InNetBanking.struct_class = Types::InNetBanking
|
|
241
|
+
|
|
242
|
+
InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
|
243
|
+
InternalServerException.add_member(:retry_after_seconds, Shapes::ShapeRef.new(shape: Integer, location_name: "retryAfterSeconds"))
|
|
244
|
+
InternalServerException.struct_class = Types::InternalServerException
|
|
245
|
+
|
|
246
|
+
InvoiceDetails.add_member(:invoice_id, Shapes::ShapeRef.new(shape: InvoiceId, required: true, location_name: "invoiceId"))
|
|
247
|
+
InvoiceDetails.add_member(:due_status, Shapes::ShapeRef.new(shape: DueStatus, location_name: "dueStatus"))
|
|
248
|
+
InvoiceDetails.add_member(:billing_period, Shapes::ShapeRef.new(shape: BillingPeriod, required: true, location_name: "billingPeriod"))
|
|
249
|
+
InvoiceDetails.add_member(:due_date, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "dueDate"))
|
|
250
|
+
InvoiceDetails.add_member(:payment_terms, Shapes::ShapeRef.new(shape: PaymentTerms, location_name: "paymentTerms"))
|
|
251
|
+
InvoiceDetails.add_member(:invoice_frequency, Shapes::ShapeRef.new(shape: InvoiceFrequency, required: true, location_name: "invoiceFrequency"))
|
|
252
|
+
InvoiceDetails.struct_class = Types::InvoiceDetails
|
|
253
|
+
|
|
254
|
+
ListFinancialRecordsRequest.add_member(:types, Shapes::ShapeRef.new(shape: FinancialRecordTypeList, required: true, location_name: "types"))
|
|
255
|
+
ListFinancialRecordsRequest.add_member(:settlement_statuses, Shapes::ShapeRef.new(shape: SettlementStatusList, location_name: "settlementStatuses"))
|
|
256
|
+
ListFinancialRecordsRequest.add_member(:issued_after, Shapes::ShapeRef.new(shape: Timestamp, location_name: "issuedAfter"))
|
|
257
|
+
ListFinancialRecordsRequest.add_member(:issued_before, Shapes::ShapeRef.new(shape: Timestamp, location_name: "issuedBefore"))
|
|
258
|
+
ListFinancialRecordsRequest.add_member(:sort_by, Shapes::ShapeRef.new(shape: FinancialRecordSortField, location_name: "sortBy"))
|
|
259
|
+
ListFinancialRecordsRequest.add_member(:sort_order, Shapes::ShapeRef.new(shape: SortOrder, location_name: "sortOrder"))
|
|
260
|
+
ListFinancialRecordsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
|
|
261
|
+
ListFinancialRecordsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListFinancialRecordsRequestMaxResultsInteger, location_name: "maxResults"))
|
|
262
|
+
ListFinancialRecordsRequest.struct_class = Types::ListFinancialRecordsRequest
|
|
263
|
+
|
|
264
|
+
ListFinancialRecordsResponse.add_member(:financial_record_summaries, Shapes::ShapeRef.new(shape: FinancialRecordSummaryList, required: true, location_name: "financialRecordSummaries"))
|
|
265
|
+
ListFinancialRecordsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
|
|
266
|
+
ListFinancialRecordsResponse.struct_class = Types::ListFinancialRecordsResponse
|
|
267
|
+
|
|
268
|
+
ListPaymentInstrumentsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
|
|
269
|
+
ListPaymentInstrumentsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListPaymentInstrumentsRequestMaxResultsInteger, location_name: "maxResults"))
|
|
270
|
+
ListPaymentInstrumentsRequest.struct_class = Types::ListPaymentInstrumentsRequest
|
|
271
|
+
|
|
272
|
+
ListPaymentInstrumentsResponse.add_member(:payment_instrument_summaries, Shapes::ShapeRef.new(shape: PaymentInstrumentSummaryList, required: true, location_name: "paymentInstrumentSummaries"))
|
|
273
|
+
ListPaymentInstrumentsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
|
|
274
|
+
ListPaymentInstrumentsResponse.struct_class = Types::ListPaymentInstrumentsResponse
|
|
275
|
+
|
|
276
|
+
PaymentInstrument.add_member(:arn, Shapes::ShapeRef.new(shape: PaymentInstrumentArn, required: true, location_name: "arn"))
|
|
277
|
+
PaymentInstrument.add_member(:payment_method, Shapes::ShapeRef.new(shape: PaymentMethod, required: true, location_name: "paymentMethod"))
|
|
278
|
+
PaymentInstrument.add_member(:status, Shapes::ShapeRef.new(shape: PaymentInstrumentStatus, required: true, location_name: "status"))
|
|
279
|
+
PaymentInstrument.add_member(:details, Shapes::ShapeRef.new(shape: PaymentInstrumentDetails, location_name: "details"))
|
|
280
|
+
PaymentInstrument.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "createdAt"))
|
|
281
|
+
PaymentInstrument.add_member(:updated_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "updatedAt"))
|
|
282
|
+
PaymentInstrument.struct_class = Types::PaymentInstrument
|
|
283
|
+
|
|
284
|
+
PaymentInstrumentDetails.add_member(:card, Shapes::ShapeRef.new(shape: Card, location_name: "card"))
|
|
285
|
+
PaymentInstrumentDetails.add_member(:us_ach_bank_account, Shapes::ShapeRef.new(shape: UsAchBankAccount, location_name: "usAchBankAccount"))
|
|
286
|
+
PaymentInstrumentDetails.add_member(:sepa_bank_account, Shapes::ShapeRef.new(shape: SepaBankAccount, location_name: "sepaBankAccount"))
|
|
287
|
+
PaymentInstrumentDetails.add_member(:uk_bacs_bank_account, Shapes::ShapeRef.new(shape: UkBacsBankAccount, location_name: "ukBacsBankAccount"))
|
|
288
|
+
PaymentInstrumentDetails.add_member(:in_net_banking, Shapes::ShapeRef.new(shape: InNetBanking, location_name: "inNetBanking"))
|
|
289
|
+
PaymentInstrumentDetails.add_member(:cn_bank_redirect, Shapes::ShapeRef.new(shape: CnBankRedirect, location_name: "cnBankRedirect"))
|
|
290
|
+
PaymentInstrumentDetails.add_member(:upi, Shapes::ShapeRef.new(shape: Upi, location_name: "upi"))
|
|
291
|
+
PaymentInstrumentDetails.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
|
292
|
+
PaymentInstrumentDetails.add_member_subclass(:card, Types::PaymentInstrumentDetails::Card)
|
|
293
|
+
PaymentInstrumentDetails.add_member_subclass(:us_ach_bank_account, Types::PaymentInstrumentDetails::UsAchBankAccount)
|
|
294
|
+
PaymentInstrumentDetails.add_member_subclass(:sepa_bank_account, Types::PaymentInstrumentDetails::SepaBankAccount)
|
|
295
|
+
PaymentInstrumentDetails.add_member_subclass(:uk_bacs_bank_account, Types::PaymentInstrumentDetails::UkBacsBankAccount)
|
|
296
|
+
PaymentInstrumentDetails.add_member_subclass(:in_net_banking, Types::PaymentInstrumentDetails::InNetBanking)
|
|
297
|
+
PaymentInstrumentDetails.add_member_subclass(:cn_bank_redirect, Types::PaymentInstrumentDetails::CnBankRedirect)
|
|
298
|
+
PaymentInstrumentDetails.add_member_subclass(:upi, Types::PaymentInstrumentDetails::Upi)
|
|
299
|
+
PaymentInstrumentDetails.add_member_subclass(:unknown, Types::PaymentInstrumentDetails::Unknown)
|
|
300
|
+
PaymentInstrumentDetails.struct_class = Types::PaymentInstrumentDetails
|
|
301
|
+
|
|
302
|
+
PaymentInstrumentSummary.add_member(:id, Shapes::ShapeRef.new(shape: PaymentInstrumentId, required: true, location_name: "id"))
|
|
303
|
+
PaymentInstrumentSummary.add_member(:arn, Shapes::ShapeRef.new(shape: PaymentInstrumentArn, required: true, location_name: "arn"))
|
|
304
|
+
PaymentInstrumentSummary.add_member(:payment_method, Shapes::ShapeRef.new(shape: PaymentMethod, required: true, location_name: "paymentMethod"))
|
|
305
|
+
PaymentInstrumentSummary.add_member(:status, Shapes::ShapeRef.new(shape: PaymentInstrumentStatus, required: true, location_name: "status"))
|
|
306
|
+
PaymentInstrumentSummary.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "createdAt"))
|
|
307
|
+
PaymentInstrumentSummary.add_member(:updated_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "updatedAt"))
|
|
308
|
+
PaymentInstrumentSummary.struct_class = Types::PaymentInstrumentSummary
|
|
309
|
+
|
|
310
|
+
PaymentInstrumentSummaryList.member = Shapes::ShapeRef.new(shape: PaymentInstrumentSummary)
|
|
311
|
+
|
|
312
|
+
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
|
313
|
+
ResourceNotFoundException.add_member(:resource_id, Shapes::ShapeRef.new(shape: String, location_name: "resourceId"))
|
|
314
|
+
ResourceNotFoundException.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, location_name: "resourceType"))
|
|
315
|
+
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
|
316
|
+
|
|
317
|
+
SepaBankAccount.add_member(:account_number_tail, Shapes::ShapeRef.new(shape: BankAccountNumberTail, location_name: "accountNumberTail"))
|
|
318
|
+
SepaBankAccount.add_member(:account_holder_name, Shapes::ShapeRef.new(shape: AccountHolderName, location_name: "accountHolderName"))
|
|
319
|
+
SepaBankAccount.add_member(:bank_name, Shapes::ShapeRef.new(shape: BankName, location_name: "bankName"))
|
|
320
|
+
SepaBankAccount.add_member(:account_type, Shapes::ShapeRef.new(shape: BankAccountType, location_name: "accountType"))
|
|
321
|
+
SepaBankAccount.struct_class = Types::SepaBankAccount
|
|
322
|
+
|
|
323
|
+
SettlementStatusList.member = Shapes::ShapeRef.new(shape: SettlementStatus)
|
|
324
|
+
|
|
325
|
+
ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
|
326
|
+
ThrottlingException.add_member(:retry_after_seconds, Shapes::ShapeRef.new(shape: Integer, location_name: "retryAfterSeconds"))
|
|
327
|
+
ThrottlingException.struct_class = Types::ThrottlingException
|
|
328
|
+
|
|
329
|
+
UkBacsBankAccount.add_member(:account_number_tail, Shapes::ShapeRef.new(shape: BankAccountNumberTail, location_name: "accountNumberTail"))
|
|
330
|
+
UkBacsBankAccount.add_member(:account_holder_name, Shapes::ShapeRef.new(shape: AccountHolderName, location_name: "accountHolderName"))
|
|
331
|
+
UkBacsBankAccount.add_member(:bank_name, Shapes::ShapeRef.new(shape: BankName, location_name: "bankName"))
|
|
332
|
+
UkBacsBankAccount.add_member(:account_type, Shapes::ShapeRef.new(shape: BankAccountType, location_name: "accountType"))
|
|
333
|
+
UkBacsBankAccount.struct_class = Types::UkBacsBankAccount
|
|
334
|
+
|
|
335
|
+
Upi.add_member(:app_name, Shapes::ShapeRef.new(shape: DisplayLabel, location_name: "appName"))
|
|
336
|
+
Upi.struct_class = Types::Upi
|
|
337
|
+
|
|
338
|
+
UsAchBankAccount.add_member(:account_number_tail, Shapes::ShapeRef.new(shape: BankAccountNumberTail, location_name: "accountNumberTail"))
|
|
339
|
+
UsAchBankAccount.add_member(:account_holder_name, Shapes::ShapeRef.new(shape: AccountHolderName, location_name: "accountHolderName"))
|
|
340
|
+
UsAchBankAccount.add_member(:bank_name, Shapes::ShapeRef.new(shape: BankName, location_name: "bankName"))
|
|
341
|
+
UsAchBankAccount.add_member(:account_type, Shapes::ShapeRef.new(shape: BankAccountType, location_name: "accountType"))
|
|
342
|
+
UsAchBankAccount.struct_class = Types::UsAchBankAccount
|
|
343
|
+
|
|
344
|
+
ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
|
345
|
+
ValidationException.add_member(:reason, Shapes::ShapeRef.new(shape: ValidationExceptionReason, required: true, location_name: "reason"))
|
|
346
|
+
ValidationException.add_member(:field_list, Shapes::ShapeRef.new(shape: ValidationExceptionFieldList, location_name: "fieldList"))
|
|
347
|
+
ValidationException.struct_class = Types::ValidationException
|
|
348
|
+
|
|
349
|
+
ValidationExceptionField.add_member(:name, Shapes::ShapeRef.new(shape: ValidationExceptionFieldName, required: true, location_name: "name"))
|
|
350
|
+
ValidationExceptionField.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
|
351
|
+
ValidationExceptionField.struct_class = Types::ValidationExceptionField
|
|
352
|
+
|
|
353
|
+
ValidationExceptionFieldList.member = Shapes::ShapeRef.new(shape: ValidationExceptionField)
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
# @api private
|
|
357
|
+
API = Seahorse::Model::Api.new.tap do |api|
|
|
358
|
+
|
|
359
|
+
api.version = "2026-09-23"
|
|
360
|
+
|
|
361
|
+
api.metadata = {
|
|
362
|
+
"apiVersion" => "2026-09-23",
|
|
363
|
+
"auth" => ["aws.auth#sigv4"],
|
|
364
|
+
"endpointPrefix" => "payments",
|
|
365
|
+
"jsonVersion" => "1.0",
|
|
366
|
+
"protocol" => "json",
|
|
367
|
+
"protocols" => ["json"],
|
|
368
|
+
"serviceFullName" => "AWS Payments",
|
|
369
|
+
"serviceId" => "Payments",
|
|
370
|
+
"signatureVersion" => "v4",
|
|
371
|
+
"signingName" => "payments",
|
|
372
|
+
"targetPrefix" => "AWSPayments",
|
|
373
|
+
"uid" => "payments-2026-09-23",
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
api.add_operation(:batch_get_financial_record, Seahorse::Model::Operation.new.tap do |o|
|
|
377
|
+
o.name = "BatchGetFinancialRecord"
|
|
378
|
+
o.http_method = "POST"
|
|
379
|
+
o.http_request_uri = "/"
|
|
380
|
+
o.input = Shapes::ShapeRef.new(shape: BatchGetFinancialRecordRequest)
|
|
381
|
+
o.output = Shapes::ShapeRef.new(shape: BatchGetFinancialRecordResponse)
|
|
382
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
383
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
384
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
385
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
386
|
+
end)
|
|
387
|
+
|
|
388
|
+
api.add_operation(:get_account_balance, Seahorse::Model::Operation.new.tap do |o|
|
|
389
|
+
o.name = "GetAccountBalance"
|
|
390
|
+
o.http_method = "POST"
|
|
391
|
+
o.http_request_uri = "/"
|
|
392
|
+
o.input = Shapes::ShapeRef.new(shape: GetAccountBalanceRequest)
|
|
393
|
+
o.output = Shapes::ShapeRef.new(shape: GetAccountBalanceResponse)
|
|
394
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
395
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
396
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
397
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
398
|
+
o[:pager] = Aws::Pager.new(
|
|
399
|
+
limit_key: "max_results",
|
|
400
|
+
tokens: {
|
|
401
|
+
"next_token" => "next_token"
|
|
402
|
+
}
|
|
403
|
+
)
|
|
404
|
+
end)
|
|
405
|
+
|
|
406
|
+
api.add_operation(:get_financial_record, Seahorse::Model::Operation.new.tap do |o|
|
|
407
|
+
o.name = "GetFinancialRecord"
|
|
408
|
+
o.http_method = "POST"
|
|
409
|
+
o.http_request_uri = "/"
|
|
410
|
+
o.input = Shapes::ShapeRef.new(shape: GetFinancialRecordRequest)
|
|
411
|
+
o.output = Shapes::ShapeRef.new(shape: GetFinancialRecordResponse)
|
|
412
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
413
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
414
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
415
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
416
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
417
|
+
end)
|
|
418
|
+
|
|
419
|
+
api.add_operation(:get_payment_instrument, Seahorse::Model::Operation.new.tap do |o|
|
|
420
|
+
o.name = "GetPaymentInstrument"
|
|
421
|
+
o.http_method = "POST"
|
|
422
|
+
o.http_request_uri = "/"
|
|
423
|
+
o.input = Shapes::ShapeRef.new(shape: GetPaymentInstrumentRequest)
|
|
424
|
+
o.output = Shapes::ShapeRef.new(shape: GetPaymentInstrumentResponse)
|
|
425
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
426
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
427
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
428
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
429
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
430
|
+
end)
|
|
431
|
+
|
|
432
|
+
api.add_operation(:list_financial_records, Seahorse::Model::Operation.new.tap do |o|
|
|
433
|
+
o.name = "ListFinancialRecords"
|
|
434
|
+
o.http_method = "POST"
|
|
435
|
+
o.http_request_uri = "/"
|
|
436
|
+
o.input = Shapes::ShapeRef.new(shape: ListFinancialRecordsRequest)
|
|
437
|
+
o.output = Shapes::ShapeRef.new(shape: ListFinancialRecordsResponse)
|
|
438
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
439
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
440
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
441
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
442
|
+
o[:pager] = Aws::Pager.new(
|
|
443
|
+
limit_key: "max_results",
|
|
444
|
+
tokens: {
|
|
445
|
+
"next_token" => "next_token"
|
|
446
|
+
}
|
|
447
|
+
)
|
|
448
|
+
end)
|
|
449
|
+
|
|
450
|
+
api.add_operation(:list_payment_instruments, Seahorse::Model::Operation.new.tap do |o|
|
|
451
|
+
o.name = "ListPaymentInstruments"
|
|
452
|
+
o.http_method = "POST"
|
|
453
|
+
o.http_request_uri = "/"
|
|
454
|
+
o.input = Shapes::ShapeRef.new(shape: ListPaymentInstrumentsRequest)
|
|
455
|
+
o.output = Shapes::ShapeRef.new(shape: ListPaymentInstrumentsResponse)
|
|
456
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
457
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
458
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
459
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
460
|
+
o[:pager] = Aws::Pager.new(
|
|
461
|
+
limit_key: "max_results",
|
|
462
|
+
tokens: {
|
|
463
|
+
"next_token" => "next_token"
|
|
464
|
+
}
|
|
465
|
+
)
|
|
466
|
+
end)
|
|
467
|
+
end
|
|
468
|
+
|
|
469
|
+
end
|
|
470
|
+
end
|
|
File without changes
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
|
4
|
+
#
|
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
|
7
|
+
#
|
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
|
9
|
+
|
|
10
|
+
module Aws::Payments
|
|
11
|
+
# Endpoint parameters used to influence endpoints per request.
|
|
12
|
+
#
|
|
13
|
+
# @!attribute use_fips
|
|
14
|
+
# When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
|
|
15
|
+
#
|
|
16
|
+
# @return [boolean]
|
|
17
|
+
#
|
|
18
|
+
# @!attribute endpoint
|
|
19
|
+
# Override the endpoint used to send this request
|
|
20
|
+
#
|
|
21
|
+
# @return [string]
|
|
22
|
+
#
|
|
23
|
+
# @!attribute region
|
|
24
|
+
# The AWS region used to dispatch the request.
|
|
25
|
+
#
|
|
26
|
+
# @return [string]
|
|
27
|
+
#
|
|
28
|
+
EndpointParameters = Struct.new(
|
|
29
|
+
:use_fips,
|
|
30
|
+
:endpoint,
|
|
31
|
+
:region,
|
|
32
|
+
) do
|
|
33
|
+
include Aws::Structure
|
|
34
|
+
|
|
35
|
+
# @api private
|
|
36
|
+
class << self
|
|
37
|
+
PARAM_MAP = {
|
|
38
|
+
'UseFIPS' => :use_fips,
|
|
39
|
+
'Endpoint' => :endpoint,
|
|
40
|
+
'Region' => :region,
|
|
41
|
+
}.freeze
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
def initialize(options = {})
|
|
45
|
+
self[:use_fips] = options[:use_fips]
|
|
46
|
+
self[:use_fips] = false if self[:use_fips].nil?
|
|
47
|
+
self[:endpoint] = options[:endpoint]
|
|
48
|
+
self[:region] = options[:region]
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
def self.create(config, options={})
|
|
52
|
+
new({
|
|
53
|
+
use_fips: config.use_fips_endpoint,
|
|
54
|
+
endpoint: (config.endpoint.to_s unless config.regional_endpoint),
|
|
55
|
+
region: config.region,
|
|
56
|
+
}.merge(options))
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
|
4
|
+
#
|
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
|
7
|
+
#
|
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
|
9
|
+
|
|
10
|
+
module Aws::Payments
|
|
11
|
+
class EndpointProvider
|
|
12
|
+
def resolve_endpoint(parameters)
|
|
13
|
+
if Aws::Endpoints::Matchers.set?(parameters.endpoint)
|
|
14
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
|
|
15
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
|
16
|
+
end
|
|
17
|
+
return Aws::Endpoints::Endpoint.new(url: parameters.endpoint, headers: {}, properties: {})
|
|
18
|
+
end
|
|
19
|
+
if Aws::Endpoints::Matchers.set?(parameters.region)
|
|
20
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region))
|
|
21
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
|
|
22
|
+
return Aws::Endpoints::Endpoint.new(url: "https://payments-fips.#{partition_result['implicitGlobalRegion']}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingRegion" => "#{partition_result['implicitGlobalRegion']}"}]})
|
|
23
|
+
end
|
|
24
|
+
return Aws::Endpoints::Endpoint.new(url: "https://payments.#{partition_result['implicitGlobalRegion']}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingRegion" => "#{partition_result['implicitGlobalRegion']}"}]})
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
raise ArgumentError, "Invalid Configuration: Missing Region"
|
|
28
|
+
raise ArgumentError, 'No endpoint could be resolved'
|
|
29
|
+
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
|
4
|
+
#
|
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
|
7
|
+
#
|
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
module Aws::Payments
|
|
12
|
+
# @api private
|
|
13
|
+
module Endpoints
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def self.parameters_for_operation(context)
|
|
17
|
+
Aws::Payments::EndpointParameters.create(context.config)
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|