avalara_sdk 25.8.0 → 25.8.2

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.
Files changed (185) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +32 -6
  4. data/docs/A1099/V2/BulkUpsert1099FormsRequest.md +4 -0
  5. data/docs/A1099/V2/CompaniesW9Api.md +6 -6
  6. data/docs/A1099/V2/CoveredIndividualRequest.md +26 -26
  7. data/docs/A1099/V2/Create1099Form201Response.md +4 -0
  8. data/docs/A1099/V2/ErrorResponse.md +1 -1
  9. data/docs/A1099/V2/ErrorResponseItem.md +20 -0
  10. data/docs/A1099/V2/Form1042S.md +140 -0
  11. data/docs/A1099/V2/Form1042SListItem.md +12 -8
  12. data/docs/A1099/V2/Form1042SListItemResponse.md +19 -9
  13. data/docs/A1099/V2/Form1042SRequest.md +14 -10
  14. data/docs/A1099/V2/Form1042SResponse.md +10 -6
  15. data/docs/A1099/V2/Form1095B.md +14 -2
  16. data/docs/A1099/V2/Form1095BListItem.md +14 -8
  17. data/docs/A1099/V2/Form1095BListItemResponse.md +20 -8
  18. data/docs/A1099/V2/Form1095BRequest.md +14 -8
  19. data/docs/A1099/V2/Form1095BResponse.md +106 -0
  20. data/docs/A1099/V2/Form1095CList.md +20 -0
  21. data/docs/A1099/V2/Form1095CListItem.md +90 -0
  22. data/docs/A1099/V2/Form1099Base.md +14 -2
  23. data/docs/A1099/V2/Form1099BaseResponse.md +20 -8
  24. data/docs/A1099/V2/Form1099Div.md +130 -0
  25. data/docs/A1099/V2/Form1099DivListItem.md +32 -28
  26. data/docs/A1099/V2/Form1099DivListItemResponse.md +130 -0
  27. data/docs/A1099/V2/Form1099DivRequest.md +32 -28
  28. data/docs/A1099/V2/Form1099DivResponse.md +48 -6
  29. data/docs/A1099/V2/Form1099Int.md +122 -0
  30. data/docs/A1099/V2/Form1099IntList.md +20 -0
  31. data/docs/A1099/V2/Form1099IntListItem.md +100 -0
  32. data/docs/A1099/V2/Form1099IntListItemResponse.md +122 -0
  33. data/docs/A1099/V2/Form1099IntRequest.md +96 -0
  34. data/docs/A1099/V2/Form1099IntResponse.md +120 -0
  35. data/docs/A1099/V2/Form1099K.md +14 -2
  36. data/docs/A1099/V2/Form1099KListItem.md +14 -8
  37. data/docs/A1099/V2/Form1099KListItemResponse.md +20 -8
  38. data/docs/A1099/V2/Form1099KRequest.md +18 -12
  39. data/docs/A1099/V2/Form1099KResponse.md +132 -0
  40. data/docs/A1099/V2/Form1099ListResponseValueInner.md +4 -0
  41. data/docs/A1099/V2/Form1099Misc.md +24 -12
  42. data/docs/A1099/V2/Form1099MiscListItem.md +14 -12
  43. data/docs/A1099/V2/Form1099MiscListItemResponse.md +30 -16
  44. data/docs/A1099/V2/Form1099MiscRequest.md +14 -12
  45. data/docs/A1099/V2/Form1099MiscResponse.md +12 -10
  46. data/docs/A1099/V2/Form1099Nec.md +14 -2
  47. data/docs/A1099/V2/Form1099NecListItem.md +14 -10
  48. data/docs/A1099/V2/Form1099NecListItemResponse.md +20 -8
  49. data/docs/A1099/V2/Form1099NecRequest.md +14 -10
  50. data/docs/A1099/V2/Form1099NecResponse.md +10 -8
  51. data/docs/A1099/V2/Form1099ProccessResult.md +3 -1
  52. data/docs/A1099/V2/Form1099ProccessResultProcessedFormsInner.md +61 -0
  53. data/docs/A1099/V2/Form1099R.md +14 -4
  54. data/docs/A1099/V2/Form1099RListItem.md +12 -8
  55. data/docs/A1099/V2/Form1099RListItemResponse.md +20 -10
  56. data/docs/A1099/V2/Form1099RRequest.md +12 -8
  57. data/docs/A1099/V2/Form1099RResponse.md +132 -0
  58. data/docs/A1099/V2/FormRequestBase.md +14 -8
  59. data/docs/A1099/V2/FormRequestListItemBase.md +14 -8
  60. data/docs/A1099/V2/FormResponseBase.md +10 -6
  61. data/docs/A1099/V2/FormSingleRequestBase.md +14 -8
  62. data/docs/A1099/V2/Forms1099Api.md +11 -11
  63. data/docs/A1099/V2/FormsW9Api.md +21 -19
  64. data/docs/A1099/V2/Get1099Form200Response.md +4 -0
  65. data/docs/A1099/V2/ICreateForm1099Request.md +2 -0
  66. data/docs/A1099/V2/IUpdateForm1099Request.md +2 -0
  67. data/docs/A1099/V2/IrsResponse.md +20 -0
  68. data/docs/A1099/V2/Issuers1099Api.md +6 -6
  69. data/docs/A1099/V2/Jobs1099Api.md +1 -1
  70. data/docs/A1099/V2/OfferAndCoverageRequest.md +26 -0
  71. data/docs/A1099/V2/PaginatedQueryResultModelCompanyResponse.md +1 -1
  72. data/docs/A1099/V2/PaginatedQueryResultModelIssuerResponse.md +1 -1
  73. data/docs/A1099/V2/PaginatedQueryResultModelW9FormBaseResponse.md +22 -0
  74. data/docs/A1099/V2/TinMatchStatusResponse.md +22 -0
  75. data/docs/A1099/V2/Update1099Form200Response.md +8 -0
  76. data/docs/A1099/V2/W4FormResponse.md +1 -29
  77. data/docs/A1099/V2/W8BenEFormResponse.md +1 -29
  78. data/docs/A1099/V2/W8BenFormResponse.md +1 -29
  79. data/docs/A1099/V2/W8ImyFormResponse.md +1 -29
  80. data/docs/A1099/V2/W9FormBaseResponse.md +3 -3
  81. data/docs/A1099/V2/W9FormResponse.md +2 -28
  82. data/lib/avalara_sdk/api/A1099/V2/companies_w9_api.rb +1 -1
  83. data/lib/avalara_sdk/api/A1099/V2/forms1099_api.rb +3 -3
  84. data/lib/avalara_sdk/api/A1099/V2/forms_w9_api.rb +30 -14
  85. data/lib/avalara_sdk/api/A1099/V2/issuers1099_api.rb +1 -1
  86. data/lib/avalara_sdk/api/A1099/V2/jobs1099_api.rb +1 -1
  87. data/lib/avalara_sdk/api/EInvoicing/V1/data_input_fields_api.rb +1 -1
  88. data/lib/avalara_sdk/api/EInvoicing/V1/documents_api.rb +1 -1
  89. data/lib/avalara_sdk/api/EInvoicing/V1/interop_api.rb +1 -1
  90. data/lib/avalara_sdk/api/EInvoicing/V1/mandates_api.rb +1 -1
  91. data/lib/avalara_sdk/api/EInvoicing/V1/subscriptions_api.rb +1 -1
  92. data/lib/avalara_sdk/api/EInvoicing/V1/tax_identifiers_api.rb +1 -1
  93. data/lib/avalara_sdk/api/EInvoicing/V1/trading_partners_api.rb +1 -1
  94. data/lib/avalara_sdk/models/A1099/V2/bulk_upsert1099_forms_request.rb +2 -0
  95. data/lib/avalara_sdk/models/A1099/V2/covered_individual_reference.rb +1 -1
  96. data/lib/avalara_sdk/models/A1099/V2/covered_individual_request.rb +79 -79
  97. data/lib/avalara_sdk/models/A1099/V2/create1099_form201_response.rb +2 -0
  98. data/lib/avalara_sdk/models/A1099/V2/error_response.rb +1 -1
  99. data/lib/avalara_sdk/models/A1099/V2/error_response_item.rb +221 -0
  100. data/lib/avalara_sdk/models/A1099/V2/form1042_s.rb +824 -0
  101. data/lib/avalara_sdk/models/A1099/V2/form1042_s_list_item.rb +44 -119
  102. data/lib/avalara_sdk/models/A1099/V2/form1042_s_list_item_response.rb +67 -12
  103. data/lib/avalara_sdk/models/A1099/V2/form1042_s_request.rb +55 -132
  104. data/lib/avalara_sdk/models/A1099/V2/form1042_s_response.rb +43 -24
  105. data/lib/avalara_sdk/models/A1099/V2/form1095_b.rb +68 -9
  106. data/lib/avalara_sdk/models/A1099/V2/form1095_b_list_item.rb +54 -119
  107. data/lib/avalara_sdk/models/A1099/V2/form1095_b_list_item_response.rb +77 -12
  108. data/lib/avalara_sdk/models/A1099/V2/form1095_b_request.rb +56 -121
  109. data/lib/avalara_sdk/models/A1099/V2/form1095_b_response.rb +709 -0
  110. data/lib/avalara_sdk/models/A1099/V2/form1095_c_list.rb +238 -0
  111. data/lib/avalara_sdk/models/A1099/V2/form1095_c_list_item.rb +662 -0
  112. data/lib/avalara_sdk/models/A1099/V2/form1099_base.rb +68 -9
  113. data/lib/avalara_sdk/models/A1099/V2/form1099_base_response.rb +77 -12
  114. data/lib/avalara_sdk/models/A1099/V2/form1099_div.rb +781 -0
  115. data/lib/avalara_sdk/models/A1099/V2/form1099_div_list_item.rb +93 -147
  116. data/lib/avalara_sdk/models/A1099/V2/form1099_div_list_item_response.rb +931 -0
  117. data/lib/avalara_sdk/models/A1099/V2/form1099_div_request.rb +93 -149
  118. data/lib/avalara_sdk/models/A1099/V2/form1099_div_response.rb +214 -24
  119. data/lib/avalara_sdk/models/A1099/V2/form1099_int.rb +741 -0
  120. data/lib/avalara_sdk/models/A1099/V2/form1099_int_list.rb +238 -0
  121. data/lib/avalara_sdk/models/A1099/V2/form1099_int_list_item.rb +702 -0
  122. data/lib/avalara_sdk/models/A1099/V2/form1099_int_list_item_response.rb +887 -0
  123. data/lib/avalara_sdk/models/A1099/V2/form1099_int_request.rb +684 -0
  124. data/lib/avalara_sdk/models/A1099/V2/form1099_int_response.rb +773 -0
  125. data/lib/avalara_sdk/models/A1099/V2/form1099_k.rb +68 -9
  126. data/lib/avalara_sdk/models/A1099/V2/form1099_k_list_item.rb +56 -119
  127. data/lib/avalara_sdk/models/A1099/V2/form1099_k_list_item_response.rb +77 -12
  128. data/lib/avalara_sdk/models/A1099/V2/form1099_k_request.rb +82 -123
  129. data/lib/avalara_sdk/models/A1099/V2/form1099_k_response.rb +839 -0
  130. data/lib/avalara_sdk/models/A1099/V2/form1099_list_response_value_inner.rb +2 -0
  131. data/lib/avalara_sdk/models/A1099/V2/form1099_misc.rb +106 -47
  132. data/lib/avalara_sdk/models/A1099/V2/form1099_misc_list_item.rb +52 -135
  133. data/lib/avalara_sdk/models/A1099/V2/form1099_misc_list_item_response.rb +116 -40
  134. data/lib/avalara_sdk/models/A1099/V2/form1099_misc_request.rb +52 -137
  135. data/lib/avalara_sdk/models/A1099/V2/form1099_misc_response.rb +49 -39
  136. data/lib/avalara_sdk/models/A1099/V2/form1099_nec.rb +68 -9
  137. data/lib/avalara_sdk/models/A1099/V2/form1099_nec_list_item.rb +56 -129
  138. data/lib/avalara_sdk/models/A1099/V2/form1099_nec_list_item_response.rb +77 -12
  139. data/lib/avalara_sdk/models/A1099/V2/form1099_nec_request.rb +56 -131
  140. data/lib/avalara_sdk/models/A1099/V2/form1099_nec_response.rb +43 -33
  141. data/lib/avalara_sdk/models/A1099/V2/form1099_proccess_result.rb +22 -4
  142. data/lib/avalara_sdk/models/A1099/V2/form1099_proccess_result_processed_forms_inner.rb +107 -0
  143. data/lib/avalara_sdk/models/A1099/V2/form1099_r.rb +68 -19
  144. data/lib/avalara_sdk/models/A1099/V2/form1099_r_list_item.rb +46 -119
  145. data/lib/avalara_sdk/models/A1099/V2/form1099_r_list_item_response.rb +77 -23
  146. data/lib/avalara_sdk/models/A1099/V2/form1099_r_request.rb +46 -121
  147. data/lib/avalara_sdk/models/A1099/V2/form1099_r_response.rb +839 -0
  148. data/lib/avalara_sdk/models/A1099/V2/form1099_status_detail.rb +1 -1
  149. data/lib/avalara_sdk/models/A1099/V2/form_request_base.rb +54 -119
  150. data/lib/avalara_sdk/models/A1099/V2/form_request_list_item_base.rb +56 -119
  151. data/lib/avalara_sdk/models/A1099/V2/form_response_base.rb +43 -24
  152. data/lib/avalara_sdk/models/A1099/V2/form_single_request_base.rb +56 -121
  153. data/lib/avalara_sdk/models/A1099/V2/get1099_form200_response.rb +2 -0
  154. data/lib/avalara_sdk/models/A1099/V2/i_create_form1099_request.rb +1 -0
  155. data/lib/avalara_sdk/models/A1099/V2/i_update_form1099_request.rb +1 -0
  156. data/lib/avalara_sdk/models/A1099/V2/included_base.rb +1 -1
  157. data/lib/avalara_sdk/models/A1099/V2/irs_response.rb +221 -0
  158. data/lib/avalara_sdk/models/A1099/V2/issuer_command.rb +1 -0
  159. data/lib/avalara_sdk/models/A1099/V2/offer_and_coverage_request.rb +256 -0
  160. data/lib/avalara_sdk/models/A1099/V2/paginated_query_result_model_w9_form_base_response.rb +234 -0
  161. data/lib/avalara_sdk/models/A1099/V2/state_and_local_withholding.rb +1 -1
  162. data/lib/avalara_sdk/models/A1099/V2/state_efile_status_detail.rb +1 -1
  163. data/lib/avalara_sdk/models/A1099/V2/tin_match_status_response.rb +267 -0
  164. data/lib/avalara_sdk/models/A1099/V2/update1099_form200_response.rb +4 -0
  165. data/lib/avalara_sdk/models/A1099/V2/validation_error.rb +1 -1
  166. data/lib/avalara_sdk/models/A1099/V2/w4_form_response.rb +15 -157
  167. data/lib/avalara_sdk/models/A1099/V2/w8_ben_e_form_response.rb +14 -156
  168. data/lib/avalara_sdk/models/A1099/V2/w8_ben_form_response.rb +15 -157
  169. data/lib/avalara_sdk/models/A1099/V2/w8_imy_form_response.rb +15 -157
  170. data/lib/avalara_sdk/models/A1099/V2/w9_form_base_response.rb +19 -14
  171. data/lib/avalara_sdk/models/A1099/V2/w9_form_response.rb +18 -150
  172. data/lib/avalara_sdk/version.rb +1 -1
  173. data/lib/avalara_sdk.rb +21 -1
  174. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/byebug-11.1.3/gem_make.out +5 -5
  175. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/date-3.4.1/gem_make.out +5 -5
  176. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/debase-0.2.9/gem_make.out +5 -5
  177. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/debug-1.10.0/gem_make.out +5 -5
  178. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/erb-5.0.1/gem_make.out +5 -5
  179. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/io-console-0.8.0/gem_make.out +5 -5
  180. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/json-2.12.2/gem_make.out +5 -5
  181. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/prism-1.4.0/gem_make.out +5 -5
  182. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/psych-5.2.6/gem_make.out +5 -5
  183. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/racc-1.8.1/gem_make.out +5 -5
  184. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/stringio-3.1.7/gem_make.out +5 -5
  185. metadata +42 -2
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Avalara 1099 & W-9 API Definition
3
3
 
4
- ### 🔐 Authentication Use **username/password** or generate a **license key** from: *Avalara Portal → Settings → License and API Keys*. [More on authentication methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) [Test your credentials](https://developer.avalara.com/avatax/test-credentials/) ## 📘 API & SDK Documentation [Avalara SDK (.NET) on GitHub](https://github.com/avadev/Avalara-SDK-DotNet#avalarasdk--the-unified-c-library-for-next-gen-avalara-services) [Code Examples – 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget)
4
+ ### 🔐 Authentication Generate a **license key** from: *[Avalara Portal](https://www.avalara.com/us/en/signin.html) → Settings → License and API Keys*. [More on authentication methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) [Test your credentials](https://developer.avalara.com/avatax/test-credentials/) ## 📘 API & SDK Documentation [Avalara SDK (.NET) on GitHub](https://github.com/avadev/Avalara-SDK-DotNet#avalarasdk--the-unified-c-library-for-next-gen-avalara-services) [Code Examples – 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget)
5
5
 
6
6
 
7
7
  =end
@@ -43,14 +43,22 @@ module AvalaraSdk::A1099::V2
43
43
 
44
44
  attr_accessor :address_verification_status
45
45
 
46
+ attr_accessor :e_delivery_status
47
+
46
48
  attr_accessor :reference_id
47
49
 
48
50
  attr_accessor :email
49
51
 
50
52
  attr_accessor :tin_type
51
53
 
54
+ attr_accessor :fatca_filing_requirement
55
+
52
56
  attr_accessor :tin
53
57
 
58
+ attr_accessor :no_tin
59
+
60
+ attr_accessor :second_tin_notice
61
+
54
62
  attr_accessor :recipient_name
55
63
 
56
64
  attr_accessor :recipient_second_name
@@ -65,10 +73,14 @@ module AvalaraSdk::A1099::V2
65
73
 
66
74
  attr_accessor :zip
67
75
 
68
- attr_accessor :foreign_province
76
+ attr_accessor :non_us_province
69
77
 
70
78
  attr_accessor :country_code
71
79
 
80
+ attr_accessor :account_number
81
+
82
+ attr_accessor :office_code
83
+
72
84
  attr_accessor :validation_errors
73
85
 
74
86
  attr_accessor :created_at
@@ -96,10 +108,14 @@ module AvalaraSdk::A1099::V2
96
108
  :'tin_match_status' => :'tinMatchStatus',
97
109
  :'address_verification' => :'addressVerification',
98
110
  :'address_verification_status' => :'addressVerificationStatus',
111
+ :'e_delivery_status' => :'eDeliveryStatus',
99
112
  :'reference_id' => :'referenceId',
100
113
  :'email' => :'email',
101
114
  :'tin_type' => :'tinType',
115
+ :'fatca_filing_requirement' => :'fatcaFilingRequirement',
102
116
  :'tin' => :'tin',
117
+ :'no_tin' => :'noTin',
118
+ :'second_tin_notice' => :'secondTinNotice',
103
119
  :'recipient_name' => :'recipientName',
104
120
  :'recipient_second_name' => :'recipientSecondName',
105
121
  :'address' => :'address',
@@ -107,8 +123,10 @@ module AvalaraSdk::A1099::V2
107
123
  :'city' => :'city',
108
124
  :'state' => :'state',
109
125
  :'zip' => :'zip',
110
- :'foreign_province' => :'foreignProvince',
126
+ :'non_us_province' => :'nonUsProvince',
111
127
  :'country_code' => :'countryCode',
128
+ :'account_number' => :'accountNumber',
129
+ :'office_code' => :'officeCode',
112
130
  :'validation_errors' => :'validationErrors',
113
131
  :'created_at' => :'createdAt',
114
132
  :'updated_at' => :'updatedAt',
@@ -140,10 +158,14 @@ module AvalaraSdk::A1099::V2
140
158
  :'tin_match_status' => :'Form1099StatusDetail',
141
159
  :'address_verification' => :'Boolean',
142
160
  :'address_verification_status' => :'Form1099StatusDetail',
161
+ :'e_delivery_status' => :'Form1099StatusDetail',
143
162
  :'reference_id' => :'String',
144
163
  :'email' => :'String',
145
164
  :'tin_type' => :'String',
165
+ :'fatca_filing_requirement' => :'Boolean',
146
166
  :'tin' => :'String',
167
+ :'no_tin' => :'Boolean',
168
+ :'second_tin_notice' => :'Boolean',
147
169
  :'recipient_name' => :'String',
148
170
  :'recipient_second_name' => :'String',
149
171
  :'address' => :'String',
@@ -151,8 +173,10 @@ module AvalaraSdk::A1099::V2
151
173
  :'city' => :'String',
152
174
  :'state' => :'String',
153
175
  :'zip' => :'String',
154
- :'foreign_province' => :'String',
176
+ :'non_us_province' => :'String',
155
177
  :'country_code' => :'String',
178
+ :'account_number' => :'String',
179
+ :'office_code' => :'String',
156
180
  :'validation_errors' => :'Array<ValidationError>',
157
181
  :'created_at' => :'Time',
158
182
  :'updated_at' => :'Time',
@@ -169,10 +193,13 @@ module AvalaraSdk::A1099::V2
169
193
  :'postal_mail_status',
170
194
  :'tin_match_status',
171
195
  :'address_verification_status',
196
+ :'e_delivery_status',
172
197
  :'reference_id',
173
198
  :'email',
174
199
  :'tin_type',
200
+ :'fatca_filing_requirement',
175
201
  :'tin',
202
+ :'second_tin_notice',
176
203
  :'recipient_name',
177
204
  :'recipient_second_name',
178
205
  :'address',
@@ -180,8 +207,10 @@ module AvalaraSdk::A1099::V2
180
207
  :'city',
181
208
  :'state',
182
209
  :'zip',
183
- :'foreign_province',
210
+ :'non_us_province',
184
211
  :'country_code',
212
+ :'account_number',
213
+ :'office_code',
185
214
  :'validation_errors',
186
215
  :'state_and_local_withholding'
187
216
  ])
@@ -268,6 +297,10 @@ module AvalaraSdk::A1099::V2
268
297
  self.address_verification_status = attributes[:'address_verification_status']
269
298
  end
270
299
 
300
+ if attributes.key?(:'e_delivery_status')
301
+ self.e_delivery_status = attributes[:'e_delivery_status']
302
+ end
303
+
271
304
  if attributes.key?(:'reference_id')
272
305
  self.reference_id = attributes[:'reference_id']
273
306
  end
@@ -280,10 +313,22 @@ module AvalaraSdk::A1099::V2
280
313
  self.tin_type = attributes[:'tin_type']
281
314
  end
282
315
 
316
+ if attributes.key?(:'fatca_filing_requirement')
317
+ self.fatca_filing_requirement = attributes[:'fatca_filing_requirement']
318
+ end
319
+
283
320
  if attributes.key?(:'tin')
284
321
  self.tin = attributes[:'tin']
285
322
  end
286
323
 
324
+ if attributes.key?(:'no_tin')
325
+ self.no_tin = attributes[:'no_tin']
326
+ end
327
+
328
+ if attributes.key?(:'second_tin_notice')
329
+ self.second_tin_notice = attributes[:'second_tin_notice']
330
+ end
331
+
287
332
  if attributes.key?(:'recipient_name')
288
333
  self.recipient_name = attributes[:'recipient_name']
289
334
  end
@@ -312,14 +357,22 @@ module AvalaraSdk::A1099::V2
312
357
  self.zip = attributes[:'zip']
313
358
  end
314
359
 
315
- if attributes.key?(:'foreign_province')
316
- self.foreign_province = attributes[:'foreign_province']
360
+ if attributes.key?(:'non_us_province')
361
+ self.non_us_province = attributes[:'non_us_province']
317
362
  end
318
363
 
319
364
  if attributes.key?(:'country_code')
320
365
  self.country_code = attributes[:'country_code']
321
366
  end
322
367
 
368
+ if attributes.key?(:'account_number')
369
+ self.account_number = attributes[:'account_number']
370
+ end
371
+
372
+ if attributes.key?(:'office_code')
373
+ self.office_code = attributes[:'office_code']
374
+ end
375
+
323
376
  if attributes.key?(:'validation_errors')
324
377
  if (value = attributes[:'validation_errors']).is_a?(Array)
325
378
  self.validation_errors = value
@@ -387,10 +440,14 @@ module AvalaraSdk::A1099::V2
387
440
  tin_match_status == o.tin_match_status &&
388
441
  address_verification == o.address_verification &&
389
442
  address_verification_status == o.address_verification_status &&
443
+ e_delivery_status == o.e_delivery_status &&
390
444
  reference_id == o.reference_id &&
391
445
  email == o.email &&
392
446
  tin_type == o.tin_type &&
447
+ fatca_filing_requirement == o.fatca_filing_requirement &&
393
448
  tin == o.tin &&
449
+ no_tin == o.no_tin &&
450
+ second_tin_notice == o.second_tin_notice &&
394
451
  recipient_name == o.recipient_name &&
395
452
  recipient_second_name == o.recipient_second_name &&
396
453
  address == o.address &&
@@ -398,8 +455,10 @@ module AvalaraSdk::A1099::V2
398
455
  city == o.city &&
399
456
  state == o.state &&
400
457
  zip == o.zip &&
401
- foreign_province == o.foreign_province &&
458
+ non_us_province == o.non_us_province &&
402
459
  country_code == o.country_code &&
460
+ account_number == o.account_number &&
461
+ office_code == o.office_code &&
403
462
  validation_errors == o.validation_errors &&
404
463
  created_at == o.created_at &&
405
464
  updated_at == o.updated_at &&
@@ -415,7 +474,7 @@ module AvalaraSdk::A1099::V2
415
474
  # Calculates hash code according to all attributes.
416
475
  # @return [Integer] Hash code
417
476
  def hash
418
- [id, type, issuer_id, issuer_reference_id, issuer_tin, tax_year, federal_efile, federal_efile_status, state_efile, state_efile_status, postal_mail, postal_mail_status, tin_match, tin_match_status, address_verification, address_verification_status, reference_id, email, tin_type, tin, recipient_name, recipient_second_name, address, address2, city, state, zip, foreign_province, country_code, validation_errors, created_at, updated_at, state_and_local_withholding].hash
477
+ [id, type, issuer_id, issuer_reference_id, issuer_tin, tax_year, federal_efile, federal_efile_status, state_efile, state_efile_status, postal_mail, postal_mail_status, tin_match, tin_match_status, address_verification, address_verification_status, e_delivery_status, reference_id, email, tin_type, fatca_filing_requirement, tin, no_tin, second_tin_notice, recipient_name, recipient_second_name, address, address2, city, state, zip, non_us_province, country_code, account_number, office_code, validation_errors, created_at, updated_at, state_and_local_withholding].hash
419
478
  end
420
479
 
421
480
  # Builds the object from hash
@@ -59,6 +59,9 @@ module AvalaraSdk::A1099::V2
59
59
  # Address verification status
60
60
  attr_accessor :address_verification_status
61
61
 
62
+ # EDelivery status
63
+ attr_accessor :e_delivery_status
64
+
62
65
  # Reference ID
63
66
  attr_accessor :reference_id
64
67
 
@@ -71,6 +74,12 @@ module AvalaraSdk::A1099::V2
71
74
  # Recipient Tax ID Number
72
75
  attr_accessor :tin
73
76
 
77
+ # Indicates whether the recipient has no TIN
78
+ attr_accessor :no_tin
79
+
80
+ # Second Tin Notice
81
+ attr_accessor :second_tin_notice
82
+
74
83
  # Recipient name
75
84
  attr_accessor :recipient_name
76
85
 
@@ -93,11 +102,20 @@ module AvalaraSdk::A1099::V2
93
102
  attr_accessor :zip
94
103
 
95
104
  # Foreign province
96
- attr_accessor :foreign_province
105
+ attr_accessor :non_us_province
97
106
 
98
107
  # Country code, as defined at https://www.irs.gov/e-file-providers/country-codes
99
108
  attr_accessor :country_code
100
109
 
110
+ # Account Number
111
+ attr_accessor :account_number
112
+
113
+ # Office Code
114
+ attr_accessor :office_code
115
+
116
+ # FATCA filing requirement
117
+ attr_accessor :fatca_filing_requirement
118
+
101
119
  # Validation errors
102
120
  attr_accessor :validation_errors
103
121
 
@@ -128,10 +146,13 @@ module AvalaraSdk::A1099::V2
128
146
  :'tin_match_status' => :'tinMatchStatus',
129
147
  :'address_verification' => :'addressVerification',
130
148
  :'address_verification_status' => :'addressVerificationStatus',
149
+ :'e_delivery_status' => :'eDeliveryStatus',
131
150
  :'reference_id' => :'referenceId',
132
151
  :'email' => :'email',
133
152
  :'tin_type' => :'tinType',
134
153
  :'tin' => :'tin',
154
+ :'no_tin' => :'noTin',
155
+ :'second_tin_notice' => :'secondTinNotice',
135
156
  :'recipient_name' => :'recipientName',
136
157
  :'recipient_second_name' => :'recipientSecondName',
137
158
  :'address' => :'address',
@@ -139,8 +160,11 @@ module AvalaraSdk::A1099::V2
139
160
  :'city' => :'city',
140
161
  :'state' => :'state',
141
162
  :'zip' => :'zip',
142
- :'foreign_province' => :'foreignProvince',
163
+ :'non_us_province' => :'nonUsProvince',
143
164
  :'country_code' => :'countryCode',
165
+ :'account_number' => :'accountNumber',
166
+ :'office_code' => :'officeCode',
167
+ :'fatca_filing_requirement' => :'fatcaFilingRequirement',
144
168
  :'validation_errors' => :'validationErrors',
145
169
  :'created_at' => :'createdAt',
146
170
  :'updated_at' => :'updatedAt',
@@ -163,19 +187,22 @@ module AvalaraSdk::A1099::V2
163
187
  :'issuer_tin' => :'String',
164
188
  :'tax_year' => :'Integer',
165
189
  :'federal_efile' => :'Boolean',
166
- :'federal_efile_status' => :'Form1099StatusDetailResponse',
190
+ :'federal_efile_status' => :'StatusDetail',
167
191
  :'state_efile' => :'Boolean',
168
192
  :'state_efile_status' => :'Array<StateEfileStatusDetailResponse>',
169
193
  :'postal_mail' => :'Boolean',
170
- :'postal_mail_status' => :'Form1099StatusDetailResponse',
194
+ :'postal_mail_status' => :'StatusDetail',
171
195
  :'tin_match' => :'Boolean',
172
- :'tin_match_status' => :'Form1099StatusDetailResponse',
196
+ :'tin_match_status' => :'StatusDetail',
173
197
  :'address_verification' => :'Boolean',
174
- :'address_verification_status' => :'Form1099StatusDetailResponse',
198
+ :'address_verification_status' => :'StatusDetail',
199
+ :'e_delivery_status' => :'StatusDetail',
175
200
  :'reference_id' => :'String',
176
201
  :'email' => :'String',
177
202
  :'tin_type' => :'String',
178
203
  :'tin' => :'String',
204
+ :'no_tin' => :'Boolean',
205
+ :'second_tin_notice' => :'Boolean',
179
206
  :'recipient_name' => :'String',
180
207
  :'recipient_second_name' => :'String',
181
208
  :'address' => :'String',
@@ -183,8 +210,11 @@ module AvalaraSdk::A1099::V2
183
210
  :'city' => :'String',
184
211
  :'state' => :'String',
185
212
  :'zip' => :'String',
186
- :'foreign_province' => :'String',
213
+ :'non_us_province' => :'String',
187
214
  :'country_code' => :'String',
215
+ :'account_number' => :'String',
216
+ :'office_code' => :'String',
217
+ :'fatca_filing_requirement' => :'Boolean',
188
218
  :'validation_errors' => :'Array<ValidationErrorResponse>',
189
219
  :'created_at' => :'Time',
190
220
  :'updated_at' => :'Time',
@@ -201,10 +231,12 @@ module AvalaraSdk::A1099::V2
201
231
  :'postal_mail_status',
202
232
  :'tin_match_status',
203
233
  :'address_verification_status',
234
+ :'e_delivery_status',
204
235
  :'reference_id',
205
236
  :'email',
206
237
  :'tin_type',
207
238
  :'tin',
239
+ :'second_tin_notice',
208
240
  :'recipient_name',
209
241
  :'recipient_second_name',
210
242
  :'address',
@@ -212,8 +244,11 @@ module AvalaraSdk::A1099::V2
212
244
  :'city',
213
245
  :'state',
214
246
  :'zip',
215
- :'foreign_province',
247
+ :'non_us_province',
216
248
  :'country_code',
249
+ :'account_number',
250
+ :'office_code',
251
+ :'fatca_filing_requirement',
217
252
  :'validation_errors',
218
253
  :'state_and_local_withholding'
219
254
  ])
@@ -316,6 +351,10 @@ module AvalaraSdk::A1099::V2
316
351
  self.address_verification_status = attributes[:'address_verification_status']
317
352
  end
318
353
 
354
+ if attributes.key?(:'e_delivery_status')
355
+ self.e_delivery_status = attributes[:'e_delivery_status']
356
+ end
357
+
319
358
  if attributes.key?(:'reference_id')
320
359
  self.reference_id = attributes[:'reference_id']
321
360
  end
@@ -332,6 +371,14 @@ module AvalaraSdk::A1099::V2
332
371
  self.tin = attributes[:'tin']
333
372
  end
334
373
 
374
+ if attributes.key?(:'no_tin')
375
+ self.no_tin = attributes[:'no_tin']
376
+ end
377
+
378
+ if attributes.key?(:'second_tin_notice')
379
+ self.second_tin_notice = attributes[:'second_tin_notice']
380
+ end
381
+
335
382
  if attributes.key?(:'recipient_name')
336
383
  self.recipient_name = attributes[:'recipient_name']
337
384
  end
@@ -360,14 +407,26 @@ module AvalaraSdk::A1099::V2
360
407
  self.zip = attributes[:'zip']
361
408
  end
362
409
 
363
- if attributes.key?(:'foreign_province')
364
- self.foreign_province = attributes[:'foreign_province']
410
+ if attributes.key?(:'non_us_province')
411
+ self.non_us_province = attributes[:'non_us_province']
365
412
  end
366
413
 
367
414
  if attributes.key?(:'country_code')
368
415
  self.country_code = attributes[:'country_code']
369
416
  end
370
417
 
418
+ if attributes.key?(:'account_number')
419
+ self.account_number = attributes[:'account_number']
420
+ end
421
+
422
+ if attributes.key?(:'office_code')
423
+ self.office_code = attributes[:'office_code']
424
+ end
425
+
426
+ if attributes.key?(:'fatca_filing_requirement')
427
+ self.fatca_filing_requirement = attributes[:'fatca_filing_requirement']
428
+ end
429
+
371
430
  if attributes.key?(:'validation_errors')
372
431
  if (value = attributes[:'validation_errors']).is_a?(Array)
373
432
  self.validation_errors = value
@@ -513,10 +572,13 @@ module AvalaraSdk::A1099::V2
513
572
  tin_match_status == o.tin_match_status &&
514
573
  address_verification == o.address_verification &&
515
574
  address_verification_status == o.address_verification_status &&
575
+ e_delivery_status == o.e_delivery_status &&
516
576
  reference_id == o.reference_id &&
517
577
  email == o.email &&
518
578
  tin_type == o.tin_type &&
519
579
  tin == o.tin &&
580
+ no_tin == o.no_tin &&
581
+ second_tin_notice == o.second_tin_notice &&
520
582
  recipient_name == o.recipient_name &&
521
583
  recipient_second_name == o.recipient_second_name &&
522
584
  address == o.address &&
@@ -524,8 +586,11 @@ module AvalaraSdk::A1099::V2
524
586
  city == o.city &&
525
587
  state == o.state &&
526
588
  zip == o.zip &&
527
- foreign_province == o.foreign_province &&
589
+ non_us_province == o.non_us_province &&
528
590
  country_code == o.country_code &&
591
+ account_number == o.account_number &&
592
+ office_code == o.office_code &&
593
+ fatca_filing_requirement == o.fatca_filing_requirement &&
529
594
  validation_errors == o.validation_errors &&
530
595
  created_at == o.created_at &&
531
596
  updated_at == o.updated_at &&
@@ -541,7 +606,7 @@ module AvalaraSdk::A1099::V2
541
606
  # Calculates hash code according to all attributes.
542
607
  # @return [Integer] Hash code
543
608
  def hash
544
- [id, type, issuer_id, issuer_reference_id, issuer_tin, tax_year, federal_efile, federal_efile_status, state_efile, state_efile_status, postal_mail, postal_mail_status, tin_match, tin_match_status, address_verification, address_verification_status, reference_id, email, tin_type, tin, recipient_name, recipient_second_name, address, address2, city, state, zip, foreign_province, country_code, validation_errors, created_at, updated_at, state_and_local_withholding].hash
609
+ [id, type, issuer_id, issuer_reference_id, issuer_tin, tax_year, federal_efile, federal_efile_status, state_efile, state_efile_status, postal_mail, postal_mail_status, tin_match, tin_match_status, address_verification, address_verification_status, e_delivery_status, reference_id, email, tin_type, tin, no_tin, second_tin_notice, recipient_name, recipient_second_name, address, address2, city, state, zip, non_us_province, country_code, account_number, office_code, fatca_filing_requirement, validation_errors, created_at, updated_at, state_and_local_withholding].hash
545
610
  end
546
611
 
547
612
  # Builds the object from hash