avalara_sdk 25.8.3 → 25.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +4 -14
- data/docs/A1099/V2/CompaniesW9Api.md +9 -9
- data/docs/A1099/V2/CompanyBase.md +50 -0
- data/docs/A1099/V2/CompanyRequest.md +50 -0
- data/docs/A1099/V2/ErrorResponse.md +2 -2
- data/docs/A1099/V2/ErrorResponseItem.md +2 -2
- data/docs/A1099/V2/Form1042S.md +16 -16
- data/docs/A1099/V2/Form1095B.md +15 -15
- data/docs/A1099/V2/Form1095C.md +14 -14
- data/docs/A1099/V2/Form1099Base.md +14 -14
- data/docs/A1099/V2/Form1099Div.md +15 -15
- data/docs/A1099/V2/Form1099Int.md +16 -16
- data/docs/A1099/V2/Form1099K.md +20 -20
- data/docs/A1099/V2/Form1099ListRequest.md +1 -1
- data/docs/A1099/V2/Form1099Misc.md +15 -15
- data/docs/A1099/V2/Form1099Nec.md +17 -17
- data/docs/A1099/V2/Form1099R.md +17 -17
- data/docs/A1099/V2/Forms1099Api.md +12 -12
- data/docs/A1099/V2/FormsW9Api.md +17 -17
- data/docs/A1099/V2/IntermediaryOrFlowThrough.md +2 -2
- data/docs/A1099/V2/IssuerBase.md +46 -0
- data/docs/A1099/V2/IssuerRequest.md +46 -0
- data/docs/A1099/V2/Issuers1099Api.md +9 -9
- data/docs/A1099/V2/JobResponse.md +1 -1
- data/docs/A1099/V2/JobsApi.md +1 -1
- data/docs/A1099/V2/TinMatchStatusResponse.md +1 -1
- data/docs/A1099/V2/W4FormMinimalRequest.md +2 -2
- data/docs/A1099/V2/W4FormRequest.md +11 -11
- data/docs/A1099/V2/W4FormResponse.md +48 -20
- data/docs/A1099/V2/W8BenEFormMinimalRequest.md +2 -2
- data/docs/A1099/V2/W8BenEFormRequest.md +10 -10
- data/docs/A1099/V2/W8BenEFormResponse.md +96 -68
- data/docs/A1099/V2/W8BenFormMinimalRequest.md +2 -2
- data/docs/A1099/V2/W8BenFormRequest.md +6 -6
- data/docs/A1099/V2/W8BenFormResponse.md +55 -27
- data/docs/A1099/V2/W8ImyFormMinimalRequest.md +2 -2
- data/docs/A1099/V2/W8ImyFormRequest.md +10 -10
- data/docs/A1099/V2/W8ImyFormResponse.md +118 -90
- data/docs/A1099/V2/W9FormBaseMinimalRequest.md +2 -2
- data/docs/A1099/V2/W9FormBaseRequest.md +2 -2
- data/docs/A1099/V2/W9FormBaseResponse.md +3 -3
- data/docs/A1099/V2/W9FormMinimalRequest.md +2 -2
- data/docs/A1099/V2/W9FormRequest.md +12 -12
- data/docs/A1099/V2/W9FormResponse.md +44 -16
- data/lib/avalara_sdk/api/A1099/V2/companies_w9_api.rb +21 -21
- data/lib/avalara_sdk/api/A1099/V2/forms1099_api.rb +7 -7
- data/lib/avalara_sdk/api/A1099/V2/forms_w9_api.rb +16 -16
- data/lib/avalara_sdk/api/A1099/V2/issuers1099_api.rb +21 -21
- data/lib/avalara_sdk/api/A1099/V2/jobs_api.rb +1 -1
- 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/api_client.rb +10 -2
- data/lib/avalara_sdk/models/A1099/V2/company_base.rb +404 -0
- data/lib/avalara_sdk/models/A1099/V2/company_request.rb +411 -0
- data/lib/avalara_sdk/models/A1099/V2/company_response.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/error_response.rb +2 -6
- data/lib/avalara_sdk/models/A1099/V2/error_response_item.rb +2 -0
- data/lib/avalara_sdk/models/A1099/V2/form1042_s.rb +20 -30
- data/lib/avalara_sdk/models/A1099/V2/form1095_b.rb +19 -40
- data/lib/avalara_sdk/models/A1099/V2/form1095_c.rb +18 -49
- data/lib/avalara_sdk/models/A1099/V2/form1099_base.rb +18 -29
- data/lib/avalara_sdk/models/A1099/V2/form1099_div.rb +20 -31
- data/lib/avalara_sdk/models/A1099/V2/form1099_int.rb +22 -32
- data/lib/avalara_sdk/models/A1099/V2/form1099_k.rb +35 -38
- data/lib/avalara_sdk/models/A1099/V2/form1099_list_request.rb +2 -12
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc.rb +20 -31
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec.rb +23 -33
- data/lib/avalara_sdk/models/A1099/V2/form1099_r.rb +48 -33
- data/lib/avalara_sdk/models/A1099/V2/intermediary_or_flow_through.rb +48 -2
- data/lib/avalara_sdk/models/A1099/V2/issuer_base.rb +384 -0
- data/lib/avalara_sdk/models/A1099/V2/issuer_request.rb +391 -0
- data/lib/avalara_sdk/models/A1099/V2/issuer_response.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/job_response.rb +0 -6
- data/lib/avalara_sdk/models/A1099/V2/validation_error.rb +0 -6
- data/lib/avalara_sdk/models/A1099/V2/w4_form_minimal_request.rb +1 -27
- data/lib/avalara_sdk/models/A1099/V2/w4_form_request.rb +50 -24
- data/lib/avalara_sdk/models/A1099/V2/w4_form_response.rb +191 -15
- data/lib/avalara_sdk/models/A1099/V2/w8_ben_e_form_minimal_request.rb +1 -27
- data/lib/avalara_sdk/models/A1099/V2/w8_ben_e_form_request.rb +37 -28
- data/lib/avalara_sdk/models/A1099/V2/w8_ben_e_form_response.rb +190 -14
- data/lib/avalara_sdk/models/A1099/V2/w8_ben_form_minimal_request.rb +1 -27
- data/lib/avalara_sdk/models/A1099/V2/w8_ben_form_request.rb +20 -23
- data/lib/avalara_sdk/models/A1099/V2/w8_ben_form_response.rb +191 -15
- data/lib/avalara_sdk/models/A1099/V2/w8_imy_form_minimal_request.rb +1 -27
- data/lib/avalara_sdk/models/A1099/V2/w8_imy_form_request.rb +72 -22
- data/lib/avalara_sdk/models/A1099/V2/w8_imy_form_response.rb +191 -15
- data/lib/avalara_sdk/models/A1099/V2/w9_form_base_minimal_request.rb +1 -27
- data/lib/avalara_sdk/models/A1099/V2/w9_form_base_request.rb +1 -27
- data/lib/avalara_sdk/models/A1099/V2/w9_form_base_response.rb +47 -18
- data/lib/avalara_sdk/models/A1099/V2/w9_form_minimal_request.rb +1 -27
- data/lib/avalara_sdk/models/A1099/V2/w9_form_request.rb +61 -22
- data/lib/avalara_sdk/models/A1099/V2/w9_form_response.rb +190 -14
- data/lib/avalara_sdk/version.rb +1 -1
- data/lib/avalara_sdk.rb +8 -4
- 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 +10 -2
@@ -27,13 +27,13 @@ module AvalaraSdk::A1099::V2
|
|
27
27
|
# Employee's date of birth
|
28
28
|
attr_accessor :employee_date_of_birth
|
29
29
|
|
30
|
-
# Origin of health coverage code
|
30
|
+
# Origin of health coverage code. Available values: - A: Small Business Health Options Program (SHOP) - B: Employer-sponsored coverage - C: Government-sponsored program - D: Individual market insurance - E: Multiemployer plan - F: Other designated minimum essential coverage - G: Employer-sponsored coverage that is an individual coverage HRA (valid for tax years 2020 and later)
|
31
31
|
attr_accessor :origin_of_health_coverage_code
|
32
32
|
|
33
33
|
# Covered individuals information - At least one month of coverage must be entered if it's not a correction.
|
34
34
|
attr_accessor :covered_individuals
|
35
35
|
|
36
|
-
# Form type
|
36
|
+
# Form type.
|
37
37
|
attr_accessor :type
|
38
38
|
|
39
39
|
# Form ID. Unique identifier set when the record is created.
|
@@ -42,13 +42,13 @@ module AvalaraSdk::A1099::V2
|
|
42
42
|
# Issuer ID - only required when creating forms
|
43
43
|
attr_accessor :issuer_id
|
44
44
|
|
45
|
-
# Issuer Reference ID - only required when creating forms
|
45
|
+
# Issuer Reference ID - only required when creating forms via $bulk-upsert
|
46
46
|
attr_accessor :issuer_reference_id
|
47
47
|
|
48
48
|
# Issuer TIN - readonly
|
49
49
|
attr_accessor :issuer_tin
|
50
50
|
|
51
|
-
# Tax Year - only required when creating forms
|
51
|
+
# Tax Year - only required when creating forms via $bulk-upsert
|
52
52
|
attr_accessor :tax_year
|
53
53
|
|
54
54
|
# Internal reference ID. Never shown to any agency or recipient.
|
@@ -60,7 +60,7 @@ module AvalaraSdk::A1099::V2
|
|
60
60
|
# Recipient name
|
61
61
|
attr_accessor :recipient_name
|
62
62
|
|
63
|
-
#
|
63
|
+
# Tax Identification Number (TIN) type. Available values: - EIN: Employer Identification Number - SSN: Social Security Number - ITIN: Individual Taxpayer Identification Number - ATIN: Adoption Taxpayer Identification Number
|
64
64
|
attr_accessor :tin_type
|
65
65
|
|
66
66
|
# Recipient second name
|
@@ -96,16 +96,16 @@ module AvalaraSdk::A1099::V2
|
|
96
96
|
# Two-letter IRS country code (e.g., 'US', 'CA'), as defined at https://www.irs.gov/e-file-providers/country-codes.
|
97
97
|
attr_accessor :country_code
|
98
98
|
|
99
|
-
# Date when federal e-filing should be scheduled
|
99
|
+
# Date when federal e-filing should be scheduled. If set between current date and beginning of blackout period, scheduled to that date. If in the past or blackout period, scheduled to next available date. For blackout period information, see https://www.track1099.com/info/IRS_info. Set to null to leave unscheduled.
|
100
100
|
attr_accessor :federal_efile_date
|
101
101
|
|
102
102
|
# Boolean indicating that postal mailing to the recipient should be scheduled for this form
|
103
103
|
attr_accessor :postal_mail
|
104
104
|
|
105
|
-
# Date when state e-filing should be scheduled
|
105
|
+
# Date when state e-filing should be scheduled. Must be on or after federalEfileDate. If set between current date and beginning of blackout period, scheduled to that date. If in the past or blackout period, scheduled to next available date. For blackout period information, see https://www.track1099.com/info/IRS_info. Set to null to leave unscheduled.
|
106
106
|
attr_accessor :state_efile_date
|
107
107
|
|
108
|
-
# Date when recipient e-delivery should be scheduled
|
108
|
+
# Date when recipient e-delivery should be scheduled. If set between current date and beginning of blackout period, scheduled to that date. If in the past or blackout period, scheduled to next available date. For blackout period information, see https://www.track1099.com/info/IRS_info. Set to null to leave unscheduled.
|
109
109
|
attr_accessor :recipient_edelivery_date
|
110
110
|
|
111
111
|
# Boolean indicating that TIN Matching should be scheduled for this form
|
@@ -123,22 +123,22 @@ module AvalaraSdk::A1099::V2
|
|
123
123
|
# Second TIN notice
|
124
124
|
attr_accessor :second_tin_notice
|
125
125
|
|
126
|
-
# Federal e-file status
|
126
|
+
# Federal e-file status. Available values: - unscheduled: Form has not been scheduled for federal e-filing - scheduled: Form is scheduled for federal e-filing - airlock: Form is in process of being uploaded to the IRS (forms exist in this state for a very short period and cannot be updated while in this state) - sent: Form has been sent to the IRS - accepted: Form was accepted by the IRS - corrected_scheduled: Correction is scheduled to be sent - corrected_airlock: Correction is in process of being uploaded to the IRS (forms exist in this state for a very short period and cannot be updated while in this state) - corrected: A correction has been sent to the IRS - corrected_accepted: Correction was accepted by the IRS - rejected: Form was rejected by the IRS - corrected_rejected: Correction was rejected by the IRS - held: Form is held and will not be submitted to IRS (used for certain forms submitted only to states)
|
127
127
|
attr_accessor :federal_efile_status
|
128
128
|
|
129
|
-
# State e-file status
|
129
|
+
# State e-file status. Available values: - unscheduled: Form has not been scheduled for state e-filing - scheduled: Form is scheduled for state e-filing - airlocked: Form is in process of being uploaded to the state - sent: Form has been sent to the state - rejected: Form was rejected by the state - accepted: Form was accepted by the state - corrected_scheduled: Correction is scheduled to be sent - corrected_airlocked: Correction is in process of being uploaded to the state - corrected_sent: Correction has been sent to the state - corrected_rejected: Correction was rejected by the state - corrected_accepted: Correction was accepted by the state
|
130
130
|
attr_accessor :state_efile_status
|
131
131
|
|
132
|
-
# Postal mail to recipient status
|
132
|
+
# Postal mail to recipient status. Available values: - unscheduled: Postal mail has not been scheduled - pending: Postal mail is pending to be sent - sent: Postal mail has been sent - delivered: Postal mail has been delivered
|
133
133
|
attr_accessor :postal_mail_status
|
134
134
|
|
135
|
-
# TIN Match status
|
135
|
+
# TIN Match status. Available values: - none: TIN matching has not been performed - pending: TIN matching request is pending - matched: Name/TIN combination matches IRS records - unknown: TIN is missing, invalid, or request contains errors - rejected: Name/TIN combination does not match IRS records or TIN not currently issued
|
136
136
|
attr_accessor :tin_match_status
|
137
137
|
|
138
|
-
# Address verification status
|
138
|
+
# Address verification status. Available values: - unknown: Address verification has not been checked - pending: Address verification is in progress - failed: Address verification failed - incomplete: Address verification is incomplete - unchanged: User declined address changes - verified: Address has been verified and accepted
|
139
139
|
attr_accessor :address_verification_status
|
140
140
|
|
141
|
-
# EDelivery status
|
141
|
+
# EDelivery status. Available values: - unscheduled: E-delivery has not been scheduled - scheduled: E-delivery is scheduled to be sent - sent: E-delivery has been sent to recipient - bounced: E-delivery bounced back (invalid email) - refused: E-delivery was refused by recipient - bad_verify: E-delivery failed verification - accepted: E-delivery was accepted by recipient - bad_verify_limit: E-delivery failed verification limit reached - second_delivery: Second e-delivery attempt - undelivered: E-delivery is undelivered (temporary state allowing resend)
|
142
142
|
attr_accessor :e_delivery_status
|
143
143
|
|
144
144
|
# Validation errors
|
@@ -318,6 +318,7 @@ module AvalaraSdk::A1099::V2
|
|
318
318
|
:'no_tin',
|
319
319
|
:'address_verification',
|
320
320
|
:'state_and_local_withholding',
|
321
|
+
:'second_tin_notice',
|
321
322
|
:'federal_efile_status',
|
322
323
|
:'state_efile_status',
|
323
324
|
:'postal_mail_status',
|
@@ -576,9 +577,9 @@ module AvalaraSdk::A1099::V2
|
|
576
577
|
origin_of_health_coverage_code_validator = EnumAttributeValidator.new('String', ["A", "B", "C", "D", "E", "F", "G"])
|
577
578
|
return false unless origin_of_health_coverage_code_validator.valid?(@origin_of_health_coverage_code)
|
578
579
|
return false if @type.nil?
|
579
|
-
type_validator = EnumAttributeValidator.new('String', ["
|
580
|
+
type_validator = EnumAttributeValidator.new('String', ["Form1099Nec", "Form1099Misc", "Form1099Div", "Form1099R", "Form1099K", "Form1095B", "Form1042S", "Form1095C", "Form1099Int"])
|
580
581
|
return false unless type_validator.valid?(@type)
|
581
|
-
tin_type_validator = EnumAttributeValidator.new('String', ["
|
582
|
+
tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
|
582
583
|
return false unless tin_type_validator.valid?(@tin_type)
|
583
584
|
true
|
584
585
|
end
|
@@ -593,20 +594,10 @@ module AvalaraSdk::A1099::V2
|
|
593
594
|
@origin_of_health_coverage_code = origin_of_health_coverage_code
|
594
595
|
end
|
595
596
|
|
596
|
-
# Custom attribute writer method with validation
|
597
|
-
# @param [Object] covered_individuals Value to be assigned
|
598
|
-
def covered_individuals=(covered_individuals)
|
599
|
-
if covered_individuals.nil?
|
600
|
-
fail ArgumentError, 'covered_individuals cannot be nil'
|
601
|
-
end
|
602
|
-
|
603
|
-
@covered_individuals = covered_individuals
|
604
|
-
end
|
605
|
-
|
606
597
|
# Custom attribute writer method checking allowed values (enum).
|
607
598
|
# @param [Object] type Object to be assigned
|
608
599
|
def type=(type)
|
609
|
-
validator = EnumAttributeValidator.new('String', ["
|
600
|
+
validator = EnumAttributeValidator.new('String', ["Form1099Nec", "Form1099Misc", "Form1099Div", "Form1099R", "Form1099K", "Form1095B", "Form1042S", "Form1095C", "Form1099Int"])
|
610
601
|
unless validator.valid?(type)
|
611
602
|
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
612
603
|
end
|
@@ -616,25 +607,13 @@ module AvalaraSdk::A1099::V2
|
|
616
607
|
# Custom attribute writer method checking allowed values (enum).
|
617
608
|
# @param [Object] tin_type Object to be assigned
|
618
609
|
def tin_type=(tin_type)
|
619
|
-
validator = EnumAttributeValidator.new('String', ["
|
610
|
+
validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
|
620
611
|
unless validator.valid?(tin_type)
|
621
612
|
fail ArgumentError, "invalid value for \"tin_type\", must be one of #{validator.allowable_values}."
|
622
613
|
end
|
623
614
|
@tin_type = tin_type
|
624
615
|
end
|
625
616
|
|
626
|
-
# Custom attribute writer method with validation
|
627
|
-
# @param [Object] state_efile_status Value to be assigned
|
628
|
-
def state_efile_status=(state_efile_status)
|
629
|
-
@state_efile_status = state_efile_status
|
630
|
-
end
|
631
|
-
|
632
|
-
# Custom attribute writer method with validation
|
633
|
-
# @param [Object] validation_errors Value to be assigned
|
634
|
-
def validation_errors=(validation_errors)
|
635
|
-
@validation_errors = validation_errors
|
636
|
-
end
|
637
|
-
|
638
617
|
# Checks equality by comparing each attribute.
|
639
618
|
# @param [Object] Object to be compared
|
640
619
|
def ==(o)
|
@@ -39,7 +39,7 @@ module AvalaraSdk::A1099::V2
|
|
39
39
|
# Covered individuals information
|
40
40
|
attr_accessor :covered_individuals
|
41
41
|
|
42
|
-
# Form type
|
42
|
+
# Form type.
|
43
43
|
attr_accessor :type
|
44
44
|
|
45
45
|
# Form ID. Unique identifier set when the record is created.
|
@@ -48,13 +48,13 @@ module AvalaraSdk::A1099::V2
|
|
48
48
|
# Issuer ID - only required when creating forms
|
49
49
|
attr_accessor :issuer_id
|
50
50
|
|
51
|
-
# Issuer Reference ID - only required when creating forms
|
51
|
+
# Issuer Reference ID - only required when creating forms via $bulk-upsert
|
52
52
|
attr_accessor :issuer_reference_id
|
53
53
|
|
54
54
|
# Issuer TIN - readonly
|
55
55
|
attr_accessor :issuer_tin
|
56
56
|
|
57
|
-
# Tax Year - only required when creating forms
|
57
|
+
# Tax Year - only required when creating forms via $bulk-upsert
|
58
58
|
attr_accessor :tax_year
|
59
59
|
|
60
60
|
# Internal reference ID. Never shown to any agency or recipient.
|
@@ -66,7 +66,7 @@ module AvalaraSdk::A1099::V2
|
|
66
66
|
# Recipient name
|
67
67
|
attr_accessor :recipient_name
|
68
68
|
|
69
|
-
#
|
69
|
+
# Tax Identification Number (TIN) type. Available values: - EIN: Employer Identification Number - SSN: Social Security Number - ITIN: Individual Taxpayer Identification Number - ATIN: Adoption Taxpayer Identification Number
|
70
70
|
attr_accessor :tin_type
|
71
71
|
|
72
72
|
# Recipient second name
|
@@ -102,16 +102,16 @@ module AvalaraSdk::A1099::V2
|
|
102
102
|
# Two-letter IRS country code (e.g., 'US', 'CA'), as defined at https://www.irs.gov/e-file-providers/country-codes.
|
103
103
|
attr_accessor :country_code
|
104
104
|
|
105
|
-
# Date when federal e-filing should be scheduled
|
105
|
+
# Date when federal e-filing should be scheduled. If set between current date and beginning of blackout period, scheduled to that date. If in the past or blackout period, scheduled to next available date. For blackout period information, see https://www.track1099.com/info/IRS_info. Set to null to leave unscheduled.
|
106
106
|
attr_accessor :federal_efile_date
|
107
107
|
|
108
108
|
# Boolean indicating that postal mailing to the recipient should be scheduled for this form
|
109
109
|
attr_accessor :postal_mail
|
110
110
|
|
111
|
-
# Date when state e-filing should be scheduled
|
111
|
+
# Date when state e-filing should be scheduled. Must be on or after federalEfileDate. If set between current date and beginning of blackout period, scheduled to that date. If in the past or blackout period, scheduled to next available date. For blackout period information, see https://www.track1099.com/info/IRS_info. Set to null to leave unscheduled.
|
112
112
|
attr_accessor :state_efile_date
|
113
113
|
|
114
|
-
# Date when recipient e-delivery should be scheduled
|
114
|
+
# Date when recipient e-delivery should be scheduled. If set between current date and beginning of blackout period, scheduled to that date. If in the past or blackout period, scheduled to next available date. For blackout period information, see https://www.track1099.com/info/IRS_info. Set to null to leave unscheduled.
|
115
115
|
attr_accessor :recipient_edelivery_date
|
116
116
|
|
117
117
|
# Boolean indicating that TIN Matching should be scheduled for this form
|
@@ -129,22 +129,22 @@ module AvalaraSdk::A1099::V2
|
|
129
129
|
# Second TIN notice
|
130
130
|
attr_accessor :second_tin_notice
|
131
131
|
|
132
|
-
# Federal e-file status
|
132
|
+
# Federal e-file status. Available values: - unscheduled: Form has not been scheduled for federal e-filing - scheduled: Form is scheduled for federal e-filing - airlock: Form is in process of being uploaded to the IRS (forms exist in this state for a very short period and cannot be updated while in this state) - sent: Form has been sent to the IRS - accepted: Form was accepted by the IRS - corrected_scheduled: Correction is scheduled to be sent - corrected_airlock: Correction is in process of being uploaded to the IRS (forms exist in this state for a very short period and cannot be updated while in this state) - corrected: A correction has been sent to the IRS - corrected_accepted: Correction was accepted by the IRS - rejected: Form was rejected by the IRS - corrected_rejected: Correction was rejected by the IRS - held: Form is held and will not be submitted to IRS (used for certain forms submitted only to states)
|
133
133
|
attr_accessor :federal_efile_status
|
134
134
|
|
135
|
-
# State e-file status
|
135
|
+
# State e-file status. Available values: - unscheduled: Form has not been scheduled for state e-filing - scheduled: Form is scheduled for state e-filing - airlocked: Form is in process of being uploaded to the state - sent: Form has been sent to the state - rejected: Form was rejected by the state - accepted: Form was accepted by the state - corrected_scheduled: Correction is scheduled to be sent - corrected_airlocked: Correction is in process of being uploaded to the state - corrected_sent: Correction has been sent to the state - corrected_rejected: Correction was rejected by the state - corrected_accepted: Correction was accepted by the state
|
136
136
|
attr_accessor :state_efile_status
|
137
137
|
|
138
|
-
# Postal mail to recipient status
|
138
|
+
# Postal mail to recipient status. Available values: - unscheduled: Postal mail has not been scheduled - pending: Postal mail is pending to be sent - sent: Postal mail has been sent - delivered: Postal mail has been delivered
|
139
139
|
attr_accessor :postal_mail_status
|
140
140
|
|
141
|
-
# TIN Match status
|
141
|
+
# TIN Match status. Available values: - none: TIN matching has not been performed - pending: TIN matching request is pending - matched: Name/TIN combination matches IRS records - unknown: TIN is missing, invalid, or request contains errors - rejected: Name/TIN combination does not match IRS records or TIN not currently issued
|
142
142
|
attr_accessor :tin_match_status
|
143
143
|
|
144
|
-
# Address verification status
|
144
|
+
# Address verification status. Available values: - unknown: Address verification has not been checked - pending: Address verification is in progress - failed: Address verification failed - incomplete: Address verification is incomplete - unchanged: User declined address changes - verified: Address has been verified and accepted
|
145
145
|
attr_accessor :address_verification_status
|
146
146
|
|
147
|
-
# EDelivery status
|
147
|
+
# EDelivery status. Available values: - unscheduled: E-delivery has not been scheduled - scheduled: E-delivery is scheduled to be sent - sent: E-delivery has been sent to recipient - bounced: E-delivery bounced back (invalid email) - refused: E-delivery was refused by recipient - bad_verify: E-delivery failed verification - accepted: E-delivery was accepted by recipient - bad_verify_limit: E-delivery failed verification limit reached - second_delivery: Second e-delivery attempt - undelivered: E-delivery is undelivered (temporary state allowing resend)
|
148
148
|
attr_accessor :e_delivery_status
|
149
149
|
|
150
150
|
# Validation errors
|
@@ -329,6 +329,7 @@ module AvalaraSdk::A1099::V2
|
|
329
329
|
:'no_tin',
|
330
330
|
:'address_verification',
|
331
331
|
:'state_and_local_withholding',
|
332
|
+
:'second_tin_notice',
|
332
333
|
:'federal_efile_status',
|
333
334
|
:'state_efile_status',
|
334
335
|
:'postal_mail_status',
|
@@ -604,9 +605,9 @@ module AvalaraSdk::A1099::V2
|
|
604
605
|
return false unless plan_start_month_validator.valid?(@plan_start_month)
|
605
606
|
return false if @offer_and_coverages.nil?
|
606
607
|
return false if @type.nil?
|
607
|
-
type_validator = EnumAttributeValidator.new('String', ["
|
608
|
+
type_validator = EnumAttributeValidator.new('String', ["Form1099Nec", "Form1099Misc", "Form1099Div", "Form1099R", "Form1099K", "Form1095B", "Form1042S", "Form1095C", "Form1099Int"])
|
608
609
|
return false unless type_validator.valid?(@type)
|
609
|
-
tin_type_validator = EnumAttributeValidator.new('String', ["
|
610
|
+
tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
|
610
611
|
return false unless tin_type_validator.valid?(@tin_type)
|
611
612
|
true
|
612
613
|
end
|
@@ -621,30 +622,10 @@ module AvalaraSdk::A1099::V2
|
|
621
622
|
@plan_start_month = plan_start_month
|
622
623
|
end
|
623
624
|
|
624
|
-
# Custom attribute writer method with validation
|
625
|
-
# @param [Object] offer_and_coverages Value to be assigned
|
626
|
-
def offer_and_coverages=(offer_and_coverages)
|
627
|
-
if offer_and_coverages.nil?
|
628
|
-
fail ArgumentError, 'offer_and_coverages cannot be nil'
|
629
|
-
end
|
630
|
-
|
631
|
-
@offer_and_coverages = offer_and_coverages
|
632
|
-
end
|
633
|
-
|
634
|
-
# Custom attribute writer method with validation
|
635
|
-
# @param [Object] covered_individuals Value to be assigned
|
636
|
-
def covered_individuals=(covered_individuals)
|
637
|
-
if covered_individuals.nil?
|
638
|
-
fail ArgumentError, 'covered_individuals cannot be nil'
|
639
|
-
end
|
640
|
-
|
641
|
-
@covered_individuals = covered_individuals
|
642
|
-
end
|
643
|
-
|
644
625
|
# Custom attribute writer method checking allowed values (enum).
|
645
626
|
# @param [Object] type Object to be assigned
|
646
627
|
def type=(type)
|
647
|
-
validator = EnumAttributeValidator.new('String', ["
|
628
|
+
validator = EnumAttributeValidator.new('String', ["Form1099Nec", "Form1099Misc", "Form1099Div", "Form1099R", "Form1099K", "Form1095B", "Form1042S", "Form1095C", "Form1099Int"])
|
648
629
|
unless validator.valid?(type)
|
649
630
|
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
650
631
|
end
|
@@ -654,25 +635,13 @@ module AvalaraSdk::A1099::V2
|
|
654
635
|
# Custom attribute writer method checking allowed values (enum).
|
655
636
|
# @param [Object] tin_type Object to be assigned
|
656
637
|
def tin_type=(tin_type)
|
657
|
-
validator = EnumAttributeValidator.new('String', ["
|
638
|
+
validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
|
658
639
|
unless validator.valid?(tin_type)
|
659
640
|
fail ArgumentError, "invalid value for \"tin_type\", must be one of #{validator.allowable_values}."
|
660
641
|
end
|
661
642
|
@tin_type = tin_type
|
662
643
|
end
|
663
644
|
|
664
|
-
# Custom attribute writer method with validation
|
665
|
-
# @param [Object] state_efile_status Value to be assigned
|
666
|
-
def state_efile_status=(state_efile_status)
|
667
|
-
@state_efile_status = state_efile_status
|
668
|
-
end
|
669
|
-
|
670
|
-
# Custom attribute writer method with validation
|
671
|
-
# @param [Object] validation_errors Value to be assigned
|
672
|
-
def validation_errors=(validation_errors)
|
673
|
-
@validation_errors = validation_errors
|
674
|
-
end
|
675
|
-
|
676
645
|
# Checks equality by comparing each attribute.
|
677
646
|
# @param [Object] Object to be compared
|
678
647
|
def ==(o)
|
@@ -11,7 +11,7 @@ require 'time'
|
|
11
11
|
|
12
12
|
module AvalaraSdk::A1099::V2
|
13
13
|
class Form1099Base
|
14
|
-
# Form type
|
14
|
+
# Form type.
|
15
15
|
attr_accessor :type
|
16
16
|
|
17
17
|
# Form ID. Unique identifier set when the record is created.
|
@@ -20,13 +20,13 @@ module AvalaraSdk::A1099::V2
|
|
20
20
|
# Issuer ID - only required when creating forms
|
21
21
|
attr_accessor :issuer_id
|
22
22
|
|
23
|
-
# Issuer Reference ID - only required when creating forms
|
23
|
+
# Issuer Reference ID - only required when creating forms via $bulk-upsert
|
24
24
|
attr_accessor :issuer_reference_id
|
25
25
|
|
26
26
|
# Issuer TIN - readonly
|
27
27
|
attr_accessor :issuer_tin
|
28
28
|
|
29
|
-
# Tax Year - only required when creating forms
|
29
|
+
# Tax Year - only required when creating forms via $bulk-upsert
|
30
30
|
attr_accessor :tax_year
|
31
31
|
|
32
32
|
# Internal reference ID. Never shown to any agency or recipient.
|
@@ -38,7 +38,7 @@ module AvalaraSdk::A1099::V2
|
|
38
38
|
# Recipient name
|
39
39
|
attr_accessor :recipient_name
|
40
40
|
|
41
|
-
#
|
41
|
+
# Tax Identification Number (TIN) type. Available values: - EIN: Employer Identification Number - SSN: Social Security Number - ITIN: Individual Taxpayer Identification Number - ATIN: Adoption Taxpayer Identification Number
|
42
42
|
attr_accessor :tin_type
|
43
43
|
|
44
44
|
# Recipient second name
|
@@ -74,16 +74,16 @@ module AvalaraSdk::A1099::V2
|
|
74
74
|
# Two-letter IRS country code (e.g., 'US', 'CA'), as defined at https://www.irs.gov/e-file-providers/country-codes.
|
75
75
|
attr_accessor :country_code
|
76
76
|
|
77
|
-
# Date when federal e-filing should be scheduled
|
77
|
+
# Date when federal e-filing should be scheduled. If set between current date and beginning of blackout period, scheduled to that date. If in the past or blackout period, scheduled to next available date. For blackout period information, see https://www.track1099.com/info/IRS_info. Set to null to leave unscheduled.
|
78
78
|
attr_accessor :federal_efile_date
|
79
79
|
|
80
80
|
# Boolean indicating that postal mailing to the recipient should be scheduled for this form
|
81
81
|
attr_accessor :postal_mail
|
82
82
|
|
83
|
-
# Date when state e-filing should be scheduled
|
83
|
+
# Date when state e-filing should be scheduled. Must be on or after federalEfileDate. If set between current date and beginning of blackout period, scheduled to that date. If in the past or blackout period, scheduled to next available date. For blackout period information, see https://www.track1099.com/info/IRS_info. Set to null to leave unscheduled.
|
84
84
|
attr_accessor :state_efile_date
|
85
85
|
|
86
|
-
# Date when recipient e-delivery should be scheduled
|
86
|
+
# Date when recipient e-delivery should be scheduled. If set between current date and beginning of blackout period, scheduled to that date. If in the past or blackout period, scheduled to next available date. For blackout period information, see https://www.track1099.com/info/IRS_info. Set to null to leave unscheduled.
|
87
87
|
attr_accessor :recipient_edelivery_date
|
88
88
|
|
89
89
|
# Boolean indicating that TIN Matching should be scheduled for this form
|
@@ -101,22 +101,22 @@ module AvalaraSdk::A1099::V2
|
|
101
101
|
# Second TIN notice
|
102
102
|
attr_accessor :second_tin_notice
|
103
103
|
|
104
|
-
# Federal e-file status
|
104
|
+
# Federal e-file status. Available values: - unscheduled: Form has not been scheduled for federal e-filing - scheduled: Form is scheduled for federal e-filing - airlock: Form is in process of being uploaded to the IRS (forms exist in this state for a very short period and cannot be updated while in this state) - sent: Form has been sent to the IRS - accepted: Form was accepted by the IRS - corrected_scheduled: Correction is scheduled to be sent - corrected_airlock: Correction is in process of being uploaded to the IRS (forms exist in this state for a very short period and cannot be updated while in this state) - corrected: A correction has been sent to the IRS - corrected_accepted: Correction was accepted by the IRS - rejected: Form was rejected by the IRS - corrected_rejected: Correction was rejected by the IRS - held: Form is held and will not be submitted to IRS (used for certain forms submitted only to states)
|
105
105
|
attr_accessor :federal_efile_status
|
106
106
|
|
107
|
-
# State e-file status
|
107
|
+
# State e-file status. Available values: - unscheduled: Form has not been scheduled for state e-filing - scheduled: Form is scheduled for state e-filing - airlocked: Form is in process of being uploaded to the state - sent: Form has been sent to the state - rejected: Form was rejected by the state - accepted: Form was accepted by the state - corrected_scheduled: Correction is scheduled to be sent - corrected_airlocked: Correction is in process of being uploaded to the state - corrected_sent: Correction has been sent to the state - corrected_rejected: Correction was rejected by the state - corrected_accepted: Correction was accepted by the state
|
108
108
|
attr_accessor :state_efile_status
|
109
109
|
|
110
|
-
# Postal mail to recipient status
|
110
|
+
# Postal mail to recipient status. Available values: - unscheduled: Postal mail has not been scheduled - pending: Postal mail is pending to be sent - sent: Postal mail has been sent - delivered: Postal mail has been delivered
|
111
111
|
attr_accessor :postal_mail_status
|
112
112
|
|
113
|
-
# TIN Match status
|
113
|
+
# TIN Match status. Available values: - none: TIN matching has not been performed - pending: TIN matching request is pending - matched: Name/TIN combination matches IRS records - unknown: TIN is missing, invalid, or request contains errors - rejected: Name/TIN combination does not match IRS records or TIN not currently issued
|
114
114
|
attr_accessor :tin_match_status
|
115
115
|
|
116
|
-
# Address verification status
|
116
|
+
# Address verification status. Available values: - unknown: Address verification has not been checked - pending: Address verification is in progress - failed: Address verification failed - incomplete: Address verification is incomplete - unchanged: User declined address changes - verified: Address has been verified and accepted
|
117
117
|
attr_accessor :address_verification_status
|
118
118
|
|
119
|
-
# EDelivery status
|
119
|
+
# EDelivery status. Available values: - unscheduled: E-delivery has not been scheduled - scheduled: E-delivery is scheduled to be sent - sent: E-delivery has been sent to recipient - bounced: E-delivery bounced back (invalid email) - refused: E-delivery was refused by recipient - bad_verify: E-delivery failed verification - accepted: E-delivery was accepted by recipient - bad_verify_limit: E-delivery failed verification limit reached - second_delivery: Second e-delivery attempt - undelivered: E-delivery is undelivered (temporary state allowing resend)
|
120
120
|
attr_accessor :e_delivery_status
|
121
121
|
|
122
122
|
# Validation errors
|
@@ -276,6 +276,7 @@ module AvalaraSdk::A1099::V2
|
|
276
276
|
:'no_tin',
|
277
277
|
:'address_verification',
|
278
278
|
:'state_and_local_withholding',
|
279
|
+
:'second_tin_notice',
|
279
280
|
:'federal_efile_status',
|
280
281
|
:'state_efile_status',
|
281
282
|
:'postal_mail_status',
|
@@ -489,9 +490,9 @@ module AvalaraSdk::A1099::V2
|
|
489
490
|
def valid?
|
490
491
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
491
492
|
return false if @type.nil?
|
492
|
-
type_validator = EnumAttributeValidator.new('String', ["
|
493
|
+
type_validator = EnumAttributeValidator.new('String', ["Form1099Nec", "Form1099Misc", "Form1099Div", "Form1099R", "Form1099K", "Form1095B", "Form1042S", "Form1095C", "Form1099Int"])
|
493
494
|
return false unless type_validator.valid?(@type)
|
494
|
-
tin_type_validator = EnumAttributeValidator.new('String', ["
|
495
|
+
tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
|
495
496
|
return false unless tin_type_validator.valid?(@tin_type)
|
496
497
|
true
|
497
498
|
end
|
@@ -499,7 +500,7 @@ module AvalaraSdk::A1099::V2
|
|
499
500
|
# Custom attribute writer method checking allowed values (enum).
|
500
501
|
# @param [Object] type Object to be assigned
|
501
502
|
def type=(type)
|
502
|
-
validator = EnumAttributeValidator.new('String', ["
|
503
|
+
validator = EnumAttributeValidator.new('String', ["Form1099Nec", "Form1099Misc", "Form1099Div", "Form1099R", "Form1099K", "Form1095B", "Form1042S", "Form1095C", "Form1099Int"])
|
503
504
|
unless validator.valid?(type)
|
504
505
|
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
505
506
|
end
|
@@ -509,25 +510,13 @@ module AvalaraSdk::A1099::V2
|
|
509
510
|
# Custom attribute writer method checking allowed values (enum).
|
510
511
|
# @param [Object] tin_type Object to be assigned
|
511
512
|
def tin_type=(tin_type)
|
512
|
-
validator = EnumAttributeValidator.new('String', ["
|
513
|
+
validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
|
513
514
|
unless validator.valid?(tin_type)
|
514
515
|
fail ArgumentError, "invalid value for \"tin_type\", must be one of #{validator.allowable_values}."
|
515
516
|
end
|
516
517
|
@tin_type = tin_type
|
517
518
|
end
|
518
519
|
|
519
|
-
# Custom attribute writer method with validation
|
520
|
-
# @param [Object] state_efile_status Value to be assigned
|
521
|
-
def state_efile_status=(state_efile_status)
|
522
|
-
@state_efile_status = state_efile_status
|
523
|
-
end
|
524
|
-
|
525
|
-
# Custom attribute writer method with validation
|
526
|
-
# @param [Object] validation_errors Value to be assigned
|
527
|
-
def validation_errors=(validation_errors)
|
528
|
-
@validation_errors = validation_errors
|
529
|
-
end
|
530
|
-
|
531
520
|
# Checks equality by comparing each attribute.
|
532
521
|
# @param [Object] Object to be compared
|
533
522
|
def ==(o)
|
@@ -10,7 +10,7 @@ require 'date'
|
|
10
10
|
require 'time'
|
11
11
|
|
12
12
|
module AvalaraSdk::A1099::V2
|
13
|
-
# Form 1099-DIV: Dividends and Distributions
|
13
|
+
# Form 1099-DIV: Dividends and Distributions *At least one of the following dividend or distribution amounts must be provided:* Total ordinary dividends, Total capital gain distributions, Nondividend distributions, Cash liquidation distributions, Noncash liquidation distributions, or Exempt-interest dividends.
|
14
14
|
class Form1099Div
|
15
15
|
# Total ordinary dividends
|
16
16
|
attr_accessor :total_ordinary_dividends
|
@@ -66,10 +66,10 @@ module AvalaraSdk::A1099::V2
|
|
66
66
|
# Specified private activity bond interest dividends
|
67
67
|
attr_accessor :specified_private_activity_bond_interest_dividends
|
68
68
|
|
69
|
-
# FATCA filing requirement
|
69
|
+
# FATCA filing requirement.
|
70
70
|
attr_accessor :fatca_filing_requirement
|
71
71
|
|
72
|
-
# Form type
|
72
|
+
# Form type.
|
73
73
|
attr_accessor :type
|
74
74
|
|
75
75
|
# Form ID. Unique identifier set when the record is created.
|
@@ -78,13 +78,13 @@ module AvalaraSdk::A1099::V2
|
|
78
78
|
# Issuer ID - only required when creating forms
|
79
79
|
attr_accessor :issuer_id
|
80
80
|
|
81
|
-
# Issuer Reference ID - only required when creating forms
|
81
|
+
# Issuer Reference ID - only required when creating forms via $bulk-upsert
|
82
82
|
attr_accessor :issuer_reference_id
|
83
83
|
|
84
84
|
# Issuer TIN - readonly
|
85
85
|
attr_accessor :issuer_tin
|
86
86
|
|
87
|
-
# Tax Year - only required when creating forms
|
87
|
+
# Tax Year - only required when creating forms via $bulk-upsert
|
88
88
|
attr_accessor :tax_year
|
89
89
|
|
90
90
|
# Internal reference ID. Never shown to any agency or recipient.
|
@@ -96,7 +96,7 @@ module AvalaraSdk::A1099::V2
|
|
96
96
|
# Recipient name
|
97
97
|
attr_accessor :recipient_name
|
98
98
|
|
99
|
-
#
|
99
|
+
# Tax Identification Number (TIN) type. Available values: - EIN: Employer Identification Number - SSN: Social Security Number - ITIN: Individual Taxpayer Identification Number - ATIN: Adoption Taxpayer Identification Number
|
100
100
|
attr_accessor :tin_type
|
101
101
|
|
102
102
|
# Recipient second name
|
@@ -132,16 +132,16 @@ module AvalaraSdk::A1099::V2
|
|
132
132
|
# Two-letter IRS country code (e.g., 'US', 'CA'), as defined at https://www.irs.gov/e-file-providers/country-codes.
|
133
133
|
attr_accessor :country_code
|
134
134
|
|
135
|
-
# Date when federal e-filing should be scheduled
|
135
|
+
# Date when federal e-filing should be scheduled. If set between current date and beginning of blackout period, scheduled to that date. If in the past or blackout period, scheduled to next available date. For blackout period information, see https://www.track1099.com/info/IRS_info. Set to null to leave unscheduled.
|
136
136
|
attr_accessor :federal_efile_date
|
137
137
|
|
138
138
|
# Boolean indicating that postal mailing to the recipient should be scheduled for this form
|
139
139
|
attr_accessor :postal_mail
|
140
140
|
|
141
|
-
# Date when state e-filing should be scheduled
|
141
|
+
# Date when state e-filing should be scheduled. Must be on or after federalEfileDate. If set between current date and beginning of blackout period, scheduled to that date. If in the past or blackout period, scheduled to next available date. For blackout period information, see https://www.track1099.com/info/IRS_info. Set to null to leave unscheduled.
|
142
142
|
attr_accessor :state_efile_date
|
143
143
|
|
144
|
-
# Date when recipient e-delivery should be scheduled
|
144
|
+
# Date when recipient e-delivery should be scheduled. If set between current date and beginning of blackout period, scheduled to that date. If in the past or blackout period, scheduled to next available date. For blackout period information, see https://www.track1099.com/info/IRS_info. Set to null to leave unscheduled.
|
145
145
|
attr_accessor :recipient_edelivery_date
|
146
146
|
|
147
147
|
# Boolean indicating that TIN Matching should be scheduled for this form
|
@@ -159,22 +159,22 @@ module AvalaraSdk::A1099::V2
|
|
159
159
|
# Second TIN notice
|
160
160
|
attr_accessor :second_tin_notice
|
161
161
|
|
162
|
-
# Federal e-file status
|
162
|
+
# Federal e-file status. Available values: - unscheduled: Form has not been scheduled for federal e-filing - scheduled: Form is scheduled for federal e-filing - airlock: Form is in process of being uploaded to the IRS (forms exist in this state for a very short period and cannot be updated while in this state) - sent: Form has been sent to the IRS - accepted: Form was accepted by the IRS - corrected_scheduled: Correction is scheduled to be sent - corrected_airlock: Correction is in process of being uploaded to the IRS (forms exist in this state for a very short period and cannot be updated while in this state) - corrected: A correction has been sent to the IRS - corrected_accepted: Correction was accepted by the IRS - rejected: Form was rejected by the IRS - corrected_rejected: Correction was rejected by the IRS - held: Form is held and will not be submitted to IRS (used for certain forms submitted only to states)
|
163
163
|
attr_accessor :federal_efile_status
|
164
164
|
|
165
|
-
# State e-file status
|
165
|
+
# State e-file status. Available values: - unscheduled: Form has not been scheduled for state e-filing - scheduled: Form is scheduled for state e-filing - airlocked: Form is in process of being uploaded to the state - sent: Form has been sent to the state - rejected: Form was rejected by the state - accepted: Form was accepted by the state - corrected_scheduled: Correction is scheduled to be sent - corrected_airlocked: Correction is in process of being uploaded to the state - corrected_sent: Correction has been sent to the state - corrected_rejected: Correction was rejected by the state - corrected_accepted: Correction was accepted by the state
|
166
166
|
attr_accessor :state_efile_status
|
167
167
|
|
168
|
-
# Postal mail to recipient status
|
168
|
+
# Postal mail to recipient status. Available values: - unscheduled: Postal mail has not been scheduled - pending: Postal mail is pending to be sent - sent: Postal mail has been sent - delivered: Postal mail has been delivered
|
169
169
|
attr_accessor :postal_mail_status
|
170
170
|
|
171
|
-
# TIN Match status
|
171
|
+
# TIN Match status. Available values: - none: TIN matching has not been performed - pending: TIN matching request is pending - matched: Name/TIN combination matches IRS records - unknown: TIN is missing, invalid, or request contains errors - rejected: Name/TIN combination does not match IRS records or TIN not currently issued
|
172
172
|
attr_accessor :tin_match_status
|
173
173
|
|
174
|
-
# Address verification status
|
174
|
+
# Address verification status. Available values: - unknown: Address verification has not been checked - pending: Address verification is in progress - failed: Address verification failed - incomplete: Address verification is incomplete - unchanged: User declined address changes - verified: Address has been verified and accepted
|
175
175
|
attr_accessor :address_verification_status
|
176
176
|
|
177
|
-
# EDelivery status
|
177
|
+
# EDelivery status. Available values: - unscheduled: E-delivery has not been scheduled - scheduled: E-delivery is scheduled to be sent - sent: E-delivery has been sent to recipient - bounced: E-delivery bounced back (invalid email) - refused: E-delivery was refused by recipient - bad_verify: E-delivery failed verification - accepted: E-delivery was accepted by recipient - bad_verify_limit: E-delivery failed verification limit reached - second_delivery: Second e-delivery attempt - undelivered: E-delivery is undelivered (temporary state allowing resend)
|
178
178
|
attr_accessor :e_delivery_status
|
179
179
|
|
180
180
|
# Validation errors
|
@@ -391,6 +391,7 @@ module AvalaraSdk::A1099::V2
|
|
391
391
|
:'no_tin',
|
392
392
|
:'address_verification',
|
393
393
|
:'state_and_local_withholding',
|
394
|
+
:'second_tin_notice',
|
394
395
|
:'federal_efile_status',
|
395
396
|
:'state_efile_status',
|
396
397
|
:'postal_mail_status',
|
@@ -687,9 +688,9 @@ module AvalaraSdk::A1099::V2
|
|
687
688
|
def valid?
|
688
689
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
689
690
|
return false if @type.nil?
|
690
|
-
type_validator = EnumAttributeValidator.new('String', ["
|
691
|
+
type_validator = EnumAttributeValidator.new('String', ["Form1099Nec", "Form1099Misc", "Form1099Div", "Form1099R", "Form1099K", "Form1095B", "Form1042S", "Form1095C", "Form1099Int"])
|
691
692
|
return false unless type_validator.valid?(@type)
|
692
|
-
tin_type_validator = EnumAttributeValidator.new('String', ["
|
693
|
+
tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
|
693
694
|
return false unless tin_type_validator.valid?(@tin_type)
|
694
695
|
true
|
695
696
|
end
|
@@ -697,7 +698,7 @@ module AvalaraSdk::A1099::V2
|
|
697
698
|
# Custom attribute writer method checking allowed values (enum).
|
698
699
|
# @param [Object] type Object to be assigned
|
699
700
|
def type=(type)
|
700
|
-
validator = EnumAttributeValidator.new('String', ["
|
701
|
+
validator = EnumAttributeValidator.new('String', ["Form1099Nec", "Form1099Misc", "Form1099Div", "Form1099R", "Form1099K", "Form1095B", "Form1042S", "Form1095C", "Form1099Int"])
|
701
702
|
unless validator.valid?(type)
|
702
703
|
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
703
704
|
end
|
@@ -707,25 +708,13 @@ module AvalaraSdk::A1099::V2
|
|
707
708
|
# Custom attribute writer method checking allowed values (enum).
|
708
709
|
# @param [Object] tin_type Object to be assigned
|
709
710
|
def tin_type=(tin_type)
|
710
|
-
validator = EnumAttributeValidator.new('String', ["
|
711
|
+
validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
|
711
712
|
unless validator.valid?(tin_type)
|
712
713
|
fail ArgumentError, "invalid value for \"tin_type\", must be one of #{validator.allowable_values}."
|
713
714
|
end
|
714
715
|
@tin_type = tin_type
|
715
716
|
end
|
716
717
|
|
717
|
-
# Custom attribute writer method with validation
|
718
|
-
# @param [Object] state_efile_status Value to be assigned
|
719
|
-
def state_efile_status=(state_efile_status)
|
720
|
-
@state_efile_status = state_efile_status
|
721
|
-
end
|
722
|
-
|
723
|
-
# Custom attribute writer method with validation
|
724
|
-
# @param [Object] validation_errors Value to be assigned
|
725
|
-
def validation_errors=(validation_errors)
|
726
|
-
@validation_errors = validation_errors
|
727
|
-
end
|
728
|
-
|
729
718
|
# Checks equality by comparing each attribute.
|
730
719
|
# @param [Object] Object to be compared
|
731
720
|
def ==(o)
|