aws-sdk-taxsettings 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,57 @@
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
+ require 'aws-sdk-core'
12
+ require 'aws-sigv4'
13
+
14
+ require_relative 'aws-sdk-taxsettings/types'
15
+ require_relative 'aws-sdk-taxsettings/client_api'
16
+ require_relative 'aws-sdk-taxsettings/plugins/endpoints.rb'
17
+ require_relative 'aws-sdk-taxsettings/client'
18
+ require_relative 'aws-sdk-taxsettings/errors'
19
+ require_relative 'aws-sdk-taxsettings/resource'
20
+ require_relative 'aws-sdk-taxsettings/endpoint_parameters'
21
+ require_relative 'aws-sdk-taxsettings/endpoint_provider'
22
+ require_relative 'aws-sdk-taxsettings/endpoints'
23
+ require_relative 'aws-sdk-taxsettings/customizations'
24
+
25
+ # This module provides support for Tax Settings. This module is available in the
26
+ # `aws-sdk-taxsettings` gem.
27
+ #
28
+ # # Client
29
+ #
30
+ # The {Client} class provides one method for each API operation. Operation
31
+ # methods each accept a hash of request parameters and return a response
32
+ # structure.
33
+ #
34
+ # tax_settings = Aws::TaxSettings::Client.new
35
+ # resp = tax_settings.batch_delete_tax_registration(params)
36
+ #
37
+ # See {Client} for more information.
38
+ #
39
+ # # Errors
40
+ #
41
+ # Errors returned from Tax Settings are defined in the
42
+ # {Errors} module and all extend {Errors::ServiceError}.
43
+ #
44
+ # begin
45
+ # # do stuff
46
+ # rescue Aws::TaxSettings::Errors::ServiceError
47
+ # # rescues all Tax Settings API errors
48
+ # end
49
+ #
50
+ # See {Errors} for more information.
51
+ #
52
+ # @!group service
53
+ module Aws::TaxSettings
54
+
55
+ GEM_VERSION = '1.0.0'
56
+
57
+ end
data/sig/client.rbs ADDED
@@ -0,0 +1,326 @@
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 TaxSettings
10
+ class Client < ::Seahorse::Client::Base
11
+ include ::Aws::ClientStubs
12
+
13
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/TaxSettings/Client.html#initialize-instance_method
14
+ def self.new: (
15
+ ?credentials: untyped,
16
+ ?region: String,
17
+ ?access_key_id: String,
18
+ ?active_endpoint_cache: bool,
19
+ ?adaptive_retry_wait_to_fill: bool,
20
+ ?client_side_monitoring: bool,
21
+ ?client_side_monitoring_client_id: String,
22
+ ?client_side_monitoring_host: String,
23
+ ?client_side_monitoring_port: Integer,
24
+ ?client_side_monitoring_publisher: untyped,
25
+ ?convert_params: bool,
26
+ ?correct_clock_skew: bool,
27
+ ?defaults_mode: String,
28
+ ?disable_host_prefix_injection: bool,
29
+ ?disable_request_compression: bool,
30
+ ?endpoint: String,
31
+ ?endpoint_cache_max_entries: Integer,
32
+ ?endpoint_cache_max_threads: Integer,
33
+ ?endpoint_cache_poll_interval: Integer,
34
+ ?endpoint_discovery: bool,
35
+ ?ignore_configured_endpoint_urls: bool,
36
+ ?log_formatter: untyped,
37
+ ?log_level: Symbol,
38
+ ?logger: untyped,
39
+ ?max_attempts: Integer,
40
+ ?profile: String,
41
+ ?request_min_compression_size_bytes: Integer,
42
+ ?retry_backoff: Proc,
43
+ ?retry_base_delay: Float,
44
+ ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
45
+ ?retry_limit: Integer,
46
+ ?retry_max_delay: Integer,
47
+ ?retry_mode: ("legacy" | "standard" | "adaptive"),
48
+ ?sdk_ua_app_id: String,
49
+ ?secret_access_key: String,
50
+ ?session_token: String,
51
+ ?stub_responses: untyped,
52
+ ?token_provider: untyped,
53
+ ?use_dualstack_endpoint: bool,
54
+ ?use_fips_endpoint: bool,
55
+ ?validate_params: bool,
56
+ ?endpoint_provider: untyped,
57
+ ?http_proxy: String,
58
+ ?http_open_timeout: (Float | Integer),
59
+ ?http_read_timeout: (Float | Integer),
60
+ ?http_idle_timeout: (Float | Integer),
61
+ ?http_continue_timeout: (Float | Integer),
62
+ ?ssl_timeout: (Float | Integer | nil),
63
+ ?http_wire_trace: bool,
64
+ ?ssl_verify_peer: bool,
65
+ ?ssl_ca_bundle: String,
66
+ ?ssl_ca_directory: String,
67
+ ?ssl_ca_store: String,
68
+ ?on_chunk_received: Proc,
69
+ ?on_chunk_sent: Proc,
70
+ ?raise_response_errors: bool
71
+ ) -> instance
72
+ | (?Hash[Symbol, untyped]) -> instance
73
+
74
+
75
+ interface _BatchDeleteTaxRegistrationResponseSuccess
76
+ include ::Seahorse::Client::_ResponseSuccess[Types::BatchDeleteTaxRegistrationResponse]
77
+ def errors: () -> ::Array[Types::BatchDeleteTaxRegistrationError]
78
+ end
79
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/TaxSettings/Client.html#batch_delete_tax_registration-instance_method
80
+ def batch_delete_tax_registration: (
81
+ account_ids: Array[::String]
82
+ ) -> _BatchDeleteTaxRegistrationResponseSuccess
83
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _BatchDeleteTaxRegistrationResponseSuccess
84
+
85
+ interface _BatchPutTaxRegistrationResponseSuccess
86
+ include ::Seahorse::Client::_ResponseSuccess[Types::BatchPutTaxRegistrationResponse]
87
+ def errors: () -> ::Array[Types::BatchPutTaxRegistrationError]
88
+ def status: () -> ("Verified" | "Pending" | "Deleted" | "Rejected")
89
+ end
90
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/TaxSettings/Client.html#batch_put_tax_registration-instance_method
91
+ def batch_put_tax_registration: (
92
+ account_ids: Array[::String],
93
+ tax_registration_entry: {
94
+ additional_tax_information: {
95
+ canada_additional_info: {
96
+ canada_quebec_sales_tax_number: ::String?,
97
+ canada_retail_sales_tax_number: ::String?,
98
+ is_reseller_account: bool?,
99
+ provincial_sales_tax_id: ::String?
100
+ }?,
101
+ estonia_additional_info: {
102
+ registry_commercial_code: ::String
103
+ }?,
104
+ georgia_additional_info: {
105
+ person_type: ("Legal Person" | "Physical Person" | "Business")
106
+ }?,
107
+ israel_additional_info: {
108
+ customer_type: ("Business" | "Individual"),
109
+ dealer_type: ("Authorized" | "Non-authorized")
110
+ }?,
111
+ italy_additional_info: {
112
+ cig_number: ::String?,
113
+ cup_number: ::String?,
114
+ sdi_account_id: ::String?,
115
+ tax_code: ::String?
116
+ }?,
117
+ kenya_additional_info: {
118
+ person_type: ("Legal Person" | "Physical Person" | "Business")
119
+ }?,
120
+ malaysia_additional_info: {
121
+ service_tax_codes: Array[("Consultancy" | "Digital Service And Electronic Medium" | "IT Services" | "Training Or Coaching")]
122
+ }?,
123
+ poland_additional_info: {
124
+ individual_registration_number: ::String?,
125
+ is_group_vat_enabled: bool?
126
+ }?,
127
+ romania_additional_info: {
128
+ tax_registration_number_type: ("TaxRegistrationNumber" | "LocalRegistrationNumber")
129
+ }?,
130
+ saudi_arabia_additional_info: {
131
+ tax_registration_number_type: ("TaxRegistrationNumber" | "TaxIdentificationNumber" | "CommercialRegistrationNumber")?
132
+ }?,
133
+ south_korea_additional_info: {
134
+ business_representative_name: ::String,
135
+ item_of_business: ::String,
136
+ line_of_business: ::String
137
+ }?,
138
+ spain_additional_info: {
139
+ registration_type: ("Intra-EU" | "Local")
140
+ }?,
141
+ turkey_additional_info: {
142
+ industries: ("CirculatingOrg" | "ProfessionalOrg" | "Banks" | "Insurance" | "PensionAndBenefitFunds" | "DevelopmentAgencies")?,
143
+ kep_email_id: ::String?,
144
+ secondary_tax_id: ::String?,
145
+ tax_office: ::String?
146
+ }?,
147
+ ukraine_additional_info: {
148
+ ukraine_trn_type: ("Business" | "Individual")
149
+ }?
150
+ }?,
151
+ certified_email_id: ::String?,
152
+ legal_address: {
153
+ address_line_1: ::String,
154
+ address_line_2: ::String?,
155
+ address_line_3: ::String?,
156
+ city: ::String,
157
+ country_code: ::String,
158
+ district_or_county: ::String?,
159
+ postal_code: ::String,
160
+ state_or_region: ::String?
161
+ }?,
162
+ legal_name: ::String?,
163
+ registration_id: ::String,
164
+ registration_type: ("VAT" | "GST" | "CPF" | "CNPJ" | "SST"),
165
+ sector: ("Business" | "Individual" | "Government")?,
166
+ verification_details: {
167
+ date_of_birth: ::String?,
168
+ tax_registration_documents: Array[
169
+ {
170
+ s3_location: {
171
+ bucket: ::String,
172
+ key: ::String
173
+ }
174
+ },
175
+ ]?
176
+ }?
177
+ }
178
+ ) -> _BatchPutTaxRegistrationResponseSuccess
179
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _BatchPutTaxRegistrationResponseSuccess
180
+
181
+ interface _DeleteTaxRegistrationResponseSuccess
182
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteTaxRegistrationResponse]
183
+ end
184
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/TaxSettings/Client.html#delete_tax_registration-instance_method
185
+ def delete_tax_registration: (
186
+ ?account_id: ::String
187
+ ) -> _DeleteTaxRegistrationResponseSuccess
188
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteTaxRegistrationResponseSuccess
189
+
190
+ interface _GetTaxRegistrationResponseSuccess
191
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetTaxRegistrationResponse]
192
+ def tax_registration: () -> Types::TaxRegistration
193
+ end
194
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/TaxSettings/Client.html#get_tax_registration-instance_method
195
+ def get_tax_registration: (
196
+ ?account_id: ::String
197
+ ) -> _GetTaxRegistrationResponseSuccess
198
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetTaxRegistrationResponseSuccess
199
+
200
+ interface _GetTaxRegistrationDocumentResponseSuccess
201
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetTaxRegistrationDocumentResponse]
202
+ def destination_file_path: () -> ::String
203
+ end
204
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/TaxSettings/Client.html#get_tax_registration_document-instance_method
205
+ def get_tax_registration_document: (
206
+ destination_s3_location: {
207
+ bucket: ::String,
208
+ prefix: ::String?
209
+ },
210
+ tax_document_metadata: {
211
+ tax_document_access_token: ::String,
212
+ tax_document_name: ::String
213
+ }
214
+ ) -> _GetTaxRegistrationDocumentResponseSuccess
215
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetTaxRegistrationDocumentResponseSuccess
216
+
217
+ interface _ListTaxRegistrationsResponseSuccess
218
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListTaxRegistrationsResponse]
219
+ def account_details: () -> ::Array[Types::AccountDetails]
220
+ def next_token: () -> ::String
221
+ end
222
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/TaxSettings/Client.html#list_tax_registrations-instance_method
223
+ def list_tax_registrations: (
224
+ ?max_results: ::Integer,
225
+ ?next_token: ::String
226
+ ) -> _ListTaxRegistrationsResponseSuccess
227
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListTaxRegistrationsResponseSuccess
228
+
229
+ interface _PutTaxRegistrationResponseSuccess
230
+ include ::Seahorse::Client::_ResponseSuccess[Types::PutTaxRegistrationResponse]
231
+ def status: () -> ("Verified" | "Pending" | "Deleted" | "Rejected")
232
+ end
233
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/TaxSettings/Client.html#put_tax_registration-instance_method
234
+ def put_tax_registration: (
235
+ ?account_id: ::String,
236
+ tax_registration_entry: {
237
+ additional_tax_information: {
238
+ canada_additional_info: {
239
+ canada_quebec_sales_tax_number: ::String?,
240
+ canada_retail_sales_tax_number: ::String?,
241
+ is_reseller_account: bool?,
242
+ provincial_sales_tax_id: ::String?
243
+ }?,
244
+ estonia_additional_info: {
245
+ registry_commercial_code: ::String
246
+ }?,
247
+ georgia_additional_info: {
248
+ person_type: ("Legal Person" | "Physical Person" | "Business")
249
+ }?,
250
+ israel_additional_info: {
251
+ customer_type: ("Business" | "Individual"),
252
+ dealer_type: ("Authorized" | "Non-authorized")
253
+ }?,
254
+ italy_additional_info: {
255
+ cig_number: ::String?,
256
+ cup_number: ::String?,
257
+ sdi_account_id: ::String?,
258
+ tax_code: ::String?
259
+ }?,
260
+ kenya_additional_info: {
261
+ person_type: ("Legal Person" | "Physical Person" | "Business")
262
+ }?,
263
+ malaysia_additional_info: {
264
+ service_tax_codes: Array[("Consultancy" | "Digital Service And Electronic Medium" | "IT Services" | "Training Or Coaching")]
265
+ }?,
266
+ poland_additional_info: {
267
+ individual_registration_number: ::String?,
268
+ is_group_vat_enabled: bool?
269
+ }?,
270
+ romania_additional_info: {
271
+ tax_registration_number_type: ("TaxRegistrationNumber" | "LocalRegistrationNumber")
272
+ }?,
273
+ saudi_arabia_additional_info: {
274
+ tax_registration_number_type: ("TaxRegistrationNumber" | "TaxIdentificationNumber" | "CommercialRegistrationNumber")?
275
+ }?,
276
+ south_korea_additional_info: {
277
+ business_representative_name: ::String,
278
+ item_of_business: ::String,
279
+ line_of_business: ::String
280
+ }?,
281
+ spain_additional_info: {
282
+ registration_type: ("Intra-EU" | "Local")
283
+ }?,
284
+ turkey_additional_info: {
285
+ industries: ("CirculatingOrg" | "ProfessionalOrg" | "Banks" | "Insurance" | "PensionAndBenefitFunds" | "DevelopmentAgencies")?,
286
+ kep_email_id: ::String?,
287
+ secondary_tax_id: ::String?,
288
+ tax_office: ::String?
289
+ }?,
290
+ ukraine_additional_info: {
291
+ ukraine_trn_type: ("Business" | "Individual")
292
+ }?
293
+ }?,
294
+ certified_email_id: ::String?,
295
+ legal_address: {
296
+ address_line_1: ::String,
297
+ address_line_2: ::String?,
298
+ address_line_3: ::String?,
299
+ city: ::String,
300
+ country_code: ::String,
301
+ district_or_county: ::String?,
302
+ postal_code: ::String,
303
+ state_or_region: ::String?
304
+ }?,
305
+ legal_name: ::String?,
306
+ registration_id: ::String,
307
+ registration_type: ("VAT" | "GST" | "CPF" | "CNPJ" | "SST"),
308
+ sector: ("Business" | "Individual" | "Government")?,
309
+ verification_details: {
310
+ date_of_birth: ::String?,
311
+ tax_registration_documents: Array[
312
+ {
313
+ s3_location: {
314
+ bucket: ::String,
315
+ key: ::String
316
+ }
317
+ },
318
+ ]?
319
+ }?
320
+ }
321
+ ) -> _PutTaxRegistrationResponseSuccess
322
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutTaxRegistrationResponseSuccess
323
+ end
324
+ end
325
+ end
326
+
data/sig/errors.rbs ADDED
@@ -0,0 +1,33 @@
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 TaxSettings
10
+ module Errors
11
+ class ServiceError < ::Aws::Errors::ServiceError
12
+ end
13
+
14
+ class ConflictException < ::Aws::Errors::ServiceError
15
+ def error_code: () -> ::String
16
+ def message: () -> ::String
17
+ end
18
+ class InternalServerException < ::Aws::Errors::ServiceError
19
+ def error_code: () -> ::String
20
+ def message: () -> ::String
21
+ end
22
+ class ResourceNotFoundException < ::Aws::Errors::ServiceError
23
+ def error_code: () -> ::String
24
+ def message: () -> ::String
25
+ end
26
+ class ValidationException < ::Aws::Errors::ServiceError
27
+ def error_code: () -> ::String
28
+ def field_list: () -> ::String
29
+ def message: () -> ::String
30
+ end
31
+ end
32
+ end
33
+ end
data/sig/resource.rbs ADDED
@@ -0,0 +1,79 @@
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 TaxSettings
10
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/TaxSettings/Resource.html
11
+ class Resource
12
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/TaxSettings/Resource.html#initialize-instance_method
13
+ def initialize: (
14
+ ?client: Client,
15
+ ?credentials: untyped,
16
+ ?region: String,
17
+ ?access_key_id: String,
18
+ ?active_endpoint_cache: bool,
19
+ ?adaptive_retry_wait_to_fill: bool,
20
+ ?client_side_monitoring: bool,
21
+ ?client_side_monitoring_client_id: String,
22
+ ?client_side_monitoring_host: String,
23
+ ?client_side_monitoring_port: Integer,
24
+ ?client_side_monitoring_publisher: untyped,
25
+ ?convert_params: bool,
26
+ ?correct_clock_skew: bool,
27
+ ?defaults_mode: String,
28
+ ?disable_host_prefix_injection: bool,
29
+ ?disable_request_compression: bool,
30
+ ?endpoint: String,
31
+ ?endpoint_cache_max_entries: Integer,
32
+ ?endpoint_cache_max_threads: Integer,
33
+ ?endpoint_cache_poll_interval: Integer,
34
+ ?endpoint_discovery: bool,
35
+ ?ignore_configured_endpoint_urls: bool,
36
+ ?log_formatter: untyped,
37
+ ?log_level: Symbol,
38
+ ?logger: untyped,
39
+ ?max_attempts: Integer,
40
+ ?profile: String,
41
+ ?request_min_compression_size_bytes: Integer,
42
+ ?retry_backoff: Proc,
43
+ ?retry_base_delay: Float,
44
+ ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
45
+ ?retry_limit: Integer,
46
+ ?retry_max_delay: Integer,
47
+ ?retry_mode: ("legacy" | "standard" | "adaptive"),
48
+ ?sdk_ua_app_id: String,
49
+ ?secret_access_key: String,
50
+ ?session_token: String,
51
+ ?stub_responses: untyped,
52
+ ?token_provider: untyped,
53
+ ?use_dualstack_endpoint: bool,
54
+ ?use_fips_endpoint: bool,
55
+ ?validate_params: bool,
56
+ ?endpoint_provider: untyped,
57
+ ?http_proxy: String,
58
+ ?http_open_timeout: (Float | Integer),
59
+ ?http_read_timeout: (Float | Integer),
60
+ ?http_idle_timeout: (Float | Integer),
61
+ ?http_continue_timeout: (Float | Integer),
62
+ ?ssl_timeout: (Float | Integer | nil),
63
+ ?http_wire_trace: bool,
64
+ ?ssl_verify_peer: bool,
65
+ ?ssl_ca_bundle: String,
66
+ ?ssl_ca_directory: String,
67
+ ?ssl_ca_store: String,
68
+ ?on_chunk_received: Proc,
69
+ ?on_chunk_sent: Proc,
70
+ ?raise_response_errors: bool
71
+ ) -> void
72
+ | (?Hash[Symbol, untyped]) -> void
73
+
74
+ def client: () -> Client
75
+
76
+
77
+ end
78
+ end
79
+ end