Class: PCPServerSDK::Queries::GetCheckoutsQuery
- Inherits:
-
Object
- Object
- PCPServerSDK::Queries::GetCheckoutsQuery
- Defined in:
- lib/PCP-server-Ruby-SDK/queries/get_checkouts_query.rb
Instance Attribute Summary collapse
-
#checkout_id ⇒ Object
Returns the value of attribute checkout_id.
-
#company_information ⇒ Object
Returns the value of attribute company_information.
-
#date_of_birth ⇒ Object
Returns the value of attribute date_of_birth.
-
#email ⇒ Object
Returns the value of attribute email.
-
#first_name ⇒ Object
Returns the value of attribute first_name.
-
#from_cancelled_amount ⇒ Object
Returns the value of attribute from_cancelled_amount.
-
#from_chargeback_amount ⇒ Object
Returns the value of attribute from_chargeback_amount.
-
#from_checkout_amount ⇒ Object
Returns the value of attribute from_checkout_amount.
-
#from_collected_amount ⇒ Object
Returns the value of attribute from_collected_amount.
-
#from_date ⇒ Object
Returns the value of attribute from_date.
-
#from_open_amount ⇒ Object
Returns the value of attribute from_open_amount.
-
#from_refund_amount ⇒ Object
Returns the value of attribute from_refund_amount.
-
#include_checkout_status ⇒ Object
Returns the value of attribute include_checkout_status.
-
#include_extended_checkout_status ⇒ Object
Returns the value of attribute include_extended_checkout_status.
-
#include_payment_channel ⇒ Object
Returns the value of attribute include_payment_channel.
-
#include_payment_product_id ⇒ Object
Returns the value of attribute include_payment_product_id.
-
#merchant_customer_id ⇒ Object
Returns the value of attribute merchant_customer_id.
-
#merchant_reference ⇒ Object
Returns the value of attribute merchant_reference.
-
#offset ⇒ Object
Returns the value of attribute offset.
-
#payment_id ⇒ Object
Returns the value of attribute payment_id.
-
#payment_reference ⇒ Object
Returns the value of attribute payment_reference.
-
#phone_number ⇒ Object
Returns the value of attribute phone_number.
-
#reporting_token ⇒ Object
Returns the value of attribute reporting_token.
-
#size ⇒ Object
Returns the value of attribute size.
-
#surname ⇒ Object
Returns the value of attribute surname.
-
#terminal_id ⇒ Object
Returns the value of attribute terminal_id.
-
#to_cancelled_amount ⇒ Object
Returns the value of attribute to_cancelled_amount.
-
#to_chargeback_amount ⇒ Object
Returns the value of attribute to_chargeback_amount.
-
#to_checkout_amount ⇒ Object
Returns the value of attribute to_checkout_amount.
-
#to_collected_amount ⇒ Object
Returns the value of attribute to_collected_amount.
-
#to_date ⇒ Object
Returns the value of attribute to_date.
-
#to_open_amount ⇒ Object
Returns the value of attribute to_open_amount.
-
#to_refund_amount ⇒ Object
Returns the value of attribute to_refund_amount.
Instance Method Summary collapse
-
#initialize ⇒ GetCheckoutsQuery
constructor
A new instance of GetCheckoutsQuery.
- #to_query_map ⇒ Object
Constructor Details
#initialize ⇒ GetCheckoutsQuery
Returns a new instance of GetCheckoutsQuery.
20 21 22 23 24 25 |
# File 'lib/PCP-server-Ruby-SDK/queries/get_checkouts_query.rb', line 20 def initialize @include_payment_product_id = [] @include_checkout_status = [] @include_extended_checkout_status = [] @include_payment_channel = [] end |
Instance Attribute Details
#checkout_id ⇒ Object
Returns the value of attribute checkout_id.
7 8 9 |
# File 'lib/PCP-server-Ruby-SDK/queries/get_checkouts_query.rb', line 7 def checkout_id @checkout_id end |
#company_information ⇒ Object
Returns the value of attribute company_information.
7 8 9 |
# File 'lib/PCP-server-Ruby-SDK/queries/get_checkouts_query.rb', line 7 def company_information @company_information end |
#date_of_birth ⇒ Object
Returns the value of attribute date_of_birth.
7 8 9 |
# File 'lib/PCP-server-Ruby-SDK/queries/get_checkouts_query.rb', line 7 def date_of_birth @date_of_birth end |
#email ⇒ Object
Returns the value of attribute email.
7 8 9 |
# File 'lib/PCP-server-Ruby-SDK/queries/get_checkouts_query.rb', line 7 def email @email end |
#first_name ⇒ Object
Returns the value of attribute first_name.
7 8 9 |
# File 'lib/PCP-server-Ruby-SDK/queries/get_checkouts_query.rb', line 7 def first_name @first_name end |
#from_cancelled_amount ⇒ Object
Returns the value of attribute from_cancelled_amount.
7 8 9 |
# File 'lib/PCP-server-Ruby-SDK/queries/get_checkouts_query.rb', line 7 def from_cancelled_amount @from_cancelled_amount end |
#from_chargeback_amount ⇒ Object
Returns the value of attribute from_chargeback_amount.
7 8 9 |
# File 'lib/PCP-server-Ruby-SDK/queries/get_checkouts_query.rb', line 7 def from_chargeback_amount @from_chargeback_amount end |
#from_checkout_amount ⇒ Object
Returns the value of attribute from_checkout_amount.
7 8 9 |
# File 'lib/PCP-server-Ruby-SDK/queries/get_checkouts_query.rb', line 7 def from_checkout_amount @from_checkout_amount end |
#from_collected_amount ⇒ Object
Returns the value of attribute from_collected_amount.
7 8 9 |
# File 'lib/PCP-server-Ruby-SDK/queries/get_checkouts_query.rb', line 7 def from_collected_amount @from_collected_amount end |
#from_date ⇒ Object
Returns the value of attribute from_date.
7 8 9 |
# File 'lib/PCP-server-Ruby-SDK/queries/get_checkouts_query.rb', line 7 def from_date @from_date end |
#from_open_amount ⇒ Object
Returns the value of attribute from_open_amount.
7 8 9 |
# File 'lib/PCP-server-Ruby-SDK/queries/get_checkouts_query.rb', line 7 def from_open_amount @from_open_amount end |
#from_refund_amount ⇒ Object
Returns the value of attribute from_refund_amount.
7 8 9 |
# File 'lib/PCP-server-Ruby-SDK/queries/get_checkouts_query.rb', line 7 def from_refund_amount @from_refund_amount end |
#include_checkout_status ⇒ Object
Returns the value of attribute include_checkout_status.
7 8 9 |
# File 'lib/PCP-server-Ruby-SDK/queries/get_checkouts_query.rb', line 7 def include_checkout_status @include_checkout_status end |
#include_extended_checkout_status ⇒ Object
Returns the value of attribute include_extended_checkout_status.
7 8 9 |
# File 'lib/PCP-server-Ruby-SDK/queries/get_checkouts_query.rb', line 7 def include_extended_checkout_status @include_extended_checkout_status end |
#include_payment_channel ⇒ Object
Returns the value of attribute include_payment_channel.
7 8 9 |
# File 'lib/PCP-server-Ruby-SDK/queries/get_checkouts_query.rb', line 7 def include_payment_channel @include_payment_channel end |
#include_payment_product_id ⇒ Object
Returns the value of attribute include_payment_product_id.
7 8 9 |
# File 'lib/PCP-server-Ruby-SDK/queries/get_checkouts_query.rb', line 7 def include_payment_product_id @include_payment_product_id end |
#merchant_customer_id ⇒ Object
Returns the value of attribute merchant_customer_id.
7 8 9 |
# File 'lib/PCP-server-Ruby-SDK/queries/get_checkouts_query.rb', line 7 def merchant_customer_id @merchant_customer_id end |
#merchant_reference ⇒ Object
Returns the value of attribute merchant_reference.
7 8 9 |
# File 'lib/PCP-server-Ruby-SDK/queries/get_checkouts_query.rb', line 7 def merchant_reference @merchant_reference end |
#offset ⇒ Object
Returns the value of attribute offset.
7 8 9 |
# File 'lib/PCP-server-Ruby-SDK/queries/get_checkouts_query.rb', line 7 def offset @offset end |
#payment_id ⇒ Object
Returns the value of attribute payment_id.
7 8 9 |
# File 'lib/PCP-server-Ruby-SDK/queries/get_checkouts_query.rb', line 7 def payment_id @payment_id end |
#payment_reference ⇒ Object
Returns the value of attribute payment_reference.
7 8 9 |
# File 'lib/PCP-server-Ruby-SDK/queries/get_checkouts_query.rb', line 7 def payment_reference @payment_reference end |
#phone_number ⇒ Object
Returns the value of attribute phone_number.
7 8 9 |
# File 'lib/PCP-server-Ruby-SDK/queries/get_checkouts_query.rb', line 7 def phone_number @phone_number end |
#reporting_token ⇒ Object
Returns the value of attribute reporting_token.
7 8 9 |
# File 'lib/PCP-server-Ruby-SDK/queries/get_checkouts_query.rb', line 7 def reporting_token @reporting_token end |
#size ⇒ Object
Returns the value of attribute size.
7 8 9 |
# File 'lib/PCP-server-Ruby-SDK/queries/get_checkouts_query.rb', line 7 def size @size end |
#surname ⇒ Object
Returns the value of attribute surname.
7 8 9 |
# File 'lib/PCP-server-Ruby-SDK/queries/get_checkouts_query.rb', line 7 def surname @surname end |
#terminal_id ⇒ Object
Returns the value of attribute terminal_id.
7 8 9 |
# File 'lib/PCP-server-Ruby-SDK/queries/get_checkouts_query.rb', line 7 def terminal_id @terminal_id end |
#to_cancelled_amount ⇒ Object
Returns the value of attribute to_cancelled_amount.
7 8 9 |
# File 'lib/PCP-server-Ruby-SDK/queries/get_checkouts_query.rb', line 7 def to_cancelled_amount @to_cancelled_amount end |
#to_chargeback_amount ⇒ Object
Returns the value of attribute to_chargeback_amount.
7 8 9 |
# File 'lib/PCP-server-Ruby-SDK/queries/get_checkouts_query.rb', line 7 def to_chargeback_amount @to_chargeback_amount end |
#to_checkout_amount ⇒ Object
Returns the value of attribute to_checkout_amount.
7 8 9 |
# File 'lib/PCP-server-Ruby-SDK/queries/get_checkouts_query.rb', line 7 def to_checkout_amount @to_checkout_amount end |
#to_collected_amount ⇒ Object
Returns the value of attribute to_collected_amount.
7 8 9 |
# File 'lib/PCP-server-Ruby-SDK/queries/get_checkouts_query.rb', line 7 def to_collected_amount @to_collected_amount end |
#to_date ⇒ Object
Returns the value of attribute to_date.
7 8 9 |
# File 'lib/PCP-server-Ruby-SDK/queries/get_checkouts_query.rb', line 7 def to_date @to_date end |
#to_open_amount ⇒ Object
Returns the value of attribute to_open_amount.
7 8 9 |
# File 'lib/PCP-server-Ruby-SDK/queries/get_checkouts_query.rb', line 7 def to_open_amount @to_open_amount end |
#to_refund_amount ⇒ Object
Returns the value of attribute to_refund_amount.
7 8 9 |
# File 'lib/PCP-server-Ruby-SDK/queries/get_checkouts_query.rb', line 7 def to_refund_amount @to_refund_amount end |
Instance Method Details
#to_query_map ⇒ Object
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
# File 'lib/PCP-server-Ruby-SDK/queries/get_checkouts_query.rb', line 27 def to_query_map query = {} query['offset'] = @offset.to_s if @offset query['size'] = @size.to_s if @size query['fromDate'] = @from_date if @from_date query['toDate'] = @to_date if @to_date query['fromCheckoutAmount'] = @from_checkout_amount.to_s if @from_checkout_amount query['toCheckoutAmount'] = @to_checkout_amount.to_s if @to_checkout_amount query['fromOpenAmount'] = @from_open_amount.to_s if @from_open_amount query['toOpenAmount'] = @to_open_amount.to_s if @to_open_amount query['fromCollectedAmount'] = @from_collected_amount.to_s if @from_collected_amount query['toCollectedAmount'] = @to_collected_amount.to_s if @to_collected_amount query['fromCancelledAmount'] = @from_cancelled_amount.to_s if @from_cancelled_amount query['toCancelledAmount'] = @to_cancelled_amount.to_s if @to_cancelled_amount query['fromRefundAmount'] = @from_refund_amount.to_s if @from_refund_amount query['toRefundAmount'] = @to_refund_amount.to_s if @to_refund_amount query['fromChargebackAmount'] = @from_chargeback_amount.to_s if @from_chargeback_amount query['toChargebackAmount'] = @to_chargeback_amount.to_s if @to_chargeback_amount query['checkoutId'] = @checkout_id if @checkout_id query['merchantReference'] = @merchant_reference if @merchant_reference query['merchantCustomerId'] = @merchant_customer_id if @merchant_customer_id query['includePaymentProductId'] = @include_payment_product_id.join(',') if @include_payment_product_id.any? query['includeCheckoutStatus'] = @include_checkout_status.join(',') if @include_checkout_status.any? query['includeExtendedCheckoutStatus'] = @include_extended_checkout_status.join(',') if @include_extended_checkout_status.any? query['includePaymentChannel'] = @include_payment_channel.join(',') if @include_payment_channel.any? query['paymentReference'] = @payment_reference if @payment_reference query['paymentId'] = @payment_id if @payment_id query['firstName'] = @first_name if @first_name query['surname'] = @surname if @surname query['email'] = @email if @email query['phoneNumber'] = @phone_number if @phone_number query['dateOfBirth'] = @date_of_birth if @date_of_birth query['companyInformation'] = @company_information if @company_information query['terminalId'] = @terminal_id if @terminal_id query['reportingToken'] = @reporting_token if @reporting_token query end |