avalara_sdk 25.8.3 → 25.9.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.
Files changed (110) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +4 -14
  4. data/docs/A1099/V2/CompaniesW9Api.md +9 -9
  5. data/docs/A1099/V2/CompanyBase.md +50 -0
  6. data/docs/A1099/V2/CompanyRequest.md +50 -0
  7. data/docs/A1099/V2/Form1042S.md +16 -16
  8. data/docs/A1099/V2/Form1095B.md +15 -15
  9. data/docs/A1099/V2/Form1095C.md +14 -14
  10. data/docs/A1099/V2/Form1099Base.md +14 -14
  11. data/docs/A1099/V2/Form1099Div.md +15 -15
  12. data/docs/A1099/V2/Form1099Int.md +16 -16
  13. data/docs/A1099/V2/Form1099K.md +20 -20
  14. data/docs/A1099/V2/Form1099ListRequest.md +1 -1
  15. data/docs/A1099/V2/Form1099Misc.md +15 -15
  16. data/docs/A1099/V2/Form1099Nec.md +17 -17
  17. data/docs/A1099/V2/Form1099R.md +17 -17
  18. data/docs/A1099/V2/Forms1099Api.md +12 -12
  19. data/docs/A1099/V2/FormsW9Api.md +17 -17
  20. data/docs/A1099/V2/IntermediaryOrFlowThrough.md +2 -2
  21. data/docs/A1099/V2/IssuerBase.md +46 -0
  22. data/docs/A1099/V2/IssuerRequest.md +46 -0
  23. data/docs/A1099/V2/Issuers1099Api.md +9 -9
  24. data/docs/A1099/V2/JobResponse.md +1 -1
  25. data/docs/A1099/V2/JobsApi.md +1 -1
  26. data/docs/A1099/V2/TinMatchStatusResponse.md +1 -1
  27. data/docs/A1099/V2/W4FormMinimalRequest.md +2 -2
  28. data/docs/A1099/V2/W4FormRequest.md +11 -11
  29. data/docs/A1099/V2/W4FormResponse.md +48 -20
  30. data/docs/A1099/V2/W8BenEFormMinimalRequest.md +2 -2
  31. data/docs/A1099/V2/W8BenEFormRequest.md +10 -10
  32. data/docs/A1099/V2/W8BenEFormResponse.md +96 -68
  33. data/docs/A1099/V2/W8BenFormMinimalRequest.md +2 -2
  34. data/docs/A1099/V2/W8BenFormRequest.md +6 -6
  35. data/docs/A1099/V2/W8BenFormResponse.md +55 -27
  36. data/docs/A1099/V2/W8ImyFormMinimalRequest.md +2 -2
  37. data/docs/A1099/V2/W8ImyFormRequest.md +10 -10
  38. data/docs/A1099/V2/W8ImyFormResponse.md +118 -90
  39. data/docs/A1099/V2/W9FormBaseMinimalRequest.md +2 -2
  40. data/docs/A1099/V2/W9FormBaseRequest.md +2 -2
  41. data/docs/A1099/V2/W9FormBaseResponse.md +3 -3
  42. data/docs/A1099/V2/W9FormMinimalRequest.md +2 -2
  43. data/docs/A1099/V2/W9FormRequest.md +10 -10
  44. data/docs/A1099/V2/W9FormResponse.md +44 -16
  45. data/lib/avalara_sdk/api/A1099/V2/companies_w9_api.rb +21 -21
  46. data/lib/avalara_sdk/api/A1099/V2/forms1099_api.rb +7 -7
  47. data/lib/avalara_sdk/api/A1099/V2/forms_w9_api.rb +16 -16
  48. data/lib/avalara_sdk/api/A1099/V2/issuers1099_api.rb +21 -21
  49. data/lib/avalara_sdk/api/A1099/V2/jobs_api.rb +1 -1
  50. data/lib/avalara_sdk/api/EInvoicing/V1/data_input_fields_api.rb +1 -1
  51. data/lib/avalara_sdk/api/EInvoicing/V1/documents_api.rb +1 -1
  52. data/lib/avalara_sdk/api/EInvoicing/V1/interop_api.rb +1 -1
  53. data/lib/avalara_sdk/api/EInvoicing/V1/mandates_api.rb +1 -1
  54. data/lib/avalara_sdk/api/EInvoicing/V1/subscriptions_api.rb +1 -1
  55. data/lib/avalara_sdk/api/EInvoicing/V1/tax_identifiers_api.rb +1 -1
  56. data/lib/avalara_sdk/api/EInvoicing/V1/trading_partners_api.rb +1 -1
  57. data/lib/avalara_sdk/api_client.rb +10 -2
  58. data/lib/avalara_sdk/models/A1099/V2/company_base.rb +404 -0
  59. data/lib/avalara_sdk/models/A1099/V2/company_request.rb +411 -0
  60. data/lib/avalara_sdk/models/A1099/V2/company_response.rb +1 -1
  61. data/lib/avalara_sdk/models/A1099/V2/error_response.rb +0 -6
  62. data/lib/avalara_sdk/models/A1099/V2/form1042_s.rb +20 -30
  63. data/lib/avalara_sdk/models/A1099/V2/form1095_b.rb +19 -40
  64. data/lib/avalara_sdk/models/A1099/V2/form1095_c.rb +18 -49
  65. data/lib/avalara_sdk/models/A1099/V2/form1099_base.rb +18 -29
  66. data/lib/avalara_sdk/models/A1099/V2/form1099_div.rb +20 -31
  67. data/lib/avalara_sdk/models/A1099/V2/form1099_int.rb +22 -32
  68. data/lib/avalara_sdk/models/A1099/V2/form1099_k.rb +35 -38
  69. data/lib/avalara_sdk/models/A1099/V2/form1099_list_request.rb +2 -12
  70. data/lib/avalara_sdk/models/A1099/V2/form1099_misc.rb +20 -31
  71. data/lib/avalara_sdk/models/A1099/V2/form1099_nec.rb +23 -33
  72. data/lib/avalara_sdk/models/A1099/V2/form1099_r.rb +48 -33
  73. data/lib/avalara_sdk/models/A1099/V2/intermediary_or_flow_through.rb +48 -2
  74. data/lib/avalara_sdk/models/A1099/V2/issuer_base.rb +384 -0
  75. data/lib/avalara_sdk/models/A1099/V2/issuer_request.rb +391 -0
  76. data/lib/avalara_sdk/models/A1099/V2/issuer_response.rb +1 -1
  77. data/lib/avalara_sdk/models/A1099/V2/job_response.rb +0 -6
  78. data/lib/avalara_sdk/models/A1099/V2/validation_error.rb +0 -6
  79. data/lib/avalara_sdk/models/A1099/V2/w4_form_minimal_request.rb +1 -27
  80. data/lib/avalara_sdk/models/A1099/V2/w4_form_request.rb +31 -29
  81. data/lib/avalara_sdk/models/A1099/V2/w4_form_response.rb +191 -15
  82. data/lib/avalara_sdk/models/A1099/V2/w8_ben_e_form_minimal_request.rb +1 -27
  83. data/lib/avalara_sdk/models/A1099/V2/w8_ben_e_form_request.rb +37 -28
  84. data/lib/avalara_sdk/models/A1099/V2/w8_ben_e_form_response.rb +190 -14
  85. data/lib/avalara_sdk/models/A1099/V2/w8_ben_form_minimal_request.rb +1 -27
  86. data/lib/avalara_sdk/models/A1099/V2/w8_ben_form_request.rb +20 -23
  87. data/lib/avalara_sdk/models/A1099/V2/w8_ben_form_response.rb +191 -15
  88. data/lib/avalara_sdk/models/A1099/V2/w8_imy_form_minimal_request.rb +1 -27
  89. data/lib/avalara_sdk/models/A1099/V2/w8_imy_form_request.rb +30 -28
  90. data/lib/avalara_sdk/models/A1099/V2/w8_imy_form_response.rb +191 -15
  91. data/lib/avalara_sdk/models/A1099/V2/w9_form_base_minimal_request.rb +1 -27
  92. data/lib/avalara_sdk/models/A1099/V2/w9_form_base_request.rb +1 -27
  93. data/lib/avalara_sdk/models/A1099/V2/w9_form_base_response.rb +47 -18
  94. data/lib/avalara_sdk/models/A1099/V2/w9_form_minimal_request.rb +1 -27
  95. data/lib/avalara_sdk/models/A1099/V2/w9_form_request.rb +40 -25
  96. data/lib/avalara_sdk/models/A1099/V2/w9_form_response.rb +190 -14
  97. data/lib/avalara_sdk/version.rb +1 -1
  98. data/lib/avalara_sdk.rb +8 -4
  99. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/byebug-11.1.3/gem_make.out +5 -5
  100. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/date-3.4.1/gem_make.out +5 -5
  101. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/debase-0.2.9/gem_make.out +5 -5
  102. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/debug-1.10.0/gem_make.out +5 -5
  103. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/erb-5.0.1/gem_make.out +5 -5
  104. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/io-console-0.8.0/gem_make.out +5 -5
  105. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/json-2.12.2/gem_make.out +5 -5
  106. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/prism-1.4.0/gem_make.out +5 -5
  107. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/psych-5.2.6/gem_make.out +5 -5
  108. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/racc-1.8.1/gem_make.out +5 -5
  109. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/stringio-3.1.7/gem_make.out +5 -5
  110. metadata +10 -2
@@ -10,7 +10,8 @@ require 'date'
10
10
  require 'time'
11
11
 
12
12
  module AvalaraSdk::A1099::V2
13
- class Form1099Int
13
+ # Form 1099-INT: Interest Imcome *At least one of the following amounts must be provided:* Interest Income, Interest on U.S. Savings Bonds and Treasury obligations, or Tax-Exempt Interest.
14
+ class Form1099Int
14
15
  # Interest Income
15
16
  attr_accessor :interest_income
16
17
 
@@ -50,13 +51,13 @@ module AvalaraSdk::A1099::V2
50
51
  # Bond Premium on tax exempt bond
51
52
  attr_accessor :bond_premium_on_tax_exempt_bond
52
53
 
53
- # Tax exempt bond CUSIP no.
54
+ # Tax exempt bond CUSIP no. Enter VARIOUS if the tax-exempt interest is reported in the aggregate for multiple bonds or accounts.
54
55
  attr_accessor :tax_exempt_bond_cusip_number
55
56
 
56
- # FATCA filing requirement
57
+ # FATCA filing requirement.
57
58
  attr_accessor :fatca_filing_requirement
58
59
 
59
- # Form type
60
+ # Form type.
60
61
  attr_accessor :type
61
62
 
62
63
  # Form ID. Unique identifier set when the record is created.
@@ -65,13 +66,13 @@ module AvalaraSdk::A1099::V2
65
66
  # Issuer ID - only required when creating forms
66
67
  attr_accessor :issuer_id
67
68
 
68
- # Issuer Reference ID - only required when creating forms
69
+ # Issuer Reference ID - only required when creating forms via $bulk-upsert
69
70
  attr_accessor :issuer_reference_id
70
71
 
71
72
  # Issuer TIN - readonly
72
73
  attr_accessor :issuer_tin
73
74
 
74
- # Tax Year - only required when creating forms
75
+ # Tax Year - only required when creating forms via $bulk-upsert
75
76
  attr_accessor :tax_year
76
77
 
77
78
  # Internal reference ID. Never shown to any agency or recipient.
@@ -83,7 +84,7 @@ module AvalaraSdk::A1099::V2
83
84
  # Recipient name
84
85
  attr_accessor :recipient_name
85
86
 
86
- # Type of TIN (Tax ID Number)
87
+ # 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
87
88
  attr_accessor :tin_type
88
89
 
89
90
  # Recipient second name
@@ -119,16 +120,16 @@ module AvalaraSdk::A1099::V2
119
120
  # Two-letter IRS country code (e.g., 'US', 'CA'), as defined at https://www.irs.gov/e-file-providers/country-codes.
120
121
  attr_accessor :country_code
121
122
 
122
- # Date when federal e-filing should be scheduled for this form
123
+ # 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.
123
124
  attr_accessor :federal_efile_date
124
125
 
125
126
  # Boolean indicating that postal mailing to the recipient should be scheduled for this form
126
127
  attr_accessor :postal_mail
127
128
 
128
- # Date when state e-filing should be scheduled for this form
129
+ # 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.
129
130
  attr_accessor :state_efile_date
130
131
 
131
- # Date when recipient e-delivery should be scheduled for this form
132
+ # 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.
132
133
  attr_accessor :recipient_edelivery_date
133
134
 
134
135
  # Boolean indicating that TIN Matching should be scheduled for this form
@@ -146,22 +147,22 @@ module AvalaraSdk::A1099::V2
146
147
  # Second TIN notice
147
148
  attr_accessor :second_tin_notice
148
149
 
149
- # Federal e-file status
150
+ # 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)
150
151
  attr_accessor :federal_efile_status
151
152
 
152
- # State e-file status
153
+ # 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
153
154
  attr_accessor :state_efile_status
154
155
 
155
- # Postal mail to recipient status
156
+ # 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
156
157
  attr_accessor :postal_mail_status
157
158
 
158
- # TIN Match status
159
+ # 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
159
160
  attr_accessor :tin_match_status
160
161
 
161
- # Address verification status
162
+ # 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
162
163
  attr_accessor :address_verification_status
163
164
 
164
- # EDelivery status
165
+ # 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)
165
166
  attr_accessor :e_delivery_status
166
167
 
167
168
  # Validation errors
@@ -366,6 +367,7 @@ module AvalaraSdk::A1099::V2
366
367
  :'no_tin',
367
368
  :'address_verification',
368
369
  :'state_and_local_withholding',
370
+ :'second_tin_notice',
369
371
  :'federal_efile_status',
370
372
  :'state_efile_status',
371
373
  :'postal_mail_status',
@@ -646,9 +648,9 @@ module AvalaraSdk::A1099::V2
646
648
  def valid?
647
649
  warn '[DEPRECATED] the `valid?` method is obsolete'
648
650
  return false if @type.nil?
649
- type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C", "1099-INT"])
651
+ type_validator = EnumAttributeValidator.new('String', ["Form1099Nec", "Form1099Misc", "Form1099Div", "Form1099R", "Form1099K", "Form1095B", "Form1042S", "Form1095C", "Form1099Int"])
650
652
  return false unless type_validator.valid?(@type)
651
- tin_type_validator = EnumAttributeValidator.new('String', ["Empty", "EIN", "SSN", "ITIN", "ATIN"])
653
+ tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
652
654
  return false unless tin_type_validator.valid?(@tin_type)
653
655
  true
654
656
  end
@@ -656,7 +658,7 @@ module AvalaraSdk::A1099::V2
656
658
  # Custom attribute writer method checking allowed values (enum).
657
659
  # @param [Object] type Object to be assigned
658
660
  def type=(type)
659
- validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C", "1099-INT"])
661
+ validator = EnumAttributeValidator.new('String', ["Form1099Nec", "Form1099Misc", "Form1099Div", "Form1099R", "Form1099K", "Form1095B", "Form1042S", "Form1095C", "Form1099Int"])
660
662
  unless validator.valid?(type)
661
663
  fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
662
664
  end
@@ -666,25 +668,13 @@ module AvalaraSdk::A1099::V2
666
668
  # Custom attribute writer method checking allowed values (enum).
667
669
  # @param [Object] tin_type Object to be assigned
668
670
  def tin_type=(tin_type)
669
- validator = EnumAttributeValidator.new('String', ["Empty", "EIN", "SSN", "ITIN", "ATIN"])
671
+ validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
670
672
  unless validator.valid?(tin_type)
671
673
  fail ArgumentError, "invalid value for \"tin_type\", must be one of #{validator.allowable_values}."
672
674
  end
673
675
  @tin_type = tin_type
674
676
  end
675
677
 
676
- # Custom attribute writer method with validation
677
- # @param [Object] state_efile_status Value to be assigned
678
- def state_efile_status=(state_efile_status)
679
- @state_efile_status = state_efile_status
680
- end
681
-
682
- # Custom attribute writer method with validation
683
- # @param [Object] validation_errors Value to be assigned
684
- def validation_errors=(validation_errors)
685
- @validation_errors = validation_errors
686
- end
687
-
688
678
  # Checks equality by comparing each attribute.
689
679
  # @param [Object] Object to be compared
690
680
  def ==(o)
@@ -12,22 +12,22 @@ require 'time'
12
12
  module AvalaraSdk::A1099::V2
13
13
  # Form 1099-K: Payment Card and Third Party Network Transactions
14
14
  class Form1099K
15
- # Filer type (PSE or EPF)
15
+ # Filer type for tax reporting purposes. Available values: - PSE: Payment Settlement Entity - EPF: Electronic Payment Facilitator or other third party
16
16
  attr_accessor :filer_type
17
17
 
18
- # Payment type (payment card or third party network)
18
+ # Payment type for transaction classification. Available values: - PaymentCard: Payment card transactions - ThirdPartyNetwork: Third party network transactions
19
19
  attr_accessor :payment_type
20
20
 
21
- # Payment settlement entity name and phone number
21
+ # Payment settlement entity name and phone number, if different from Filer's
22
22
  attr_accessor :payment_settlement_entity_name_phone_number
23
23
 
24
- # Gross amount of payment card/third party network transactions
24
+ # Gross amount of payment card/third party network transactions. This value must equal the total of all monthly payment amounts (January through December).
25
25
  attr_accessor :gross_amount_payment_card
26
26
 
27
27
  # Card not present transactions
28
28
  attr_accessor :card_not_present_transactions
29
29
 
30
- # Merchant category code
30
+ # Merchant category code (4 numbers)
31
31
  attr_accessor :merchant_category_code
32
32
 
33
33
  # Number of payment transactions
@@ -72,7 +72,7 @@ module AvalaraSdk::A1099::V2
72
72
  # December gross payments
73
73
  attr_accessor :december
74
74
 
75
- # Form type
75
+ # Form type.
76
76
  attr_accessor :type
77
77
 
78
78
  # Form ID. Unique identifier set when the record is created.
@@ -81,13 +81,13 @@ module AvalaraSdk::A1099::V2
81
81
  # Issuer ID - only required when creating forms
82
82
  attr_accessor :issuer_id
83
83
 
84
- # Issuer Reference ID - only required when creating forms
84
+ # Issuer Reference ID - only required when creating forms via $bulk-upsert
85
85
  attr_accessor :issuer_reference_id
86
86
 
87
87
  # Issuer TIN - readonly
88
88
  attr_accessor :issuer_tin
89
89
 
90
- # Tax Year - only required when creating forms
90
+ # Tax Year - only required when creating forms via $bulk-upsert
91
91
  attr_accessor :tax_year
92
92
 
93
93
  # Internal reference ID. Never shown to any agency or recipient.
@@ -99,7 +99,7 @@ module AvalaraSdk::A1099::V2
99
99
  # Recipient name
100
100
  attr_accessor :recipient_name
101
101
 
102
- # Type of TIN (Tax ID Number)
102
+ # 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
103
103
  attr_accessor :tin_type
104
104
 
105
105
  # Recipient second name
@@ -135,16 +135,16 @@ module AvalaraSdk::A1099::V2
135
135
  # Two-letter IRS country code (e.g., 'US', 'CA'), as defined at https://www.irs.gov/e-file-providers/country-codes.
136
136
  attr_accessor :country_code
137
137
 
138
- # Date when federal e-filing should be scheduled for this form
138
+ # 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.
139
139
  attr_accessor :federal_efile_date
140
140
 
141
141
  # Boolean indicating that postal mailing to the recipient should be scheduled for this form
142
142
  attr_accessor :postal_mail
143
143
 
144
- # Date when state e-filing should be scheduled for this form
144
+ # 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.
145
145
  attr_accessor :state_efile_date
146
146
 
147
- # Date when recipient e-delivery should be scheduled for this form
147
+ # 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.
148
148
  attr_accessor :recipient_edelivery_date
149
149
 
150
150
  # Boolean indicating that TIN Matching should be scheduled for this form
@@ -162,22 +162,22 @@ module AvalaraSdk::A1099::V2
162
162
  # Second TIN notice
163
163
  attr_accessor :second_tin_notice
164
164
 
165
- # Federal e-file status
165
+ # 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)
166
166
  attr_accessor :federal_efile_status
167
167
 
168
- # State e-file status
168
+ # 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
169
169
  attr_accessor :state_efile_status
170
170
 
171
- # Postal mail to recipient status
171
+ # 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
172
172
  attr_accessor :postal_mail_status
173
173
 
174
- # TIN Match status
174
+ # 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
175
175
  attr_accessor :tin_match_status
176
176
 
177
- # Address verification status
177
+ # 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
178
178
  attr_accessor :address_verification_status
179
179
 
180
- # EDelivery status
180
+ # 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)
181
181
  attr_accessor :e_delivery_status
182
182
 
183
183
  # Validation errors
@@ -397,6 +397,7 @@ module AvalaraSdk::A1099::V2
397
397
  :'no_tin',
398
398
  :'address_verification',
399
399
  :'state_and_local_withholding',
400
+ :'second_tin_notice',
400
401
  :'federal_efile_status',
401
402
  :'state_efile_status',
402
403
  :'postal_mail_status',
@@ -431,10 +432,14 @@ module AvalaraSdk::A1099::V2
431
432
 
432
433
  if attributes.key?(:'filer_type')
433
434
  self.filer_type = attributes[:'filer_type']
435
+ else
436
+ self.filer_type = nil
434
437
  end
435
438
 
436
439
  if attributes.key?(:'payment_type')
437
440
  self.payment_type = attributes[:'payment_type']
441
+ else
442
+ self.payment_type = nil
438
443
  end
439
444
 
440
445
  if attributes.key?(:'payment_settlement_entity_name_phone_number')
@@ -443,6 +448,8 @@ module AvalaraSdk::A1099::V2
443
448
 
444
449
  if attributes.key?(:'gross_amount_payment_card')
445
450
  self.gross_amount_payment_card = attributes[:'gross_amount_payment_card']
451
+ else
452
+ self.gross_amount_payment_card = nil
446
453
  end
447
454
 
448
455
  if attributes.key?(:'card_not_present_transactions')
@@ -455,6 +462,8 @@ module AvalaraSdk::A1099::V2
455
462
 
456
463
  if attributes.key?(:'payment_transaction_number')
457
464
  self.payment_transaction_number = attributes[:'payment_transaction_number']
465
+ else
466
+ self.payment_transaction_number = nil
458
467
  end
459
468
 
460
469
  if attributes.key?(:'federal_income_tax_withheld')
@@ -696,14 +705,14 @@ module AvalaraSdk::A1099::V2
696
705
  # @return true if the model is valid
697
706
  def valid?
698
707
  warn '[DEPRECATED] the `valid?` method is obsolete'
699
- filer_type_validator = EnumAttributeValidator.new('String', ["PSE", "EPF", "Other"])
708
+ filer_type_validator = EnumAttributeValidator.new('String', ["PSE", "EPF"])
700
709
  return false unless filer_type_validator.valid?(@filer_type)
701
- payment_type_validator = EnumAttributeValidator.new('String', ["MerchantPaymentCard", "ThirdPartyNetwork"])
710
+ payment_type_validator = EnumAttributeValidator.new('String', ["PaymentCard", "ThirdPartyNetwork"])
702
711
  return false unless payment_type_validator.valid?(@payment_type)
703
712
  return false if @type.nil?
704
- type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C", "1099-INT"])
713
+ type_validator = EnumAttributeValidator.new('String', ["Form1099Nec", "Form1099Misc", "Form1099Div", "Form1099R", "Form1099K", "Form1095B", "Form1042S", "Form1095C", "Form1099Int"])
705
714
  return false unless type_validator.valid?(@type)
706
- tin_type_validator = EnumAttributeValidator.new('String', ["Empty", "EIN", "SSN", "ITIN", "ATIN"])
715
+ tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
707
716
  return false unless tin_type_validator.valid?(@tin_type)
708
717
  true
709
718
  end
@@ -711,7 +720,7 @@ module AvalaraSdk::A1099::V2
711
720
  # Custom attribute writer method checking allowed values (enum).
712
721
  # @param [Object] filer_type Object to be assigned
713
722
  def filer_type=(filer_type)
714
- validator = EnumAttributeValidator.new('String', ["PSE", "EPF", "Other"])
723
+ validator = EnumAttributeValidator.new('String', ["PSE", "EPF"])
715
724
  unless validator.valid?(filer_type)
716
725
  fail ArgumentError, "invalid value for \"filer_type\", must be one of #{validator.allowable_values}."
717
726
  end
@@ -721,7 +730,7 @@ module AvalaraSdk::A1099::V2
721
730
  # Custom attribute writer method checking allowed values (enum).
722
731
  # @param [Object] payment_type Object to be assigned
723
732
  def payment_type=(payment_type)
724
- validator = EnumAttributeValidator.new('String', ["MerchantPaymentCard", "ThirdPartyNetwork"])
733
+ validator = EnumAttributeValidator.new('String', ["PaymentCard", "ThirdPartyNetwork"])
725
734
  unless validator.valid?(payment_type)
726
735
  fail ArgumentError, "invalid value for \"payment_type\", must be one of #{validator.allowable_values}."
727
736
  end
@@ -731,7 +740,7 @@ module AvalaraSdk::A1099::V2
731
740
  # Custom attribute writer method checking allowed values (enum).
732
741
  # @param [Object] type Object to be assigned
733
742
  def type=(type)
734
- validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C", "1099-INT"])
743
+ validator = EnumAttributeValidator.new('String', ["Form1099Nec", "Form1099Misc", "Form1099Div", "Form1099R", "Form1099K", "Form1095B", "Form1042S", "Form1095C", "Form1099Int"])
735
744
  unless validator.valid?(type)
736
745
  fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
737
746
  end
@@ -741,25 +750,13 @@ module AvalaraSdk::A1099::V2
741
750
  # Custom attribute writer method checking allowed values (enum).
742
751
  # @param [Object] tin_type Object to be assigned
743
752
  def tin_type=(tin_type)
744
- validator = EnumAttributeValidator.new('String', ["Empty", "EIN", "SSN", "ITIN", "ATIN"])
753
+ validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
745
754
  unless validator.valid?(tin_type)
746
755
  fail ArgumentError, "invalid value for \"tin_type\", must be one of #{validator.allowable_values}."
747
756
  end
748
757
  @tin_type = tin_type
749
758
  end
750
759
 
751
- # Custom attribute writer method with validation
752
- # @param [Object] state_efile_status Value to be assigned
753
- def state_efile_status=(state_efile_status)
754
- @state_efile_status = state_efile_status
755
- end
756
-
757
- # Custom attribute writer method with validation
758
- # @param [Object] validation_errors Value to be assigned
759
- def validation_errors=(validation_errors)
760
- @validation_errors = validation_errors
761
- end
762
-
763
760
  # Checks equality by comparing each attribute.
764
761
  # @param [Object] Object to be compared
765
762
  def ==(o)
@@ -102,7 +102,7 @@ module AvalaraSdk::A1099::V2
102
102
  # @return true if the model is valid
103
103
  def valid?
104
104
  warn '[DEPRECATED] the `valid?` method is obsolete'
105
- type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C", "1099-INT"])
105
+ type_validator = EnumAttributeValidator.new('String', ["Form1099Nec", "Form1099Misc", "Form1099Div", "Form1099R", "Form1099K", "Form1095B", "Form1042S", "Form1095C", "Form1099Int"])
106
106
  return false unless type_validator.valid?(@type)
107
107
  true
108
108
  end
@@ -110,23 +110,13 @@ module AvalaraSdk::A1099::V2
110
110
  # Custom attribute writer method checking allowed values (enum).
111
111
  # @param [Object] type Object to be assigned
112
112
  def type=(type)
113
- validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C", "1099-INT"])
113
+ validator = EnumAttributeValidator.new('String', ["Form1099Nec", "Form1099Misc", "Form1099Div", "Form1099R", "Form1099K", "Form1095B", "Form1042S", "Form1095C", "Form1099Int"])
114
114
  unless validator.valid?(type)
115
115
  fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
116
116
  end
117
117
  @type = type
118
118
  end
119
119
 
120
- # Custom attribute writer method with validation
121
- # @param [Object] forms Value to be assigned
122
- def forms=(forms)
123
- if forms.nil?
124
- fail ArgumentError, 'forms cannot be nil'
125
- end
126
-
127
- @forms = forms
128
- end
129
-
130
120
  # Checks equality by comparing each attribute.
131
121
  # @param [Object] Object to be compared
132
122
  def ==(o)
@@ -10,7 +10,7 @@ require 'date'
10
10
  require 'time'
11
11
 
12
12
  module AvalaraSdk::A1099::V2
13
- # Form 1099-MISC: Miscellaneous Income
13
+ # Form 1099-MISC: Miscellaneous Income *At least one of the following amounts must be provided:* Rents, Royalties, Other income, Fishing boat proceeds, Medical and health care payments, Substitute payments in lieu of dividends or interest, Crop insurance proceeds, Gross proceeds paid to an attorney, Fish purchased for resale, Section 409A deferrals, Excess golden parachute payments, Nonqualified deferred compensation, Payer made direct sales totaling $5,000 or more of consumer products to recipient for resale
14
14
  class Form1099Misc
15
15
  # Rents
16
16
  attr_accessor :rents
@@ -54,10 +54,10 @@ module AvalaraSdk::A1099::V2
54
54
  # Nonqualified deferred compensation
55
55
  attr_accessor :nonqualified_deferred_compensation
56
56
 
57
- # FATCA filing requirement
57
+ # FATCA filing requirement.
58
58
  attr_accessor :fatca_filing_requirement
59
59
 
60
- # Form type
60
+ # Form type.
61
61
  attr_accessor :type
62
62
 
63
63
  # Form ID. Unique identifier set when the record is created.
@@ -66,13 +66,13 @@ module AvalaraSdk::A1099::V2
66
66
  # Issuer ID - only required when creating forms
67
67
  attr_accessor :issuer_id
68
68
 
69
- # Issuer Reference ID - only required when creating forms
69
+ # Issuer Reference ID - only required when creating forms via $bulk-upsert
70
70
  attr_accessor :issuer_reference_id
71
71
 
72
72
  # Issuer TIN - readonly
73
73
  attr_accessor :issuer_tin
74
74
 
75
- # Tax Year - only required when creating forms
75
+ # Tax Year - only required when creating forms via $bulk-upsert
76
76
  attr_accessor :tax_year
77
77
 
78
78
  # Internal reference ID. Never shown to any agency or recipient.
@@ -84,7 +84,7 @@ module AvalaraSdk::A1099::V2
84
84
  # Recipient name
85
85
  attr_accessor :recipient_name
86
86
 
87
- # Type of TIN (Tax ID Number)
87
+ # 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
88
88
  attr_accessor :tin_type
89
89
 
90
90
  # Recipient second name
@@ -120,16 +120,16 @@ module AvalaraSdk::A1099::V2
120
120
  # Two-letter IRS country code (e.g., 'US', 'CA'), as defined at https://www.irs.gov/e-file-providers/country-codes.
121
121
  attr_accessor :country_code
122
122
 
123
- # Date when federal e-filing should be scheduled for this form
123
+ # 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.
124
124
  attr_accessor :federal_efile_date
125
125
 
126
126
  # Boolean indicating that postal mailing to the recipient should be scheduled for this form
127
127
  attr_accessor :postal_mail
128
128
 
129
- # Date when state e-filing should be scheduled for this form
129
+ # 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.
130
130
  attr_accessor :state_efile_date
131
131
 
132
- # Date when recipient e-delivery should be scheduled for this form
132
+ # 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.
133
133
  attr_accessor :recipient_edelivery_date
134
134
 
135
135
  # Boolean indicating that TIN Matching should be scheduled for this form
@@ -147,22 +147,22 @@ module AvalaraSdk::A1099::V2
147
147
  # Second TIN notice
148
148
  attr_accessor :second_tin_notice
149
149
 
150
- # Federal e-file status
150
+ # 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)
151
151
  attr_accessor :federal_efile_status
152
152
 
153
- # State e-file status
153
+ # 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
154
154
  attr_accessor :state_efile_status
155
155
 
156
- # Postal mail to recipient status
156
+ # 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
157
157
  attr_accessor :postal_mail_status
158
158
 
159
- # TIN Match status
159
+ # 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
160
160
  attr_accessor :tin_match_status
161
161
 
162
- # Address verification status
162
+ # 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
163
163
  attr_accessor :address_verification_status
164
164
 
165
- # EDelivery status
165
+ # 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)
166
166
  attr_accessor :e_delivery_status
167
167
 
168
168
  # Validation errors
@@ -367,6 +367,7 @@ module AvalaraSdk::A1099::V2
367
367
  :'no_tin',
368
368
  :'address_verification',
369
369
  :'state_and_local_withholding',
370
+ :'second_tin_notice',
370
371
  :'federal_efile_status',
371
372
  :'state_efile_status',
372
373
  :'postal_mail_status',
@@ -647,9 +648,9 @@ module AvalaraSdk::A1099::V2
647
648
  def valid?
648
649
  warn '[DEPRECATED] the `valid?` method is obsolete'
649
650
  return false if @type.nil?
650
- type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C", "1099-INT"])
651
+ type_validator = EnumAttributeValidator.new('String', ["Form1099Nec", "Form1099Misc", "Form1099Div", "Form1099R", "Form1099K", "Form1095B", "Form1042S", "Form1095C", "Form1099Int"])
651
652
  return false unless type_validator.valid?(@type)
652
- tin_type_validator = EnumAttributeValidator.new('String', ["Empty", "EIN", "SSN", "ITIN", "ATIN"])
653
+ tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
653
654
  return false unless tin_type_validator.valid?(@tin_type)
654
655
  true
655
656
  end
@@ -657,7 +658,7 @@ module AvalaraSdk::A1099::V2
657
658
  # Custom attribute writer method checking allowed values (enum).
658
659
  # @param [Object] type Object to be assigned
659
660
  def type=(type)
660
- validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C", "1099-INT"])
661
+ validator = EnumAttributeValidator.new('String', ["Form1099Nec", "Form1099Misc", "Form1099Div", "Form1099R", "Form1099K", "Form1095B", "Form1042S", "Form1095C", "Form1099Int"])
661
662
  unless validator.valid?(type)
662
663
  fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
663
664
  end
@@ -667,25 +668,13 @@ module AvalaraSdk::A1099::V2
667
668
  # Custom attribute writer method checking allowed values (enum).
668
669
  # @param [Object] tin_type Object to be assigned
669
670
  def tin_type=(tin_type)
670
- validator = EnumAttributeValidator.new('String', ["Empty", "EIN", "SSN", "ITIN", "ATIN"])
671
+ validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
671
672
  unless validator.valid?(tin_type)
672
673
  fail ArgumentError, "invalid value for \"tin_type\", must be one of #{validator.allowable_values}."
673
674
  end
674
675
  @tin_type = tin_type
675
676
  end
676
677
 
677
- # Custom attribute writer method with validation
678
- # @param [Object] state_efile_status Value to be assigned
679
- def state_efile_status=(state_efile_status)
680
- @state_efile_status = state_efile_status
681
- end
682
-
683
- # Custom attribute writer method with validation
684
- # @param [Object] validation_errors Value to be assigned
685
- def validation_errors=(validation_errors)
686
- @validation_errors = validation_errors
687
- end
688
-
689
678
  # Checks equality by comparing each attribute.
690
679
  # @param [Object] Object to be compared
691
680
  def ==(o)