Class: PaypalServerSdk::TransactionInformation

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/paypal_server_sdk/models/transaction_information.rb

Overview

The transaction information.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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 =  unless  == 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_rateString

The percentage, as a fixed-point, signed decimal number. For example, define a 19.99% interest rate as ‘19.99`.

Returns:

  • (String)


176
177
178
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 176

def annual_percentage_rate
  @annual_percentage_rate
end

#available_balanceMoney

The currency and amount for a financial transaction, such as a balance or payment due.

Returns:



140
141
142
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 140

def available_balance
  @available_balance
end

#bank_reference_idString

The bank reference ID. The bank provides this value for an ACH transaction.

Returns:

  • (String)


130
131
132
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 130

def bank_reference_id
  @bank_reference_id
end

#credit_promotional_feeMoney

The currency and amount for a financial transaction, such as a balance or payment due.

Returns:



171
172
173
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 171

def credit_promotional_fee
  @credit_promotional_fee
end

#credit_termString

The credit term. The time span covered by the installment payments as expressed in the term length plus the length time unit code.

Returns:

  • (String)


161
162
163
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 161

def credit_term
  @credit_term
end

#credit_transactional_feeMoney

The currency and amount for a financial transaction, such as a balance or payment due.

Returns:



166
167
168
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 166

def credit_transactional_fee
  @credit_transactional_fee
end

#custom_fieldString

The merchant-provided custom text. Note: Usually, this field includes the unique ID for payments made with MassPay type transaction.

Returns:

  • (String)


151
152
153
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 151

def custom_field
  @custom_field
end

#discount_amountMoney

The currency and amount for a financial transaction, such as a balance or payment due.

Returns:



64
65
66
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 64

def discount_amount
  @discount_amount
end

#ending_balanceMoney

The currency and amount for a financial transaction, such as a balance or payment due.

Returns:



135
136
137
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 135

def ending_balance
  @ending_balance
end

#fee_amountMoney

The currency and amount for a financial transaction, such as a balance or payment due.

Returns:



59
60
61
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 59

def fee_amount
  @fee_amount
end

#instrument_sub_typeString

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.

Returns:

  • (String)


199
200
201
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 199

def instrument_sub_type
  @instrument_sub_type
end

#instrument_typeString

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).

Returns:

  • (String)


192
193
194
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 192

def instrument_type
  @instrument_type
end

#insurance_amountMoney

The currency and amount for a financial transaction, such as a balance or payment due.

Returns:



69
70
71
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 69

def insurance_amount
  @insurance_amount
end

#invoice_idString

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.

Returns:

  • (String)


146
147
148
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 146

def invoice_id
  @invoice_id
end

#other_amountMoney

The currency and amount for a financial transaction, such as a balance or payment due.

Returns:



94
95
96
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 94

def other_amount
  @other_amount
end

#payment_method_typeString

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.

Returns:

  • (String)


184
185
186
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 184

def payment_method_type
  @payment_method_type
end

#payment_tracking_idString

The payment tracking ID, which is a unique ID that partners specify to either get information about a payment or request a refund.

Returns:

  • (String)


125
126
127
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 125

def payment_tracking_id
  @payment_tracking_id
end

#paypal_account_idString

The ID of the PayPal account of the counterparty.

Returns:

  • (String)


14
15
16
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 14

def 
  @paypal_account_id
end

#paypal_reference_idString

The PayPal-generated base ID. PayPal exclusive. Cannot be altered. Defined as a related, pre-existing transaction or event.

Returns:

  • (String)


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_typePaypalReferenceIdType

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_eligibilityString

Indicates whether the transaction is eligible for protection. Value is:

  1. Eligible. 02. Not eligible 03. Partially eligible.

Returns:

  • (String)


156
157
158
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 156

def protection_eligibility
  @protection_eligibility
end

#sales_tax_amountMoney

The currency and amount for a financial transaction, such as a balance or payment due.

Returns:



74
75
76
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 74

def sales_tax_amount
  @sales_tax_amount
end

#shipping_amountMoney

The currency and amount for a financial transaction, such as a balance or payment due.

Returns:



79
80
81
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 79

def shipping_amount
  @shipping_amount
end

#shipping_discount_amountMoney

The currency and amount for a financial transaction, such as a balance or payment due.

Returns:



84
85
86
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 84

def shipping_discount_amount
  @shipping_discount_amount
end

#shipping_tax_amountMoney

The currency and amount for a financial transaction, such as a balance or payment due.

Returns:



89
90
91
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 89

def shipping_tax_amount
  @shipping_tax_amount
end

#tip_amountMoney

The currency and amount for a financial transaction, such as a balance or payment due.

Returns:



99
100
101
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 99

def tip_amount
  @tip_amount
end

#transaction_amountMoney

The currency and amount for a financial transaction, such as a balance or payment due.

Returns:



54
55
56
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 54

def transaction_amount
  @transaction_amount
end

#transaction_event_codeString

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 /).

Returns:

  • (String)


35
36
37
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 35

def transaction_event_code
  @transaction_event_code
end

#transaction_idString

The PayPal-generated transaction ID.

Returns:

  • (String)


18
19
20
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 18

def transaction_id
  @transaction_id
end

#transaction_initiation_dateString

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.

Returns:

  • (String)


42
43
44
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 42

def transaction_initiation_date
  @transaction_initiation_date
end

#transaction_noteString

A special note that the payer passes to the payee. Might contain special customer requests, such as shipping instructions.

Returns:

  • (String)


120
121
122
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 120

def transaction_note
  @transaction_note
end

#transaction_statusString

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.

Returns:

  • (String)


109
110
111
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 109

def transaction_status
  @transaction_status
end

#transaction_subjectString

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.

Returns:

  • (String)


115
116
117
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 115

def transaction_subject
  @transaction_subject
end

#transaction_updated_dateString

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.

Returns:

  • (String)


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.
   =
    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: ,
                             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

.namesObject

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

.nullablesObject

An array for nullable fields



282
283
284
# File 'lib/paypal_server_sdk/models/transaction_information.rb', line 282

def self.nullables
  []
end

.optionalsObject

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

#inspectObject

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_sObject

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