pq-api-matic-sdk 1.0.0
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 +208 -0
- data/bin/console +15 -0
- data/lib/pay_quicker_sdk/api_helper.rb +10 -0
- data/lib/pay_quicker_sdk/client.rb +205 -0
- data/lib/pay_quicker_sdk/configuration.rb +229 -0
- data/lib/pay_quicker_sdk/controllers/agreements_controller.rb +129 -0
- data/lib/pay_quicker_sdk/controllers/balances_controller.rb +156 -0
- data/lib/pay_quicker_sdk/controllers/bank_accounts_controller.rb +587 -0
- data/lib/pay_quicker_sdk/controllers/base_controller.rb +60 -0
- data/lib/pay_quicker_sdk/controllers/client_side_controller.rb +237 -0
- data/lib/pay_quicker_sdk/controllers/compliance_controller.rb +77 -0
- data/lib/pay_quicker_sdk/controllers/documents_controller.rb +233 -0
- data/lib/pay_quicker_sdk/controllers/electronic_wallets_controller.rb +280 -0
- data/lib/pay_quicker_sdk/controllers/events_controller.rb +75 -0
- data/lib/pay_quicker_sdk/controllers/invitations_controller.rb +179 -0
- data/lib/pay_quicker_sdk/controllers/jobs_controller.rb +154 -0
- data/lib/pay_quicker_sdk/controllers/o_auth_authorization_controller.rb +43 -0
- data/lib/pay_quicker_sdk/controllers/payments_controller.rb +217 -0
- data/lib/pay_quicker_sdk/controllers/prepaid_cards_controller.rb +262 -0
- data/lib/pay_quicker_sdk/controllers/program_controller.rb +88 -0
- data/lib/pay_quicker_sdk/controllers/receipts_controller.rb +287 -0
- data/lib/pay_quicker_sdk/controllers/spendback_controller.rb +201 -0
- data/lib/pay_quicker_sdk/controllers/spendback_refunds_controller.rb +232 -0
- data/lib/pay_quicker_sdk/controllers/statements_controller.rb +197 -0
- data/lib/pay_quicker_sdk/controllers/transfers_controller.rb +259 -0
- data/lib/pay_quicker_sdk/controllers/users_controller.rb +151 -0
- data/lib/pay_quicker_sdk/controllers/webhooks_controller.rb +173 -0
- data/lib/pay_quicker_sdk/exceptions/api_error_result_exception.rb +80 -0
- data/lib/pay_quicker_sdk/exceptions/api_exception.rb +21 -0
- data/lib/pay_quicker_sdk/exceptions/o_auth_provider_exception.rb +64 -0
- data/lib/pay_quicker_sdk/http/auth/clientside.rb +53 -0
- data/lib/pay_quicker_sdk/http/auth/server.rb +156 -0
- data/lib/pay_quicker_sdk/http/http_call_back.rb +10 -0
- data/lib/pay_quicker_sdk/http/http_method_enum.rb +10 -0
- data/lib/pay_quicker_sdk/http/http_request.rb +10 -0
- data/lib/pay_quicker_sdk/http/http_response.rb +10 -0
- data/lib/pay_quicker_sdk/http/proxy_settings.rb +22 -0
- data/lib/pay_quicker_sdk/logging/configuration/api_logging_configuration.rb +186 -0
- data/lib/pay_quicker_sdk/logging/sdk_logger.rb +17 -0
- data/lib/pay_quicker_sdk/models/addresses.rb +45 -0
- data/lib/pay_quicker_sdk/models/agreement_list_result_json.rb +106 -0
- data/lib/pay_quicker_sdk/models/agreement_object.rb +120 -0
- data/lib/pay_quicker_sdk/models/agreement_result.rb +130 -0
- data/lib/pay_quicker_sdk/models/agreement_types.rb +64 -0
- data/lib/pay_quicker_sdk/models/authorization_list_result.rb +106 -0
- data/lib/pay_quicker_sdk/models/authorization_object.rb +194 -0
- data/lib/pay_quicker_sdk/models/balance_list_result.rb +106 -0
- data/lib/pay_quicker_sdk/models/balance_object.rb +118 -0
- data/lib/pay_quicker_sdk/models/balance_result.rb +128 -0
- data/lib/pay_quicker_sdk/models/bank_account_address.rb +132 -0
- data/lib/pay_quicker_sdk/models/bank_account_field.rb +83 -0
- data/lib/pay_quicker_sdk/models/bank_account_fields.rb +195 -0
- data/lib/pay_quicker_sdk/models/bank_account_list_result.rb +106 -0
- data/lib/pay_quicker_sdk/models/bank_account_object.rb +226 -0
- data/lib/pay_quicker_sdk/models/bank_account_ownership.rb +36 -0
- data/lib/pay_quicker_sdk/models/bank_account_required_fields.rb +125 -0
- data/lib/pay_quicker_sdk/models/bank_account_requirement.rb +142 -0
- data/lib/pay_quicker_sdk/models/bank_account_requirement_format.rb +93 -0
- data/lib/pay_quicker_sdk/models/bank_account_requirement_format_legend.rb +93 -0
- data/lib/pay_quicker_sdk/models/bank_account_requirement_list_result.rb +110 -0
- data/lib/pay_quicker_sdk/models/bank_account_requirement_validator.rb +86 -0
- data/lib/pay_quicker_sdk/models/bank_account_result.rb +234 -0
- data/lib/pay_quicker_sdk/models/bank_account_statuses.rb +49 -0
- data/lib/pay_quicker_sdk/models/bank_account_types.rb +47 -0
- data/lib/pay_quicker_sdk/models/bank_types.rb +68 -0
- data/lib/pay_quicker_sdk/models/base_model.rb +122 -0
- data/lib/pay_quicker_sdk/models/business_contact_roles.rb +44 -0
- data/lib/pay_quicker_sdk/models/card_networks.rb +36 -0
- data/lib/pay_quicker_sdk/models/card_processors.rb +52 -0
- data/lib/pay_quicker_sdk/models/category_types.rb +36 -0
- data/lib/pay_quicker_sdk/models/countries.rb +1031 -0
- data/lib/pay_quicker_sdk/models/countries_alpha_code3.rb +1028 -0
- data/lib/pay_quicker_sdk/models/create_invitation.rb +614 -0
- data/lib/pay_quicker_sdk/models/create_or_update_bank_account.rb +163 -0
- data/lib/pay_quicker_sdk/models/create_or_update_document.rb +82 -0
- data/lib/pay_quicker_sdk/models/create_or_update_document_fields.rb +81 -0
- data/lib/pay_quicker_sdk/models/create_or_update_electronic_wallet.rb +126 -0
- data/lib/pay_quicker_sdk/models/create_or_update_user.rb +614 -0
- data/lib/pay_quicker_sdk/models/create_spendback_refund_quote.rb +173 -0
- data/lib/pay_quicker_sdk/models/create_webhook_request.rb +82 -0
- data/lib/pay_quicker_sdk/models/currencies.rb +700 -0
- data/lib/pay_quicker_sdk/models/delivery_details.rb +119 -0
- data/lib/pay_quicker_sdk/models/document_details.rb +81 -0
- data/lib/pay_quicker_sdk/models/document_list_result.rb +108 -0
- data/lib/pay_quicker_sdk/models/document_object.rb +147 -0
- data/lib/pay_quicker_sdk/models/document_requirements_list_result.rb +91 -0
- data/lib/pay_quicker_sdk/models/document_result.rb +157 -0
- data/lib/pay_quicker_sdk/models/document_status_types.rb +48 -0
- data/lib/pay_quicker_sdk/models/document_types.rb +264 -0
- data/lib/pay_quicker_sdk/models/electronic_funds_transfer_types.rb +36 -0
- data/lib/pay_quicker_sdk/models/electronic_transfer_failure_types.rb +97 -0
- data/lib/pay_quicker_sdk/models/electronic_transfer_status_types.rb +46 -0
- data/lib/pay_quicker_sdk/models/electronic_wallet_field.rb +83 -0
- data/lib/pay_quicker_sdk/models/electronic_wallet_fields.rb +41 -0
- data/lib/pay_quicker_sdk/models/electronic_wallet_list_result.rb +106 -0
- data/lib/pay_quicker_sdk/models/electronic_wallet_object.rb +186 -0
- data/lib/pay_quicker_sdk/models/electronic_wallet_required_fields.rb +125 -0
- data/lib/pay_quicker_sdk/models/electronic_wallet_requirement.rb +166 -0
- data/lib/pay_quicker_sdk/models/electronic_wallet_requirement_format.rb +93 -0
- data/lib/pay_quicker_sdk/models/electronic_wallet_requirement_format_legend.rb +93 -0
- data/lib/pay_quicker_sdk/models/electronic_wallet_requirement_list_result.rb +110 -0
- data/lib/pay_quicker_sdk/models/electronic_wallet_requirement_validator.rb +86 -0
- data/lib/pay_quicker_sdk/models/electronic_wallet_result.rb +195 -0
- data/lib/pay_quicker_sdk/models/electronic_wallet_statuses.rb +48 -0
- data/lib/pay_quicker_sdk/models/electronic_wallet_type.rb +99 -0
- data/lib/pay_quicker_sdk/models/electronic_wallet_types.rb +368 -0
- data/lib/pay_quicker_sdk/models/event_category_types.rb +40 -0
- data/lib/pay_quicker_sdk/models/event_list_result.rb +106 -0
- data/lib/pay_quicker_sdk/models/event_object.rb +191 -0
- data/lib/pay_quicker_sdk/models/event_requirement_categories.rb +56 -0
- data/lib/pay_quicker_sdk/models/event_requirements.rb +105 -0
- data/lib/pay_quicker_sdk/models/event_statuses.rb +52 -0
- data/lib/pay_quicker_sdk/models/event_types.rb +36 -0
- data/lib/pay_quicker_sdk/models/expected_delivery_types.rb +36 -0
- data/lib/pay_quicker_sdk/models/fee_configuration.rb +154 -0
- data/lib/pay_quicker_sdk/models/fee_distribution.rb +159 -0
- data/lib/pay_quicker_sdk/models/fee_responsibility_parties.rb +44 -0
- data/lib/pay_quicker_sdk/models/fee_responsibility_sources.rb +36 -0
- data/lib/pay_quicker_sdk/models/fee_sources.rb +40 -0
- data/lib/pay_quicker_sdk/models/fee_values.rb +36 -0
- data/lib/pay_quicker_sdk/models/fees.rb +222 -0
- data/lib/pay_quicker_sdk/models/fx_rate.rb +144 -0
- data/lib/pay_quicker_sdk/models/gateway_payment_job.rb +131 -0
- data/lib/pay_quicker_sdk/models/gateway_payment_job_quote.rb +167 -0
- data/lib/pay_quicker_sdk/models/gateway_payment_quote.rb +220 -0
- data/lib/pay_quicker_sdk/models/gateway_spendback_quote.rb +167 -0
- data/lib/pay_quicker_sdk/models/gateway_transfer_quote.rb +195 -0
- data/lib/pay_quicker_sdk/models/genders.rb +48 -0
- data/lib/pay_quicker_sdk/models/government_ids.rb +45 -0
- data/lib/pay_quicker_sdk/models/hateoas_relationship.rb +69 -0
- data/lib/pay_quicker_sdk/models/hateoas_self_ref.rb +84 -0
- data/lib/pay_quicker_sdk/models/identity_verification_providers.rb +62 -0
- data/lib/pay_quicker_sdk/models/identity_verification_result_sub_types.rb +38 -0
- data/lib/pay_quicker_sdk/models/identity_verification_result_types.rb +57 -0
- data/lib/pay_quicker_sdk/models/idv_check_list_result.rb +108 -0
- data/lib/pay_quicker_sdk/models/idv_check_object.rb +209 -0
- data/lib/pay_quicker_sdk/models/idv_check_result.rb +221 -0
- data/lib/pay_quicker_sdk/models/invitation_list_result.rb +106 -0
- data/lib/pay_quicker_sdk/models/invitation_object.rb +262 -0
- data/lib/pay_quicker_sdk/models/invitation_result.rb +272 -0
- data/lib/pay_quicker_sdk/models/job_status_types.rb +68 -0
- data/lib/pay_quicker_sdk/models/job_types.rb +36 -0
- data/lib/pay_quicker_sdk/models/languages.rb +101 -0
- data/lib/pay_quicker_sdk/models/list_metadata.rb +116 -0
- data/lib/pay_quicker_sdk/models/lock_side_types.rb +37 -0
- data/lib/pay_quicker_sdk/models/metadata.rb +72 -0
- data/lib/pay_quicker_sdk/models/metadata_items.rb +80 -0
- data/lib/pay_quicker_sdk/models/o_auth_provider_error.rb +62 -0
- data/lib/pay_quicker_sdk/models/o_auth_scope_server.rb +36 -0
- data/lib/pay_quicker_sdk/models/o_auth_token.rb +106 -0
- data/lib/pay_quicker_sdk/models/occupations.rb +100 -0
- data/lib/pay_quicker_sdk/models/operation_result.rb +72 -0
- data/lib/pay_quicker_sdk/models/order_prepaid_card.rb +97 -0
- data/lib/pay_quicker_sdk/models/payment_job_list_result.rb +106 -0
- data/lib/pay_quicker_sdk/models/payment_job_object.rb +211 -0
- data/lib/pay_quicker_sdk/models/payment_job_result.rb +220 -0
- data/lib/pay_quicker_sdk/models/payment_list_result.rb +106 -0
- data/lib/pay_quicker_sdk/models/payment_object.rb +263 -0
- data/lib/pay_quicker_sdk/models/payment_purposes.rb +58 -0
- data/lib/pay_quicker_sdk/models/payment_result.rb +272 -0
- data/lib/pay_quicker_sdk/models/portal_payment_job.rb +131 -0
- data/lib/pay_quicker_sdk/models/portal_payment_job_quote.rb +176 -0
- data/lib/pay_quicker_sdk/models/portal_payment_quote.rb +228 -0
- data/lib/pay_quicker_sdk/models/portal_spendback_quote.rb +177 -0
- data/lib/pay_quicker_sdk/models/portal_transfer_quote.rb +204 -0
- data/lib/pay_quicker_sdk/models/prepaid_card_authorizations.rb +129 -0
- data/lib/pay_quicker_sdk/models/prepaid_card_capabilities.rb +69 -0
- data/lib/pay_quicker_sdk/models/prepaid_card_data_object.rb +136 -0
- data/lib/pay_quicker_sdk/models/prepaid_card_data_result.rb +146 -0
- data/lib/pay_quicker_sdk/models/prepaid_card_data_token_object.rb +134 -0
- data/lib/pay_quicker_sdk/models/prepaid_card_data_token_result.rb +145 -0
- data/lib/pay_quicker_sdk/models/prepaid_card_data_type.rb +36 -0
- data/lib/pay_quicker_sdk/models/prepaid_card_image_side.rb +36 -0
- data/lib/pay_quicker_sdk/models/prepaid_card_list_result.rb +106 -0
- data/lib/pay_quicker_sdk/models/prepaid_card_object.rb +243 -0
- data/lib/pay_quicker_sdk/models/prepaid_card_pin_object.rb +108 -0
- data/lib/pay_quicker_sdk/models/prepaid_card_pin_result.rb +121 -0
- data/lib/pay_quicker_sdk/models/prepaid_card_pin_token_object.rb +128 -0
- data/lib/pay_quicker_sdk/models/prepaid_card_pin_token_result.rb +139 -0
- data/lib/pay_quicker_sdk/models/prepaid_card_replacement_reasons.rb +48 -0
- data/lib/pay_quicker_sdk/models/prepaid_card_result.rb +254 -0
- data/lib/pay_quicker_sdk/models/prepaid_card_statuses.rb +71 -0
- data/lib/pay_quicker_sdk/models/program_list_result.rb +106 -0
- data/lib/pay_quicker_sdk/models/program_object.rb +138 -0
- data/lib/pay_quicker_sdk/models/program_result.rb +147 -0
- data/lib/pay_quicker_sdk/models/program_types.rb +44 -0
- data/lib/pay_quicker_sdk/models/receipt_descriptions.rb +84 -0
- data/lib/pay_quicker_sdk/models/receipt_details.rb +439 -0
- data/lib/pay_quicker_sdk/models/receipt_list_result.rb +106 -0
- data/lib/pay_quicker_sdk/models/receipt_object.rb +241 -0
- data/lib/pay_quicker_sdk/models/receipt_result.rb +251 -0
- data/lib/pay_quicker_sdk/models/receipt_statuses.rb +76 -0
- data/lib/pay_quicker_sdk/models/replace_prepaid_card.rb +85 -0
- data/lib/pay_quicker_sdk/models/retrieve_card_data.rb +73 -0
- data/lib/pay_quicker_sdk/models/retrieve_card_pin.rb +76 -0
- data/lib/pay_quicker_sdk/models/sandbox_instance.rb +76 -0
- data/lib/pay_quicker_sdk/models/signs.rb +40 -0
- data/lib/pay_quicker_sdk/models/spendback_list_result.rb +106 -0
- data/lib/pay_quicker_sdk/models/spendback_object.rb +291 -0
- data/lib/pay_quicker_sdk/models/spendback_quote_accept_result.rb +301 -0
- data/lib/pay_quicker_sdk/models/spendback_refund_list_result.rb +106 -0
- data/lib/pay_quicker_sdk/models/spendback_refund_object.rb +251 -0
- data/lib/pay_quicker_sdk/models/spendback_refund_result.rb +262 -0
- data/lib/pay_quicker_sdk/models/spendback_result.rb +301 -0
- data/lib/pay_quicker_sdk/models/statement_list_result.rb +106 -0
- data/lib/pay_quicker_sdk/models/statement_object.rb +183 -0
- data/lib/pay_quicker_sdk/models/statement_result.rb +192 -0
- data/lib/pay_quicker_sdk/models/tax_resident_statuses.rb +40 -0
- data/lib/pay_quicker_sdk/models/token_purposes.rb +36 -0
- data/lib/pay_quicker_sdk/models/transfer_list_result.rb +106 -0
- data/lib/pay_quicker_sdk/models/transfer_method_types.rb +48 -0
- data/lib/pay_quicker_sdk/models/transfer_object.rb +309 -0
- data/lib/pay_quicker_sdk/models/transfer_result.rb +318 -0
- data/lib/pay_quicker_sdk/models/transfer_statuses.rb +76 -0
- data/lib/pay_quicker_sdk/models/transfer_types.rb +112 -0
- data/lib/pay_quicker_sdk/models/translation.rb +85 -0
- data/lib/pay_quicker_sdk/models/uat_instance.rb +48 -0
- data/lib/pay_quicker_sdk/models/update_card_pin.rb +87 -0
- data/lib/pay_quicker_sdk/models/update_prepaid_card.rb +85 -0
- data/lib/pay_quicker_sdk/models/upload_fields.rb +40 -0
- data/lib/pay_quicker_sdk/models/user_action.rb +40 -0
- data/lib/pay_quicker_sdk/models/user_doc_req_item_docs_items_metadata_items.rb +101 -0
- data/lib/pay_quicker_sdk/models/user_doc_req_item_docs_items_metadata_items_name_items.rb +83 -0
- data/lib/pay_quicker_sdk/models/user_doc_req_item_docs_items_supplemental_docs_items.rb +92 -0
- data/lib/pay_quicker_sdk/models/user_document_requirement_item.rb +105 -0
- data/lib/pay_quicker_sdk/models/user_document_requirement_item_documents_items.rb +132 -0
- data/lib/pay_quicker_sdk/models/user_event_result.rb +201 -0
- data/lib/pay_quicker_sdk/models/user_impact.rb +48 -0
- data/lib/pay_quicker_sdk/models/user_list_result.rb +106 -0
- data/lib/pay_quicker_sdk/models/user_object.rb +676 -0
- data/lib/pay_quicker_sdk/models/user_result.rb +686 -0
- data/lib/pay_quicker_sdk/models/user_statuses.rb +40 -0
- data/lib/pay_quicker_sdk/models/user_types.rb +36 -0
- data/lib/pay_quicker_sdk/models/validator_types.rb +50 -0
- data/lib/pay_quicker_sdk/models/webhook_namespaces.rb +307 -0
- data/lib/pay_quicker_sdk/models/webhook_subscription_list_result.rb +106 -0
- data/lib/pay_quicker_sdk/models/webhook_subscription_object.rb +158 -0
- data/lib/pay_quicker_sdk/models/webhook_subscription_result.rb +167 -0
- data/lib/pay_quicker_sdk/models/webhook_subscription_statuses.rb +44 -0
- data/lib/pay_quicker_sdk/utilities/date_time_helper.rb +11 -0
- data/lib/pay_quicker_sdk/utilities/file_wrapper.rb +28 -0
- data/lib/pay_quicker_sdk/utilities/union_type_lookup.rb +62 -0
- data/lib/pay_quicker_sdk.rb +274 -0
- data/test/controllers/controller_test_base.rb +24 -0
- data/test/controllers/test_agreements_controller.rb +108 -0
- data/test/controllers/test_balances_controller.rb +132 -0
- data/test/controllers/test_bank_accounts_controller.rb +645 -0
- data/test/controllers/test_client_side_controller.rb +295 -0
- data/test/controllers/test_compliance_controller.rb +86 -0
- data/test/controllers/test_documents_controller.rb +212 -0
- data/test/controllers/test_electronic_wallets_controller.rb +292 -0
- data/test/controllers/test_events_controller.rb +138 -0
- data/test/controllers/test_invitations_controller.rb +162 -0
- data/test/controllers/test_jobs_controller.rb +114 -0
- data/test/controllers/test_payments_controller.rb +323 -0
- data/test/controllers/test_prepaid_cards_controller.rb +351 -0
- data/test/controllers/test_program_controller.rb +134 -0
- data/test/controllers/test_receipts_controller.rb +813 -0
- data/test/controllers/test_spendback_controller.rb +302 -0
- data/test/controllers/test_spendback_refunds_controller.rb +128 -0
- data/test/controllers/test_statements_controller.rb +192 -0
- data/test/controllers/test_transfers_controller.rb +613 -0
- data/test/controllers/test_users_controller.rb +483 -0
- data/test/controllers/test_webhooks_controller.rb +402 -0
- data/test/http_response_catcher.rb +19 -0
- metadata +379 -0
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
# pay_quicker_sdk
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated for PayQuicker by
|
|
4
|
+
# APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
require 'date'
|
|
7
|
+
module PayQuickerSdk
|
|
8
|
+
# Response from a invitation request
|
|
9
|
+
class InvitationObject < BaseModel
|
|
10
|
+
SKIP = Object.new
|
|
11
|
+
private_constant :SKIP
|
|
12
|
+
|
|
13
|
+
# [Token](#/rest/models/structures/token) representing the resource
|
|
14
|
+
# @return [String]
|
|
15
|
+
attr_accessor :token
|
|
16
|
+
|
|
17
|
+
# Reference ID in the PayQuicker Hosted Portal, if applicable.
|
|
18
|
+
# @return [String]
|
|
19
|
+
attr_accessor :portal_id
|
|
20
|
+
|
|
21
|
+
# Allocated money to be sent in the transaction.
|
|
22
|
+
# @return [Float]
|
|
23
|
+
attr_accessor :amount
|
|
24
|
+
|
|
25
|
+
# Unique value provided by the client for the
|
|
26
|
+
# [payment](page:resources/payments), utilized for reference and
|
|
27
|
+
# deduplication.
|
|
28
|
+
# @return [String]
|
|
29
|
+
attr_accessor :client_payment_id
|
|
30
|
+
|
|
31
|
+
# Time object was [created](#/rest/models/structures/created-on)
|
|
32
|
+
# @return [DateTime]
|
|
33
|
+
attr_accessor :created
|
|
34
|
+
|
|
35
|
+
# [Currency code type](#/rest/models/structures/country) for the object
|
|
36
|
+
# @return [Currencies]
|
|
37
|
+
attr_accessor :currency
|
|
38
|
+
|
|
39
|
+
# Unique identifier representing the [destination of
|
|
40
|
+
# funds](#/rest/models/structures/destination-token)
|
|
41
|
+
# @return [String]
|
|
42
|
+
attr_accessor :destination_token
|
|
43
|
+
|
|
44
|
+
# [Program identifier](#/rest/models/structures/program-user-id) for the
|
|
45
|
+
# user
|
|
46
|
+
# @return [String]
|
|
47
|
+
attr_accessor :program_user_id
|
|
48
|
+
|
|
49
|
+
# Contact [email address](#/rest/models/structures/email-address) for the
|
|
50
|
+
# user account for the user account
|
|
51
|
+
# @return [String]
|
|
52
|
+
attr_accessor :email
|
|
53
|
+
|
|
54
|
+
# Optional internal [memo](#/rest/models/structures/memo) not visible to the
|
|
55
|
+
# user
|
|
56
|
+
# @return [String]
|
|
57
|
+
attr_accessor :memo
|
|
58
|
+
|
|
59
|
+
# [Optional comments](#/rest/models/structures/notes) visible to the user
|
|
60
|
+
# @return [String]
|
|
61
|
+
attr_accessor :note
|
|
62
|
+
|
|
63
|
+
# Used to identify the [purpose of a
|
|
64
|
+
# payment](#/models/structures/payment-object) and impacts reporting and
|
|
65
|
+
# calculated taxable earnings (if utilizing tax services)
|
|
66
|
+
# @return [PaymentPurposes]
|
|
67
|
+
attr_accessor :purpose
|
|
68
|
+
|
|
69
|
+
# Unique identifier representing the [source of
|
|
70
|
+
# funds](#/rest/models/structures/source-token)
|
|
71
|
+
# @return [String]
|
|
72
|
+
attr_accessor :source_token
|
|
73
|
+
|
|
74
|
+
# Current status of a [transfer](#/rest/models/structures/transfer)
|
|
75
|
+
# @return [TransferStatuses]
|
|
76
|
+
attr_accessor :status
|
|
77
|
+
|
|
78
|
+
# Auto-generated unique identifier representing a receipt, prefixed with
|
|
79
|
+
# `rcpt-`.
|
|
80
|
+
# @return [String]
|
|
81
|
+
attr_accessor :receipt_token
|
|
82
|
+
|
|
83
|
+
# Auto-generated unique identifier representing a receipt, prefixed with
|
|
84
|
+
# `rcpt-`.
|
|
85
|
+
# @return [Array[HateoasSelfRef]]
|
|
86
|
+
attr_accessor :links
|
|
87
|
+
|
|
88
|
+
# A mapping from model property names to API property names.
|
|
89
|
+
def self.names
|
|
90
|
+
@_hash = {} if @_hash.nil?
|
|
91
|
+
@_hash['token'] = 'token'
|
|
92
|
+
@_hash['portal_id'] = 'portalId'
|
|
93
|
+
@_hash['amount'] = 'amount'
|
|
94
|
+
@_hash['client_payment_id'] = 'clientPaymentId'
|
|
95
|
+
@_hash['created'] = 'created'
|
|
96
|
+
@_hash['currency'] = 'currency'
|
|
97
|
+
@_hash['destination_token'] = 'destinationToken'
|
|
98
|
+
@_hash['program_user_id'] = 'programUserId'
|
|
99
|
+
@_hash['email'] = 'email'
|
|
100
|
+
@_hash['memo'] = 'memo'
|
|
101
|
+
@_hash['note'] = 'note'
|
|
102
|
+
@_hash['purpose'] = 'purpose'
|
|
103
|
+
@_hash['source_token'] = 'sourceToken'
|
|
104
|
+
@_hash['status'] = 'status'
|
|
105
|
+
@_hash['receipt_token'] = 'receiptToken'
|
|
106
|
+
@_hash['links'] = 'links'
|
|
107
|
+
@_hash
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# An array for optional fields
|
|
111
|
+
def self.optionals
|
|
112
|
+
%w[
|
|
113
|
+
token
|
|
114
|
+
portal_id
|
|
115
|
+
amount
|
|
116
|
+
client_payment_id
|
|
117
|
+
created
|
|
118
|
+
currency
|
|
119
|
+
destination_token
|
|
120
|
+
program_user_id
|
|
121
|
+
email
|
|
122
|
+
memo
|
|
123
|
+
note
|
|
124
|
+
purpose
|
|
125
|
+
source_token
|
|
126
|
+
status
|
|
127
|
+
receipt_token
|
|
128
|
+
links
|
|
129
|
+
]
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
# An array for nullable fields
|
|
133
|
+
def self.nullables
|
|
134
|
+
[]
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
def initialize(
|
|
138
|
+
token = SKIP, portal_id = SKIP, amount = 1.02,
|
|
139
|
+
client_payment_id = 'd4b6f130-1d1c-4ce2-903a-0c1ad128f55e',
|
|
140
|
+
created = SKIP, currency = Currencies::USD,
|
|
141
|
+
destination_token = 'dest-631b200f-665d-4dbe-bd01-3063c9dec97d',
|
|
142
|
+
program_user_id = SKIP, email = SKIP, memo = SKIP, note = SKIP,
|
|
143
|
+
purpose = SKIP,
|
|
144
|
+
source_token = 'acct-3908ab5a-6ce1-474d-8b80-a63a7b147860', status = SKIP,
|
|
145
|
+
receipt_token = 'rcpt-b7fda294-8d3a-48e8-9a11-ef7be07a732c', links = SKIP,
|
|
146
|
+
additional_properties = {}
|
|
147
|
+
)
|
|
148
|
+
# Add additional model properties to the instance.
|
|
149
|
+
additional_properties.each do |_name, _value|
|
|
150
|
+
instance_variable_set("@#{_name}", _value)
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
@token = token unless token == SKIP
|
|
154
|
+
@portal_id = portal_id unless portal_id == SKIP
|
|
155
|
+
@amount = amount unless amount == SKIP
|
|
156
|
+
@client_payment_id = client_payment_id unless client_payment_id == SKIP
|
|
157
|
+
@created = created unless created == SKIP
|
|
158
|
+
@currency = currency unless currency == SKIP
|
|
159
|
+
@destination_token = destination_token unless destination_token == SKIP
|
|
160
|
+
@program_user_id = program_user_id unless program_user_id == SKIP
|
|
161
|
+
@email = email unless email == SKIP
|
|
162
|
+
@memo = memo unless memo == SKIP
|
|
163
|
+
@note = note unless note == SKIP
|
|
164
|
+
@purpose = purpose unless purpose == SKIP
|
|
165
|
+
@source_token = source_token unless source_token == SKIP
|
|
166
|
+
@status = status unless status == SKIP
|
|
167
|
+
@receipt_token = receipt_token unless receipt_token == SKIP
|
|
168
|
+
@links = links unless links == SKIP
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
# Creates an instance of the object from a hash.
|
|
172
|
+
def self.from_hash(hash)
|
|
173
|
+
return nil unless hash
|
|
174
|
+
|
|
175
|
+
# Extract variables from the hash.
|
|
176
|
+
token = hash.key?('token') ? hash['token'] : SKIP
|
|
177
|
+
portal_id = hash.key?('portalId') ? hash['portalId'] : SKIP
|
|
178
|
+
amount = hash['amount'] ||= 1.02
|
|
179
|
+
client_payment_id =
|
|
180
|
+
hash['clientPaymentId'] ||= 'd4b6f130-1d1c-4ce2-903a-0c1ad128f55e'
|
|
181
|
+
created = if hash.key?('created')
|
|
182
|
+
(DateTimeHelper.from_rfc3339(hash['created']) if hash['created'])
|
|
183
|
+
else
|
|
184
|
+
SKIP
|
|
185
|
+
end
|
|
186
|
+
currency = hash['currency'] ||= Currencies::USD
|
|
187
|
+
destination_token =
|
|
188
|
+
hash['destinationToken'] ||= 'dest-631b200f-665d-4dbe-bd01-3063c9dec97d'
|
|
189
|
+
program_user_id =
|
|
190
|
+
hash.key?('programUserId') ? hash['programUserId'] : SKIP
|
|
191
|
+
email = hash.key?('email') ? hash['email'] : SKIP
|
|
192
|
+
memo = hash.key?('memo') ? hash['memo'] : SKIP
|
|
193
|
+
note = hash.key?('note') ? hash['note'] : SKIP
|
|
194
|
+
purpose = hash.key?('purpose') ? hash['purpose'] : SKIP
|
|
195
|
+
source_token =
|
|
196
|
+
hash['sourceToken'] ||= 'acct-3908ab5a-6ce1-474d-8b80-a63a7b147860'
|
|
197
|
+
status = hash.key?('status') ? hash['status'] : SKIP
|
|
198
|
+
receipt_token =
|
|
199
|
+
hash['receiptToken'] ||= 'rcpt-b7fda294-8d3a-48e8-9a11-ef7be07a732c'
|
|
200
|
+
# Parameter is an array, so we need to iterate through it
|
|
201
|
+
links = nil
|
|
202
|
+
unless hash['links'].nil?
|
|
203
|
+
links = []
|
|
204
|
+
hash['links'].each do |structure|
|
|
205
|
+
links << (HateoasSelfRef.from_hash(structure) if structure)
|
|
206
|
+
end
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
links = SKIP unless hash.key?('links')
|
|
210
|
+
|
|
211
|
+
# Clean out expected properties from Hash.
|
|
212
|
+
additional_properties = hash.reject { |k, _| names.value?(k) }
|
|
213
|
+
|
|
214
|
+
# Create object from extracted values.
|
|
215
|
+
InvitationObject.new(token,
|
|
216
|
+
portal_id,
|
|
217
|
+
amount,
|
|
218
|
+
client_payment_id,
|
|
219
|
+
created,
|
|
220
|
+
currency,
|
|
221
|
+
destination_token,
|
|
222
|
+
program_user_id,
|
|
223
|
+
email,
|
|
224
|
+
memo,
|
|
225
|
+
note,
|
|
226
|
+
purpose,
|
|
227
|
+
source_token,
|
|
228
|
+
status,
|
|
229
|
+
receipt_token,
|
|
230
|
+
links,
|
|
231
|
+
additional_properties)
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
def to_custom_created
|
|
235
|
+
DateTimeHelper.to_rfc3339(created)
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
# Provides a human-readable string representation of the object.
|
|
239
|
+
def to_s
|
|
240
|
+
class_name = self.class.name.split('::').last
|
|
241
|
+
"<#{class_name} token: #{@token}, portal_id: #{@portal_id}, amount: #{@amount},"\
|
|
242
|
+
" client_payment_id: #{@client_payment_id}, created: #{@created}, currency: #{@currency},"\
|
|
243
|
+
" destination_token: #{@destination_token}, program_user_id: #{@program_user_id}, email:"\
|
|
244
|
+
" #{@email}, memo: #{@memo}, note: #{@note}, purpose: #{@purpose}, source_token:"\
|
|
245
|
+
" #{@source_token}, status: #{@status}, receipt_token: #{@receipt_token}, links: #{@links},"\
|
|
246
|
+
" additional_properties: #{get_additional_properties}>"
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
250
|
+
def inspect
|
|
251
|
+
class_name = self.class.name.split('::').last
|
|
252
|
+
"<#{class_name} token: #{@token.inspect}, portal_id: #{@portal_id.inspect}, amount:"\
|
|
253
|
+
" #{@amount.inspect}, client_payment_id: #{@client_payment_id.inspect}, created:"\
|
|
254
|
+
" #{@created.inspect}, currency: #{@currency.inspect}, destination_token:"\
|
|
255
|
+
" #{@destination_token.inspect}, program_user_id: #{@program_user_id.inspect}, email:"\
|
|
256
|
+
" #{@email.inspect}, memo: #{@memo.inspect}, note: #{@note.inspect}, purpose:"\
|
|
257
|
+
" #{@purpose.inspect}, source_token: #{@source_token.inspect}, status: #{@status.inspect},"\
|
|
258
|
+
" receipt_token: #{@receipt_token.inspect}, links: #{@links.inspect}, additional_properties:"\
|
|
259
|
+
" #{get_additional_properties}>"
|
|
260
|
+
end
|
|
261
|
+
end
|
|
262
|
+
end
|
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
# pay_quicker_sdk
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated for PayQuicker by
|
|
4
|
+
# APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
require 'date'
|
|
7
|
+
module PayQuickerSdk
|
|
8
|
+
# InvitationResult Model.
|
|
9
|
+
class InvitationResult < BaseModel
|
|
10
|
+
SKIP = Object.new
|
|
11
|
+
private_constant :SKIP
|
|
12
|
+
|
|
13
|
+
# [Token](#/rest/models/structures/token) representing the resource
|
|
14
|
+
# @return [String]
|
|
15
|
+
attr_accessor :token
|
|
16
|
+
|
|
17
|
+
# Reference ID in the PayQuicker Hosted Portal, if applicable.
|
|
18
|
+
# @return [String]
|
|
19
|
+
attr_accessor :portal_id
|
|
20
|
+
|
|
21
|
+
# Allocated money to be sent in the transaction.
|
|
22
|
+
# @return [Float]
|
|
23
|
+
attr_accessor :amount
|
|
24
|
+
|
|
25
|
+
# Unique value provided by the client for the
|
|
26
|
+
# [payment](page:resources/payments), utilized for reference and
|
|
27
|
+
# deduplication.
|
|
28
|
+
# @return [String]
|
|
29
|
+
attr_accessor :client_payment_id
|
|
30
|
+
|
|
31
|
+
# Time object was [created](#/rest/models/structures/created-on)
|
|
32
|
+
# @return [DateTime]
|
|
33
|
+
attr_accessor :created
|
|
34
|
+
|
|
35
|
+
# [Currency code type](#/rest/models/structures/country) for the object
|
|
36
|
+
# @return [Currencies]
|
|
37
|
+
attr_accessor :currency
|
|
38
|
+
|
|
39
|
+
# Unique identifier representing the [destination of
|
|
40
|
+
# funds](#/rest/models/structures/destination-token)
|
|
41
|
+
# @return [String]
|
|
42
|
+
attr_accessor :destination_token
|
|
43
|
+
|
|
44
|
+
# [Program identifier](#/rest/models/structures/program-user-id) for the
|
|
45
|
+
# user
|
|
46
|
+
# @return [String]
|
|
47
|
+
attr_accessor :program_user_id
|
|
48
|
+
|
|
49
|
+
# Contact [email address](#/rest/models/structures/email-address) for the
|
|
50
|
+
# user account for the user account
|
|
51
|
+
# @return [String]
|
|
52
|
+
attr_accessor :email
|
|
53
|
+
|
|
54
|
+
# Optional internal [memo](#/rest/models/structures/memo) not visible to the
|
|
55
|
+
# user
|
|
56
|
+
# @return [String]
|
|
57
|
+
attr_accessor :memo
|
|
58
|
+
|
|
59
|
+
# [Optional comments](#/rest/models/structures/notes) visible to the user
|
|
60
|
+
# @return [String]
|
|
61
|
+
attr_accessor :note
|
|
62
|
+
|
|
63
|
+
# Used to identify the [purpose of a
|
|
64
|
+
# payment](#/models/structures/payment-object) and impacts reporting and
|
|
65
|
+
# calculated taxable earnings (if utilizing tax services)
|
|
66
|
+
# @return [PaymentPurposes]
|
|
67
|
+
attr_accessor :purpose
|
|
68
|
+
|
|
69
|
+
# Unique identifier representing the [source of
|
|
70
|
+
# funds](#/rest/models/structures/source-token)
|
|
71
|
+
# @return [String]
|
|
72
|
+
attr_accessor :source_token
|
|
73
|
+
|
|
74
|
+
# Current status of a [transfer](#/rest/models/structures/transfer)
|
|
75
|
+
# @return [TransferStatuses]
|
|
76
|
+
attr_accessor :status
|
|
77
|
+
|
|
78
|
+
# Auto-generated unique identifier representing a receipt, prefixed with
|
|
79
|
+
# `rcpt-`.
|
|
80
|
+
# @return [String]
|
|
81
|
+
attr_accessor :receipt_token
|
|
82
|
+
|
|
83
|
+
# Auto-generated unique identifier representing a receipt, prefixed with
|
|
84
|
+
# `rcpt-`.
|
|
85
|
+
# @return [Array[HateoasSelfRef]]
|
|
86
|
+
attr_accessor :links
|
|
87
|
+
|
|
88
|
+
# Auto-generated unique identifier representing a receipt, prefixed with
|
|
89
|
+
# `rcpt-`.
|
|
90
|
+
# @return [MetadataItems]
|
|
91
|
+
attr_accessor :meta
|
|
92
|
+
|
|
93
|
+
# A mapping from model property names to API property names.
|
|
94
|
+
def self.names
|
|
95
|
+
@_hash = {} if @_hash.nil?
|
|
96
|
+
@_hash['token'] = 'token'
|
|
97
|
+
@_hash['portal_id'] = 'portalId'
|
|
98
|
+
@_hash['amount'] = 'amount'
|
|
99
|
+
@_hash['client_payment_id'] = 'clientPaymentId'
|
|
100
|
+
@_hash['created'] = 'created'
|
|
101
|
+
@_hash['currency'] = 'currency'
|
|
102
|
+
@_hash['destination_token'] = 'destinationToken'
|
|
103
|
+
@_hash['program_user_id'] = 'programUserId'
|
|
104
|
+
@_hash['email'] = 'email'
|
|
105
|
+
@_hash['memo'] = 'memo'
|
|
106
|
+
@_hash['note'] = 'note'
|
|
107
|
+
@_hash['purpose'] = 'purpose'
|
|
108
|
+
@_hash['source_token'] = 'sourceToken'
|
|
109
|
+
@_hash['status'] = 'status'
|
|
110
|
+
@_hash['receipt_token'] = 'receiptToken'
|
|
111
|
+
@_hash['links'] = 'links'
|
|
112
|
+
@_hash['meta'] = 'meta'
|
|
113
|
+
@_hash
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# An array for optional fields
|
|
117
|
+
def self.optionals
|
|
118
|
+
%w[
|
|
119
|
+
token
|
|
120
|
+
portal_id
|
|
121
|
+
amount
|
|
122
|
+
client_payment_id
|
|
123
|
+
created
|
|
124
|
+
currency
|
|
125
|
+
destination_token
|
|
126
|
+
program_user_id
|
|
127
|
+
email
|
|
128
|
+
memo
|
|
129
|
+
note
|
|
130
|
+
purpose
|
|
131
|
+
source_token
|
|
132
|
+
status
|
|
133
|
+
receipt_token
|
|
134
|
+
links
|
|
135
|
+
meta
|
|
136
|
+
]
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
# An array for nullable fields
|
|
140
|
+
def self.nullables
|
|
141
|
+
[]
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
def initialize(
|
|
145
|
+
token = SKIP, portal_id = SKIP, amount = 1.02,
|
|
146
|
+
client_payment_id = 'd4b6f130-1d1c-4ce2-903a-0c1ad128f55e',
|
|
147
|
+
created = SKIP, currency = Currencies::USD,
|
|
148
|
+
destination_token = 'dest-631b200f-665d-4dbe-bd01-3063c9dec97d',
|
|
149
|
+
program_user_id = SKIP, email = SKIP, memo = SKIP, note = SKIP,
|
|
150
|
+
purpose = SKIP,
|
|
151
|
+
source_token = 'acct-3908ab5a-6ce1-474d-8b80-a63a7b147860', status = SKIP,
|
|
152
|
+
receipt_token = 'rcpt-b7fda294-8d3a-48e8-9a11-ef7be07a732c', links = SKIP,
|
|
153
|
+
meta = SKIP, additional_properties = {}
|
|
154
|
+
)
|
|
155
|
+
# Add additional model properties to the instance.
|
|
156
|
+
additional_properties.each do |_name, _value|
|
|
157
|
+
instance_variable_set("@#{_name}", _value)
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
@token = token unless token == SKIP
|
|
161
|
+
@portal_id = portal_id unless portal_id == SKIP
|
|
162
|
+
@amount = amount unless amount == SKIP
|
|
163
|
+
@client_payment_id = client_payment_id unless client_payment_id == SKIP
|
|
164
|
+
@created = created unless created == SKIP
|
|
165
|
+
@currency = currency unless currency == SKIP
|
|
166
|
+
@destination_token = destination_token unless destination_token == SKIP
|
|
167
|
+
@program_user_id = program_user_id unless program_user_id == SKIP
|
|
168
|
+
@email = email unless email == SKIP
|
|
169
|
+
@memo = memo unless memo == SKIP
|
|
170
|
+
@note = note unless note == SKIP
|
|
171
|
+
@purpose = purpose unless purpose == SKIP
|
|
172
|
+
@source_token = source_token unless source_token == SKIP
|
|
173
|
+
@status = status unless status == SKIP
|
|
174
|
+
@receipt_token = receipt_token unless receipt_token == SKIP
|
|
175
|
+
@links = links unless links == SKIP
|
|
176
|
+
@meta = meta unless meta == SKIP
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
# Creates an instance of the object from a hash.
|
|
180
|
+
def self.from_hash(hash)
|
|
181
|
+
return nil unless hash
|
|
182
|
+
|
|
183
|
+
# Extract variables from the hash.
|
|
184
|
+
token = hash.key?('token') ? hash['token'] : SKIP
|
|
185
|
+
portal_id = hash.key?('portalId') ? hash['portalId'] : SKIP
|
|
186
|
+
amount = hash['amount'] ||= 1.02
|
|
187
|
+
client_payment_id =
|
|
188
|
+
hash['clientPaymentId'] ||= 'd4b6f130-1d1c-4ce2-903a-0c1ad128f55e'
|
|
189
|
+
created = if hash.key?('created')
|
|
190
|
+
(DateTimeHelper.from_rfc3339(hash['created']) if hash['created'])
|
|
191
|
+
else
|
|
192
|
+
SKIP
|
|
193
|
+
end
|
|
194
|
+
currency = hash['currency'] ||= Currencies::USD
|
|
195
|
+
destination_token =
|
|
196
|
+
hash['destinationToken'] ||= 'dest-631b200f-665d-4dbe-bd01-3063c9dec97d'
|
|
197
|
+
program_user_id =
|
|
198
|
+
hash.key?('programUserId') ? hash['programUserId'] : SKIP
|
|
199
|
+
email = hash.key?('email') ? hash['email'] : SKIP
|
|
200
|
+
memo = hash.key?('memo') ? hash['memo'] : SKIP
|
|
201
|
+
note = hash.key?('note') ? hash['note'] : SKIP
|
|
202
|
+
purpose = hash.key?('purpose') ? hash['purpose'] : SKIP
|
|
203
|
+
source_token =
|
|
204
|
+
hash['sourceToken'] ||= 'acct-3908ab5a-6ce1-474d-8b80-a63a7b147860'
|
|
205
|
+
status = hash.key?('status') ? hash['status'] : SKIP
|
|
206
|
+
receipt_token =
|
|
207
|
+
hash['receiptToken'] ||= 'rcpt-b7fda294-8d3a-48e8-9a11-ef7be07a732c'
|
|
208
|
+
# Parameter is an array, so we need to iterate through it
|
|
209
|
+
links = nil
|
|
210
|
+
unless hash['links'].nil?
|
|
211
|
+
links = []
|
|
212
|
+
hash['links'].each do |structure|
|
|
213
|
+
links << (HateoasSelfRef.from_hash(structure) if structure)
|
|
214
|
+
end
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
links = SKIP unless hash.key?('links')
|
|
218
|
+
meta = MetadataItems.from_hash(hash['meta']) if hash['meta']
|
|
219
|
+
|
|
220
|
+
# Clean out expected properties from Hash.
|
|
221
|
+
additional_properties = hash.reject { |k, _| names.value?(k) }
|
|
222
|
+
|
|
223
|
+
# Create object from extracted values.
|
|
224
|
+
InvitationResult.new(token,
|
|
225
|
+
portal_id,
|
|
226
|
+
amount,
|
|
227
|
+
client_payment_id,
|
|
228
|
+
created,
|
|
229
|
+
currency,
|
|
230
|
+
destination_token,
|
|
231
|
+
program_user_id,
|
|
232
|
+
email,
|
|
233
|
+
memo,
|
|
234
|
+
note,
|
|
235
|
+
purpose,
|
|
236
|
+
source_token,
|
|
237
|
+
status,
|
|
238
|
+
receipt_token,
|
|
239
|
+
links,
|
|
240
|
+
meta,
|
|
241
|
+
additional_properties)
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
def to_custom_created
|
|
245
|
+
DateTimeHelper.to_rfc3339(created)
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
# Provides a human-readable string representation of the object.
|
|
249
|
+
def to_s
|
|
250
|
+
class_name = self.class.name.split('::').last
|
|
251
|
+
"<#{class_name} token: #{@token}, portal_id: #{@portal_id}, amount: #{@amount},"\
|
|
252
|
+
" client_payment_id: #{@client_payment_id}, created: #{@created}, currency: #{@currency},"\
|
|
253
|
+
" destination_token: #{@destination_token}, program_user_id: #{@program_user_id}, email:"\
|
|
254
|
+
" #{@email}, memo: #{@memo}, note: #{@note}, purpose: #{@purpose}, source_token:"\
|
|
255
|
+
" #{@source_token}, status: #{@status}, receipt_token: #{@receipt_token}, links: #{@links},"\
|
|
256
|
+
" meta: #{@meta}, additional_properties: #{get_additional_properties}>"
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
260
|
+
def inspect
|
|
261
|
+
class_name = self.class.name.split('::').last
|
|
262
|
+
"<#{class_name} token: #{@token.inspect}, portal_id: #{@portal_id.inspect}, amount:"\
|
|
263
|
+
" #{@amount.inspect}, client_payment_id: #{@client_payment_id.inspect}, created:"\
|
|
264
|
+
" #{@created.inspect}, currency: #{@currency.inspect}, destination_token:"\
|
|
265
|
+
" #{@destination_token.inspect}, program_user_id: #{@program_user_id.inspect}, email:"\
|
|
266
|
+
" #{@email.inspect}, memo: #{@memo.inspect}, note: #{@note.inspect}, purpose:"\
|
|
267
|
+
" #{@purpose.inspect}, source_token: #{@source_token.inspect}, status: #{@status.inspect},"\
|
|
268
|
+
" receipt_token: #{@receipt_token.inspect}, links: #{@links.inspect}, meta:"\
|
|
269
|
+
" #{@meta.inspect}, additional_properties: #{get_additional_properties}>"
|
|
270
|
+
end
|
|
271
|
+
end
|
|
272
|
+
end
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# pay_quicker_sdk
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated for PayQuicker by
|
|
4
|
+
# APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module PayQuickerSdk
|
|
7
|
+
# Job Status Types
|
|
8
|
+
class JobStatusTypes
|
|
9
|
+
JOB_STATUS_TYPES = [
|
|
10
|
+
# COMPLETED.
|
|
11
|
+
COMPLETED = 'COMPLETED'.freeze,
|
|
12
|
+
|
|
13
|
+
# APPROVED.
|
|
14
|
+
APPROVED = 'APPROVED'.freeze,
|
|
15
|
+
|
|
16
|
+
# CANCELLED.
|
|
17
|
+
CANCELLED = 'CANCELLED'.freeze,
|
|
18
|
+
|
|
19
|
+
# FAILED.
|
|
20
|
+
FAILED = 'FAILED'.freeze,
|
|
21
|
+
|
|
22
|
+
# IN_PROGRESS.
|
|
23
|
+
IN_PROGRESS = 'IN_PROGRESS'.freeze,
|
|
24
|
+
|
|
25
|
+
# PARSING.
|
|
26
|
+
PARSING = 'PARSING'.freeze,
|
|
27
|
+
|
|
28
|
+
# PENDING_REVIEW.
|
|
29
|
+
PENDING_REVIEW = 'PENDING_REVIEW'.freeze,
|
|
30
|
+
|
|
31
|
+
# PROCESSING.
|
|
32
|
+
PROCESSING = 'PROCESSING'.freeze,
|
|
33
|
+
|
|
34
|
+
# SCHEDULED.
|
|
35
|
+
SCHEDULED = 'SCHEDULED'.freeze,
|
|
36
|
+
|
|
37
|
+
# SUBMITTED.
|
|
38
|
+
SUBMITTED = 'SUBMITTED'.freeze
|
|
39
|
+
].freeze
|
|
40
|
+
|
|
41
|
+
def self.validate(value)
|
|
42
|
+
return false if value.nil?
|
|
43
|
+
|
|
44
|
+
JOB_STATUS_TYPES.include?(value)
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
def self.from_value(value, default_value = COMPLETED)
|
|
48
|
+
return default_value if value.nil?
|
|
49
|
+
|
|
50
|
+
str = value.to_s.strip
|
|
51
|
+
|
|
52
|
+
case str.downcase
|
|
53
|
+
when 'completed' then COMPLETED
|
|
54
|
+
when 'approved' then APPROVED
|
|
55
|
+
when 'cancelled' then CANCELLED
|
|
56
|
+
when 'failed' then FAILED
|
|
57
|
+
when 'in_progress' then IN_PROGRESS
|
|
58
|
+
when 'parsing' then PARSING
|
|
59
|
+
when 'pending_review' then PENDING_REVIEW
|
|
60
|
+
when 'processing' then PROCESSING
|
|
61
|
+
when 'scheduled' then SCHEDULED
|
|
62
|
+
when 'submitted' then SUBMITTED
|
|
63
|
+
else
|
|
64
|
+
default_value
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# pay_quicker_sdk
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated for PayQuicker by
|
|
4
|
+
# APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module PayQuickerSdk
|
|
7
|
+
# Job Types
|
|
8
|
+
class JobTypes
|
|
9
|
+
JOB_TYPES = [
|
|
10
|
+
# PAYMENTS.
|
|
11
|
+
PAYMENTS = 'PAYMENTS'.freeze,
|
|
12
|
+
|
|
13
|
+
# INVITATIONS.
|
|
14
|
+
INVITATIONS = 'INVITATIONS'.freeze
|
|
15
|
+
].freeze
|
|
16
|
+
|
|
17
|
+
def self.validate(value)
|
|
18
|
+
return false if value.nil?
|
|
19
|
+
|
|
20
|
+
JOB_TYPES.include?(value)
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def self.from_value(value, default_value = PAYMENTS)
|
|
24
|
+
return default_value if value.nil?
|
|
25
|
+
|
|
26
|
+
str = value.to_s.strip
|
|
27
|
+
|
|
28
|
+
case str.downcase
|
|
29
|
+
when 'payments' then PAYMENTS
|
|
30
|
+
when 'invitations' then INVITATIONS
|
|
31
|
+
else
|
|
32
|
+
default_value
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|