Class: PaypalServerSdk::TransactionInformation
- Inherits:
-
BaseModel
- Object
- CoreLibrary::BaseModel
- BaseModel
- PaypalServerSdk::TransactionInformation
- Defined in:
- lib/paypal_server_sdk/models/transaction_information.rb
Overview
The transaction information.
Instance Attribute Summary collapse
-
#annual_percentage_rate ⇒ String
The percentage, as a fixed-point, signed decimal number.
-
#available_balance ⇒ Money
The currency and amount for a financial transaction, such as a balance or payment due.
-
#bank_reference_id ⇒ String
The bank reference ID.
-
#credit_promotional_fee ⇒ Money
The currency and amount for a financial transaction, such as a balance or payment due.
-
#credit_term ⇒ String
The credit term.
-
#credit_transactional_fee ⇒ Money
The currency and amount for a financial transaction, such as a balance or payment due.
-
#custom_field ⇒ String
The merchant-provided custom text.
-
#discount_amount ⇒ Money
The currency and amount for a financial transaction, such as a balance or payment due.
-
#ending_balance ⇒ Money
The currency and amount for a financial transaction, such as a balance or payment due.
-
#fee_amount ⇒ Money
The currency and amount for a financial transaction, such as a balance or payment due.
-
#instrument_sub_type ⇒ String
A finer-grained classification of the financial instrument that was used to fund a payment.
-
#instrument_type ⇒ String
A high-level classification of the type of financial instrument that was used to fund a payment.
-
#insurance_amount ⇒ Money
The currency and amount for a financial transaction, such as a balance or payment due.
-
#invoice_id ⇒ String
The invoice ID that is sent by the merchant with the transaction.
-
#other_amount ⇒ Money
The currency and amount for a financial transaction, such as a balance or payment due.
-
#payment_method_type ⇒ String
The payment method that was used for a transaction.
-
#payment_tracking_id ⇒ String
The payment tracking ID, which is a unique ID that partners specify to either get information about a payment or request a refund.
-
#paypal_account_id ⇒ String
The ID of the PayPal account of the counterparty.
-
#paypal_reference_id ⇒ String
The PayPal-generated base ID.
-
#paypal_reference_id_type ⇒ PaypalReferenceIdType
The PayPal reference ID type.
-
#protection_eligibility ⇒ String
Indicates whether the transaction is eligible for protection.
-
#sales_tax_amount ⇒ Money
The currency and amount for a financial transaction, such as a balance or payment due.
-
#shipping_amount ⇒ Money
The currency and amount for a financial transaction, such as a balance or payment due.
-
#shipping_discount_amount ⇒ Money
The currency and amount for a financial transaction, such as a balance or payment due.
-
#shipping_tax_amount ⇒ Money
The currency and amount for a financial transaction, such as a balance or payment due.
-
#tip_amount ⇒ Money
The currency and amount for a financial transaction, such as a balance or payment due.
-
#transaction_amount ⇒ Money
The currency and amount for a financial transaction, such as a balance or payment due.
-
#transaction_event_code ⇒ String
A five-digit transaction event code that classifies the transaction type based on money movement and debit or credit.
-
#transaction_id ⇒ String
The PayPal-generated transaction ID.
-
#transaction_initiation_date ⇒ String
The date and time, in [Internet date and time format](tools.ietf.org/html/rfc3339#section-5.6).
-
#transaction_note ⇒ String
A special note that the payer passes to the payee.
-
#transaction_status ⇒ String
A code that indicates the transaction status.
-
#transaction_subject ⇒ String
The subject of payment.
-
#transaction_updated_date ⇒ String
The date and time, in [Internet date and time format](tools.ietf.org/html/rfc3339#section-5.6).
Class Method Summary collapse
-
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
-
.names ⇒ Object
A mapping from model property names to API property names.
-
.nullables ⇒ Object
An array for nullable fields.
-
.optionals ⇒ Object
An array for optional fields.
Instance Method Summary collapse
-
#initialize(paypal_account_id: SKIP, transaction_id: SKIP, paypal_reference_id: SKIP, paypal_reference_id_type: SKIP, transaction_event_code: SKIP, transaction_initiation_date: SKIP, transaction_updated_date: SKIP, transaction_amount: SKIP, fee_amount: SKIP, discount_amount: SKIP, insurance_amount: SKIP, sales_tax_amount: SKIP, shipping_amount: SKIP, shipping_discount_amount: SKIP, shipping_tax_amount: SKIP, other_amount: SKIP, tip_amount: SKIP, transaction_status: SKIP, transaction_subject: SKIP, transaction_note: SKIP, payment_tracking_id: SKIP, bank_reference_id: SKIP, ending_balance: SKIP, available_balance: SKIP, invoice_id: SKIP, custom_field: SKIP, protection_eligibility: SKIP, credit_term: SKIP, credit_transactional_fee: SKIP, credit_promotional_fee: SKIP, annual_percentage_rate: SKIP, payment_method_type: SKIP, instrument_type: SKIP, instrument_sub_type: SKIP) ⇒ TransactionInformation
constructor
A new instance of TransactionInformation.
-
#inspect ⇒ Object
Provides a debugging-friendly string with detailed object information.
-
#to_s ⇒ Object
Provides a human-readable string representation of the object.
Methods inherited from BaseModel
#check_for_conflict, #process_additional_properties, #process_array, #process_basic_value, #process_hash, #to_hash, #to_json
Constructor Details
#initialize(paypal_account_id: SKIP, transaction_id: SKIP, paypal_reference_id: SKIP, paypal_reference_id_type: SKIP, transaction_event_code: SKIP, transaction_initiation_date: SKIP, transaction_updated_date: SKIP, transaction_amount: SKIP, fee_amount: SKIP, discount_amount: SKIP, insurance_amount: SKIP, sales_tax_amount: SKIP, shipping_amount: SKIP, shipping_discount_amount: SKIP, shipping_tax_amount: SKIP, other_amount: SKIP, tip_amount: SKIP, transaction_status: SKIP, transaction_subject: SKIP, transaction_note: SKIP, payment_tracking_id: SKIP, bank_reference_id: SKIP, ending_balance: SKIP, available_balance: SKIP, invoice_id: SKIP, custom_field: SKIP, protection_eligibility: SKIP, credit_term: SKIP, credit_transactional_fee: SKIP, credit_promotional_fee: SKIP, annual_percentage_rate: SKIP, payment_method_type: SKIP, instrument_type: SKIP, instrument_sub_type: SKIP) ⇒ TransactionInformation
Returns a new instance of TransactionInformation.
286 287 288 289 290 291 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 |
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 286 def initialize(paypal_account_id: SKIP, transaction_id: SKIP, paypal_reference_id: SKIP, paypal_reference_id_type: SKIP, transaction_event_code: SKIP, transaction_initiation_date: SKIP, transaction_updated_date: SKIP, transaction_amount: SKIP, fee_amount: SKIP, discount_amount: SKIP, insurance_amount: SKIP, sales_tax_amount: SKIP, shipping_amount: SKIP, shipping_discount_amount: SKIP, shipping_tax_amount: SKIP, other_amount: SKIP, tip_amount: SKIP, transaction_status: SKIP, transaction_subject: SKIP, transaction_note: SKIP, payment_tracking_id: SKIP, bank_reference_id: SKIP, ending_balance: SKIP, available_balance: SKIP, invoice_id: SKIP, custom_field: SKIP, protection_eligibility: SKIP, credit_term: SKIP, credit_transactional_fee: SKIP, credit_promotional_fee: SKIP, annual_percentage_rate: SKIP, payment_method_type: SKIP, instrument_type: SKIP, instrument_sub_type: SKIP) @paypal_account_id = paypal_account_id unless paypal_account_id == SKIP @transaction_id = transaction_id unless transaction_id == SKIP @paypal_reference_id = paypal_reference_id unless paypal_reference_id == SKIP @paypal_reference_id_type = paypal_reference_id_type unless paypal_reference_id_type == SKIP @transaction_event_code = transaction_event_code unless transaction_event_code == SKIP unless transaction_initiation_date == SKIP @transaction_initiation_date = transaction_initiation_date end @transaction_updated_date = transaction_updated_date unless transaction_updated_date == SKIP @transaction_amount = transaction_amount unless transaction_amount == SKIP @fee_amount = fee_amount unless fee_amount == SKIP @discount_amount = discount_amount unless discount_amount == SKIP @insurance_amount = insurance_amount unless insurance_amount == SKIP @sales_tax_amount = sales_tax_amount unless sales_tax_amount == SKIP @shipping_amount = shipping_amount unless shipping_amount == SKIP @shipping_discount_amount = shipping_discount_amount unless shipping_discount_amount == SKIP @shipping_tax_amount = shipping_tax_amount unless shipping_tax_amount == SKIP @other_amount = other_amount unless other_amount == SKIP @tip_amount = tip_amount unless tip_amount == SKIP @transaction_status = transaction_status unless transaction_status == SKIP @transaction_subject = transaction_subject unless transaction_subject == SKIP @transaction_note = transaction_note unless transaction_note == SKIP @payment_tracking_id = payment_tracking_id unless payment_tracking_id == SKIP @bank_reference_id = bank_reference_id unless bank_reference_id == SKIP @ending_balance = ending_balance unless ending_balance == SKIP @available_balance = available_balance unless available_balance == SKIP @invoice_id = invoice_id unless invoice_id == SKIP @custom_field = custom_field unless custom_field == SKIP @protection_eligibility = protection_eligibility unless protection_eligibility == SKIP @credit_term = credit_term unless credit_term == SKIP @credit_transactional_fee = credit_transactional_fee unless credit_transactional_fee == SKIP @credit_promotional_fee = credit_promotional_fee unless credit_promotional_fee == SKIP @annual_percentage_rate = annual_percentage_rate unless annual_percentage_rate == SKIP @payment_method_type = payment_method_type unless payment_method_type == SKIP @instrument_type = instrument_type unless instrument_type == SKIP @instrument_sub_type = instrument_sub_type unless instrument_sub_type == SKIP end |
Instance Attribute Details
#annual_percentage_rate ⇒ String
The percentage, as a fixed-point, signed decimal number. For example, define a 19.99% interest rate as ‘19.99`.
176 177 178 |
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 176 def annual_percentage_rate @annual_percentage_rate end |
#available_balance ⇒ Money
The currency and amount for a financial transaction, such as a balance or payment due.
140 141 142 |
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 140 def available_balance @available_balance end |
#bank_reference_id ⇒ String
The bank reference ID. The bank provides this value for an ACH transaction.
130 131 132 |
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 130 def bank_reference_id @bank_reference_id end |
#credit_promotional_fee ⇒ Money
The currency and amount for a financial transaction, such as a balance or payment due.
171 172 173 |
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 171 def credit_promotional_fee @credit_promotional_fee end |
#credit_term ⇒ String
The credit term. The time span covered by the installment payments as expressed in the term length plus the length time unit code.
161 162 163 |
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 161 def credit_term @credit_term end |
#credit_transactional_fee ⇒ Money
The currency and amount for a financial transaction, such as a balance or payment due.
166 167 168 |
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 166 def credit_transactional_fee @credit_transactional_fee end |
#custom_field ⇒ String
The merchant-provided custom text. Note: Usually, this field includes the unique ID for payments made with MassPay type transaction.
151 152 153 |
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 151 def custom_field @custom_field end |
#discount_amount ⇒ Money
The currency and amount for a financial transaction, such as a balance or payment due.
64 65 66 |
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 64 def discount_amount @discount_amount end |
#ending_balance ⇒ Money
The currency and amount for a financial transaction, such as a balance or payment due.
135 136 137 |
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 135 def ending_balance @ending_balance end |
#fee_amount ⇒ Money
The currency and amount for a financial transaction, such as a balance or payment due.
59 60 61 |
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 59 def fee_amount @fee_amount end |
#instrument_sub_type ⇒ String
A finer-grained classification of the financial instrument that was used to fund a payment. For example, ‘Visa card` or a `Mastercard` for a credit card, BANKCARD ,DISCOVER etc. The pattern is not provided because the value is defined by an external party.
199 200 201 |
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 199 def instrument_sub_type @instrument_sub_type end |
#instrument_type ⇒ String
A high-level classification of the type of financial instrument that was used to fund a payment. The pattern is not provided because the value is defined by an external party. E.g. PAYPAL, CREDIT_CARD, DEBIT_CARD, APPLE_PAY, BANK , VENMO ,Pay Upon Invoice, Pay Later or Alternative Payment Methods (APM).
192 193 194 |
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 192 def instrument_type @instrument_type end |
#insurance_amount ⇒ Money
The currency and amount for a financial transaction, such as a balance or payment due.
69 70 71 |
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 69 def insurance_amount @insurance_amount end |
#invoice_id ⇒ String
The invoice ID that is sent by the merchant with the transaction. Note: If an invoice ID was sent with the capture request, the value is reported. Otherwise, the invoice ID of the authorizing transaction is reported.
146 147 148 |
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 146 def invoice_id @invoice_id end |
#other_amount ⇒ Money
The currency and amount for a financial transaction, such as a balance or payment due.
94 95 96 |
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 94 def other_amount @other_amount end |
#payment_method_type ⇒ String
The payment method that was used for a transaction. Value is PUI, installment, or mEFT. Note: Appears only for pay upon invoice (PUI), installment, and mEFT transactions. Merchants and partners in the EMEA region can use this attribute to note transactions that attract turn-over tax.
184 185 186 |
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 184 def payment_method_type @payment_method_type end |
#payment_tracking_id ⇒ String
The payment tracking ID, which is a unique ID that partners specify to either get information about a payment or request a refund.
125 126 127 |
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 125 def payment_tracking_id @payment_tracking_id end |
#paypal_account_id ⇒ String
The ID of the PayPal account of the counterparty.
14 15 16 |
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 14 def paypal_account_id @paypal_account_id end |
#paypal_reference_id ⇒ String
The PayPal-generated base ID. PayPal exclusive. Cannot be altered. Defined as a related, pre-existing transaction or event.
23 24 25 |
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 23 def paypal_reference_id @paypal_reference_id end |
#paypal_reference_id_type ⇒ PaypalReferenceIdType
The PayPal reference ID type.
27 28 29 |
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 27 def paypal_reference_id_type @paypal_reference_id_type end |
#protection_eligibility ⇒ String
Indicates whether the transaction is eligible for protection. Value is:
-
Eligible. 02. Not eligible 03. Partially eligible.
156 157 158 |
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 156 def protection_eligibility @protection_eligibility end |
#sales_tax_amount ⇒ Money
The currency and amount for a financial transaction, such as a balance or payment due.
74 75 76 |
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 74 def sales_tax_amount @sales_tax_amount end |
#shipping_amount ⇒ Money
The currency and amount for a financial transaction, such as a balance or payment due.
79 80 81 |
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 79 def shipping_amount @shipping_amount end |
#shipping_discount_amount ⇒ Money
The currency and amount for a financial transaction, such as a balance or payment due.
84 85 86 |
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 84 def shipping_discount_amount @shipping_discount_amount end |
#shipping_tax_amount ⇒ Money
The currency and amount for a financial transaction, such as a balance or payment due.
89 90 91 |
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 89 def shipping_tax_amount @shipping_tax_amount end |
#tip_amount ⇒ Money
The currency and amount for a financial transaction, such as a balance or payment due.
99 100 101 |
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 99 def tip_amount @tip_amount end |
#transaction_amount ⇒ Money
The currency and amount for a financial transaction, such as a balance or payment due.
54 55 56 |
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 54 def transaction_amount @transaction_amount end |
#transaction_event_code ⇒ String
A five-digit transaction event code that classifies the transaction type based on money movement and debit or credit. For example, T0001. See [Transaction event codes](/docs/integration/direct/transaction-search/transaction-event-codes /).
35 36 37 |
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 35 def transaction_event_code @transaction_event_code end |
#transaction_id ⇒ String
The PayPal-generated transaction ID.
18 19 20 |
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 18 def transaction_id @transaction_id end |
#transaction_initiation_date ⇒ String
The date and time, in [Internet date and time format](tools.ietf.org/html/rfc3339#section-5.6). Seconds are required while fractional seconds are optional. Note: The regular expression provides guidance but does not reject all invalid dates.
42 43 44 |
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 42 def transaction_initiation_date @transaction_initiation_date end |
#transaction_note ⇒ String
A special note that the payer passes to the payee. Might contain special customer requests, such as shipping instructions.
120 121 122 |
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 120 def transaction_note @transaction_note end |
#transaction_status ⇒ String
A code that indicates the transaction status. Value is: Status code Description D PayPal or merchant rules denied the transaction. P The transaction is pending. The transaction was created but waits for another payment process to complete, such as an ACH transaction, before the status changes to S. S The transaction successfully completed without a denial and after any pending statuses. V A successful transaction was fully reversed and funds were refunded to the original sender.
109 110 111 |
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 109 def transaction_status @transaction_status end |
#transaction_subject ⇒ String
The subject of payment. The payer passes this value to the payee. The payer controls this data through the interface through which he or she sends the data.
115 116 117 |
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 115 def transaction_subject @transaction_subject end |
#transaction_updated_date ⇒ String
The date and time, in [Internet date and time format](tools.ietf.org/html/rfc3339#section-5.6). Seconds are required while fractional seconds are optional. Note: The regular expression provides guidance but does not reject all invalid dates.
49 50 51 |
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 49 def transaction_updated_date @transaction_updated_date end |
Class Method Details
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
344 345 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 |
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 344 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. paypal_account_id = hash.key?('paypal_account_id') ? hash['paypal_account_id'] : SKIP transaction_id = hash.key?('transaction_id') ? hash['transaction_id'] : SKIP paypal_reference_id = hash.key?('paypal_reference_id') ? hash['paypal_reference_id'] : SKIP paypal_reference_id_type = hash.key?('paypal_reference_id_type') ? hash['paypal_reference_id_type'] : SKIP transaction_event_code = hash.key?('transaction_event_code') ? hash['transaction_event_code'] : SKIP transaction_initiation_date = hash.key?('transaction_initiation_date') ? hash['transaction_initiation_date'] : SKIP transaction_updated_date = hash.key?('transaction_updated_date') ? hash['transaction_updated_date'] : SKIP transaction_amount = Money.from_hash(hash['transaction_amount']) if hash['transaction_amount'] fee_amount = Money.from_hash(hash['fee_amount']) if hash['fee_amount'] discount_amount = Money.from_hash(hash['discount_amount']) if hash['discount_amount'] insurance_amount = Money.from_hash(hash['insurance_amount']) if hash['insurance_amount'] sales_tax_amount = Money.from_hash(hash['sales_tax_amount']) if hash['sales_tax_amount'] shipping_amount = Money.from_hash(hash['shipping_amount']) if hash['shipping_amount'] shipping_discount_amount = Money.from_hash(hash['shipping_discount_amount']) if hash['shipping_discount_amount'] shipping_tax_amount = Money.from_hash(hash['shipping_tax_amount']) if hash['shipping_tax_amount'] other_amount = Money.from_hash(hash['other_amount']) if hash['other_amount'] tip_amount = Money.from_hash(hash['tip_amount']) if hash['tip_amount'] transaction_status = hash.key?('transaction_status') ? hash['transaction_status'] : SKIP transaction_subject = hash.key?('transaction_subject') ? hash['transaction_subject'] : SKIP transaction_note = hash.key?('transaction_note') ? hash['transaction_note'] : SKIP payment_tracking_id = hash.key?('payment_tracking_id') ? hash['payment_tracking_id'] : SKIP bank_reference_id = hash.key?('bank_reference_id') ? hash['bank_reference_id'] : SKIP ending_balance = Money.from_hash(hash['ending_balance']) if hash['ending_balance'] available_balance = Money.from_hash(hash['available_balance']) if hash['available_balance'] invoice_id = hash.key?('invoice_id') ? hash['invoice_id'] : SKIP custom_field = hash.key?('custom_field') ? hash['custom_field'] : SKIP protection_eligibility = hash.key?('protection_eligibility') ? hash['protection_eligibility'] : SKIP credit_term = hash.key?('credit_term') ? hash['credit_term'] : SKIP credit_transactional_fee = Money.from_hash(hash['credit_transactional_fee']) if hash['credit_transactional_fee'] credit_promotional_fee = Money.from_hash(hash['credit_promotional_fee']) if hash['credit_promotional_fee'] annual_percentage_rate = hash.key?('annual_percentage_rate') ? hash['annual_percentage_rate'] : SKIP payment_method_type = hash.key?('payment_method_type') ? hash['payment_method_type'] : SKIP instrument_type = hash.key?('instrument_type') ? hash['instrument_type'] : SKIP instrument_sub_type = hash.key?('instrument_sub_type') ? hash['instrument_sub_type'] : SKIP # Create object from extracted values. TransactionInformation.new(paypal_account_id: paypal_account_id, transaction_id: transaction_id, paypal_reference_id: paypal_reference_id, paypal_reference_id_type: paypal_reference_id_type, transaction_event_code: transaction_event_code, transaction_initiation_date: transaction_initiation_date, transaction_updated_date: transaction_updated_date, transaction_amount: transaction_amount, fee_amount: fee_amount, discount_amount: discount_amount, insurance_amount: insurance_amount, sales_tax_amount: sales_tax_amount, shipping_amount: shipping_amount, shipping_discount_amount: shipping_discount_amount, shipping_tax_amount: shipping_tax_amount, other_amount: other_amount, tip_amount: tip_amount, transaction_status: transaction_status, transaction_subject: transaction_subject, transaction_note: transaction_note, payment_tracking_id: payment_tracking_id, bank_reference_id: bank_reference_id, ending_balance: ending_balance, available_balance: available_balance, invoice_id: invoice_id, custom_field: custom_field, protection_eligibility: protection_eligibility, credit_term: credit_term, credit_transactional_fee: credit_transactional_fee, credit_promotional_fee: credit_promotional_fee, annual_percentage_rate: annual_percentage_rate, payment_method_type: payment_method_type, instrument_type: instrument_type, instrument_sub_type: instrument_sub_type) end |
.names ⇒ Object
A mapping from model property names to API property names.
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 227 228 229 230 231 232 233 234 235 236 237 238 239 |
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 202 def self.names @_hash = {} if @_hash.nil? @_hash['paypal_account_id'] = 'paypal_account_id' @_hash['transaction_id'] = 'transaction_id' @_hash['paypal_reference_id'] = 'paypal_reference_id' @_hash['paypal_reference_id_type'] = 'paypal_reference_id_type' @_hash['transaction_event_code'] = 'transaction_event_code' @_hash['transaction_initiation_date'] = 'transaction_initiation_date' @_hash['transaction_updated_date'] = 'transaction_updated_date' @_hash['transaction_amount'] = 'transaction_amount' @_hash['fee_amount'] = 'fee_amount' @_hash['discount_amount'] = 'discount_amount' @_hash['insurance_amount'] = 'insurance_amount' @_hash['sales_tax_amount'] = 'sales_tax_amount' @_hash['shipping_amount'] = 'shipping_amount' @_hash['shipping_discount_amount'] = 'shipping_discount_amount' @_hash['shipping_tax_amount'] = 'shipping_tax_amount' @_hash['other_amount'] = 'other_amount' @_hash['tip_amount'] = 'tip_amount' @_hash['transaction_status'] = 'transaction_status' @_hash['transaction_subject'] = 'transaction_subject' @_hash['transaction_note'] = 'transaction_note' @_hash['payment_tracking_id'] = 'payment_tracking_id' @_hash['bank_reference_id'] = 'bank_reference_id' @_hash['ending_balance'] = 'ending_balance' @_hash['available_balance'] = 'available_balance' @_hash['invoice_id'] = 'invoice_id' @_hash['custom_field'] = 'custom_field' @_hash['protection_eligibility'] = 'protection_eligibility' @_hash['credit_term'] = 'credit_term' @_hash['credit_transactional_fee'] = 'credit_transactional_fee' @_hash['credit_promotional_fee'] = 'credit_promotional_fee' @_hash['annual_percentage_rate'] = 'annual_percentage_rate' @_hash['payment_method_type'] = 'payment_method_type' @_hash['instrument_type'] = 'instrument_type' @_hash['instrument_sub_type'] = 'instrument_sub_type' @_hash end |
.nullables ⇒ Object
An array for nullable fields
282 283 284 |
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 282 def self.nullables [] end |
.optionals ⇒ Object
An array for optional fields
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 |
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 242 def self.optionals %w[ paypal_account_id transaction_id paypal_reference_id paypal_reference_id_type transaction_event_code transaction_initiation_date transaction_updated_date transaction_amount fee_amount discount_amount insurance_amount sales_tax_amount shipping_amount shipping_discount_amount shipping_tax_amount other_amount tip_amount transaction_status transaction_subject transaction_note payment_tracking_id bank_reference_id ending_balance available_balance invoice_id custom_field protection_eligibility credit_term credit_transactional_fee credit_promotional_fee annual_percentage_rate payment_method_type instrument_type instrument_sub_type ] end |
Instance Method Details
#inspect ⇒ Object
Provides a debugging-friendly string with detailed object information.
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 |
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 467 def inspect class_name = self.class.name.split('::').last "<#{class_name} paypal_account_id: #{@paypal_account_id.inspect}, transaction_id:"\ " #{@transaction_id.inspect}, paypal_reference_id: #{@paypal_reference_id.inspect},"\ " paypal_reference_id_type: #{@paypal_reference_id_type.inspect}, transaction_event_code:"\ " #{@transaction_event_code.inspect}, transaction_initiation_date:"\ " #{@transaction_initiation_date.inspect}, transaction_updated_date:"\ " #{@transaction_updated_date.inspect}, transaction_amount: #{@transaction_amount.inspect},"\ " fee_amount: #{@fee_amount.inspect}, discount_amount: #{@discount_amount.inspect},"\ " insurance_amount: #{@insurance_amount.inspect}, sales_tax_amount:"\ " #{@sales_tax_amount.inspect}, shipping_amount: #{@shipping_amount.inspect},"\ " shipping_discount_amount: #{@shipping_discount_amount.inspect}, shipping_tax_amount:"\ " #{@shipping_tax_amount.inspect}, other_amount: #{@other_amount.inspect}, tip_amount:"\ " #{@tip_amount.inspect}, transaction_status: #{@transaction_status.inspect},"\ " transaction_subject: #{@transaction_subject.inspect}, transaction_note:"\ " #{@transaction_note.inspect}, payment_tracking_id: #{@payment_tracking_id.inspect},"\ " bank_reference_id: #{@bank_reference_id.inspect}, ending_balance:"\ " #{@ending_balance.inspect}, available_balance: #{@available_balance.inspect}, invoice_id:"\ " #{@invoice_id.inspect}, custom_field: #{@custom_field.inspect}, protection_eligibility:"\ " #{@protection_eligibility.inspect}, credit_term: #{@credit_term.inspect},"\ " credit_transactional_fee: #{@credit_transactional_fee.inspect}, credit_promotional_fee:"\ " #{@credit_promotional_fee.inspect}, annual_percentage_rate:"\ " #{@annual_percentage_rate.inspect}, payment_method_type: #{@payment_method_type.inspect},"\ " instrument_type: #{@instrument_type.inspect}, instrument_sub_type:"\ " #{@instrument_sub_type.inspect}>" end |
#to_s ⇒ Object
Provides a human-readable string representation of the object.
443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 |
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 443 def to_s class_name = self.class.name.split('::').last "<#{class_name} paypal_account_id: #{@paypal_account_id}, transaction_id:"\ " #{@transaction_id}, paypal_reference_id: #{@paypal_reference_id},"\ " paypal_reference_id_type: #{@paypal_reference_id_type}, transaction_event_code:"\ " #{@transaction_event_code}, transaction_initiation_date: #{@transaction_initiation_date},"\ " transaction_updated_date: #{@transaction_updated_date}, transaction_amount:"\ " #{@transaction_amount}, fee_amount: #{@fee_amount}, discount_amount: #{@discount_amount},"\ " insurance_amount: #{@insurance_amount}, sales_tax_amount: #{@sales_tax_amount},"\ " shipping_amount: #{@shipping_amount}, shipping_discount_amount:"\ " #{@shipping_discount_amount}, shipping_tax_amount: #{@shipping_tax_amount}, other_amount:"\ " #{@other_amount}, tip_amount: #{@tip_amount}, transaction_status: #{@transaction_status},"\ " transaction_subject: #{@transaction_subject}, transaction_note: #{@transaction_note},"\ " payment_tracking_id: #{@payment_tracking_id}, bank_reference_id: #{@bank_reference_id},"\ " ending_balance: #{@ending_balance}, available_balance: #{@available_balance}, invoice_id:"\ " #{@invoice_id}, custom_field: #{@custom_field}, protection_eligibility:"\ " #{@protection_eligibility}, credit_term: #{@credit_term}, credit_transactional_fee:"\ " #{@credit_transactional_fee}, credit_promotional_fee: #{@credit_promotional_fee},"\ " annual_percentage_rate: #{@annual_percentage_rate}, payment_method_type:"\ " #{@payment_method_type}, instrument_type: #{@instrument_type}, instrument_sub_type:"\ " #{@instrument_sub_type}>" end |