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.
data/sig/types.rbs ADDED
@@ -0,0 +1,334 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws::Payments
9
+ module Types
10
+
11
+ class AccessDeniedException
12
+ attr_accessor message: ::String
13
+ attr_accessor reason: ("NOT_AUTHORIZED" | "INVALID_ACCOUNT_STATE" | "OTHER")
14
+ SENSITIVE: []
15
+ end
16
+
17
+ class AccountBalance
18
+ attr_accessor amount: Types::CurrencyAmount
19
+ attr_accessor merchant_of_record: ::String
20
+ SENSITIVE: []
21
+ end
22
+
23
+ class Balances
24
+ attr_accessor outstanding: Types::CurrencyAmount
25
+ attr_accessor processing: Types::CurrencyAmount
26
+ attr_accessor settled: Types::CurrencyAmount
27
+ attr_accessor canceled: Types::CurrencyAmount
28
+ SENSITIVE: []
29
+ end
30
+
31
+ class BatchGetFinancialRecordRequest
32
+ attr_accessor keys: ::Array[Types::FinancialRecordKey]
33
+ SENSITIVE: []
34
+ end
35
+
36
+ class BatchGetFinancialRecordResponse
37
+ attr_accessor financial_records: ::Array[Types::FinancialRecord]
38
+ attr_accessor errors: ::Array[Types::FinancialRecordError]
39
+ SENSITIVE: []
40
+ end
41
+
42
+ class BillingPeriod
43
+ attr_accessor start_date: ::Time
44
+ attr_accessor end_date: ::Time
45
+ SENSITIVE: []
46
+ end
47
+
48
+ class BusinessUnit
49
+ attr_accessor merchant_of_record: ::String
50
+ attr_accessor line_of_business: ("AWS_CLOUD_SERVICES" | "PROSERVE_MARKETING_AND_TRAINING" | "AWS_MARKETPLACE")
51
+ SENSITIVE: []
52
+ end
53
+
54
+ class Card
55
+ attr_accessor brand: ("VISA" | "MASTERCARD" | "AMEX" | "DISCOVER" | "JCB" | "RUPAY" | "CHINA_UNIONPAY")
56
+ attr_accessor last4: ::String
57
+ attr_accessor expiration_month: ::Integer
58
+ attr_accessor expiration_year: ::Integer
59
+ attr_accessor card_type: ("CREDIT" | "DEBIT")
60
+ attr_accessor issuing_bank: ::String
61
+ attr_accessor issuer_country: ::String
62
+ SENSITIVE: [:last4, :expiration_month, :expiration_year]
63
+ end
64
+
65
+ class CnBankRedirect
66
+ attr_accessor bank_code: ::String
67
+ SENSITIVE: []
68
+ end
69
+
70
+ class CreditMemoDetails
71
+ attr_accessor invoice_id: ::String
72
+ attr_accessor billing_period: Types::BillingPeriod
73
+ SENSITIVE: []
74
+ end
75
+
76
+ class CurrencyAmount
77
+ attr_accessor value: ::String
78
+ attr_accessor currency: ::String
79
+ SENSITIVE: []
80
+ end
81
+
82
+ class FinancialRecord
83
+ attr_accessor id: ::String
84
+ attr_accessor type: ("INVOICE" | "CREDIT_MEMO")
85
+ attr_accessor business_unit: Types::BusinessUnit
86
+ attr_accessor amount: Types::CurrencyAmount
87
+ attr_accessor balances: Types::Balances
88
+ attr_accessor settlement_status: ("OPEN" | "CLOSED")
89
+ attr_accessor status: ("OUTSTANDING" | "PROCESSING" | "SETTLED" | "CANCELED")
90
+ attr_accessor issued_at: ::Time
91
+ attr_accessor closed_at: ::Time
92
+ attr_accessor details: Types::FinancialRecordDetails
93
+ SENSITIVE: []
94
+ end
95
+
96
+ class FinancialRecordDetails
97
+ attr_accessor invoice_details: Types::InvoiceDetails
98
+ attr_accessor credit_memo_details: Types::CreditMemoDetails
99
+ attr_accessor unknown: untyped
100
+ SENSITIVE: []
101
+
102
+ class InvoiceDetails < FinancialRecordDetails
103
+ end
104
+ class CreditMemoDetails < FinancialRecordDetails
105
+ end
106
+ class Unknown < FinancialRecordDetails
107
+ end
108
+ end
109
+
110
+ class FinancialRecordError
111
+ attr_accessor key: Types::FinancialRecordKey
112
+ attr_accessor code: ("NOT_FOUND" | "INTERNAL_ERROR")
113
+ attr_accessor message: ::String
114
+ SENSITIVE: []
115
+ end
116
+
117
+ class FinancialRecordKey
118
+ attr_accessor identifier: ::String
119
+ attr_accessor invoice_identifier: ::String
120
+ attr_accessor unknown: untyped
121
+ SENSITIVE: []
122
+
123
+ class Identifier < FinancialRecordKey
124
+ end
125
+ class InvoiceIdentifier < FinancialRecordKey
126
+ end
127
+ class Unknown < FinancialRecordKey
128
+ end
129
+ end
130
+
131
+ class FinancialRecordSummary
132
+ attr_accessor id: ::String
133
+ attr_accessor type: ("INVOICE" | "CREDIT_MEMO")
134
+ attr_accessor business_unit: Types::BusinessUnit
135
+ attr_accessor amount: Types::CurrencyAmount
136
+ attr_accessor balances: Types::Balances
137
+ attr_accessor settlement_status: ("OPEN" | "CLOSED")
138
+ attr_accessor status: ("OUTSTANDING" | "PROCESSING" | "SETTLED" | "CANCELED")
139
+ attr_accessor issued_at: ::Time
140
+ attr_accessor closed_at: ::Time
141
+ SENSITIVE: []
142
+ end
143
+
144
+ class GetAccountBalanceRequest
145
+ attr_accessor balance_type: ("INVOICES_DUE" | "INVOICES_PAST_DUE" | "OUTSTANDING_CREDIT_MEMOS")
146
+ attr_accessor next_token: ::String
147
+ attr_accessor max_results: ::Integer
148
+ SENSITIVE: []
149
+ end
150
+
151
+ class GetAccountBalanceResponse
152
+ attr_accessor account_balances: ::Array[Types::AccountBalance]
153
+ attr_accessor next_token: ::String
154
+ SENSITIVE: []
155
+ end
156
+
157
+ class GetFinancialRecordRequest
158
+ attr_accessor identifier: ::String
159
+ attr_accessor invoice_identifier: ::String
160
+ SENSITIVE: []
161
+ end
162
+
163
+ class GetFinancialRecordResponse
164
+ attr_accessor financial_record: Types::FinancialRecord
165
+ SENSITIVE: []
166
+ end
167
+
168
+ class GetPaymentInstrumentRequest
169
+ attr_accessor identifier: ::String
170
+ SENSITIVE: []
171
+ end
172
+
173
+ class GetPaymentInstrumentResponse
174
+ attr_accessor payment_instrument: Types::PaymentInstrument
175
+ SENSITIVE: []
176
+ end
177
+
178
+ class InNetBanking
179
+ attr_accessor bank_code: ::String
180
+ attr_accessor bank_name: ::String
181
+ SENSITIVE: []
182
+ end
183
+
184
+ class InternalServerException
185
+ attr_accessor message: ::String
186
+ attr_accessor retry_after_seconds: ::Integer
187
+ SENSITIVE: []
188
+ end
189
+
190
+ class InvoiceDetails
191
+ attr_accessor invoice_id: ::String
192
+ attr_accessor due_status: ("DUE" | "PAST_DUE")
193
+ attr_accessor billing_period: Types::BillingPeriod
194
+ attr_accessor due_date: ::Time
195
+ attr_accessor payment_terms: ::String
196
+ attr_accessor invoice_frequency: ("ONE_TIME" | "RECURRING")
197
+ SENSITIVE: []
198
+ end
199
+
200
+ class ListFinancialRecordsRequest
201
+ attr_accessor types: ::Array[("INVOICE" | "CREDIT_MEMO")]
202
+ attr_accessor settlement_statuses: ::Array[("OPEN" | "CLOSED")]
203
+ attr_accessor issued_after: ::Time
204
+ attr_accessor issued_before: ::Time
205
+ attr_accessor sort_by: ("ISSUED_AT")
206
+ attr_accessor sort_order: ("ASCENDING" | "DESCENDING")
207
+ attr_accessor next_token: ::String
208
+ attr_accessor max_results: ::Integer
209
+ SENSITIVE: []
210
+ end
211
+
212
+ class ListFinancialRecordsResponse
213
+ attr_accessor financial_record_summaries: ::Array[Types::FinancialRecordSummary]
214
+ attr_accessor next_token: ::String
215
+ SENSITIVE: []
216
+ end
217
+
218
+ class ListPaymentInstrumentsRequest
219
+ attr_accessor next_token: ::String
220
+ attr_accessor max_results: ::Integer
221
+ SENSITIVE: []
222
+ end
223
+
224
+ class ListPaymentInstrumentsResponse
225
+ attr_accessor payment_instrument_summaries: ::Array[Types::PaymentInstrumentSummary]
226
+ attr_accessor next_token: ::String
227
+ SENSITIVE: []
228
+ end
229
+
230
+ class PaymentInstrument
231
+ attr_accessor arn: ::String
232
+ attr_accessor payment_method: ("CARD" | "US_ACH_BANK_ACCOUNT" | "SEPA_BANK_ACCOUNT" | "UK_BACS_BANK_ACCOUNT" | "IN_NET_BANKING" | "CN_BANK_REDIRECT" | "UPI" | "PIX" | "PAY_BY_INVOICE")
233
+ attr_accessor status: ("ACTIVE" | "PENDING_SETUP" | "SETUP_IN_PROGRESS" | "INVALID")
234
+ attr_accessor details: Types::PaymentInstrumentDetails
235
+ attr_accessor created_at: ::Time
236
+ attr_accessor updated_at: ::Time
237
+ SENSITIVE: []
238
+ end
239
+
240
+ class PaymentInstrumentDetails
241
+ attr_accessor card: Types::Card
242
+ attr_accessor us_ach_bank_account: Types::UsAchBankAccount
243
+ attr_accessor sepa_bank_account: Types::SepaBankAccount
244
+ attr_accessor uk_bacs_bank_account: Types::UkBacsBankAccount
245
+ attr_accessor in_net_banking: Types::InNetBanking
246
+ attr_accessor cn_bank_redirect: Types::CnBankRedirect
247
+ attr_accessor upi: Types::Upi
248
+ attr_accessor unknown: untyped
249
+ SENSITIVE: []
250
+
251
+ class Card < PaymentInstrumentDetails
252
+ end
253
+ class UsAchBankAccount < PaymentInstrumentDetails
254
+ end
255
+ class SepaBankAccount < PaymentInstrumentDetails
256
+ end
257
+ class UkBacsBankAccount < PaymentInstrumentDetails
258
+ end
259
+ class InNetBanking < PaymentInstrumentDetails
260
+ end
261
+ class CnBankRedirect < PaymentInstrumentDetails
262
+ end
263
+ class Upi < PaymentInstrumentDetails
264
+ end
265
+ class Unknown < PaymentInstrumentDetails
266
+ end
267
+ end
268
+
269
+ class PaymentInstrumentSummary
270
+ attr_accessor id: ::String
271
+ attr_accessor arn: ::String
272
+ attr_accessor payment_method: ("CARD" | "US_ACH_BANK_ACCOUNT" | "SEPA_BANK_ACCOUNT" | "UK_BACS_BANK_ACCOUNT" | "IN_NET_BANKING" | "CN_BANK_REDIRECT" | "UPI" | "PIX" | "PAY_BY_INVOICE")
273
+ attr_accessor status: ("ACTIVE" | "PENDING_SETUP" | "SETUP_IN_PROGRESS" | "INVALID")
274
+ attr_accessor created_at: ::Time
275
+ attr_accessor updated_at: ::Time
276
+ SENSITIVE: []
277
+ end
278
+
279
+ class ResourceNotFoundException
280
+ attr_accessor message: ::String
281
+ attr_accessor resource_id: ::String
282
+ attr_accessor resource_type: ::String
283
+ SENSITIVE: []
284
+ end
285
+
286
+ class SepaBankAccount
287
+ attr_accessor account_number_tail: ::String
288
+ attr_accessor account_holder_name: ::String
289
+ attr_accessor bank_name: ::String
290
+ attr_accessor account_type: ("CHECKING" | "SAVINGS")
291
+ SENSITIVE: [:account_number_tail, :account_holder_name]
292
+ end
293
+
294
+ class ThrottlingException
295
+ attr_accessor message: ::String
296
+ attr_accessor retry_after_seconds: ::Integer
297
+ SENSITIVE: []
298
+ end
299
+
300
+ class UkBacsBankAccount
301
+ attr_accessor account_number_tail: ::String
302
+ attr_accessor account_holder_name: ::String
303
+ attr_accessor bank_name: ::String
304
+ attr_accessor account_type: ("CHECKING" | "SAVINGS")
305
+ SENSITIVE: [:account_number_tail, :account_holder_name]
306
+ end
307
+
308
+ class Upi
309
+ attr_accessor app_name: ::String
310
+ SENSITIVE: []
311
+ end
312
+
313
+ class UsAchBankAccount
314
+ attr_accessor account_number_tail: ::String
315
+ attr_accessor account_holder_name: ::String
316
+ attr_accessor bank_name: ::String
317
+ attr_accessor account_type: ("CHECKING" | "SAVINGS")
318
+ SENSITIVE: [:account_number_tail, :account_holder_name]
319
+ end
320
+
321
+ class ValidationException
322
+ attr_accessor message: ::String
323
+ attr_accessor reason: ("CANNOT_PARSE" | "FIELD_VALIDATION_FAILED" | "INVALID_PAGINATION_TOKEN" | "UNSUPPORTED_ACTION" | "OTHER")
324
+ attr_accessor field_list: ::Array[Types::ValidationExceptionField]
325
+ SENSITIVE: []
326
+ end
327
+
328
+ class ValidationExceptionField
329
+ attr_accessor name: ::String
330
+ attr_accessor message: ::String
331
+ SENSITIVE: []
332
+ end
333
+ end
334
+ end
data/sig/waiters.rbs ADDED
@@ -0,0 +1,13 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module Payments
10
+ module Waiters
11
+ end
12
+ end
13
+ end
metadata ADDED
@@ -0,0 +1,97 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: aws-sdk-payments
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Amazon Web Services
8
+ bindir: bin
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: aws-sdk-core
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - "~>"
17
+ - !ruby/object:Gem::Version
18
+ version: '3'
19
+ - - ">="
20
+ - !ruby/object:Gem::Version
21
+ version: 3.270.0
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - "~>"
27
+ - !ruby/object:Gem::Version
28
+ version: '3'
29
+ - - ">="
30
+ - !ruby/object:Gem::Version
31
+ version: 3.270.0
32
+ - !ruby/object:Gem::Dependency
33
+ name: aws-sigv4
34
+ requirement: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - "~>"
37
+ - !ruby/object:Gem::Version
38
+ version: '1.5'
39
+ type: :runtime
40
+ prerelease: false
41
+ version_requirements: !ruby/object:Gem::Requirement
42
+ requirements:
43
+ - - "~>"
44
+ - !ruby/object:Gem::Version
45
+ version: '1.5'
46
+ description: Official AWS Ruby gem for AWS Payments. This gem is part of the AWS SDK
47
+ for Ruby.
48
+ email:
49
+ - aws-dr-rubygems@amazon.com
50
+ executables: []
51
+ extensions: []
52
+ extra_rdoc_files: []
53
+ files:
54
+ - CHANGELOG.md
55
+ - LICENSE.txt
56
+ - VERSION
57
+ - lib/aws-sdk-payments.rb
58
+ - lib/aws-sdk-payments/client.rb
59
+ - lib/aws-sdk-payments/client_api.rb
60
+ - lib/aws-sdk-payments/customizations.rb
61
+ - lib/aws-sdk-payments/endpoint_parameters.rb
62
+ - lib/aws-sdk-payments/endpoint_provider.rb
63
+ - lib/aws-sdk-payments/endpoints.rb
64
+ - lib/aws-sdk-payments/errors.rb
65
+ - lib/aws-sdk-payments/plugins/endpoints.rb
66
+ - lib/aws-sdk-payments/resource.rb
67
+ - lib/aws-sdk-payments/types.rb
68
+ - lib/aws-sdk-payments/waiters.rb
69
+ - sig/client.rbs
70
+ - sig/errors.rbs
71
+ - sig/resource.rbs
72
+ - sig/types.rbs
73
+ - sig/waiters.rbs
74
+ homepage: https://github.com/aws/aws-sdk-ruby
75
+ licenses:
76
+ - Apache-2.0
77
+ metadata:
78
+ source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-payments
79
+ changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-payments/CHANGELOG.md
80
+ rdoc_options: []
81
+ require_paths:
82
+ - lib
83
+ required_ruby_version: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - ">="
86
+ - !ruby/object:Gem::Version
87
+ version: '2.7'
88
+ required_rubygems_version: !ruby/object:Gem::Requirement
89
+ requirements:
90
+ - - ">="
91
+ - !ruby/object:Gem::Version
92
+ version: '0'
93
+ requirements: []
94
+ rubygems_version: 3.6.7
95
+ specification_version: 4
96
+ summary: AWS SDK for Ruby - AWS Payments
97
+ test_files: []