Class: Plaid::Credit1099
- Inherits:
-
Object
- Object
- Plaid::Credit1099
- Defined in:
- lib/plaid/models/credit1099.rb
Overview
An object representing an end user’s 1099 tax form
Instance Attribute Summary collapse
-
#april_amount ⇒ Object
Amount reported for April.
-
#august_amount ⇒ Object
Amount reported for August.
-
#card_not_present_transaction ⇒ Object
Amount in card not present transactions.
-
#crop_insurance_proceeds ⇒ Object
Amount of crop insurance proceeds.
-
#december_amount ⇒ Object
Amount reported for December.
-
#document_id ⇒ Object
An identifier of the document referenced by the document metadata.
-
#document_metadata ⇒ Object
Returns the value of attribute document_metadata.
-
#excess_golden_parachute_payments ⇒ Object
Amount of golden parachute payments made by payer.
-
#february_amount ⇒ Object
Amount reported for February.
-
#federal_income_tax_withheld ⇒ Object
Amount of federal income tax withheld from payer.
-
#filer ⇒ Object
Returns the value of attribute filer.
-
#fishing_boat_proceeds ⇒ Object
Amount of fishing boat proceeds from payer.
-
#form_1099_type ⇒ Object
Returns the value of attribute form_1099_type.
-
#gross_amount ⇒ Object
Gross amount reported.
-
#gross_proceeds_paid_to_an_attorney ⇒ Object
Amount of gross proceeds paid to an attorney by payer.
-
#january_amount ⇒ Object
Amount reported for January.
-
#july_amount ⇒ Object
Amount reported for July.
-
#june_amount ⇒ Object
Amount reported for June.
-
#march_amount ⇒ Object
Amount reported for March.
-
#may_amount ⇒ Object
Amount reported for May.
-
#medical_and_healthcare_payments ⇒ Object
Amount of medical and healthcare payments from payer.
-
#merchant_category_code ⇒ Object
Merchant category of filer.
-
#nonemployee_compensation ⇒ Object
Amount of nonemployee compensation from payer.
-
#november_amount ⇒ Object
Amount reported for November.
-
#number_of_payment_transactions ⇒ Object
Number of payment transactions made.
-
#october_amount ⇒ Object
Amount reported for October.
-
#other_income ⇒ Object
Amount in other income by payer.
-
#payer ⇒ Object
Returns the value of attribute payer.
-
#payer_made_direct_sales_of_5000_or_more_of_consumer_products_to_buyer ⇒ Object
Whether or not payer made direct sales over $5000 of consumer products.
-
#payer_state_number ⇒ Object
Primary state ID.
-
#payer_state_number_lower ⇒ Object
Secondary state ID.
-
#primary_state ⇒ Object
Primary state of business.
-
#primary_state_id ⇒ Object
Primary state ID.
-
#primary_state_income_tax ⇒ Object
State income tax reported for primary state.
-
#pse_name ⇒ Object
Name of the PSE (Payment Settlement Entity).
-
#pse_telephone_number ⇒ Object
Formatted (XXX) XXX-XXXX.
-
#recipient ⇒ Object
Returns the value of attribute recipient.
-
#rents ⇒ Object
Amount in rent by payer.
-
#royalties ⇒ Object
Amount in royalties by payer.
-
#secondary_state ⇒ Object
Secondary state of business.
-
#secondary_state_id ⇒ Object
Secondary state ID.
-
#secondary_state_income_tax ⇒ Object
State income tax reported for secondary state.
-
#section_409a_deferrals ⇒ Object
Amount of 409A deferrals earned by payer.
-
#section_409a_income ⇒ Object
Amount of 409A income earned by payer.
-
#september_amount ⇒ Object
Amount reported for September.
-
#state_income ⇒ Object
State income reported for primary state.
-
#state_income_lower ⇒ Object
State income reported for secondary state.
-
#state_tax_withheld ⇒ Object
Amount of state tax withheld of payer for primary state.
-
#state_tax_withheld_lower ⇒ Object
Amount of state tax withheld of payer for secondary state.
-
#substitute_payments_in_lieu_of_dividends_or_interest ⇒ Object
Amount of substitute payments made by payer.
-
#tax_year ⇒ Object
Tax year of the tax form.
-
#transactions_reported ⇒ Object
One of the values will be provided Payment card Third party network.
Class Method Summary collapse
-
.acceptable_attributes ⇒ Object
Returns all the JSON keys this model knows about.
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.build_from_hash(attributes) ⇒ Object
Builds the object from hash.
-
.openapi_nullable ⇒ Object
List of attributes with nullable: true.
-
.openapi_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Checks equality by comparing each attribute.
-
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type.
-
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Integer
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ Credit1099
constructor
Initializes the object.
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
-
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility).
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
-
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid.
Constructor Details
#initialize(attributes = {}) ⇒ Credit1099
Initializes the object
346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 |
# File 'lib/plaid/models/credit1099.rb', line 346 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `Plaid::Credit1099` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) fail ArgumentError, "`#{k}` is not a valid attribute in `Plaid::Credit1099`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } if attributes.key?(:'document_id') self.document_id = attributes[:'document_id'] end if attributes.key?(:'document_metadata') self. = attributes[:'document_metadata'] end if attributes.key?(:'form_1099_type') self.form_1099_type = attributes[:'form_1099_type'] end if attributes.key?(:'recipient') self.recipient = attributes[:'recipient'] end if attributes.key?(:'payer') self.payer = attributes[:'payer'] end if attributes.key?(:'filer') self.filer = attributes[:'filer'] end if attributes.key?(:'tax_year') self.tax_year = attributes[:'tax_year'] end if attributes.key?(:'rents') self.rents = attributes[:'rents'] end if attributes.key?(:'royalties') self.royalties = attributes[:'royalties'] end if attributes.key?(:'other_income') self.other_income = attributes[:'other_income'] end if attributes.key?(:'federal_income_tax_withheld') self.federal_income_tax_withheld = attributes[:'federal_income_tax_withheld'] end if attributes.key?(:'fishing_boat_proceeds') self.fishing_boat_proceeds = attributes[:'fishing_boat_proceeds'] end if attributes.key?(:'medical_and_healthcare_payments') self.medical_and_healthcare_payments = attributes[:'medical_and_healthcare_payments'] end if attributes.key?(:'nonemployee_compensation') self.nonemployee_compensation = attributes[:'nonemployee_compensation'] end if attributes.key?(:'substitute_payments_in_lieu_of_dividends_or_interest') self.substitute_payments_in_lieu_of_dividends_or_interest = attributes[:'substitute_payments_in_lieu_of_dividends_or_interest'] end if attributes.key?(:'payer_made_direct_sales_of_5000_or_more_of_consumer_products_to_buyer') self.payer_made_direct_sales_of_5000_or_more_of_consumer_products_to_buyer = attributes[:'payer_made_direct_sales_of_5000_or_more_of_consumer_products_to_buyer'] end if attributes.key?(:'crop_insurance_proceeds') self.crop_insurance_proceeds = attributes[:'crop_insurance_proceeds'] end if attributes.key?(:'excess_golden_parachute_payments') self.excess_golden_parachute_payments = attributes[:'excess_golden_parachute_payments'] end if attributes.key?(:'gross_proceeds_paid_to_an_attorney') self.gross_proceeds_paid_to_an_attorney = attributes[:'gross_proceeds_paid_to_an_attorney'] end if attributes.key?(:'section_409a_deferrals') self.section_409a_deferrals = attributes[:'section_409a_deferrals'] end if attributes.key?(:'section_409a_income') self.section_409a_income = attributes[:'section_409a_income'] end if attributes.key?(:'state_tax_withheld') self.state_tax_withheld = attributes[:'state_tax_withheld'] end if attributes.key?(:'state_tax_withheld_lower') self.state_tax_withheld_lower = attributes[:'state_tax_withheld_lower'] end if attributes.key?(:'payer_state_number') self.payer_state_number = attributes[:'payer_state_number'] end if attributes.key?(:'payer_state_number_lower') self.payer_state_number_lower = attributes[:'payer_state_number_lower'] end if attributes.key?(:'state_income') self.state_income = attributes[:'state_income'] end if attributes.key?(:'state_income_lower') self.state_income_lower = attributes[:'state_income_lower'] end if attributes.key?(:'transactions_reported') self.transactions_reported = attributes[:'transactions_reported'] end if attributes.key?(:'pse_name') self.pse_name = attributes[:'pse_name'] end if attributes.key?(:'pse_telephone_number') self.pse_telephone_number = attributes[:'pse_telephone_number'] end if attributes.key?(:'gross_amount') self.gross_amount = attributes[:'gross_amount'] end if attributes.key?(:'card_not_present_transaction') self.card_not_present_transaction = attributes[:'card_not_present_transaction'] end if attributes.key?(:'merchant_category_code') self.merchant_category_code = attributes[:'merchant_category_code'] end if attributes.key?(:'number_of_payment_transactions') self.number_of_payment_transactions = attributes[:'number_of_payment_transactions'] end if attributes.key?(:'january_amount') self.january_amount = attributes[:'january_amount'] end if attributes.key?(:'february_amount') self.february_amount = attributes[:'february_amount'] end if attributes.key?(:'march_amount') self.march_amount = attributes[:'march_amount'] end if attributes.key?(:'april_amount') self.april_amount = attributes[:'april_amount'] end if attributes.key?(:'may_amount') self.may_amount = attributes[:'may_amount'] end if attributes.key?(:'june_amount') self.june_amount = attributes[:'june_amount'] end if attributes.key?(:'july_amount') self.july_amount = attributes[:'july_amount'] end if attributes.key?(:'august_amount') self.august_amount = attributes[:'august_amount'] end if attributes.key?(:'september_amount') self.september_amount = attributes[:'september_amount'] end if attributes.key?(:'october_amount') self.october_amount = attributes[:'october_amount'] end if attributes.key?(:'november_amount') self.november_amount = attributes[:'november_amount'] end if attributes.key?(:'december_amount') self.december_amount = attributes[:'december_amount'] end if attributes.key?(:'primary_state') self.primary_state = attributes[:'primary_state'] end if attributes.key?(:'secondary_state') self.secondary_state = attributes[:'secondary_state'] end if attributes.key?(:'primary_state_id') self.primary_state_id = attributes[:'primary_state_id'] end if attributes.key?(:'secondary_state_id') self.secondary_state_id = attributes[:'secondary_state_id'] end if attributes.key?(:'primary_state_income_tax') self.primary_state_income_tax = attributes[:'primary_state_income_tax'] end if attributes.key?(:'secondary_state_income_tax') self.secondary_state_income_tax = attributes[:'secondary_state_income_tax'] end end |
Instance Attribute Details
#april_amount ⇒ Object
Amount reported for April.
126 127 128 |
# File 'lib/plaid/models/credit1099.rb', line 126 def april_amount @april_amount end |
#august_amount ⇒ Object
Amount reported for August.
138 139 140 |
# File 'lib/plaid/models/credit1099.rb', line 138 def august_amount @august_amount end |
#card_not_present_transaction ⇒ Object
Amount in card not present transactions.
108 109 110 |
# File 'lib/plaid/models/credit1099.rb', line 108 def card_not_present_transaction @card_not_present_transaction end |
#crop_insurance_proceeds ⇒ Object
Amount of crop insurance proceeds.
63 64 65 |
# File 'lib/plaid/models/credit1099.rb', line 63 def crop_insurance_proceeds @crop_insurance_proceeds end |
#december_amount ⇒ Object
Amount reported for December.
150 151 152 |
# File 'lib/plaid/models/credit1099.rb', line 150 def december_amount @december_amount end |
#document_id ⇒ Object
An identifier of the document referenced by the document metadata.
20 21 22 |
# File 'lib/plaid/models/credit1099.rb', line 20 def document_id @document_id end |
#document_metadata ⇒ Object
Returns the value of attribute document_metadata.
22 23 24 |
# File 'lib/plaid/models/credit1099.rb', line 22 def @document_metadata end |
#excess_golden_parachute_payments ⇒ Object
Amount of golden parachute payments made by payer.
66 67 68 |
# File 'lib/plaid/models/credit1099.rb', line 66 def excess_golden_parachute_payments @excess_golden_parachute_payments end |
#february_amount ⇒ Object
Amount reported for February.
120 121 122 |
# File 'lib/plaid/models/credit1099.rb', line 120 def february_amount @february_amount end |
#federal_income_tax_withheld ⇒ Object
Amount of federal income tax withheld from payer.
45 46 47 |
# File 'lib/plaid/models/credit1099.rb', line 45 def federal_income_tax_withheld @federal_income_tax_withheld end |
#filer ⇒ Object
Returns the value of attribute filer.
30 31 32 |
# File 'lib/plaid/models/credit1099.rb', line 30 def filer @filer end |
#fishing_boat_proceeds ⇒ Object
Amount of fishing boat proceeds from payer.
48 49 50 |
# File 'lib/plaid/models/credit1099.rb', line 48 def fishing_boat_proceeds @fishing_boat_proceeds end |
#form_1099_type ⇒ Object
Returns the value of attribute form_1099_type.
24 25 26 |
# File 'lib/plaid/models/credit1099.rb', line 24 def form_1099_type @form_1099_type end |
#gross_amount ⇒ Object
Gross amount reported.
105 106 107 |
# File 'lib/plaid/models/credit1099.rb', line 105 def gross_amount @gross_amount end |
#gross_proceeds_paid_to_an_attorney ⇒ Object
Amount of gross proceeds paid to an attorney by payer.
69 70 71 |
# File 'lib/plaid/models/credit1099.rb', line 69 def gross_proceeds_paid_to_an_attorney @gross_proceeds_paid_to_an_attorney end |
#january_amount ⇒ Object
Amount reported for January.
117 118 119 |
# File 'lib/plaid/models/credit1099.rb', line 117 def january_amount @january_amount end |
#july_amount ⇒ Object
Amount reported for July.
135 136 137 |
# File 'lib/plaid/models/credit1099.rb', line 135 def july_amount @july_amount end |
#june_amount ⇒ Object
Amount reported for June.
132 133 134 |
# File 'lib/plaid/models/credit1099.rb', line 132 def june_amount @june_amount end |
#march_amount ⇒ Object
Amount reported for March.
123 124 125 |
# File 'lib/plaid/models/credit1099.rb', line 123 def march_amount @march_amount end |
#may_amount ⇒ Object
Amount reported for May.
129 130 131 |
# File 'lib/plaid/models/credit1099.rb', line 129 def may_amount @may_amount end |
#medical_and_healthcare_payments ⇒ Object
Amount of medical and healthcare payments from payer.
51 52 53 |
# File 'lib/plaid/models/credit1099.rb', line 51 def medical_and_healthcare_payments @medical_and_healthcare_payments end |
#merchant_category_code ⇒ Object
Merchant category of filer.
111 112 113 |
# File 'lib/plaid/models/credit1099.rb', line 111 def merchant_category_code @merchant_category_code end |
#nonemployee_compensation ⇒ Object
Amount of nonemployee compensation from payer.
54 55 56 |
# File 'lib/plaid/models/credit1099.rb', line 54 def nonemployee_compensation @nonemployee_compensation end |
#november_amount ⇒ Object
Amount reported for November.
147 148 149 |
# File 'lib/plaid/models/credit1099.rb', line 147 def november_amount @november_amount end |
#number_of_payment_transactions ⇒ Object
Number of payment transactions made.
114 115 116 |
# File 'lib/plaid/models/credit1099.rb', line 114 def number_of_payment_transactions @number_of_payment_transactions end |
#october_amount ⇒ Object
Amount reported for October.
144 145 146 |
# File 'lib/plaid/models/credit1099.rb', line 144 def october_amount @october_amount end |
#other_income ⇒ Object
Amount in other income by payer.
42 43 44 |
# File 'lib/plaid/models/credit1099.rb', line 42 def other_income @other_income end |
#payer ⇒ Object
Returns the value of attribute payer.
28 29 30 |
# File 'lib/plaid/models/credit1099.rb', line 28 def payer @payer end |
#payer_made_direct_sales_of_5000_or_more_of_consumer_products_to_buyer ⇒ Object
Whether or not payer made direct sales over $5000 of consumer products.
60 61 62 |
# File 'lib/plaid/models/credit1099.rb', line 60 def payer_made_direct_sales_of_5000_or_more_of_consumer_products_to_buyer @payer_made_direct_sales_of_5000_or_more_of_consumer_products_to_buyer end |
#payer_state_number ⇒ Object
Primary state ID.
84 85 86 |
# File 'lib/plaid/models/credit1099.rb', line 84 def payer_state_number @payer_state_number end |
#payer_state_number_lower ⇒ Object
Secondary state ID.
87 88 89 |
# File 'lib/plaid/models/credit1099.rb', line 87 def payer_state_number_lower @payer_state_number_lower end |
#primary_state ⇒ Object
Primary state of business.
153 154 155 |
# File 'lib/plaid/models/credit1099.rb', line 153 def primary_state @primary_state end |
#primary_state_id ⇒ Object
Primary state ID.
159 160 161 |
# File 'lib/plaid/models/credit1099.rb', line 159 def primary_state_id @primary_state_id end |
#primary_state_income_tax ⇒ Object
State income tax reported for primary state.
165 166 167 |
# File 'lib/plaid/models/credit1099.rb', line 165 def primary_state_income_tax @primary_state_income_tax end |
#pse_name ⇒ Object
Name of the PSE (Payment Settlement Entity).
99 100 101 |
# File 'lib/plaid/models/credit1099.rb', line 99 def pse_name @pse_name end |
#pse_telephone_number ⇒ Object
Formatted (XXX) XXX-XXXX. Phone number of the PSE (Payment Settlement Entity).
102 103 104 |
# File 'lib/plaid/models/credit1099.rb', line 102 def pse_telephone_number @pse_telephone_number end |
#recipient ⇒ Object
Returns the value of attribute recipient.
26 27 28 |
# File 'lib/plaid/models/credit1099.rb', line 26 def recipient @recipient end |
#rents ⇒ Object
Amount in rent by payer.
36 37 38 |
# File 'lib/plaid/models/credit1099.rb', line 36 def rents @rents end |
#royalties ⇒ Object
Amount in royalties by payer.
39 40 41 |
# File 'lib/plaid/models/credit1099.rb', line 39 def royalties @royalties end |
#secondary_state ⇒ Object
Secondary state of business.
156 157 158 |
# File 'lib/plaid/models/credit1099.rb', line 156 def secondary_state @secondary_state end |
#secondary_state_id ⇒ Object
Secondary state ID.
162 163 164 |
# File 'lib/plaid/models/credit1099.rb', line 162 def secondary_state_id @secondary_state_id end |
#secondary_state_income_tax ⇒ Object
State income tax reported for secondary state.
168 169 170 |
# File 'lib/plaid/models/credit1099.rb', line 168 def secondary_state_income_tax @secondary_state_income_tax end |
#section_409a_deferrals ⇒ Object
Amount of 409A deferrals earned by payer.
72 73 74 |
# File 'lib/plaid/models/credit1099.rb', line 72 def section_409a_deferrals @section_409a_deferrals end |
#section_409a_income ⇒ Object
Amount of 409A income earned by payer.
75 76 77 |
# File 'lib/plaid/models/credit1099.rb', line 75 def section_409a_income @section_409a_income end |
#september_amount ⇒ Object
Amount reported for September.
141 142 143 |
# File 'lib/plaid/models/credit1099.rb', line 141 def september_amount @september_amount end |
#state_income ⇒ Object
State income reported for primary state.
90 91 92 |
# File 'lib/plaid/models/credit1099.rb', line 90 def state_income @state_income end |
#state_income_lower ⇒ Object
State income reported for secondary state.
93 94 95 |
# File 'lib/plaid/models/credit1099.rb', line 93 def state_income_lower @state_income_lower end |
#state_tax_withheld ⇒ Object
Amount of state tax withheld of payer for primary state.
78 79 80 |
# File 'lib/plaid/models/credit1099.rb', line 78 def state_tax_withheld @state_tax_withheld end |
#state_tax_withheld_lower ⇒ Object
Amount of state tax withheld of payer for secondary state.
81 82 83 |
# File 'lib/plaid/models/credit1099.rb', line 81 def state_tax_withheld_lower @state_tax_withheld_lower end |
#substitute_payments_in_lieu_of_dividends_or_interest ⇒ Object
Amount of substitute payments made by payer.
57 58 59 |
# File 'lib/plaid/models/credit1099.rb', line 57 def substitute_payments_in_lieu_of_dividends_or_interest @substitute_payments_in_lieu_of_dividends_or_interest end |
#tax_year ⇒ Object
Tax year of the tax form.
33 34 35 |
# File 'lib/plaid/models/credit1099.rb', line 33 def tax_year @tax_year end |
#transactions_reported ⇒ Object
One of the values will be provided Payment card Third party network
96 97 98 |
# File 'lib/plaid/models/credit1099.rb', line 96 def transactions_reported @transactions_reported end |
Class Method Details
.acceptable_attributes ⇒ Object
Returns all the JSON keys this model knows about
229 230 231 |
# File 'lib/plaid/models/credit1099.rb', line 229 def self.acceptable_attributes attribute_map.values end |
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 |
# File 'lib/plaid/models/credit1099.rb', line 171 def self.attribute_map { :'document_id' => :'document_id', :'document_metadata' => :'document_metadata', :'form_1099_type' => :'form_1099_type', :'recipient' => :'recipient', :'payer' => :'payer', :'filer' => :'filer', :'tax_year' => :'tax_year', :'rents' => :'rents', :'royalties' => :'royalties', :'other_income' => :'other_income', :'federal_income_tax_withheld' => :'federal_income_tax_withheld', :'fishing_boat_proceeds' => :'fishing_boat_proceeds', :'medical_and_healthcare_payments' => :'medical_and_healthcare_payments', :'nonemployee_compensation' => :'nonemployee_compensation', :'substitute_payments_in_lieu_of_dividends_or_interest' => :'substitute_payments_in_lieu_of_dividends_or_interest', :'payer_made_direct_sales_of_5000_or_more_of_consumer_products_to_buyer' => :'payer_made_direct_sales_of_5000_or_more_of_consumer_products_to_buyer', :'crop_insurance_proceeds' => :'crop_insurance_proceeds', :'excess_golden_parachute_payments' => :'excess_golden_parachute_payments', :'gross_proceeds_paid_to_an_attorney' => :'gross_proceeds_paid_to_an_attorney', :'section_409a_deferrals' => :'section_409a_deferrals', :'section_409a_income' => :'section_409a_income', :'state_tax_withheld' => :'state_tax_withheld', :'state_tax_withheld_lower' => :'state_tax_withheld_lower', :'payer_state_number' => :'payer_state_number', :'payer_state_number_lower' => :'payer_state_number_lower', :'state_income' => :'state_income', :'state_income_lower' => :'state_income_lower', :'transactions_reported' => :'transactions_reported', :'pse_name' => :'pse_name', :'pse_telephone_number' => :'pse_telephone_number', :'gross_amount' => :'gross_amount', :'card_not_present_transaction' => :'card_not_present_transaction', :'merchant_category_code' => :'merchant_category_code', :'number_of_payment_transactions' => :'number_of_payment_transactions', :'january_amount' => :'january_amount', :'february_amount' => :'february_amount', :'march_amount' => :'march_amount', :'april_amount' => :'april_amount', :'may_amount' => :'may_amount', :'june_amount' => :'june_amount', :'july_amount' => :'july_amount', :'august_amount' => :'august_amount', :'september_amount' => :'september_amount', :'october_amount' => :'october_amount', :'november_amount' => :'november_amount', :'december_amount' => :'december_amount', :'primary_state' => :'primary_state', :'secondary_state' => :'secondary_state', :'primary_state_id' => :'primary_state_id', :'secondary_state_id' => :'secondary_state_id', :'primary_state_income_tax' => :'primary_state_income_tax', :'secondary_state_income_tax' => :'secondary_state_income_tax' } end |
.build_from_hash(attributes) ⇒ Object
Builds the object from hash
655 656 657 |
# File 'lib/plaid/models/credit1099.rb', line 655 def self.build_from_hash(attributes) new.build_from_hash(attributes) end |
.openapi_nullable ⇒ Object
List of attributes with nullable: true
292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 |
# File 'lib/plaid/models/credit1099.rb', line 292 def self.openapi_nullable Set.new([ :'document_id', :'tax_year', :'rents', :'royalties', :'other_income', :'federal_income_tax_withheld', :'fishing_boat_proceeds', :'medical_and_healthcare_payments', :'nonemployee_compensation', :'substitute_payments_in_lieu_of_dividends_or_interest', :'payer_made_direct_sales_of_5000_or_more_of_consumer_products_to_buyer', :'crop_insurance_proceeds', :'excess_golden_parachute_payments', :'gross_proceeds_paid_to_an_attorney', :'section_409a_deferrals', :'section_409a_income', :'state_tax_withheld', :'state_tax_withheld_lower', :'payer_state_number', :'payer_state_number_lower', :'state_income', :'state_income_lower', :'transactions_reported', :'pse_name', :'pse_telephone_number', :'gross_amount', :'card_not_present_transaction', :'merchant_category_code', :'number_of_payment_transactions', :'january_amount', :'february_amount', :'march_amount', :'april_amount', :'may_amount', :'june_amount', :'july_amount', :'august_amount', :'september_amount', :'october_amount', :'november_amount', :'december_amount', :'primary_state', :'secondary_state', :'primary_state_id', :'secondary_state_id', :'primary_state_income_tax', :'secondary_state_income_tax' ]) end |
.openapi_types ⇒ Object
Attribute type mapping.
234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 |
# File 'lib/plaid/models/credit1099.rb', line 234 def self.openapi_types { :'document_id' => :'String', :'document_metadata' => :'CreditDocumentMetadata', :'form_1099_type' => :'Form1099Type', :'recipient' => :'Credit1099Recipient', :'payer' => :'Credit1099Payer', :'filer' => :'Credit1099Filer', :'tax_year' => :'String', :'rents' => :'Float', :'royalties' => :'Float', :'other_income' => :'Float', :'federal_income_tax_withheld' => :'Float', :'fishing_boat_proceeds' => :'Float', :'medical_and_healthcare_payments' => :'Float', :'nonemployee_compensation' => :'Float', :'substitute_payments_in_lieu_of_dividends_or_interest' => :'Float', :'payer_made_direct_sales_of_5000_or_more_of_consumer_products_to_buyer' => :'String', :'crop_insurance_proceeds' => :'Float', :'excess_golden_parachute_payments' => :'Float', :'gross_proceeds_paid_to_an_attorney' => :'Float', :'section_409a_deferrals' => :'Float', :'section_409a_income' => :'Float', :'state_tax_withheld' => :'Float', :'state_tax_withheld_lower' => :'Float', :'payer_state_number' => :'String', :'payer_state_number_lower' => :'String', :'state_income' => :'Float', :'state_income_lower' => :'Float', :'transactions_reported' => :'String', :'pse_name' => :'String', :'pse_telephone_number' => :'String', :'gross_amount' => :'Float', :'card_not_present_transaction' => :'Float', :'merchant_category_code' => :'String', :'number_of_payment_transactions' => :'String', :'january_amount' => :'Float', :'february_amount' => :'Float', :'march_amount' => :'Float', :'april_amount' => :'Float', :'may_amount' => :'Float', :'june_amount' => :'Float', :'july_amount' => :'Float', :'august_amount' => :'Float', :'september_amount' => :'Float', :'october_amount' => :'Float', :'november_amount' => :'Float', :'december_amount' => :'Float', :'primary_state' => :'String', :'secondary_state' => :'String', :'primary_state_id' => :'String', :'secondary_state_id' => :'String', :'primary_state_income_tax' => :'Float', :'secondary_state_income_tax' => :'Float' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 |
# File 'lib/plaid/models/credit1099.rb', line 583 def ==(o) return true if self.equal?(o) self.class == o.class && document_id == o.document_id && == o. && form_1099_type == o.form_1099_type && recipient == o.recipient && payer == o.payer && filer == o.filer && tax_year == o.tax_year && rents == o.rents && royalties == o.royalties && other_income == o.other_income && federal_income_tax_withheld == o.federal_income_tax_withheld && fishing_boat_proceeds == o.fishing_boat_proceeds && medical_and_healthcare_payments == o.medical_and_healthcare_payments && nonemployee_compensation == o.nonemployee_compensation && substitute_payments_in_lieu_of_dividends_or_interest == o.substitute_payments_in_lieu_of_dividends_or_interest && payer_made_direct_sales_of_5000_or_more_of_consumer_products_to_buyer == o.payer_made_direct_sales_of_5000_or_more_of_consumer_products_to_buyer && crop_insurance_proceeds == o.crop_insurance_proceeds && excess_golden_parachute_payments == o.excess_golden_parachute_payments && gross_proceeds_paid_to_an_attorney == o.gross_proceeds_paid_to_an_attorney && section_409a_deferrals == o.section_409a_deferrals && section_409a_income == o.section_409a_income && state_tax_withheld == o.state_tax_withheld && state_tax_withheld_lower == o.state_tax_withheld_lower && payer_state_number == o.payer_state_number && payer_state_number_lower == o.payer_state_number_lower && state_income == o.state_income && state_income_lower == o.state_income_lower && transactions_reported == o.transactions_reported && pse_name == o.pse_name && pse_telephone_number == o.pse_telephone_number && gross_amount == o.gross_amount && card_not_present_transaction == o.card_not_present_transaction && merchant_category_code == o.merchant_category_code && number_of_payment_transactions == o.number_of_payment_transactions && january_amount == o.january_amount && february_amount == o.february_amount && march_amount == o.march_amount && april_amount == o.april_amount && may_amount == o.may_amount && june_amount == o.june_amount && july_amount == o.july_amount && august_amount == o.august_amount && september_amount == o.september_amount && october_amount == o.october_amount && november_amount == o.november_amount && december_amount == o.december_amount && primary_state == o.primary_state && secondary_state == o.secondary_state && primary_state_id == o.primary_state_id && secondary_state_id == o.secondary_state_id && primary_state_income_tax == o.primary_state_income_tax && secondary_state_income_tax == o.secondary_state_income_tax end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 |
# File 'lib/plaid/models/credit1099.rb', line 685 def _deserialize(type, value) case type.to_sym when :Time Time.parse(value) when :Date Date.parse(value) when :String value.to_s when :Integer value.to_i when :Float value.to_f when :Boolean if value.to_s =~ /\A(true|t|yes|y|1)\z/i true else false end when :Object # generic object (usually a Hash), return directly value when /\AArray<(?<inner_type>.+)>\z/ inner_type = Regexp.last_match[:inner_type] value.map { |v| _deserialize(inner_type, v) } when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/ k_type = Regexp.last_match[:k_type] v_type = Regexp.last_match[:v_type] {}.tap do |hash| value.each do |k, v| hash[_deserialize(k_type, k)] = _deserialize(v_type, v) end end else # model # models (e.g. Pet) or oneOf klass = Plaid.const_get(type) klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end |
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value
756 757 758 759 760 761 762 763 764 765 766 767 768 |
# File 'lib/plaid/models/credit1099.rb', line 756 def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } end elsif value.respond_to? :to_hash value.to_hash else value end end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 |
# File 'lib/plaid/models/credit1099.rb', line 662 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) self.send("#{key}=", nil) elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) end end self end |
#eql?(o) ⇒ Boolean
642 643 644 |
# File 'lib/plaid/models/credit1099.rb', line 642 def eql?(o) self == o end |
#hash ⇒ Integer
Calculates hash code according to all attributes.
648 649 650 |
# File 'lib/plaid/models/credit1099.rb', line 648 def hash [document_id, , form_1099_type, recipient, payer, filer, tax_year, rents, royalties, other_income, federal_income_tax_withheld, fishing_boat_proceeds, medical_and_healthcare_payments, nonemployee_compensation, substitute_payments_in_lieu_of_dividends_or_interest, payer_made_direct_sales_of_5000_or_more_of_consumer_products_to_buyer, crop_insurance_proceeds, excess_golden_parachute_payments, gross_proceeds_paid_to_an_attorney, section_409a_deferrals, section_409a_income, state_tax_withheld, state_tax_withheld_lower, payer_state_number, payer_state_number_lower, state_income, state_income_lower, transactions_reported, pse_name, pse_telephone_number, gross_amount, card_not_present_transaction, merchant_category_code, number_of_payment_transactions, january_amount, february_amount, march_amount, april_amount, may_amount, june_amount, july_amount, august_amount, september_amount, october_amount, november_amount, december_amount, primary_state, secondary_state, primary_state_id, secondary_state_id, primary_state_income_tax, secondary_state_income_tax].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
570 571 572 573 |
# File 'lib/plaid/models/credit1099.rb', line 570 def list_invalid_properties invalid_properties = Array.new invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
732 733 734 |
# File 'lib/plaid/models/credit1099.rb', line 732 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
738 739 740 741 742 743 744 745 746 747 748 749 750 |
# File 'lib/plaid/models/credit1099.rb', line 738 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) if value.nil? is_nullable = self.class.openapi_nullable.include?(attr) next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) end hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
726 727 728 |
# File 'lib/plaid/models/credit1099.rb', line 726 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
577 578 579 |
# File 'lib/plaid/models/credit1099.rb', line 577 def valid? true end |