apimatic-cp-sdk 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE +28 -0
- data/README.md +178 -0
- data/bin/console +15 -0
- data/lib/cell_point_api/api_helper.rb +10 -0
- data/lib/cell_point_api/apis/apple_pay_api.rb +51 -0
- data/lib/cell_point_api/apis/authentication_api.rb +81 -0
- data/lib/cell_point_api/apis/base_api.rb +67 -0
- data/lib/cell_point_api/apis/bulk_api.rb +93 -0
- data/lib/cell_point_api/apis/cards_api.rb +104 -0
- data/lib/cell_point_api/apis/notes_api.rb +66 -0
- data/lib/cell_point_api/apis/oauth_authorization_api.rb +44 -0
- data/lib/cell_point_api/apis/orders_api.rb +483 -0
- data/lib/cell_point_api/apis/payment_methods_api.rb +57 -0
- data/lib/cell_point_api/apis/proxy_api.rb +91 -0
- data/lib/cell_point_api/apis/transactions_api.rb +546 -0
- data/lib/cell_point_api/apis/wallet_api.rb +39 -0
- data/lib/cell_point_api/client.rb +145 -0
- data/lib/cell_point_api/configuration.rb +180 -0
- data/lib/cell_point_api/events/callbacks/callbacks_handler.rb +37 -0
- data/lib/cell_point_api/events/unknown_event.rb +32 -0
- data/lib/cell_point_api/exceptions/api_exception.rb +21 -0
- data/lib/cell_point_api/exceptions/oauth_provider_exception.rb +64 -0
- data/lib/cell_point_api/exceptions/problem_exception.rb +75 -0
- data/lib/cell_point_api/http/api_response.rb +19 -0
- data/lib/cell_point_api/http/auth/cpd_issued_jwt.rb +156 -0
- data/lib/cell_point_api/http/auth/merchant_issued_jwt.rb +53 -0
- data/lib/cell_point_api/http/http_call_back.rb +10 -0
- data/lib/cell_point_api/http/http_method_enum.rb +10 -0
- data/lib/cell_point_api/http/http_request.rb +10 -0
- data/lib/cell_point_api/http/http_response.rb +10 -0
- data/lib/cell_point_api/http/proxy_settings.rb +22 -0
- data/lib/cell_point_api/logging/configuration/api_logging_configuration.rb +186 -0
- data/lib/cell_point_api/logging/sdk_logger.rb +17 -0
- data/lib/cell_point_api/models/account.rb +168 -0
- data/lib/cell_point_api/models/account_status.rb +52 -0
- data/lib/cell_point_api/models/account_type.rb +44 -0
- data/lib/cell_point_api/models/action_base.rb +74 -0
- data/lib/cell_point_api/models/action_completion_response.rb +77 -0
- data/lib/cell_point_api/models/action_result_status.rb +40 -0
- data/lib/cell_point_api/models/action_type.rb +36 -0
- data/lib/cell_point_api/models/activity.rb +244 -0
- data/lib/cell_point_api/models/activity_data.rb +127 -0
- data/lib/cell_point_api/models/address_verification_status.rb +56 -0
- data/lib/cell_point_api/models/airline_ancillary.rb +244 -0
- data/lib/cell_point_api/models/airline_ancillary_data.rb +120 -0
- data/lib/cell_point_api/models/airline_fare.rb +348 -0
- data/lib/cell_point_api/models/airline_fare_data.rb +217 -0
- data/lib/cell_point_api/models/airline_industry_data.rb +152 -0
- data/lib/cell_point_api/models/airport.rb +144 -0
- data/lib/cell_point_api/models/amount.rb +105 -0
- data/lib/cell_point_api/models/ancillary_details.rb +366 -0
- data/lib/cell_point_api/models/apple_pay_config.rb +83 -0
- data/lib/cell_point_api/models/apple_pay_instrument_apple_pay_node.rb +119 -0
- data/lib/cell_point_api/models/apple_pay_payment_instrument.rb +123 -0
- data/lib/cell_point_api/models/apple_tokenized_token.rb +143 -0
- data/lib/cell_point_api/models/audience.rb +36 -0
- data/lib/cell_point_api/models/authorization.rb +145 -0
- data/lib/cell_point_api/models/authorization_group.rb +99 -0
- data/lib/cell_point_api/models/authorization_group1.rb +216 -0
- data/lib/cell_point_api/models/authorization_group_full.rb +193 -0
- data/lib/cell_point_api/models/authorize_order_by_id_post201_response.rb +128 -0
- data/lib/cell_point_api/models/auto_rental.rb +195 -0
- data/lib/cell_point_api/models/auto_rental_data.rb +76 -0
- data/lib/cell_point_api/models/auto_rental_industry_data.rb +182 -0
- data/lib/cell_point_api/models/base_model.rb +110 -0
- data/lib/cell_point_api/models/bin.rb +73 -0
- data/lib/cell_point_api/models/breadcrumb.rb +86 -0
- data/lib/cell_point_api/models/browser_info.rb +114 -0
- data/lib/cell_point_api/models/bundle.rb +195 -0
- data/lib/cell_point_api/models/bundled_activity.rb +229 -0
- data/lib/cell_point_api/models/bundled_airline_ancillary.rb +226 -0
- data/lib/cell_point_api/models/bundled_airline_fare.rb +330 -0
- data/lib/cell_point_api/models/bundled_auto_rental.rb +176 -0
- data/lib/cell_point_api/models/bundled_discount.rb +132 -0
- data/lib/cell_point_api/models/bundled_item_base.rb +123 -0
- data/lib/cell_point_api/models/bundled_lodging_reservation.rb +176 -0
- data/lib/cell_point_api/models/bundled_product.rb +161 -0
- data/lib/cell_point_api/models/buyer.rb +129 -0
- data/lib/cell_point_api/models/buyer_fingerprint.rb +125 -0
- data/lib/cell_point_api/models/buyer_history.rb +199 -0
- data/lib/cell_point_api/models/cancel.rb +109 -0
- data/lib/cell_point_api/models/cancelled_payment_transactions.rb +84 -0
- data/lib/cell_point_api/models/capabilities.rb +77 -0
- data/lib/cell_point_api/models/capture.rb +84 -0
- data/lib/cell_point_api/models/capture_payment_response.rb +159 -0
- data/lib/cell_point_api/models/card.rb +131 -0
- data/lib/cell_point_api/models/card_config.rb +105 -0
- data/lib/cell_point_api/models/card_identification.rb +126 -0
- data/lib/cell_point_api/models/card_instrument_card_node.rb +232 -0
- data/lib/cell_point_api/models/card_number.rb +122 -0
- data/lib/cell_point_api/models/card_payment_instrument.rb +136 -0
- data/lib/cell_point_api/models/card_scheme.rb +63 -0
- data/lib/cell_point_api/models/card_scheme_configuration.rb +87 -0
- data/lib/cell_point_api/models/carrier.rb +82 -0
- data/lib/cell_point_api/models/category.rb +36 -0
- data/lib/cell_point_api/models/client_assertion.rb +135 -0
- data/lib/cell_point_api/models/close.rb +89 -0
- data/lib/cell_point_api/models/close_refund_response.rb +73 -0
- data/lib/cell_point_api/models/closed_payment_transactions.rb +83 -0
- data/lib/cell_point_api/models/codeshare.rb +87 -0
- data/lib/cell_point_api/models/complete_person_name.rb +120 -0
- data/lib/cell_point_api/models/completion_redirect.rb +93 -0
- data/lib/cell_point_api/models/configuration.rb +86 -0
- data/lib/cell_point_api/models/contact_data.rb +82 -0
- data/lib/cell_point_api/models/cpu.rb +74 -0
- data/lib/cell_point_api/models/device_os.rb +60 -0
- data/lib/cell_point_api/models/discount.rb +150 -0
- data/lib/cell_point_api/models/discount_data.rb +83 -0
- data/lib/cell_point_api/models/driver.rb +86 -0
- data/lib/cell_point_api/models/external_transaction.rb +227 -0
- data/lib/cell_point_api/models/externally_tokenized_card.rb +81 -0
- data/lib/cell_point_api/models/failover.rb +105 -0
- data/lib/cell_point_api/models/failure_category.rb +62 -0
- data/lib/cell_point_api/models/failure_module.rb +58 -0
- data/lib/cell_point_api/models/fingerprint.rb +82 -0
- data/lib/cell_point_api/models/fraud_assessment.rb +163 -0
- data/lib/cell_point_api/models/fulfilled_activity.rb +207 -0
- data/lib/cell_point_api/models/fulfilled_airline_ancillary.rb +207 -0
- data/lib/cell_point_api/models/fulfilled_airline_fare.rb +207 -0
- data/lib/cell_point_api/models/fulfilled_auto_rental.rb +207 -0
- data/lib/cell_point_api/models/fulfilled_bundle.rb +207 -0
- data/lib/cell_point_api/models/fulfilled_discount.rb +178 -0
- data/lib/cell_point_api/models/fulfilled_line_item_base.rb +177 -0
- data/lib/cell_point_api/models/fulfilled_lodging_reservation.rb +207 -0
- data/lib/cell_point_api/models/fulfilled_order.rb +148 -0
- data/lib/cell_point_api/models/fulfilled_product.rb +207 -0
- data/lib/cell_point_api/models/fulfilled_tax_line.rb +162 -0
- data/lib/cell_point_api/models/fulfillment_data.rb +90 -0
- data/lib/cell_point_api/models/fulfillment_status.rb +41 -0
- data/lib/cell_point_api/models/funding_type.rb +40 -0
- data/lib/cell_point_api/models/gender.rb +40 -0
- data/lib/cell_point_api/models/hpp_data.rb +155 -0
- data/lib/cell_point_api/models/identifying_document.rb +159 -0
- data/lib/cell_point_api/models/identifying_document_type.rb +60 -0
- data/lib/cell_point_api/models/industry_data.rb +124 -0
- data/lib/cell_point_api/models/informational_price_row.rb +97 -0
- data/lib/cell_point_api/models/informational_price_section.rb +104 -0
- data/lib/cell_point_api/models/itinerary_type.rb +47 -0
- data/lib/cell_point_api/models/journey_segment.rb +83 -0
- data/lib/cell_point_api/models/line_item_base.rb +101 -0
- data/lib/cell_point_api/models/line_item_type.rb +60 -0
- data/lib/cell_point_api/models/links.rb +86 -0
- data/lib/cell_point_api/models/location.rb +153 -0
- data/lib/cell_point_api/models/lodging_industry_data.rb +216 -0
- data/lib/cell_point_api/models/lodging_reservation.rb +195 -0
- data/lib/cell_point_api/models/lodging_reservation_data.rb +76 -0
- data/lib/cell_point_api/models/loyalty_account.rb +103 -0
- data/lib/cell_point_api/models/network_info.rb +76 -0
- data/lib/cell_point_api/models/non_negative_amount.rb +105 -0
- data/lib/cell_point_api/models/non_positive_amount.rb +105 -0
- data/lib/cell_point_api/models/note.rb +139 -0
- data/lib/cell_point_api/models/note_request.rb +90 -0
- data/lib/cell_point_api/models/oauth_provider_error.rb +62 -0
- data/lib/cell_point_api/models/oauth_scope_cpd_issued_jwt.rb +158 -0
- data/lib/cell_point_api/models/oauth_token.rb +96 -0
- data/lib/cell_point_api/models/order.rb +414 -0
- data/lib/cell_point_api/models/order_canceled_reason.rb +56 -0
- data/lib/cell_point_api/models/order_core.rb +343 -0
- data/lib/cell_point_api/models/order_extended.rb +150 -0
- data/lib/cell_point_api/models/order_payment_summary.rb +117 -0
- data/lib/cell_point_api/models/order_status.rb +161 -0
- data/lib/cell_point_api/models/order_status_type.rb +58 -0
- data/lib/cell_point_api/models/order_transactions.rb +88 -0
- data/lib/cell_point_api/models/owner.rb +131 -0
- data/lib/cell_point_api/models/page_type.rb +26 -0
- data/lib/cell_point_api/models/passenger.rb +229 -0
- data/lib/cell_point_api/models/password_change_type.rb +41 -0
- data/lib/cell_point_api/models/pay_pal_action.rb +129 -0
- data/lib/cell_point_api/models/pay_pal_payment_instrument.rb +88 -0
- data/lib/cell_point_api/models/payment_data.rb +102 -0
- data/lib/cell_point_api/models/payment_data_header.rb +94 -0
- data/lib/cell_point_api/models/payment_data_version.rb +26 -0
- data/lib/cell_point_api/models/payment_field.rb +68 -0
- data/lib/cell_point_api/models/payment_instrument_base.rb +87 -0
- data/lib/cell_point_api/models/payment_method.rb +52 -0
- data/lib/cell_point_api/models/payment_methods_for_order_get200_response.rb +157 -0
- data/lib/cell_point_api/models/payment_methods_search_vouchers_post200_response.rb +82 -0
- data/lib/cell_point_api/models/payment_processor.rb +121 -0
- data/lib/cell_point_api/models/payment_status.rb +122 -0
- data/lib/cell_point_api/models/payment_transaction.rb +605 -0
- data/lib/cell_point_api/models/payment_transaction_authorized_amount.rb +105 -0
- data/lib/cell_point_api/models/payment_transaction_canceled_amount.rb +105 -0
- data/lib/cell_point_api/models/payment_transaction_captured_amount.rb +105 -0
- data/lib/cell_point_api/models/payment_transaction_pending_authorize_amount.rb +106 -0
- data/lib/cell_point_api/models/payment_transaction_pending_cancel_amount.rb +106 -0
- data/lib/cell_point_api/models/payment_transaction_pending_capture_amount.rb +106 -0
- data/lib/cell_point_api/models/payment_transaction_processing_fee.rb +106 -0
- data/lib/cell_point_api/models/payment_transaction_refunded_amount.rb +105 -0
- data/lib/cell_point_api/models/payments_v1_bulks_response.rb +74 -0
- data/lib/cell_point_api/models/payments_v1_orders_payments_retry_failed_refunds_request.rb +74 -0
- data/lib/cell_point_api/models/payments_v1_refunds_closures_request.rb +74 -0
- data/lib/cell_point_api/models/payments_v1_refunds_retry_failed_refunds_request.rb +74 -0
- data/lib/cell_point_api/models/payments_v1_schemes_response.rb +76 -0
- data/lib/cell_point_api/models/paypal_config.rb +94 -0
- data/lib/cell_point_api/models/person.rb +161 -0
- data/lib/cell_point_api/models/person_name.rb +89 -0
- data/lib/cell_point_api/models/phone.rb +132 -0
- data/lib/cell_point_api/models/pk_payment_method.rb +111 -0
- data/lib/cell_point_api/models/pk_payment_token.rb +94 -0
- data/lib/cell_point_api/models/postal_address.rb +217 -0
- data/lib/cell_point_api/models/price_summary.rb +191 -0
- data/lib/cell_point_api/models/product.rb +179 -0
- data/lib/cell_point_api/models/product_data.rb +104 -0
- data/lib/cell_point_api/models/property.rb +110 -0
- data/lib/cell_point_api/models/provider.rb +129 -0
- data/lib/cell_point_api/models/psp.rb +26 -0
- data/lib/cell_point_api/models/redirect_action.rb +116 -0
- data/lib/cell_point_api/models/refund_item.rb +310 -0
- data/lib/cell_point_api/models/refund_method.rb +36 -0
- data/lib/cell_point_api/models/refund_order_group_post201_response.rb +91 -0
- data/lib/cell_point_api/models/refund_reason.rb +104 -0
- data/lib/cell_point_api/models/refund_request.rb +161 -0
- data/lib/cell_point_api/models/refund_status.rb +44 -0
- data/lib/cell_point_api/models/refund_transaction.rb +311 -0
- data/lib/cell_point_api/models/refund_transaction_amount.rb +105 -0
- data/lib/cell_point_api/models/refund_type.rb +38 -0
- data/lib/cell_point_api/models/related_payment.rb +106 -0
- data/lib/cell_point_api/models/related_refund.rb +106 -0
- data/lib/cell_point_api/models/rental_location.rb +226 -0
- data/lib/cell_point_api/models/retry_refund_response.rb +73 -0
- data/lib/cell_point_api/models/reward.rb +101 -0
- data/lib/cell_point_api/models/room.rb +100 -0
- data/lib/cell_point_api/models/sales_channel.rb +36 -0
- data/lib/cell_point_api/models/save_pk_payment_token_request.rb +83 -0
- data/lib/cell_point_api/models/save_wallet_payment_token_request.rb +83 -0
- data/lib/cell_point_api/models/screen.rb +97 -0
- data/lib/cell_point_api/models/search_vouchers_request.rb +119 -0
- data/lib/cell_point_api/models/security_code.rb +83 -0
- data/lib/cell_point_api/models/security_code_match_status.rb +50 -0
- data/lib/cell_point_api/models/status.rb +43 -0
- data/lib/cell_point_api/models/status1.rb +52 -0
- data/lib/cell_point_api/models/summary.rb +82 -0
- data/lib/cell_point_api/models/tax.rb +134 -0
- data/lib/cell_point_api/models/taxes_and_fees_breakdown_page.rb +82 -0
- data/lib/cell_point_api/models/token_post200_response.rb +96 -0
- data/lib/cell_point_api/models/tokenized_card.rb +229 -0
- data/lib/cell_point_api/models/tokenized_card_with_contact_data.rb +247 -0
- data/lib/cell_point_api/models/tokenized_data.rb +169 -0
- data/lib/cell_point_api/models/total_row.rb +83 -0
- data/lib/cell_point_api/models/transaction_action.rb +108 -0
- data/lib/cell_point_api/models/transaction_action_result.rb +94 -0
- data/lib/cell_point_api/models/transaction_base.rb +132 -0
- data/lib/cell_point_api/models/transaction_failure.rb +222 -0
- data/lib/cell_point_api/models/travel_journey.rb +139 -0
- data/lib/cell_point_api/models/travel_leg.rb +194 -0
- data/lib/cell_point_api/models/trigger_bulk_request.rb +83 -0
- data/lib/cell_point_api/models/type.rb +67 -0
- data/lib/cell_point_api/models/type1.rb +47 -0
- data/lib/cell_point_api/models/type2.rb +40 -0
- data/lib/cell_point_api/models/type3.rb +41 -0
- data/lib/cell_point_api/models/type4.rb +56 -0
- data/lib/cell_point_api/models/type5.rb +78 -0
- data/lib/cell_point_api/models/uplift_config.rb +73 -0
- data/lib/cell_point_api/models/uplift_payment_instrument.rb +102 -0
- data/lib/cell_point_api/models/vehicle.rb +139 -0
- data/lib/cell_point_api/models/voucher_config.rb +92 -0
- data/lib/cell_point_api/models/voucher_issuer.rb +26 -0
- data/lib/cell_point_api/models/voucher_payment_instrument.rb +233 -0
- data/lib/cell_point_api/models/voucher_payment_instrument_node.rb +198 -0
- data/lib/cell_point_api/models/voucher_type.rb +36 -0
- data/lib/cell_point_api/models/wallet_instrument_wallet_node.rb +136 -0
- data/lib/cell_point_api/models/wallet_payment_instrument.rb +123 -0
- data/lib/cell_point_api/models/wallet_tokenized_token.rb +148 -0
- data/lib/cell_point_api/models/wallet_tokenized_token_identification.rb +75 -0
- data/lib/cell_point_api/models/wallet_type.rb +36 -0
- data/lib/cell_point_api/utilities/date_time_helper.rb +11 -0
- data/lib/cell_point_api/utilities/file_wrapper.rb +28 -0
- data/lib/cell_point_api/utilities/union_type_lookup.rb +260 -0
- data/lib/cell_point_api.rb +301 -0
- metadata +354 -0
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
# cell_point_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module CellPointApi
|
|
7
|
+
# Person information.
|
|
8
|
+
class Person < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# Name bestowed upon an individual to differentiate them from other members
|
|
13
|
+
# of a group that share a family name.
|
|
14
|
+
# In the U.S., the first name of a Person.
|
|
15
|
+
# @return [String]
|
|
16
|
+
attr_accessor :given_name
|
|
17
|
+
|
|
18
|
+
# Name bestowed upon an individual to denote membership in a group or
|
|
19
|
+
# family.
|
|
20
|
+
# In the U.S., the last name of a Person.
|
|
21
|
+
# @return [String]
|
|
22
|
+
attr_accessor :family_name
|
|
23
|
+
|
|
24
|
+
# Secondary name bestowed upon an individual to differentiate them from
|
|
25
|
+
# others that have the same given name.
|
|
26
|
+
# @return [String]
|
|
27
|
+
attr_accessor :middle_name
|
|
28
|
+
|
|
29
|
+
# The portion of a name's full form of address that precedes the name
|
|
30
|
+
# itself.
|
|
31
|
+
# @return [String]
|
|
32
|
+
attr_accessor :name_prefix
|
|
33
|
+
|
|
34
|
+
# The portion of a name's full form of address that follows the name itself.
|
|
35
|
+
# @return [String]
|
|
36
|
+
attr_accessor :name_suffix
|
|
37
|
+
|
|
38
|
+
# The shopper's date of birth.
|
|
39
|
+
# Format ISO-8601: YYYY-MM-DD
|
|
40
|
+
# @return [Date]
|
|
41
|
+
attr_accessor :date_of_birth
|
|
42
|
+
|
|
43
|
+
# Genders for individuals
|
|
44
|
+
# @return [Gender]
|
|
45
|
+
attr_accessor :gender
|
|
46
|
+
|
|
47
|
+
# User email address
|
|
48
|
+
# @return [String]
|
|
49
|
+
attr_accessor :email
|
|
50
|
+
|
|
51
|
+
# Telephone number.
|
|
52
|
+
# @return [Phone]
|
|
53
|
+
attr_accessor :phone
|
|
54
|
+
|
|
55
|
+
# A mapping from model property names to API property names.
|
|
56
|
+
def self.names
|
|
57
|
+
@_hash = {} if @_hash.nil?
|
|
58
|
+
@_hash['given_name'] = 'givenName'
|
|
59
|
+
@_hash['family_name'] = 'familyName'
|
|
60
|
+
@_hash['middle_name'] = 'middleName'
|
|
61
|
+
@_hash['name_prefix'] = 'namePrefix'
|
|
62
|
+
@_hash['name_suffix'] = 'nameSuffix'
|
|
63
|
+
@_hash['date_of_birth'] = 'dateOfBirth'
|
|
64
|
+
@_hash['gender'] = 'gender'
|
|
65
|
+
@_hash['email'] = 'email'
|
|
66
|
+
@_hash['phone'] = 'phone'
|
|
67
|
+
@_hash
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# An array for optional fields
|
|
71
|
+
def self.optionals
|
|
72
|
+
%w[
|
|
73
|
+
middle_name
|
|
74
|
+
name_prefix
|
|
75
|
+
name_suffix
|
|
76
|
+
date_of_birth
|
|
77
|
+
gender
|
|
78
|
+
email
|
|
79
|
+
phone
|
|
80
|
+
]
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# An array for nullable fields
|
|
84
|
+
def self.nullables
|
|
85
|
+
[]
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
def initialize(given_name:, family_name:, middle_name: SKIP,
|
|
89
|
+
name_prefix: SKIP, name_suffix: SKIP, date_of_birth: SKIP,
|
|
90
|
+
gender: SKIP, email: SKIP, phone: SKIP,
|
|
91
|
+
additional_properties: nil)
|
|
92
|
+
# Add additional model properties to the instance
|
|
93
|
+
additional_properties = {} if additional_properties.nil?
|
|
94
|
+
|
|
95
|
+
@given_name = given_name
|
|
96
|
+
@family_name = family_name
|
|
97
|
+
@middle_name = middle_name unless middle_name == SKIP
|
|
98
|
+
@name_prefix = name_prefix unless name_prefix == SKIP
|
|
99
|
+
@name_suffix = name_suffix unless name_suffix == SKIP
|
|
100
|
+
@date_of_birth = date_of_birth unless date_of_birth == SKIP
|
|
101
|
+
@gender = gender unless gender == SKIP
|
|
102
|
+
@email = email unless email == SKIP
|
|
103
|
+
@phone = phone unless phone == SKIP
|
|
104
|
+
@additional_properties = additional_properties
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# Creates an instance of the object from a hash.
|
|
108
|
+
def self.from_hash(hash)
|
|
109
|
+
return nil unless hash
|
|
110
|
+
|
|
111
|
+
# Extract variables from the hash.
|
|
112
|
+
given_name = hash.key?('givenName') ? hash['givenName'] : nil
|
|
113
|
+
family_name = hash.key?('familyName') ? hash['familyName'] : nil
|
|
114
|
+
middle_name = hash.key?('middleName') ? hash['middleName'] : SKIP
|
|
115
|
+
name_prefix = hash.key?('namePrefix') ? hash['namePrefix'] : SKIP
|
|
116
|
+
name_suffix = hash.key?('nameSuffix') ? hash['nameSuffix'] : SKIP
|
|
117
|
+
date_of_birth = hash.key?('dateOfBirth') ? hash['dateOfBirth'] : SKIP
|
|
118
|
+
gender = hash.key?('gender') ? hash['gender'] : SKIP
|
|
119
|
+
email = hash.key?('email') ? hash['email'] : SKIP
|
|
120
|
+
phone = Phone.from_hash(hash['phone']) if hash['phone']
|
|
121
|
+
|
|
122
|
+
# Create a new hash for additional properties, removing known properties.
|
|
123
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
124
|
+
|
|
125
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
126
|
+
new_hash, proc { |value| value }
|
|
127
|
+
)
|
|
128
|
+
|
|
129
|
+
# Create object from extracted values.
|
|
130
|
+
Person.new(given_name: given_name,
|
|
131
|
+
family_name: family_name,
|
|
132
|
+
middle_name: middle_name,
|
|
133
|
+
name_prefix: name_prefix,
|
|
134
|
+
name_suffix: name_suffix,
|
|
135
|
+
date_of_birth: date_of_birth,
|
|
136
|
+
gender: gender,
|
|
137
|
+
email: email,
|
|
138
|
+
phone: phone,
|
|
139
|
+
additional_properties: additional_properties)
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
# Provides a human-readable string representation of the object.
|
|
143
|
+
def to_s
|
|
144
|
+
class_name = self.class.name.split('::').last
|
|
145
|
+
"<#{class_name} given_name: #{@given_name}, family_name: #{@family_name}, middle_name:"\
|
|
146
|
+
" #{@middle_name}, name_prefix: #{@name_prefix}, name_suffix: #{@name_suffix},"\
|
|
147
|
+
" date_of_birth: #{@date_of_birth}, gender: #{@gender}, email: #{@email}, phone: #{@phone},"\
|
|
148
|
+
" additional_properties: #{@additional_properties}>"
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
152
|
+
def inspect
|
|
153
|
+
class_name = self.class.name.split('::').last
|
|
154
|
+
"<#{class_name} given_name: #{@given_name.inspect}, family_name: #{@family_name.inspect},"\
|
|
155
|
+
" middle_name: #{@middle_name.inspect}, name_prefix: #{@name_prefix.inspect}, name_suffix:"\
|
|
156
|
+
" #{@name_suffix.inspect}, date_of_birth: #{@date_of_birth.inspect}, gender:"\
|
|
157
|
+
" #{@gender.inspect}, email: #{@email.inspect}, phone: #{@phone.inspect},"\
|
|
158
|
+
" additional_properties: #{@additional_properties}>"
|
|
159
|
+
end
|
|
160
|
+
end
|
|
161
|
+
end
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# cell_point_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module CellPointApi
|
|
7
|
+
# Name of an individual person. The given name (or acquired name in some
|
|
8
|
+
# cultures) can precede a family name (as in some European cultures), or it
|
|
9
|
+
# can come after the family name (as in some East Asian cultures), or be used
|
|
10
|
+
# without a family name.
|
|
11
|
+
class PersonName < BaseModel
|
|
12
|
+
SKIP = Object.new
|
|
13
|
+
private_constant :SKIP
|
|
14
|
+
|
|
15
|
+
# Name bestowed upon an individual to differentiate them from other members
|
|
16
|
+
# of a group that share a family name.
|
|
17
|
+
# In the U.S., the first name of a Person.
|
|
18
|
+
# @return [String]
|
|
19
|
+
attr_accessor :given_name
|
|
20
|
+
|
|
21
|
+
# Name bestowed upon an individual to denote membership in a group or
|
|
22
|
+
# family.
|
|
23
|
+
# In the U.S., the last name of a Person.
|
|
24
|
+
# @return [String]
|
|
25
|
+
attr_accessor :family_name
|
|
26
|
+
|
|
27
|
+
# A mapping from model property names to API property names.
|
|
28
|
+
def self.names
|
|
29
|
+
@_hash = {} if @_hash.nil?
|
|
30
|
+
@_hash['given_name'] = 'givenName'
|
|
31
|
+
@_hash['family_name'] = 'familyName'
|
|
32
|
+
@_hash
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# An array for optional fields
|
|
36
|
+
def self.optionals
|
|
37
|
+
[]
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# An array for nullable fields
|
|
41
|
+
def self.nullables
|
|
42
|
+
[]
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
def initialize(given_name:, family_name:, additional_properties: nil)
|
|
46
|
+
# Add additional model properties to the instance
|
|
47
|
+
additional_properties = {} if additional_properties.nil?
|
|
48
|
+
|
|
49
|
+
@given_name = given_name
|
|
50
|
+
@family_name = family_name
|
|
51
|
+
@additional_properties = additional_properties
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# Creates an instance of the object from a hash.
|
|
55
|
+
def self.from_hash(hash)
|
|
56
|
+
return nil unless hash
|
|
57
|
+
|
|
58
|
+
# Extract variables from the hash.
|
|
59
|
+
given_name = hash.key?('givenName') ? hash['givenName'] : nil
|
|
60
|
+
family_name = hash.key?('familyName') ? hash['familyName'] : nil
|
|
61
|
+
|
|
62
|
+
# Create a new hash for additional properties, removing known properties.
|
|
63
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
64
|
+
|
|
65
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
66
|
+
new_hash, proc { |value| value }
|
|
67
|
+
)
|
|
68
|
+
|
|
69
|
+
# Create object from extracted values.
|
|
70
|
+
PersonName.new(given_name: given_name,
|
|
71
|
+
family_name: family_name,
|
|
72
|
+
additional_properties: additional_properties)
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# Provides a human-readable string representation of the object.
|
|
76
|
+
def to_s
|
|
77
|
+
class_name = self.class.name.split('::').last
|
|
78
|
+
"<#{class_name} given_name: #{@given_name}, family_name: #{@family_name},"\
|
|
79
|
+
" additional_properties: #{@additional_properties}>"
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
83
|
+
def inspect
|
|
84
|
+
class_name = self.class.name.split('::').last
|
|
85
|
+
"<#{class_name} given_name: #{@given_name.inspect}, family_name: #{@family_name.inspect},"\
|
|
86
|
+
" additional_properties: #{@additional_properties}>"
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
end
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
# cell_point_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module CellPointApi
|
|
7
|
+
# Telephone number.
|
|
8
|
+
class Phone < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :phone_number
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [TrueClass | FalseClass]
|
|
18
|
+
attr_accessor :is_phone_verified
|
|
19
|
+
|
|
20
|
+
# The codes are defined by the ITU-T in standards E.123 and E.164.
|
|
21
|
+
# The prefixes enable international direct dialing (IDD) and
|
|
22
|
+
# are also referred to as international subscriber dialing (ISD) codes.
|
|
23
|
+
# Country codes are a component of the international telephone numbering
|
|
24
|
+
# plan and
|
|
25
|
+
# are necessary only when dialing a telephone number to establish a call to
|
|
26
|
+
# another country.
|
|
27
|
+
# Country codes are dialed before the national telephone number.
|
|
28
|
+
# By convention, international telephone numbers are represented by
|
|
29
|
+
# prefixing the country code with a plus sign (+).
|
|
30
|
+
# Only a plus sign and digits should be used in this field, despite some
|
|
31
|
+
# country codes often are written in formats
|
|
32
|
+
# with other characters, for instance use +1767 for Dominica and not +1-767,
|
|
33
|
+
# +1 767 or +1(767).
|
|
34
|
+
# @return [String]
|
|
35
|
+
attr_accessor :phone_country_code
|
|
36
|
+
|
|
37
|
+
# A mapping from model property names to API property names.
|
|
38
|
+
def self.names
|
|
39
|
+
@_hash = {} if @_hash.nil?
|
|
40
|
+
@_hash['phone_number'] = 'phoneNumber'
|
|
41
|
+
@_hash['is_phone_verified'] = 'isPhoneVerified'
|
|
42
|
+
@_hash['phone_country_code'] = 'phoneCountryCode'
|
|
43
|
+
@_hash
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# An array for optional fields
|
|
47
|
+
def self.optionals
|
|
48
|
+
%w[
|
|
49
|
+
is_phone_verified
|
|
50
|
+
]
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# An array for nullable fields
|
|
54
|
+
def self.nullables
|
|
55
|
+
[]
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
def initialize(phone_number:, phone_country_code:, is_phone_verified: SKIP,
|
|
59
|
+
additional_properties: nil)
|
|
60
|
+
# Add additional model properties to the instance
|
|
61
|
+
additional_properties = {} if additional_properties.nil?
|
|
62
|
+
|
|
63
|
+
@phone_number = phone_number
|
|
64
|
+
@is_phone_verified = is_phone_verified unless is_phone_verified == SKIP
|
|
65
|
+
@phone_country_code = phone_country_code
|
|
66
|
+
@additional_properties = additional_properties
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# Creates an instance of the object from a hash.
|
|
70
|
+
def self.from_hash(hash)
|
|
71
|
+
return nil unless hash
|
|
72
|
+
|
|
73
|
+
# Extract variables from the hash.
|
|
74
|
+
phone_number = hash.key?('phoneNumber') ? hash['phoneNumber'] : nil
|
|
75
|
+
phone_country_code =
|
|
76
|
+
hash.key?('phoneCountryCode') ? hash['phoneCountryCode'] : nil
|
|
77
|
+
is_phone_verified =
|
|
78
|
+
hash.key?('isPhoneVerified') ? hash['isPhoneVerified'] : SKIP
|
|
79
|
+
|
|
80
|
+
# Create a new hash for additional properties, removing known properties.
|
|
81
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
82
|
+
|
|
83
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
84
|
+
new_hash, proc { |value| value }
|
|
85
|
+
)
|
|
86
|
+
|
|
87
|
+
# Create object from extracted values.
|
|
88
|
+
Phone.new(phone_number: phone_number,
|
|
89
|
+
phone_country_code: phone_country_code,
|
|
90
|
+
is_phone_verified: is_phone_verified,
|
|
91
|
+
additional_properties: additional_properties)
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# Validates an instance of the object from a given value.
|
|
95
|
+
# @param [Phone | Hash] The value against the validation is performed.
|
|
96
|
+
def self.validate(value)
|
|
97
|
+
if value.instance_of? self
|
|
98
|
+
return (
|
|
99
|
+
APIHelper.valid_type?(value.phone_number,
|
|
100
|
+
->(val) { val.instance_of? String }) and
|
|
101
|
+
APIHelper.valid_type?(value.phone_country_code,
|
|
102
|
+
->(val) { val.instance_of? String })
|
|
103
|
+
)
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
return false unless value.instance_of? Hash
|
|
107
|
+
|
|
108
|
+
(
|
|
109
|
+
APIHelper.valid_type?(value['phoneNumber'],
|
|
110
|
+
->(val) { val.instance_of? String }) and
|
|
111
|
+
APIHelper.valid_type?(value['phoneCountryCode'],
|
|
112
|
+
->(val) { val.instance_of? String })
|
|
113
|
+
)
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# Provides a human-readable string representation of the object.
|
|
117
|
+
def to_s
|
|
118
|
+
class_name = self.class.name.split('::').last
|
|
119
|
+
"<#{class_name} phone_number: #{@phone_number}, is_phone_verified: #{@is_phone_verified},"\
|
|
120
|
+
" phone_country_code: #{@phone_country_code}, additional_properties:"\
|
|
121
|
+
" #{@additional_properties}>"
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
125
|
+
def inspect
|
|
126
|
+
class_name = self.class.name.split('::').last
|
|
127
|
+
"<#{class_name} phone_number: #{@phone_number.inspect}, is_phone_verified:"\
|
|
128
|
+
" #{@is_phone_verified.inspect}, phone_country_code: #{@phone_country_code.inspect},"\
|
|
129
|
+
" additional_properties: #{@additional_properties}>"
|
|
130
|
+
end
|
|
131
|
+
end
|
|
132
|
+
end
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# cell_point_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module CellPointApi
|
|
7
|
+
# Apple Pay payment method.
|
|
8
|
+
class PkPaymentMethod < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :network
|
|
15
|
+
|
|
16
|
+
# Display Payment Card Name.
|
|
17
|
+
# A string, suitable for display, that describes the card.
|
|
18
|
+
# For debit and credit cards, the display name often includes the card brand
|
|
19
|
+
# and the last four digits of the credit card number when available, for
|
|
20
|
+
# example: “************0492”, “Visa 1233”, “MasterCard 5678”, “AmEx 9876”.
|
|
21
|
+
# For Apple Pay Cash cards, the display name is “Apple Pay Cash”. However,
|
|
22
|
+
# there is no guarantee about the display name’s content or format.
|
|
23
|
+
# To protect the user’s privacy, Apple Pay sets the display name only after
|
|
24
|
+
# the user authorizes the purchase.
|
|
25
|
+
# @return [String]
|
|
26
|
+
attr_accessor :display_name
|
|
27
|
+
|
|
28
|
+
# Display Payment Card Name.
|
|
29
|
+
# A string, suitable for display, that describes the card.
|
|
30
|
+
# For debit and credit cards, the display name often includes the card brand
|
|
31
|
+
# and the last four digits of the credit card number when available, for
|
|
32
|
+
# example: “************0492”, “Visa 1233”, “MasterCard 5678”, “AmEx 9876”.
|
|
33
|
+
# For Apple Pay Cash cards, the display name is “Apple Pay Cash”. However,
|
|
34
|
+
# there is no guarantee about the display name’s content or format.
|
|
35
|
+
# To protect the user’s privacy, Apple Pay sets the display name only after
|
|
36
|
+
# the user authorizes the purchase.
|
|
37
|
+
# @return [String]
|
|
38
|
+
attr_accessor :type
|
|
39
|
+
|
|
40
|
+
# A mapping from model property names to API property names.
|
|
41
|
+
def self.names
|
|
42
|
+
@_hash = {} if @_hash.nil?
|
|
43
|
+
@_hash['network'] = 'network'
|
|
44
|
+
@_hash['display_name'] = 'displayName'
|
|
45
|
+
@_hash['type'] = 'type'
|
|
46
|
+
@_hash
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# An array for optional fields
|
|
50
|
+
def self.optionals
|
|
51
|
+
%w[
|
|
52
|
+
network
|
|
53
|
+
display_name
|
|
54
|
+
type
|
|
55
|
+
]
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# An array for nullable fields
|
|
59
|
+
def self.nullables
|
|
60
|
+
[]
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
def initialize(network: SKIP, display_name: SKIP, type: SKIP,
|
|
64
|
+
additional_properties: nil)
|
|
65
|
+
# Add additional model properties to the instance
|
|
66
|
+
additional_properties = {} if additional_properties.nil?
|
|
67
|
+
|
|
68
|
+
@network = network unless network == SKIP
|
|
69
|
+
@display_name = display_name unless display_name == SKIP
|
|
70
|
+
@type = type unless type == SKIP
|
|
71
|
+
@additional_properties = additional_properties
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# Creates an instance of the object from a hash.
|
|
75
|
+
def self.from_hash(hash)
|
|
76
|
+
return nil unless hash
|
|
77
|
+
|
|
78
|
+
# Extract variables from the hash.
|
|
79
|
+
network = hash.key?('network') ? hash['network'] : SKIP
|
|
80
|
+
display_name = hash.key?('displayName') ? hash['displayName'] : SKIP
|
|
81
|
+
type = hash.key?('type') ? hash['type'] : SKIP
|
|
82
|
+
|
|
83
|
+
# Create a new hash for additional properties, removing known properties.
|
|
84
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
85
|
+
|
|
86
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
87
|
+
new_hash, proc { |value| value }
|
|
88
|
+
)
|
|
89
|
+
|
|
90
|
+
# Create object from extracted values.
|
|
91
|
+
PkPaymentMethod.new(network: network,
|
|
92
|
+
display_name: display_name,
|
|
93
|
+
type: type,
|
|
94
|
+
additional_properties: additional_properties)
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# Provides a human-readable string representation of the object.
|
|
98
|
+
def to_s
|
|
99
|
+
class_name = self.class.name.split('::').last
|
|
100
|
+
"<#{class_name} network: #{@network}, display_name: #{@display_name}, type: #{@type},"\
|
|
101
|
+
" additional_properties: #{@additional_properties}>"
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
105
|
+
def inspect
|
|
106
|
+
class_name = self.class.name.split('::').last
|
|
107
|
+
"<#{class_name} network: #{@network.inspect}, display_name: #{@display_name.inspect}, type:"\
|
|
108
|
+
" #{@type.inspect}, additional_properties: #{@additional_properties}>"
|
|
109
|
+
end
|
|
110
|
+
end
|
|
111
|
+
end
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# cell_point_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module CellPointApi
|
|
7
|
+
# Encrypted Apple Pay token with metadata.
|
|
8
|
+
class PkPaymentToken < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# Transaction identifier, generated on the client device.
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :transaction_identifier
|
|
15
|
+
|
|
16
|
+
# Apple Pay payment method.
|
|
17
|
+
# @return [PkPaymentMethod]
|
|
18
|
+
attr_accessor :payment_method
|
|
19
|
+
|
|
20
|
+
# Encrypted payment data.
|
|
21
|
+
# @return [PaymentData]
|
|
22
|
+
attr_accessor :payment_data
|
|
23
|
+
|
|
24
|
+
# A mapping from model property names to API property names.
|
|
25
|
+
def self.names
|
|
26
|
+
@_hash = {} if @_hash.nil?
|
|
27
|
+
@_hash['transaction_identifier'] = 'transactionIdentifier'
|
|
28
|
+
@_hash['payment_method'] = 'paymentMethod'
|
|
29
|
+
@_hash['payment_data'] = 'paymentData'
|
|
30
|
+
@_hash
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# An array for optional fields
|
|
34
|
+
def self.optionals
|
|
35
|
+
[]
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# An array for nullable fields
|
|
39
|
+
def self.nullables
|
|
40
|
+
[]
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
def initialize(transaction_identifier:, payment_method:, payment_data:,
|
|
44
|
+
additional_properties: nil)
|
|
45
|
+
# Add additional model properties to the instance
|
|
46
|
+
additional_properties = {} if additional_properties.nil?
|
|
47
|
+
|
|
48
|
+
@transaction_identifier = transaction_identifier
|
|
49
|
+
@payment_method = payment_method
|
|
50
|
+
@payment_data = payment_data
|
|
51
|
+
@additional_properties = additional_properties
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# Creates an instance of the object from a hash.
|
|
55
|
+
def self.from_hash(hash)
|
|
56
|
+
return nil unless hash
|
|
57
|
+
|
|
58
|
+
# Extract variables from the hash.
|
|
59
|
+
transaction_identifier =
|
|
60
|
+
hash.key?('transactionIdentifier') ? hash['transactionIdentifier'] : nil
|
|
61
|
+
payment_method = PkPaymentMethod.from_hash(hash['paymentMethod']) if hash['paymentMethod']
|
|
62
|
+
payment_data = PaymentData.from_hash(hash['paymentData']) if hash['paymentData']
|
|
63
|
+
|
|
64
|
+
# Create a new hash for additional properties, removing known properties.
|
|
65
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
66
|
+
|
|
67
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
68
|
+
new_hash, proc { |value| value }
|
|
69
|
+
)
|
|
70
|
+
|
|
71
|
+
# Create object from extracted values.
|
|
72
|
+
PkPaymentToken.new(transaction_identifier: transaction_identifier,
|
|
73
|
+
payment_method: payment_method,
|
|
74
|
+
payment_data: payment_data,
|
|
75
|
+
additional_properties: additional_properties)
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# Provides a human-readable string representation of the object.
|
|
79
|
+
def to_s
|
|
80
|
+
class_name = self.class.name.split('::').last
|
|
81
|
+
"<#{class_name} transaction_identifier: #{@transaction_identifier}, payment_method:"\
|
|
82
|
+
" #{@payment_method}, payment_data: #{@payment_data}, additional_properties:"\
|
|
83
|
+
" #{@additional_properties}>"
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
87
|
+
def inspect
|
|
88
|
+
class_name = self.class.name.split('::').last
|
|
89
|
+
"<#{class_name} transaction_identifier: #{@transaction_identifier.inspect}, payment_method:"\
|
|
90
|
+
" #{@payment_method.inspect}, payment_data: #{@payment_data.inspect}, additional_properties:"\
|
|
91
|
+
" #{@additional_properties}>"
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
end
|