avalara_sdk 25.8.2 → 25.8.3
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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +18 -79
- data/docs/A1099/V2/CompaniesW9Api.md +18 -18
- data/docs/A1099/V2/CompanyCreateUpdateRequestModel.md +18 -18
- data/docs/A1099/V2/CompanyResponse.md +37 -37
- data/docs/A1099/V2/CoveredIndividual.md +56 -0
- data/docs/A1099/V2/CreateAndSendW9FormEmailRequest.md +55 -0
- data/docs/A1099/V2/CreateCompanyRequest.md +49 -0
- data/docs/A1099/V2/CreateIssuerRequest.md +49 -0
- data/docs/A1099/V2/EntryStatusResponse.md +20 -0
- data/docs/A1099/V2/Form1042S.md +83 -83
- data/docs/A1099/V2/Form1095B.md +72 -62
- data/docs/A1099/V2/Form1095C.md +112 -0
- data/docs/A1099/V2/Form1099Base.md +60 -60
- data/docs/A1099/V2/Form1099Div.md +79 -77
- data/docs/A1099/V2/Form1099Int.md +76 -74
- data/docs/A1099/V2/Form1099K.md +83 -83
- data/docs/A1099/V2/Form1099ListRequest.md +20 -0
- data/docs/A1099/V2/Form1099Misc.md +79 -77
- data/docs/A1099/V2/Form1099Nec.md +64 -64
- data/docs/A1099/V2/Form1099R.md +95 -93
- data/docs/A1099/V2/Forms1099Api.md +45 -41
- data/docs/A1099/V2/FormsW9Api.md +98 -14
- data/docs/A1099/V2/Get1099Form200Response.md +19 -19
- data/docs/A1099/V2/IntermediaryOrFlowThrough.md +11 -11
- data/docs/A1099/V2/IssuerCommand.md +16 -16
- data/docs/A1099/V2/IssuerResponse.md +35 -35
- data/docs/A1099/V2/Issuers1099Api.md +10 -10
- data/docs/A1099/V2/JobResponse.md +56 -0
- data/docs/A1099/V2/JobsApi.md +91 -0
- data/docs/A1099/V2/OfferAndCoverage.md +28 -0
- data/docs/A1099/V2/PaginatedQueryResultModelForm1099Base.md +22 -0
- data/docs/A1099/V2/PrimaryWithholdingAgent.md +4 -4
- data/docs/A1099/V2/StateAndLocalWithholding.md +8 -8
- data/docs/A1099/V2/ValidationError.md +2 -2
- data/docs/A1099/V2/W4FormMinimalRequest.md +30 -0
- data/docs/A1099/V2/W4FormRequest.md +6 -6
- data/docs/A1099/V2/W8BenEFormMinimalRequest.md +28 -0
- data/docs/A1099/V2/W8BenEFormRequest.md +6 -6
- data/docs/A1099/V2/W8BenFormMinimalRequest.md +28 -0
- data/docs/A1099/V2/W8BenFormRequest.md +6 -6
- data/docs/A1099/V2/W8ImyFormMinimalRequest.md +28 -0
- data/docs/A1099/V2/W8ImyFormRequest.md +6 -6
- data/docs/A1099/V2/W9FormBaseMinimalRequest.md +24 -0
- data/docs/A1099/V2/W9FormBaseRequest.md +6 -6
- data/docs/A1099/V2/W9FormBaseResponse.md +3 -3
- data/docs/A1099/V2/W9FormMinimalRequest.md +28 -0
- data/docs/A1099/V2/W9FormRequest.md +6 -6
- data/lib/avalara_sdk/api/A1099/V2/companies_w9_api.rb +27 -27
- data/lib/avalara_sdk/api/A1099/V2/forms1099_api.rb +89 -57
- data/lib/avalara_sdk/api/A1099/V2/forms_w9_api.rb +144 -6
- data/lib/avalara_sdk/api/A1099/V2/issuers1099_api.rb +21 -21
- data/lib/avalara_sdk/api/A1099/V2/{jobs1099_api.rb → jobs_api.rb} +9 -9
- data/lib/avalara_sdk/api/EInvoicing/V1/data_input_fields_api.rb +1 -1
- data/lib/avalara_sdk/api/EInvoicing/V1/documents_api.rb +1 -1
- data/lib/avalara_sdk/api/EInvoicing/V1/interop_api.rb +1 -1
- data/lib/avalara_sdk/api/EInvoicing/V1/mandates_api.rb +1 -1
- data/lib/avalara_sdk/api/EInvoicing/V1/subscriptions_api.rb +1 -1
- data/lib/avalara_sdk/api/EInvoicing/V1/tax_identifiers_api.rb +1 -1
- data/lib/avalara_sdk/api/EInvoicing/V1/trading_partners_api.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/company_create_update_request_model.rb +58 -17
- data/lib/avalara_sdk/models/A1099/V2/company_response.rb +110 -69
- data/lib/avalara_sdk/models/A1099/V2/{covered_individual_request.rb → covered_individual.rb} +36 -7
- data/lib/avalara_sdk/models/A1099/V2/{i_create_form1099_request.rb → create_and_send_w9_form_email_request.rb} +6 -5
- data/lib/avalara_sdk/models/A1099/V2/{error_response_errors_inner.rb → create_company_request.rb} +3 -3
- data/lib/avalara_sdk/models/A1099/V2/{i_update_form1099_request.rb → create_issuer_request.rb} +3 -5
- data/lib/avalara_sdk/models/A1099/V2/{status_detail.rb → entry_status_response.rb} +20 -18
- data/lib/avalara_sdk/models/A1099/V2/form1042_s.rb +424 -179
- data/lib/avalara_sdk/models/A1099/V2/form1095_b.rb +365 -179
- data/lib/avalara_sdk/models/A1099/V2/{form1095_b_response.rb → form1095_c.rb} +259 -111
- data/lib/avalara_sdk/models/A1099/V2/form1099_base.rb +286 -177
- data/lib/avalara_sdk/models/A1099/V2/form1099_div.rb +310 -171
- data/lib/avalara_sdk/models/A1099/V2/form1099_int.rb +308 -174
- data/lib/avalara_sdk/models/A1099/V2/form1099_k.rb +298 -186
- data/lib/avalara_sdk/models/A1099/V2/{form1099_div_list.rb → form1099_list_request.rb} +49 -22
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc.rb +337 -201
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec.rb +298 -183
- data/lib/avalara_sdk/models/A1099/V2/form1099_r.rb +414 -274
- data/lib/avalara_sdk/models/A1099/V2/get1099_form200_response.rb +9 -9
- data/lib/avalara_sdk/models/A1099/V2/intermediary_or_flow_through.rb +13 -1
- data/lib/avalara_sdk/models/A1099/V2/issuer_command.rb +42 -23
- data/lib/avalara_sdk/models/A1099/V2/issuer_response.rb +77 -46
- data/lib/avalara_sdk/models/A1099/V2/{job_result.rb → job_response.rb} +108 -42
- data/lib/avalara_sdk/models/A1099/V2/{offer_and_coverage_request.rb → offer_and_coverage.rb} +79 -9
- data/lib/avalara_sdk/models/A1099/V2/{paginated_query_result_model.rb → paginated_query_result_model_form1099_base.rb} +4 -4
- data/lib/avalara_sdk/models/A1099/V2/primary_withholding_agent.rb +23 -16
- data/lib/avalara_sdk/models/A1099/V2/state_and_local_withholding.rb +8 -0
- data/lib/avalara_sdk/models/A1099/V2/validation_error.rb +2 -0
- data/lib/avalara_sdk/models/A1099/V2/w4_form_minimal_request.rb +418 -0
- data/lib/avalara_sdk/models/A1099/V2/w4_form_request.rb +53 -27
- data/lib/avalara_sdk/models/A1099/V2/{company_model.rb → w8_ben_e_form_minimal_request.rb} +139 -170
- data/lib/avalara_sdk/models/A1099/V2/w8_ben_e_form_request.rb +53 -27
- data/lib/avalara_sdk/models/A1099/V2/{base_company_model.rb → w8_ben_form_minimal_request.rb} +148 -122
- data/lib/avalara_sdk/models/A1099/V2/w8_ben_form_request.rb +53 -27
- data/lib/avalara_sdk/models/A1099/V2/{attribute.rb → w8_imy_form_minimal_request.rb} +135 -132
- data/lib/avalara_sdk/models/A1099/V2/w8_imy_form_request.rb +53 -27
- data/lib/avalara_sdk/models/A1099/V2/{http_validation_problem_details.rb → w9_form_base_minimal_request.rb} +87 -53
- data/lib/avalara_sdk/models/A1099/V2/w9_form_base_request.rb +60 -27
- data/lib/avalara_sdk/models/A1099/V2/w9_form_base_response.rb +14 -14
- data/lib/avalara_sdk/models/A1099/V2/{company_response_model.rb → w9_form_minimal_request.rb} +140 -148
- data/lib/avalara_sdk/models/A1099/V2/w9_form_request.rb +53 -27
- data/lib/avalara_sdk/version.rb +1 -1
- data/lib/avalara_sdk.rb +22 -105
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/byebug-11.1.3/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/date-3.4.1/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/debase-0.2.9/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/debug-1.10.0/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/erb-5.0.1/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/io-console-0.8.0/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/json-2.12.2/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/prism-1.4.0/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/psych-5.2.6/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/racc-1.8.1/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/stringio-3.1.7/gem_make.out +5 -5
- metadata +37 -103
- data/lib/avalara_sdk/models/A1099/V2/base_form_list_request.rb +0 -210
- data/lib/avalara_sdk/models/A1099/V2/bulk_upsert1099_forms_request.rb +0 -108
- data/lib/avalara_sdk/models/A1099/V2/covered_individual_reference.rb +0 -403
- data/lib/avalara_sdk/models/A1099/V2/covered_individual_reference_response.rb +0 -407
- data/lib/avalara_sdk/models/A1099/V2/create1099_form201_response.rb +0 -108
- data/lib/avalara_sdk/models/A1099/V2/data.rb +0 -237
- data/lib/avalara_sdk/models/A1099/V2/form1042_s_list.rb +0 -238
- data/lib/avalara_sdk/models/A1099/V2/form1042_s_list_item.rb +0 -816
- data/lib/avalara_sdk/models/A1099/V2/form1042_s_list_item_response.rb +0 -980
- data/lib/avalara_sdk/models/A1099/V2/form1042_s_request.rb +0 -778
- data/lib/avalara_sdk/models/A1099/V2/form1042_s_response.rb +0 -619
- data/lib/avalara_sdk/models/A1099/V2/form1095_b_list.rb +0 -238
- data/lib/avalara_sdk/models/A1099/V2/form1095_b_list_item.rb +0 -606
- data/lib/avalara_sdk/models/A1099/V2/form1095_b_list_item_response.rb +0 -765
- data/lib/avalara_sdk/models/A1099/V2/form1095_b_request.rb +0 -627
- data/lib/avalara_sdk/models/A1099/V2/form1095_c_list.rb +0 -238
- data/lib/avalara_sdk/models/A1099/V2/form1095_c_list_item.rb +0 -662
- data/lib/avalara_sdk/models/A1099/V2/form1099_base_response.rb +0 -726
- data/lib/avalara_sdk/models/A1099/V2/form1099_div_list_item.rb +0 -747
- data/lib/avalara_sdk/models/A1099/V2/form1099_div_list_item_response.rb +0 -931
- data/lib/avalara_sdk/models/A1099/V2/form1099_div_request.rb +0 -729
- data/lib/avalara_sdk/models/A1099/V2/form1099_div_response.rb +0 -790
- data/lib/avalara_sdk/models/A1099/V2/form1099_int_list.rb +0 -238
- data/lib/avalara_sdk/models/A1099/V2/form1099_int_list_item.rb +0 -702
- data/lib/avalara_sdk/models/A1099/V2/form1099_int_list_item_response.rb +0 -887
- data/lib/avalara_sdk/models/A1099/V2/form1099_int_request.rb +0 -684
- data/lib/avalara_sdk/models/A1099/V2/form1099_int_response.rb +0 -773
- data/lib/avalara_sdk/models/A1099/V2/form1099_k_list.rb +0 -238
- data/lib/avalara_sdk/models/A1099/V2/form1099_k_list_item.rb +0 -788
- data/lib/avalara_sdk/models/A1099/V2/form1099_k_list_item_response.rb +0 -995
- data/lib/avalara_sdk/models/A1099/V2/form1099_k_request.rb +0 -770
- data/lib/avalara_sdk/models/A1099/V2/form1099_k_response.rb +0 -839
- data/lib/avalara_sdk/models/A1099/V2/form1099_list.rb +0 -219
- data/lib/avalara_sdk/models/A1099/V2/form1099_list_data_inner.rb +0 -55
- data/lib/avalara_sdk/models/A1099/V2/form1099_list_response.rb +0 -220
- data/lib/avalara_sdk/models/A1099/V2/form1099_list_response_value_inner.rb +0 -108
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc_list.rb +0 -238
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc_list_item.rb +0 -688
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc_list_item_response.rb +0 -886
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc_request.rb +0 -670
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc_response.rb +0 -754
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec_list.rb +0 -238
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec_list_item.rb +0 -586
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec_list_item_response.rb +0 -765
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec_request.rb +0 -567
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec_response.rb +0 -646
- data/lib/avalara_sdk/models/A1099/V2/form1099_proccess_result.rb +0 -228
- data/lib/avalara_sdk/models/A1099/V2/form1099_proccess_result_processed_forms_inner.rb +0 -107
- data/lib/avalara_sdk/models/A1099/V2/form1099_r_list.rb +0 -238
- data/lib/avalara_sdk/models/A1099/V2/form1099_r_list_item.rb +0 -763
- data/lib/avalara_sdk/models/A1099/V2/form1099_r_list_item_response.rb +0 -942
- data/lib/avalara_sdk/models/A1099/V2/form1099_r_request.rb +0 -720
- data/lib/avalara_sdk/models/A1099/V2/form1099_r_response.rb +0 -839
- data/lib/avalara_sdk/models/A1099/V2/form1099_status_detail_response.rb +0 -223
- data/lib/avalara_sdk/models/A1099/V2/form_request_base.rb +0 -502
- data/lib/avalara_sdk/models/A1099/V2/form_request_csv_base.rb +0 -475
- data/lib/avalara_sdk/models/A1099/V2/form_request_list_item_base.rb +0 -548
- data/lib/avalara_sdk/models/A1099/V2/form_request_model.rb +0 -345
- data/lib/avalara_sdk/models/A1099/V2/form_response_base.rb +0 -612
- data/lib/avalara_sdk/models/A1099/V2/form_single_request_base.rb +0 -530
- data/lib/avalara_sdk/models/A1099/V2/included_base.rb +0 -219
- data/lib/avalara_sdk/models/A1099/V2/intermediary_or_flow_through_request.rb +0 -311
- data/lib/avalara_sdk/models/A1099/V2/intermediary_or_flow_through_response.rb +0 -311
- data/lib/avalara_sdk/models/A1099/V2/link.rb +0 -210
- data/lib/avalara_sdk/models/A1099/V2/paginated_w9_forms_model.rb +0 -231
- data/lib/avalara_sdk/models/A1099/V2/primary_withholding_agent_request.rb +0 -221
- data/lib/avalara_sdk/models/A1099/V2/primary_withholding_agent_response.rb +0 -221
- data/lib/avalara_sdk/models/A1099/V2/problem_details.rb +0 -251
- data/lib/avalara_sdk/models/A1099/V2/state_and_local_withholding_request.rb +0 -278
- data/lib/avalara_sdk/models/A1099/V2/state_and_local_withholding_response.rb +0 -282
- data/lib/avalara_sdk/models/A1099/V2/state_efile_status_detail_app.rb +0 -231
- data/lib/avalara_sdk/models/A1099/V2/state_efile_status_detail_response.rb +0 -231
- data/lib/avalara_sdk/models/A1099/V2/update1099_form200_response.rb +0 -108
- data/lib/avalara_sdk/models/A1099/V2/validation_error_app.rb +0 -229
- data/lib/avalara_sdk/models/A1099/V2/validation_error_response.rb +0 -231
- data/lib/avalara_sdk/models/EInvoicing/V1/directory_search_response.rb +0 -233
- data/lib/avalara_sdk/models/EInvoicing/V1/directory_search_response_value_inner.rb +0 -274
- data/lib/avalara_sdk/models/EInvoicing/V1/directory_search_response_value_inner_addresses_inner.rb +0 -251
- data/lib/avalara_sdk/models/EInvoicing/V1/directory_search_response_value_inner_identifiers_inner.rb +0 -221
- data/lib/avalara_sdk/models/EInvoicing/V1/directory_search_response_value_inner_supported_document_types_inner.rb +0 -241
- data/lib/avalara_sdk/models/EInvoicing/V1/document_fetch_request.rb +0 -224
- data/lib/avalara_sdk/models/EInvoicing/V1/document_fetch_request_data_inner.rb +0 -237
- data/lib/avalara_sdk/models/EInvoicing/V1/document_fetch_request_metadata.rb +0 -288
- data/lib/avalara_sdk/models/EInvoicing/V1/submit_document_data.rb +0 -216
@@ -10,28 +10,48 @@ require 'date'
|
|
10
10
|
require 'time'
|
11
11
|
|
12
12
|
module AvalaraSdk::A1099::V2
|
13
|
-
class
|
14
|
-
|
15
|
-
|
13
|
+
class W9FormBaseMinimalRequest
|
14
|
+
# The form type.
|
16
15
|
attr_accessor :type
|
17
16
|
|
18
|
-
|
17
|
+
# The ID of the associated company.
|
18
|
+
attr_accessor :company_id
|
19
|
+
|
20
|
+
# A reference identifier for the form.
|
21
|
+
attr_accessor :reference_id
|
19
22
|
|
20
|
-
|
23
|
+
# The email address of the individual associated with the form.
|
24
|
+
attr_accessor :email
|
21
25
|
|
22
|
-
|
26
|
+
class EnumAttributeValidator
|
27
|
+
attr_reader :datatype
|
28
|
+
attr_reader :allowable_values
|
29
|
+
|
30
|
+
def initialize(datatype, allowable_values)
|
31
|
+
@allowable_values = allowable_values.map do |value|
|
32
|
+
case datatype.to_s
|
33
|
+
when /Integer/i
|
34
|
+
value.to_i
|
35
|
+
when /Float/i
|
36
|
+
value.to_f
|
37
|
+
else
|
38
|
+
value
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
23
42
|
|
24
|
-
|
43
|
+
def valid?(value)
|
44
|
+
!value || allowable_values.include?(value)
|
45
|
+
end
|
46
|
+
end
|
25
47
|
|
26
48
|
# Attribute mapping from ruby-style variable name to JSON key.
|
27
49
|
def self.attribute_map
|
28
50
|
{
|
29
|
-
:'errors' => :'errors',
|
30
51
|
:'type' => :'type',
|
31
|
-
:'
|
32
|
-
:'
|
33
|
-
:'
|
34
|
-
:'instance' => :'instance'
|
52
|
+
:'company_id' => :'companyId',
|
53
|
+
:'reference_id' => :'referenceId',
|
54
|
+
:'email' => :'email'
|
35
55
|
}
|
36
56
|
end
|
37
57
|
|
@@ -43,72 +63,52 @@ module AvalaraSdk::A1099::V2
|
|
43
63
|
# Attribute type mapping.
|
44
64
|
def self.openapi_types
|
45
65
|
{
|
46
|
-
:'errors' => :'Hash<String, Array<String>>',
|
47
66
|
:'type' => :'String',
|
48
|
-
:'
|
49
|
-
:'
|
50
|
-
:'
|
51
|
-
:'instance' => :'String'
|
67
|
+
:'company_id' => :'String',
|
68
|
+
:'reference_id' => :'String',
|
69
|
+
:'email' => :'String'
|
52
70
|
}
|
53
71
|
end
|
54
72
|
|
55
73
|
# List of attributes with nullable: true
|
56
74
|
def self.openapi_nullable
|
57
75
|
Set.new([
|
58
|
-
:'
|
59
|
-
:'
|
60
|
-
:'status',
|
61
|
-
:'detail',
|
62
|
-
:'instance'
|
76
|
+
:'reference_id',
|
77
|
+
:'email'
|
63
78
|
])
|
64
79
|
end
|
65
80
|
|
66
|
-
# List of class defined in allOf (OpenAPI v3)
|
67
|
-
def self.openapi_all_of
|
68
|
-
[
|
69
|
-
:'ProblemDetails'
|
70
|
-
]
|
71
|
-
end
|
72
|
-
|
73
81
|
# Initializes the object
|
74
82
|
# @param [Hash] attributes Model attributes in the form of hash
|
75
83
|
def initialize(attributes = {})
|
76
84
|
if (!attributes.is_a?(Hash))
|
77
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `AvalaraSdk::A1099::V2::
|
85
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AvalaraSdk::A1099::V2::W9FormBaseMinimalRequest` initialize method"
|
78
86
|
end
|
79
87
|
|
80
88
|
# check to see if the attribute exists and convert string to symbol for hash key
|
81
89
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
82
90
|
if (!self.class.attribute_map.key?(k.to_sym))
|
83
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `AvalaraSdk::A1099::V2::
|
91
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `AvalaraSdk::A1099::V2::W9FormBaseMinimalRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
84
92
|
end
|
85
93
|
h[k.to_sym] = v
|
86
94
|
}
|
87
95
|
|
88
|
-
if attributes.key?(:'errors')
|
89
|
-
if (value = attributes[:'errors']).is_a?(Hash)
|
90
|
-
self.errors = value
|
91
|
-
end
|
92
|
-
end
|
93
|
-
|
94
96
|
if attributes.key?(:'type')
|
95
97
|
self.type = attributes[:'type']
|
96
98
|
end
|
97
99
|
|
98
|
-
if attributes.key?(:'
|
99
|
-
self.
|
100
|
-
|
101
|
-
|
102
|
-
if attributes.key?(:'status')
|
103
|
-
self.status = attributes[:'status']
|
100
|
+
if attributes.key?(:'company_id')
|
101
|
+
self.company_id = attributes[:'company_id']
|
102
|
+
else
|
103
|
+
self.company_id = nil
|
104
104
|
end
|
105
105
|
|
106
|
-
if attributes.key?(:'
|
107
|
-
self.
|
106
|
+
if attributes.key?(:'reference_id')
|
107
|
+
self.reference_id = attributes[:'reference_id']
|
108
108
|
end
|
109
109
|
|
110
|
-
if attributes.key?(:'
|
111
|
-
self.
|
110
|
+
if attributes.key?(:'email')
|
111
|
+
self.email = attributes[:'email']
|
112
112
|
end
|
113
113
|
end
|
114
114
|
|
@@ -117,6 +117,14 @@ module AvalaraSdk::A1099::V2
|
|
117
117
|
def list_invalid_properties
|
118
118
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
119
119
|
invalid_properties = Array.new
|
120
|
+
if @company_id.nil?
|
121
|
+
invalid_properties.push('invalid value for "company_id", company_id cannot be nil.')
|
122
|
+
end
|
123
|
+
|
124
|
+
if @company_id.to_s.length < 1
|
125
|
+
invalid_properties.push('invalid value for "company_id", the character length must be great than or equal to 1.')
|
126
|
+
end
|
127
|
+
|
120
128
|
invalid_properties
|
121
129
|
end
|
122
130
|
|
@@ -124,20 +132,46 @@ module AvalaraSdk::A1099::V2
|
|
124
132
|
# @return true if the model is valid
|
125
133
|
def valid?
|
126
134
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
135
|
+
type_validator = EnumAttributeValidator.new('String', ["W4", "W8Ben", "W8BenE", "W8Imy", "W9"])
|
136
|
+
return false unless type_validator.valid?(@type)
|
137
|
+
return false if @company_id.nil?
|
138
|
+
return false if @company_id.to_s.length < 1
|
127
139
|
true
|
128
140
|
end
|
129
141
|
|
142
|
+
# Custom attribute writer method checking allowed values (enum).
|
143
|
+
# @param [Object] type Object to be assigned
|
144
|
+
def type=(type)
|
145
|
+
validator = EnumAttributeValidator.new('String', ["W4", "W8Ben", "W8BenE", "W8Imy", "W9"])
|
146
|
+
unless validator.valid?(type)
|
147
|
+
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
148
|
+
end
|
149
|
+
@type = type
|
150
|
+
end
|
151
|
+
|
152
|
+
# Custom attribute writer method with validation
|
153
|
+
# @param [Object] company_id Value to be assigned
|
154
|
+
def company_id=(company_id)
|
155
|
+
if company_id.nil?
|
156
|
+
fail ArgumentError, 'company_id cannot be nil'
|
157
|
+
end
|
158
|
+
|
159
|
+
if company_id.to_s.length < 1
|
160
|
+
fail ArgumentError, 'invalid value for "company_id", the character length must be great than or equal to 1.'
|
161
|
+
end
|
162
|
+
|
163
|
+
@company_id = company_id
|
164
|
+
end
|
165
|
+
|
130
166
|
# Checks equality by comparing each attribute.
|
131
167
|
# @param [Object] Object to be compared
|
132
168
|
def ==(o)
|
133
169
|
return true if self.equal?(o)
|
134
170
|
self.class == o.class &&
|
135
|
-
errors == o.errors &&
|
136
171
|
type == o.type &&
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
instance == o.instance
|
172
|
+
company_id == o.company_id &&
|
173
|
+
reference_id == o.reference_id &&
|
174
|
+
email == o.email
|
141
175
|
end
|
142
176
|
|
143
177
|
# @see the `==` method
|
@@ -149,7 +183,7 @@ module AvalaraSdk::A1099::V2
|
|
149
183
|
# Calculates hash code according to all attributes.
|
150
184
|
# @return [Integer] Hash code
|
151
185
|
def hash
|
152
|
-
[
|
186
|
+
[type, company_id, reference_id, email].hash
|
153
187
|
end
|
154
188
|
|
155
189
|
# Builds the object from hash
|
@@ -11,6 +11,12 @@ require 'time'
|
|
11
11
|
|
12
12
|
module AvalaraSdk::A1099::V2
|
13
13
|
class W9FormBaseRequest
|
14
|
+
# The date when e-delivery was consented.
|
15
|
+
attr_accessor :e_delivery_consented_at
|
16
|
+
|
17
|
+
# The signature of the form.
|
18
|
+
attr_accessor :signature
|
19
|
+
|
14
20
|
# The form type.
|
15
21
|
attr_accessor :type
|
16
22
|
|
@@ -23,12 +29,6 @@ module AvalaraSdk::A1099::V2
|
|
23
29
|
# The email address of the individual associated with the form.
|
24
30
|
attr_accessor :email
|
25
31
|
|
26
|
-
# The date when e-delivery was consented.
|
27
|
-
attr_accessor :e_delivery_consented_at
|
28
|
-
|
29
|
-
# The signature of the form.
|
30
|
-
attr_accessor :signature
|
31
|
-
|
32
32
|
class EnumAttributeValidator
|
33
33
|
attr_reader :datatype
|
34
34
|
attr_reader :allowable_values
|
@@ -54,12 +54,12 @@ module AvalaraSdk::A1099::V2
|
|
54
54
|
# Attribute mapping from ruby-style variable name to JSON key.
|
55
55
|
def self.attribute_map
|
56
56
|
{
|
57
|
+
:'e_delivery_consented_at' => :'eDeliveryConsentedAt',
|
58
|
+
:'signature' => :'signature',
|
57
59
|
:'type' => :'type',
|
58
60
|
:'company_id' => :'companyId',
|
59
61
|
:'reference_id' => :'referenceId',
|
60
|
-
:'email' => :'email'
|
61
|
-
:'e_delivery_consented_at' => :'eDeliveryConsentedAt',
|
62
|
-
:'signature' => :'signature'
|
62
|
+
:'email' => :'email'
|
63
63
|
}
|
64
64
|
end
|
65
65
|
|
@@ -71,25 +71,32 @@ module AvalaraSdk::A1099::V2
|
|
71
71
|
# Attribute type mapping.
|
72
72
|
def self.openapi_types
|
73
73
|
{
|
74
|
+
:'e_delivery_consented_at' => :'Time',
|
75
|
+
:'signature' => :'String',
|
74
76
|
:'type' => :'String',
|
75
77
|
:'company_id' => :'String',
|
76
78
|
:'reference_id' => :'String',
|
77
|
-
:'email' => :'String'
|
78
|
-
:'e_delivery_consented_at' => :'Time',
|
79
|
-
:'signature' => :'String'
|
79
|
+
:'email' => :'String'
|
80
80
|
}
|
81
81
|
end
|
82
82
|
|
83
83
|
# List of attributes with nullable: true
|
84
84
|
def self.openapi_nullable
|
85
85
|
Set.new([
|
86
|
-
:'reference_id',
|
87
|
-
:'email',
|
88
86
|
:'e_delivery_consented_at',
|
89
|
-
:'signature'
|
87
|
+
:'signature',
|
88
|
+
:'reference_id',
|
89
|
+
:'email'
|
90
90
|
])
|
91
91
|
end
|
92
92
|
|
93
|
+
# List of class defined in allOf (OpenAPI v3)
|
94
|
+
def self.openapi_all_of
|
95
|
+
[
|
96
|
+
:'W9FormBaseMinimalRequest'
|
97
|
+
]
|
98
|
+
end
|
99
|
+
|
93
100
|
# Initializes the object
|
94
101
|
# @param [Hash] attributes Model attributes in the form of hash
|
95
102
|
def initialize(attributes = {})
|
@@ -105,12 +112,22 @@ module AvalaraSdk::A1099::V2
|
|
105
112
|
h[k.to_sym] = v
|
106
113
|
}
|
107
114
|
|
115
|
+
if attributes.key?(:'e_delivery_consented_at')
|
116
|
+
self.e_delivery_consented_at = attributes[:'e_delivery_consented_at']
|
117
|
+
end
|
118
|
+
|
119
|
+
if attributes.key?(:'signature')
|
120
|
+
self.signature = attributes[:'signature']
|
121
|
+
end
|
122
|
+
|
108
123
|
if attributes.key?(:'type')
|
109
124
|
self.type = attributes[:'type']
|
110
125
|
end
|
111
126
|
|
112
127
|
if attributes.key?(:'company_id')
|
113
128
|
self.company_id = attributes[:'company_id']
|
129
|
+
else
|
130
|
+
self.company_id = nil
|
114
131
|
end
|
115
132
|
|
116
133
|
if attributes.key?(:'reference_id')
|
@@ -120,14 +137,6 @@ module AvalaraSdk::A1099::V2
|
|
120
137
|
if attributes.key?(:'email')
|
121
138
|
self.email = attributes[:'email']
|
122
139
|
end
|
123
|
-
|
124
|
-
if attributes.key?(:'e_delivery_consented_at')
|
125
|
-
self.e_delivery_consented_at = attributes[:'e_delivery_consented_at']
|
126
|
-
end
|
127
|
-
|
128
|
-
if attributes.key?(:'signature')
|
129
|
-
self.signature = attributes[:'signature']
|
130
|
-
end
|
131
140
|
end
|
132
141
|
|
133
142
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -135,6 +144,14 @@ module AvalaraSdk::A1099::V2
|
|
135
144
|
def list_invalid_properties
|
136
145
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
137
146
|
invalid_properties = Array.new
|
147
|
+
if @company_id.nil?
|
148
|
+
invalid_properties.push('invalid value for "company_id", company_id cannot be nil.')
|
149
|
+
end
|
150
|
+
|
151
|
+
if @company_id.to_s.length < 1
|
152
|
+
invalid_properties.push('invalid value for "company_id", the character length must be great than or equal to 1.')
|
153
|
+
end
|
154
|
+
|
138
155
|
invalid_properties
|
139
156
|
end
|
140
157
|
|
@@ -144,6 +161,8 @@ module AvalaraSdk::A1099::V2
|
|
144
161
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
145
162
|
type_validator = EnumAttributeValidator.new('String', ["W4", "W8Ben", "W8BenE", "W8Imy", "W9"])
|
146
163
|
return false unless type_validator.valid?(@type)
|
164
|
+
return false if @company_id.nil?
|
165
|
+
return false if @company_id.to_s.length < 1
|
147
166
|
true
|
148
167
|
end
|
149
168
|
|
@@ -157,17 +176,31 @@ module AvalaraSdk::A1099::V2
|
|
157
176
|
@type = type
|
158
177
|
end
|
159
178
|
|
179
|
+
# Custom attribute writer method with validation
|
180
|
+
# @param [Object] company_id Value to be assigned
|
181
|
+
def company_id=(company_id)
|
182
|
+
if company_id.nil?
|
183
|
+
fail ArgumentError, 'company_id cannot be nil'
|
184
|
+
end
|
185
|
+
|
186
|
+
if company_id.to_s.length < 1
|
187
|
+
fail ArgumentError, 'invalid value for "company_id", the character length must be great than or equal to 1.'
|
188
|
+
end
|
189
|
+
|
190
|
+
@company_id = company_id
|
191
|
+
end
|
192
|
+
|
160
193
|
# Checks equality by comparing each attribute.
|
161
194
|
# @param [Object] Object to be compared
|
162
195
|
def ==(o)
|
163
196
|
return true if self.equal?(o)
|
164
197
|
self.class == o.class &&
|
198
|
+
e_delivery_consented_at == o.e_delivery_consented_at &&
|
199
|
+
signature == o.signature &&
|
165
200
|
type == o.type &&
|
166
201
|
company_id == o.company_id &&
|
167
202
|
reference_id == o.reference_id &&
|
168
|
-
email == o.email
|
169
|
-
e_delivery_consented_at == o.e_delivery_consented_at &&
|
170
|
-
signature == o.signature
|
203
|
+
email == o.email
|
171
204
|
end
|
172
205
|
|
173
206
|
# @see the `==` method
|
@@ -179,7 +212,7 @@ module AvalaraSdk::A1099::V2
|
|
179
212
|
# Calculates hash code according to all attributes.
|
180
213
|
# @return [Integer] Hash code
|
181
214
|
def hash
|
182
|
-
[type, company_id, reference_id, email
|
215
|
+
[e_delivery_consented_at, signature, type, company_id, reference_id, email].hash
|
183
216
|
end
|
184
217
|
|
185
218
|
# Builds the object from hash
|
@@ -14,12 +14,9 @@ module AvalaraSdk::A1099::V2
|
|
14
14
|
# The unique identifier for the form.
|
15
15
|
attr_accessor :id
|
16
16
|
|
17
|
-
# The
|
17
|
+
# The entry status information for the form.
|
18
18
|
attr_accessor :entry_status
|
19
19
|
|
20
|
-
# The timestamp for the latest status update.
|
21
|
-
attr_accessor :entry_status_date
|
22
|
-
|
23
20
|
# A reference identifier for the form.
|
24
21
|
attr_accessor :reference_id
|
25
22
|
|
@@ -35,6 +32,9 @@ module AvalaraSdk::A1099::V2
|
|
35
32
|
# Indicates whether the form is archived.
|
36
33
|
attr_accessor :archived
|
37
34
|
|
35
|
+
# Form ID of previous version.
|
36
|
+
attr_accessor :ancestor_id
|
37
|
+
|
38
38
|
# The signature of the form.
|
39
39
|
attr_accessor :signature
|
40
40
|
|
@@ -58,12 +58,12 @@ module AvalaraSdk::A1099::V2
|
|
58
58
|
{
|
59
59
|
:'id' => :'id',
|
60
60
|
:'entry_status' => :'entryStatus',
|
61
|
-
:'entry_status_date' => :'entryStatusDate',
|
62
61
|
:'reference_id' => :'referenceId',
|
63
62
|
:'company_id' => :'companyId',
|
64
63
|
:'display_name' => :'displayName',
|
65
64
|
:'email' => :'email',
|
66
65
|
:'archived' => :'archived',
|
66
|
+
:'ancestor_id' => :'ancestorId',
|
67
67
|
:'signature' => :'signature',
|
68
68
|
:'signed_date' => :'signedDate',
|
69
69
|
:'e_delivery_consented_at' => :'eDeliveryConsentedAt',
|
@@ -82,13 +82,13 @@ module AvalaraSdk::A1099::V2
|
|
82
82
|
def self.openapi_types
|
83
83
|
{
|
84
84
|
:'id' => :'String',
|
85
|
-
:'entry_status' => :'
|
86
|
-
:'entry_status_date' => :'Time',
|
85
|
+
:'entry_status' => :'EntryStatusResponse',
|
87
86
|
:'reference_id' => :'String',
|
88
87
|
:'company_id' => :'String',
|
89
88
|
:'display_name' => :'String',
|
90
89
|
:'email' => :'String',
|
91
90
|
:'archived' => :'Boolean',
|
91
|
+
:'ancestor_id' => :'String',
|
92
92
|
:'signature' => :'String',
|
93
93
|
:'signed_date' => :'Time',
|
94
94
|
:'e_delivery_consented_at' => :'Time',
|
@@ -101,9 +101,9 @@ module AvalaraSdk::A1099::V2
|
|
101
101
|
# List of attributes with nullable: true
|
102
102
|
def self.openapi_nullable
|
103
103
|
Set.new([
|
104
|
-
:'entry_status_date',
|
105
104
|
:'reference_id',
|
106
105
|
:'email',
|
106
|
+
:'ancestor_id',
|
107
107
|
:'signature',
|
108
108
|
:'signed_date',
|
109
109
|
:'e_delivery_consented_at',
|
@@ -138,10 +138,6 @@ module AvalaraSdk::A1099::V2
|
|
138
138
|
self.entry_status = attributes[:'entry_status']
|
139
139
|
end
|
140
140
|
|
141
|
-
if attributes.key?(:'entry_status_date')
|
142
|
-
self.entry_status_date = attributes[:'entry_status_date']
|
143
|
-
end
|
144
|
-
|
145
141
|
if attributes.key?(:'reference_id')
|
146
142
|
self.reference_id = attributes[:'reference_id']
|
147
143
|
end
|
@@ -162,6 +158,10 @@ module AvalaraSdk::A1099::V2
|
|
162
158
|
self.archived = attributes[:'archived']
|
163
159
|
end
|
164
160
|
|
161
|
+
if attributes.key?(:'ancestor_id')
|
162
|
+
self.ancestor_id = attributes[:'ancestor_id']
|
163
|
+
end
|
164
|
+
|
165
165
|
if attributes.key?(:'signature')
|
166
166
|
self.signature = attributes[:'signature']
|
167
167
|
end
|
@@ -209,12 +209,12 @@ module AvalaraSdk::A1099::V2
|
|
209
209
|
self.class == o.class &&
|
210
210
|
id == o.id &&
|
211
211
|
entry_status == o.entry_status &&
|
212
|
-
entry_status_date == o.entry_status_date &&
|
213
212
|
reference_id == o.reference_id &&
|
214
213
|
company_id == o.company_id &&
|
215
214
|
display_name == o.display_name &&
|
216
215
|
email == o.email &&
|
217
216
|
archived == o.archived &&
|
217
|
+
ancestor_id == o.ancestor_id &&
|
218
218
|
signature == o.signature &&
|
219
219
|
signed_date == o.signed_date &&
|
220
220
|
e_delivery_consented_at == o.e_delivery_consented_at &&
|
@@ -232,7 +232,7 @@ module AvalaraSdk::A1099::V2
|
|
232
232
|
# Calculates hash code according to all attributes.
|
233
233
|
# @return [Integer] Hash code
|
234
234
|
def hash
|
235
|
-
[id, entry_status,
|
235
|
+
[id, entry_status, reference_id, company_id, display_name, email, archived, ancestor_id, signature, signed_date, e_delivery_consented_at, created_at, updated_at, type].hash
|
236
236
|
end
|
237
237
|
|
238
238
|
# Builds the object from hash
|