payquicker-apimatic-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 +380 -0
|
@@ -0,0 +1,220 @@
|
|
|
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
|
+
# PaymentJobResult Model.
|
|
9
|
+
class PaymentJobResult < 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
|
+
# The name given to a computer file in order to distinguish it from other
|
|
22
|
+
# files
|
|
23
|
+
# @return [String]
|
|
24
|
+
attr_accessor :filename
|
|
25
|
+
|
|
26
|
+
# [Token](#/rest/models/structures/token) representing the document
|
|
27
|
+
# @return [String]
|
|
28
|
+
attr_accessor :file_token
|
|
29
|
+
|
|
30
|
+
# Time object was [created](#/rest/models/structures/created-on)
|
|
31
|
+
# @return [DateTime]
|
|
32
|
+
attr_accessor :created
|
|
33
|
+
|
|
34
|
+
# [Transfer](#/rest/models/structures/not-before-or-after) is scheduled and
|
|
35
|
+
# will not process before this time.
|
|
36
|
+
# @return [DateTime]
|
|
37
|
+
attr_accessor :not_before
|
|
38
|
+
|
|
39
|
+
# [Transfer](#/rest/models/structures/not-before-or-after) is scheduled and
|
|
40
|
+
# will not process before this time.
|
|
41
|
+
# @return [Integer]
|
|
42
|
+
attr_accessor :count
|
|
43
|
+
|
|
44
|
+
# Job Types
|
|
45
|
+
# @return [JobTypes]
|
|
46
|
+
attr_accessor :type
|
|
47
|
+
|
|
48
|
+
# Job Status Types
|
|
49
|
+
# @return [JobStatusTypes]
|
|
50
|
+
attr_accessor :status
|
|
51
|
+
|
|
52
|
+
# Job Status Types
|
|
53
|
+
# @return [Array[PaymentObject]]
|
|
54
|
+
attr_accessor :items
|
|
55
|
+
|
|
56
|
+
# Job Status Types
|
|
57
|
+
# @return [Array[HateoasSelfRef]]
|
|
58
|
+
attr_accessor :links
|
|
59
|
+
|
|
60
|
+
# Job Status Types
|
|
61
|
+
# @return [MetadataItems]
|
|
62
|
+
attr_accessor :meta
|
|
63
|
+
|
|
64
|
+
# A mapping from model property names to API property names.
|
|
65
|
+
def self.names
|
|
66
|
+
@_hash = {} if @_hash.nil?
|
|
67
|
+
@_hash['token'] = 'token'
|
|
68
|
+
@_hash['portal_id'] = 'portalId'
|
|
69
|
+
@_hash['filename'] = 'filename'
|
|
70
|
+
@_hash['file_token'] = 'fileToken'
|
|
71
|
+
@_hash['created'] = 'created'
|
|
72
|
+
@_hash['not_before'] = 'notBefore'
|
|
73
|
+
@_hash['count'] = 'count'
|
|
74
|
+
@_hash['type'] = 'type'
|
|
75
|
+
@_hash['status'] = 'status'
|
|
76
|
+
@_hash['items'] = 'items'
|
|
77
|
+
@_hash['links'] = 'links'
|
|
78
|
+
@_hash['meta'] = 'meta'
|
|
79
|
+
@_hash
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# An array for optional fields
|
|
83
|
+
def self.optionals
|
|
84
|
+
%w[
|
|
85
|
+
token
|
|
86
|
+
portal_id
|
|
87
|
+
filename
|
|
88
|
+
file_token
|
|
89
|
+
created
|
|
90
|
+
not_before
|
|
91
|
+
count
|
|
92
|
+
type
|
|
93
|
+
status
|
|
94
|
+
items
|
|
95
|
+
links
|
|
96
|
+
meta
|
|
97
|
+
]
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# An array for nullable fields
|
|
101
|
+
def self.nullables
|
|
102
|
+
[]
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
def initialize(token = SKIP, portal_id = SKIP, filename = SKIP,
|
|
106
|
+
file_token = 'docu-2053aaad-c1a5-45e2-a2da-f71287f32800',
|
|
107
|
+
created = SKIP, not_before = SKIP, count = SKIP, type = SKIP,
|
|
108
|
+
status = SKIP, items = SKIP, links = SKIP, meta = SKIP,
|
|
109
|
+
additional_properties = {})
|
|
110
|
+
# Add additional model properties to the instance.
|
|
111
|
+
additional_properties.each do |_name, _value|
|
|
112
|
+
instance_variable_set("@#{_name}", _value)
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
@token = token unless token == SKIP
|
|
116
|
+
@portal_id = portal_id unless portal_id == SKIP
|
|
117
|
+
@filename = filename unless filename == SKIP
|
|
118
|
+
@file_token = file_token unless file_token == SKIP
|
|
119
|
+
@created = created unless created == SKIP
|
|
120
|
+
@not_before = not_before unless not_before == SKIP
|
|
121
|
+
@count = count unless count == SKIP
|
|
122
|
+
@type = type unless type == SKIP
|
|
123
|
+
@status = status unless status == SKIP
|
|
124
|
+
@items = items unless items == SKIP
|
|
125
|
+
@links = links unless links == SKIP
|
|
126
|
+
@meta = meta unless meta == SKIP
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# Creates an instance of the object from a hash.
|
|
130
|
+
def self.from_hash(hash)
|
|
131
|
+
return nil unless hash
|
|
132
|
+
|
|
133
|
+
# Extract variables from the hash.
|
|
134
|
+
token = hash.key?('token') ? hash['token'] : SKIP
|
|
135
|
+
portal_id = hash.key?('portalId') ? hash['portalId'] : SKIP
|
|
136
|
+
filename = hash.key?('filename') ? hash['filename'] : SKIP
|
|
137
|
+
file_token =
|
|
138
|
+
hash['fileToken'] ||= 'docu-2053aaad-c1a5-45e2-a2da-f71287f32800'
|
|
139
|
+
created = if hash.key?('created')
|
|
140
|
+
(DateTimeHelper.from_rfc3339(hash['created']) if hash['created'])
|
|
141
|
+
else
|
|
142
|
+
SKIP
|
|
143
|
+
end
|
|
144
|
+
not_before = if hash.key?('notBefore')
|
|
145
|
+
(DateTimeHelper.from_rfc3339(hash['notBefore']) if hash['notBefore'])
|
|
146
|
+
else
|
|
147
|
+
SKIP
|
|
148
|
+
end
|
|
149
|
+
count = hash.key?('count') ? hash['count'] : SKIP
|
|
150
|
+
type = hash.key?('type') ? hash['type'] : SKIP
|
|
151
|
+
status = hash.key?('status') ? hash['status'] : SKIP
|
|
152
|
+
# Parameter is an array, so we need to iterate through it
|
|
153
|
+
items = nil
|
|
154
|
+
unless hash['items'].nil?
|
|
155
|
+
items = []
|
|
156
|
+
hash['items'].each do |structure|
|
|
157
|
+
items << (PaymentObject.from_hash(structure) if structure)
|
|
158
|
+
end
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
items = SKIP unless hash.key?('items')
|
|
162
|
+
# Parameter is an array, so we need to iterate through it
|
|
163
|
+
links = nil
|
|
164
|
+
unless hash['links'].nil?
|
|
165
|
+
links = []
|
|
166
|
+
hash['links'].each do |structure|
|
|
167
|
+
links << (HateoasSelfRef.from_hash(structure) if structure)
|
|
168
|
+
end
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
links = SKIP unless hash.key?('links')
|
|
172
|
+
meta = MetadataItems.from_hash(hash['meta']) if hash['meta']
|
|
173
|
+
|
|
174
|
+
# Clean out expected properties from Hash.
|
|
175
|
+
additional_properties = hash.reject { |k, _| names.value?(k) }
|
|
176
|
+
|
|
177
|
+
# Create object from extracted values.
|
|
178
|
+
PaymentJobResult.new(token,
|
|
179
|
+
portal_id,
|
|
180
|
+
filename,
|
|
181
|
+
file_token,
|
|
182
|
+
created,
|
|
183
|
+
not_before,
|
|
184
|
+
count,
|
|
185
|
+
type,
|
|
186
|
+
status,
|
|
187
|
+
items,
|
|
188
|
+
links,
|
|
189
|
+
meta,
|
|
190
|
+
additional_properties)
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
def to_custom_created
|
|
194
|
+
DateTimeHelper.to_rfc3339(created)
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
def to_custom_not_before
|
|
198
|
+
DateTimeHelper.to_rfc3339(not_before)
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
# Provides a human-readable string representation of the object.
|
|
202
|
+
def to_s
|
|
203
|
+
class_name = self.class.name.split('::').last
|
|
204
|
+
"<#{class_name} token: #{@token}, portal_id: #{@portal_id}, filename: #{@filename},"\
|
|
205
|
+
" file_token: #{@file_token}, created: #{@created}, not_before: #{@not_before}, count:"\
|
|
206
|
+
" #{@count}, type: #{@type}, status: #{@status}, items: #{@items}, links: #{@links}, meta:"\
|
|
207
|
+
" #{@meta}, additional_properties: #{get_additional_properties}>"
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
211
|
+
def inspect
|
|
212
|
+
class_name = self.class.name.split('::').last
|
|
213
|
+
"<#{class_name} token: #{@token.inspect}, portal_id: #{@portal_id.inspect}, filename:"\
|
|
214
|
+
" #{@filename.inspect}, file_token: #{@file_token.inspect}, created: #{@created.inspect},"\
|
|
215
|
+
" not_before: #{@not_before.inspect}, count: #{@count.inspect}, type: #{@type.inspect},"\
|
|
216
|
+
" status: #{@status.inspect}, items: #{@items.inspect}, links: #{@links.inspect}, meta:"\
|
|
217
|
+
" #{@meta.inspect}, additional_properties: #{get_additional_properties}>"
|
|
218
|
+
end
|
|
219
|
+
end
|
|
220
|
+
end
|
|
@@ -0,0 +1,106 @@
|
|
|
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
|
+
# PaymentListResult Model.
|
|
8
|
+
class PaymentListResult < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [Array[PaymentObject]]
|
|
14
|
+
attr_accessor :payload
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [ListMetadata]
|
|
18
|
+
attr_accessor :meta
|
|
19
|
+
|
|
20
|
+
# TODO: Write general description for this method
|
|
21
|
+
# @return [Array[HateoasSelfRef]]
|
|
22
|
+
attr_accessor :links
|
|
23
|
+
|
|
24
|
+
# A mapping from model property names to API property names.
|
|
25
|
+
def self.names
|
|
26
|
+
@_hash = {} if @_hash.nil?
|
|
27
|
+
@_hash['payload'] = 'payload'
|
|
28
|
+
@_hash['meta'] = 'meta'
|
|
29
|
+
@_hash['links'] = 'links'
|
|
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(payload = nil, meta = nil, links = nil,
|
|
44
|
+
additional_properties = {})
|
|
45
|
+
# Add additional model properties to the instance.
|
|
46
|
+
additional_properties.each do |_name, _value|
|
|
47
|
+
instance_variable_set("@#{_name}", _value)
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
@payload = payload
|
|
51
|
+
@meta = meta
|
|
52
|
+
@links = links
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Creates an instance of the object from a hash.
|
|
56
|
+
def self.from_hash(hash)
|
|
57
|
+
return nil unless hash
|
|
58
|
+
|
|
59
|
+
# Extract variables from the hash.
|
|
60
|
+
# Parameter is an array, so we need to iterate through it
|
|
61
|
+
payload = nil
|
|
62
|
+
unless hash['payload'].nil?
|
|
63
|
+
payload = []
|
|
64
|
+
hash['payload'].each do |structure|
|
|
65
|
+
payload << (PaymentObject.from_hash(structure) if structure)
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
payload = nil unless hash.key?('payload')
|
|
70
|
+
meta = ListMetadata.from_hash(hash['meta']) if hash['meta']
|
|
71
|
+
# Parameter is an array, so we need to iterate through it
|
|
72
|
+
links = nil
|
|
73
|
+
unless hash['links'].nil?
|
|
74
|
+
links = []
|
|
75
|
+
hash['links'].each do |structure|
|
|
76
|
+
links << (HateoasSelfRef.from_hash(structure) if structure)
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
links = nil unless hash.key?('links')
|
|
81
|
+
|
|
82
|
+
# Clean out expected properties from Hash.
|
|
83
|
+
additional_properties = hash.reject { |k, _| names.value?(k) }
|
|
84
|
+
|
|
85
|
+
# Create object from extracted values.
|
|
86
|
+
PaymentListResult.new(payload,
|
|
87
|
+
meta,
|
|
88
|
+
links,
|
|
89
|
+
additional_properties)
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# Provides a human-readable string representation of the object.
|
|
93
|
+
def to_s
|
|
94
|
+
class_name = self.class.name.split('::').last
|
|
95
|
+
"<#{class_name} payload: #{@payload}, meta: #{@meta}, links: #{@links},"\
|
|
96
|
+
" additional_properties: #{get_additional_properties}>"
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
100
|
+
def inspect
|
|
101
|
+
class_name = self.class.name.split('::').last
|
|
102
|
+
"<#{class_name} payload: #{@payload.inspect}, meta: #{@meta.inspect}, links:"\
|
|
103
|
+
" #{@links.inspect}, additional_properties: #{get_additional_properties}>"
|
|
104
|
+
end
|
|
105
|
+
end
|
|
106
|
+
end
|
|
@@ -0,0 +1,263 @@
|
|
|
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 [transfer](#/rest/models/enumerations/transfer-types)
|
|
9
|
+
# request
|
|
10
|
+
class PaymentObject < BaseModel
|
|
11
|
+
SKIP = Object.new
|
|
12
|
+
private_constant :SKIP
|
|
13
|
+
|
|
14
|
+
# [Token](#/rest/models/structures/token) representing the resource
|
|
15
|
+
# @return [String]
|
|
16
|
+
attr_accessor :token
|
|
17
|
+
|
|
18
|
+
# Reference ID in the PayQuicker Hosted Portal, if applicable.
|
|
19
|
+
# @return [String]
|
|
20
|
+
attr_accessor :portal_id
|
|
21
|
+
|
|
22
|
+
# Allocated money to be sent in the transaction.
|
|
23
|
+
# @return [Float]
|
|
24
|
+
attr_accessor :amount
|
|
25
|
+
|
|
26
|
+
# Unique value provided by the client for the
|
|
27
|
+
# [payment](page:resources/payments), utilized for reference and
|
|
28
|
+
# deduplication.
|
|
29
|
+
# @return [String]
|
|
30
|
+
attr_accessor :client_payment_id
|
|
31
|
+
|
|
32
|
+
# Time object was [created](#/rest/models/structures/created-on)
|
|
33
|
+
# @return [DateTime]
|
|
34
|
+
attr_accessor :created
|
|
35
|
+
|
|
36
|
+
# [Currency code type](#/rest/models/structures/country) for the object
|
|
37
|
+
# @return [Currencies]
|
|
38
|
+
attr_accessor :currency
|
|
39
|
+
|
|
40
|
+
# Unique identifier representing the [destination of
|
|
41
|
+
# funds](#/rest/models/structures/destination-token)
|
|
42
|
+
# @return [String]
|
|
43
|
+
attr_accessor :destination_token
|
|
44
|
+
|
|
45
|
+
# [Program identifier](#/rest/models/structures/program-user-id) for the
|
|
46
|
+
# user
|
|
47
|
+
# @return [String]
|
|
48
|
+
attr_accessor :program_user_id
|
|
49
|
+
|
|
50
|
+
# Contact [email address](#/rest/models/structures/email-address) for the
|
|
51
|
+
# user account for the user account
|
|
52
|
+
# @return [String]
|
|
53
|
+
attr_accessor :email
|
|
54
|
+
|
|
55
|
+
# Optional internal [memo](#/rest/models/structures/memo) not visible to the
|
|
56
|
+
# user
|
|
57
|
+
# @return [String]
|
|
58
|
+
attr_accessor :memo
|
|
59
|
+
|
|
60
|
+
# [Optional comments](#/rest/models/structures/notes) visible to the user
|
|
61
|
+
# @return [String]
|
|
62
|
+
attr_accessor :note
|
|
63
|
+
|
|
64
|
+
# Used to identify the [purpose of a
|
|
65
|
+
# payment](#/models/structures/payment-object) and impacts reporting and
|
|
66
|
+
# calculated taxable earnings (if utilizing tax services)
|
|
67
|
+
# @return [PaymentPurposes]
|
|
68
|
+
attr_accessor :purpose
|
|
69
|
+
|
|
70
|
+
# Unique identifier representing the [source of
|
|
71
|
+
# funds](#/rest/models/structures/source-token)
|
|
72
|
+
# @return [String]
|
|
73
|
+
attr_accessor :source_token
|
|
74
|
+
|
|
75
|
+
# Current status of a [transfer](#/rest/models/structures/transfer)
|
|
76
|
+
# @return [TransferStatuses]
|
|
77
|
+
attr_accessor :status
|
|
78
|
+
|
|
79
|
+
# Auto-generated unique identifier representing a receipt, prefixed with
|
|
80
|
+
# `rcpt-`.
|
|
81
|
+
# @return [String]
|
|
82
|
+
attr_accessor :receipt_token
|
|
83
|
+
|
|
84
|
+
# Auto-generated unique identifier representing a receipt, prefixed with
|
|
85
|
+
# `rcpt-`.
|
|
86
|
+
# @return [Array[HateoasSelfRef]]
|
|
87
|
+
attr_accessor :links
|
|
88
|
+
|
|
89
|
+
# A mapping from model property names to API property names.
|
|
90
|
+
def self.names
|
|
91
|
+
@_hash = {} if @_hash.nil?
|
|
92
|
+
@_hash['token'] = 'token'
|
|
93
|
+
@_hash['portal_id'] = 'portalId'
|
|
94
|
+
@_hash['amount'] = 'amount'
|
|
95
|
+
@_hash['client_payment_id'] = 'clientPaymentId'
|
|
96
|
+
@_hash['created'] = 'created'
|
|
97
|
+
@_hash['currency'] = 'currency'
|
|
98
|
+
@_hash['destination_token'] = 'destinationToken'
|
|
99
|
+
@_hash['program_user_id'] = 'programUserId'
|
|
100
|
+
@_hash['email'] = 'email'
|
|
101
|
+
@_hash['memo'] = 'memo'
|
|
102
|
+
@_hash['note'] = 'note'
|
|
103
|
+
@_hash['purpose'] = 'purpose'
|
|
104
|
+
@_hash['source_token'] = 'sourceToken'
|
|
105
|
+
@_hash['status'] = 'status'
|
|
106
|
+
@_hash['receipt_token'] = 'receiptToken'
|
|
107
|
+
@_hash['links'] = 'links'
|
|
108
|
+
@_hash
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# An array for optional fields
|
|
112
|
+
def self.optionals
|
|
113
|
+
%w[
|
|
114
|
+
token
|
|
115
|
+
portal_id
|
|
116
|
+
amount
|
|
117
|
+
client_payment_id
|
|
118
|
+
created
|
|
119
|
+
currency
|
|
120
|
+
destination_token
|
|
121
|
+
program_user_id
|
|
122
|
+
email
|
|
123
|
+
memo
|
|
124
|
+
note
|
|
125
|
+
purpose
|
|
126
|
+
source_token
|
|
127
|
+
status
|
|
128
|
+
receipt_token
|
|
129
|
+
links
|
|
130
|
+
]
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
# An array for nullable fields
|
|
134
|
+
def self.nullables
|
|
135
|
+
[]
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
def initialize(
|
|
139
|
+
token = SKIP, portal_id = SKIP, amount = 1.02,
|
|
140
|
+
client_payment_id = 'd4b6f130-1d1c-4ce2-903a-0c1ad128f55e',
|
|
141
|
+
created = SKIP, currency = Currencies::USD,
|
|
142
|
+
destination_token = 'dest-631b200f-665d-4dbe-bd01-3063c9dec97d',
|
|
143
|
+
program_user_id = SKIP, email = SKIP, memo = SKIP, note = SKIP,
|
|
144
|
+
purpose = SKIP,
|
|
145
|
+
source_token = 'acct-3908ab5a-6ce1-474d-8b80-a63a7b147860', status = SKIP,
|
|
146
|
+
receipt_token = 'rcpt-b7fda294-8d3a-48e8-9a11-ef7be07a732c', links = SKIP,
|
|
147
|
+
additional_properties = {}
|
|
148
|
+
)
|
|
149
|
+
# Add additional model properties to the instance.
|
|
150
|
+
additional_properties.each do |_name, _value|
|
|
151
|
+
instance_variable_set("@#{_name}", _value)
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
@token = token unless token == SKIP
|
|
155
|
+
@portal_id = portal_id unless portal_id == SKIP
|
|
156
|
+
@amount = amount unless amount == SKIP
|
|
157
|
+
@client_payment_id = client_payment_id unless client_payment_id == SKIP
|
|
158
|
+
@created = created unless created == SKIP
|
|
159
|
+
@currency = currency unless currency == SKIP
|
|
160
|
+
@destination_token = destination_token unless destination_token == SKIP
|
|
161
|
+
@program_user_id = program_user_id unless program_user_id == SKIP
|
|
162
|
+
@email = email unless email == SKIP
|
|
163
|
+
@memo = memo unless memo == SKIP
|
|
164
|
+
@note = note unless note == SKIP
|
|
165
|
+
@purpose = purpose unless purpose == SKIP
|
|
166
|
+
@source_token = source_token unless source_token == SKIP
|
|
167
|
+
@status = status unless status == SKIP
|
|
168
|
+
@receipt_token = receipt_token unless receipt_token == SKIP
|
|
169
|
+
@links = links unless links == SKIP
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
# Creates an instance of the object from a hash.
|
|
173
|
+
def self.from_hash(hash)
|
|
174
|
+
return nil unless hash
|
|
175
|
+
|
|
176
|
+
# Extract variables from the hash.
|
|
177
|
+
token = hash.key?('token') ? hash['token'] : SKIP
|
|
178
|
+
portal_id = hash.key?('portalId') ? hash['portalId'] : SKIP
|
|
179
|
+
amount = hash['amount'] ||= 1.02
|
|
180
|
+
client_payment_id =
|
|
181
|
+
hash['clientPaymentId'] ||= 'd4b6f130-1d1c-4ce2-903a-0c1ad128f55e'
|
|
182
|
+
created = if hash.key?('created')
|
|
183
|
+
(DateTimeHelper.from_rfc3339(hash['created']) if hash['created'])
|
|
184
|
+
else
|
|
185
|
+
SKIP
|
|
186
|
+
end
|
|
187
|
+
currency = hash['currency'] ||= Currencies::USD
|
|
188
|
+
destination_token =
|
|
189
|
+
hash['destinationToken'] ||= 'dest-631b200f-665d-4dbe-bd01-3063c9dec97d'
|
|
190
|
+
program_user_id =
|
|
191
|
+
hash.key?('programUserId') ? hash['programUserId'] : SKIP
|
|
192
|
+
email = hash.key?('email') ? hash['email'] : SKIP
|
|
193
|
+
memo = hash.key?('memo') ? hash['memo'] : SKIP
|
|
194
|
+
note = hash.key?('note') ? hash['note'] : SKIP
|
|
195
|
+
purpose = hash.key?('purpose') ? hash['purpose'] : SKIP
|
|
196
|
+
source_token =
|
|
197
|
+
hash['sourceToken'] ||= 'acct-3908ab5a-6ce1-474d-8b80-a63a7b147860'
|
|
198
|
+
status = hash.key?('status') ? hash['status'] : SKIP
|
|
199
|
+
receipt_token =
|
|
200
|
+
hash['receiptToken'] ||= 'rcpt-b7fda294-8d3a-48e8-9a11-ef7be07a732c'
|
|
201
|
+
# Parameter is an array, so we need to iterate through it
|
|
202
|
+
links = nil
|
|
203
|
+
unless hash['links'].nil?
|
|
204
|
+
links = []
|
|
205
|
+
hash['links'].each do |structure|
|
|
206
|
+
links << (HateoasSelfRef.from_hash(structure) if structure)
|
|
207
|
+
end
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
links = SKIP unless hash.key?('links')
|
|
211
|
+
|
|
212
|
+
# Clean out expected properties from Hash.
|
|
213
|
+
additional_properties = hash.reject { |k, _| names.value?(k) }
|
|
214
|
+
|
|
215
|
+
# Create object from extracted values.
|
|
216
|
+
PaymentObject.new(token,
|
|
217
|
+
portal_id,
|
|
218
|
+
amount,
|
|
219
|
+
client_payment_id,
|
|
220
|
+
created,
|
|
221
|
+
currency,
|
|
222
|
+
destination_token,
|
|
223
|
+
program_user_id,
|
|
224
|
+
email,
|
|
225
|
+
memo,
|
|
226
|
+
note,
|
|
227
|
+
purpose,
|
|
228
|
+
source_token,
|
|
229
|
+
status,
|
|
230
|
+
receipt_token,
|
|
231
|
+
links,
|
|
232
|
+
additional_properties)
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
def to_custom_created
|
|
236
|
+
DateTimeHelper.to_rfc3339(created)
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
# Provides a human-readable string representation of the object.
|
|
240
|
+
def to_s
|
|
241
|
+
class_name = self.class.name.split('::').last
|
|
242
|
+
"<#{class_name} token: #{@token}, portal_id: #{@portal_id}, amount: #{@amount},"\
|
|
243
|
+
" client_payment_id: #{@client_payment_id}, created: #{@created}, currency: #{@currency},"\
|
|
244
|
+
" destination_token: #{@destination_token}, program_user_id: #{@program_user_id}, email:"\
|
|
245
|
+
" #{@email}, memo: #{@memo}, note: #{@note}, purpose: #{@purpose}, source_token:"\
|
|
246
|
+
" #{@source_token}, status: #{@status}, receipt_token: #{@receipt_token}, links: #{@links},"\
|
|
247
|
+
" additional_properties: #{get_additional_properties}>"
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
251
|
+
def inspect
|
|
252
|
+
class_name = self.class.name.split('::').last
|
|
253
|
+
"<#{class_name} token: #{@token.inspect}, portal_id: #{@portal_id.inspect}, amount:"\
|
|
254
|
+
" #{@amount.inspect}, client_payment_id: #{@client_payment_id.inspect}, created:"\
|
|
255
|
+
" #{@created.inspect}, currency: #{@currency.inspect}, destination_token:"\
|
|
256
|
+
" #{@destination_token.inspect}, program_user_id: #{@program_user_id.inspect}, email:"\
|
|
257
|
+
" #{@email.inspect}, memo: #{@memo.inspect}, note: #{@note.inspect}, purpose:"\
|
|
258
|
+
" #{@purpose.inspect}, source_token: #{@source_token.inspect}, status: #{@status.inspect},"\
|
|
259
|
+
" receipt_token: #{@receipt_token.inspect}, links: #{@links.inspect}, additional_properties:"\
|
|
260
|
+
" #{get_additional_properties}>"
|
|
261
|
+
end
|
|
262
|
+
end
|
|
263
|
+
end
|
|
@@ -0,0 +1,58 @@
|
|
|
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
|
+
# Used to identify the [purpose of a
|
|
8
|
+
# payment](#/models/structures/payment-object) and impacts reporting and
|
|
9
|
+
# calculated taxable earnings (if utilizing tax services)
|
|
10
|
+
class PaymentPurposes
|
|
11
|
+
PAYMENT_PURPOSES = [
|
|
12
|
+
# TODO: Write general description for BONUS
|
|
13
|
+
BONUS = 'BONUS'.freeze,
|
|
14
|
+
|
|
15
|
+
# TODO: Write general description for EXPENSE
|
|
16
|
+
EXPENSE = 'EXPENSE'.freeze,
|
|
17
|
+
|
|
18
|
+
# TODO: Write general description for INCOME
|
|
19
|
+
INCOME = 'INCOME'.freeze,
|
|
20
|
+
|
|
21
|
+
# TODO: Write general description for NON_TAXABLE
|
|
22
|
+
NON_TAXABLE = 'NON_TAXABLE'.freeze,
|
|
23
|
+
|
|
24
|
+
# TODO: Write general description for OTHER
|
|
25
|
+
OTHER = 'OTHER'.freeze,
|
|
26
|
+
|
|
27
|
+
# TODO: Write general description for TAXABLE
|
|
28
|
+
TAXABLE = 'TAXABLE'.freeze,
|
|
29
|
+
|
|
30
|
+
# TODO: Write general description for UNDEFINED
|
|
31
|
+
UNDEFINED = 'UNDEFINED'.freeze
|
|
32
|
+
].freeze
|
|
33
|
+
|
|
34
|
+
def self.validate(value)
|
|
35
|
+
return false if value.nil?
|
|
36
|
+
|
|
37
|
+
PAYMENT_PURPOSES.include?(value)
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
def self.from_value(value, default_value = BONUS)
|
|
41
|
+
return default_value if value.nil?
|
|
42
|
+
|
|
43
|
+
str = value.to_s.strip
|
|
44
|
+
|
|
45
|
+
case str.downcase
|
|
46
|
+
when 'bonus' then BONUS
|
|
47
|
+
when 'expense' then EXPENSE
|
|
48
|
+
when 'income' then INCOME
|
|
49
|
+
when 'non_taxable' then NON_TAXABLE
|
|
50
|
+
when 'other' then OTHER
|
|
51
|
+
when 'taxable' then TAXABLE
|
|
52
|
+
when 'undefined' then UNDEFINED
|
|
53
|
+
else
|
|
54
|
+
default_value
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|