acquiring-sdk-ruby 1.3.1 → 3.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 +4 -4
- data/Gemfile +0 -0
- data/LICENSE.txt +0 -0
- data/README.md +0 -0
- data/Rakefile +0 -0
- data/acquiring-sdk-ruby.gemspec +1 -1
- data/lib/worldline/acquiring/sdk/api_resource.rb +0 -0
- data/lib/worldline/acquiring/sdk/authentication/authenticator.rb +0 -0
- data/lib/worldline/acquiring/sdk/authentication/authorization_type.rb +0 -0
- data/lib/worldline/acquiring/sdk/authentication/oauth2_authenticator.rb +1 -1
- data/lib/worldline/acquiring/sdk/authentication/oauth2_exception.rb +0 -0
- data/lib/worldline/acquiring/sdk/authentication/oauth2_scopes.rb +8 -1
- data/lib/worldline/acquiring/sdk/authentication.rb +0 -0
- data/lib/worldline/acquiring/sdk/call_context.rb +0 -0
- data/lib/worldline/acquiring/sdk/client.rb +0 -0
- data/lib/worldline/acquiring/sdk/communication/communication_exception.rb +0 -0
- data/lib/worldline/acquiring/sdk/communication/connection.rb +0 -0
- data/lib/worldline/acquiring/sdk/communication/default_connection.rb +0 -0
- data/lib/worldline/acquiring/sdk/communication/metadata_provider.rb +1 -1
- data/lib/worldline/acquiring/sdk/communication/multipart_form_data_object.rb +0 -0
- data/lib/worldline/acquiring/sdk/communication/multipart_form_data_request.rb +0 -0
- data/lib/worldline/acquiring/sdk/communication/not_found_exception.rb +0 -0
- data/lib/worldline/acquiring/sdk/communication/param_request.rb +0 -0
- data/lib/worldline/acquiring/sdk/communication/pooled_connection.rb +0 -0
- data/lib/worldline/acquiring/sdk/communication/request_header.rb +0 -0
- data/lib/worldline/acquiring/sdk/communication/request_param.rb +0 -0
- data/lib/worldline/acquiring/sdk/communication/response_exception.rb +0 -0
- data/lib/worldline/acquiring/sdk/communication/response_header.rb +0 -0
- data/lib/worldline/acquiring/sdk/communication.rb +0 -0
- data/lib/worldline/acquiring/sdk/communicator.rb +2 -2
- data/lib/worldline/acquiring/sdk/communicator_configuration.rb +0 -0
- data/lib/worldline/acquiring/sdk/domain/data_object.rb +0 -0
- data/lib/worldline/acquiring/sdk/domain/shopping_cart_extension.rb +0 -0
- data/lib/worldline/acquiring/sdk/domain/uploadable_file.rb +0 -0
- data/lib/worldline/acquiring/sdk/domain.rb +0 -0
- data/lib/worldline/acquiring/sdk/factory.rb +0 -0
- data/lib/worldline/acquiring/sdk/json/default_marshaller.rb +0 -0
- data/lib/worldline/acquiring/sdk/json/marshaller.rb +0 -0
- data/lib/worldline/acquiring/sdk/json/marshaller_syntax_exception.rb +0 -0
- data/lib/worldline/acquiring/sdk/json.rb +0 -0
- data/lib/worldline/acquiring/sdk/logging/communicator_logger.rb +0 -0
- data/lib/worldline/acquiring/sdk/logging/log_message_builder.rb +0 -0
- data/lib/worldline/acquiring/sdk/logging/logging_capable.rb +0 -0
- data/lib/worldline/acquiring/sdk/logging/obfuscation/body_obfuscator.rb +0 -0
- data/lib/worldline/acquiring/sdk/logging/obfuscation/header_obfuscator.rb +0 -0
- data/lib/worldline/acquiring/sdk/logging/obfuscation/obfuscation_capable.rb +0 -0
- data/lib/worldline/acquiring/sdk/logging/obfuscation/obfuscation_rule.rb +0 -0
- data/lib/worldline/acquiring/sdk/logging/obfuscation.rb +0 -0
- data/lib/worldline/acquiring/sdk/logging/request_log_message_builder.rb +0 -0
- data/lib/worldline/acquiring/sdk/logging/response_log_message_builder.rb +0 -0
- data/lib/worldline/acquiring/sdk/logging/ruby_communicator_logger.rb +0 -0
- data/lib/worldline/acquiring/sdk/logging/stdout_communicator_logger.rb +0 -0
- data/lib/worldline/acquiring/sdk/logging.rb +0 -0
- data/lib/worldline/acquiring/sdk/proxy_configuration.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/acquirer/acquirer_client.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/acquirer/merchant/accountverifications/account_verifications_client.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/acquirer/merchant/accountverifications.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/acquirer/merchant/balanceinquiries/balance_inquiries_client.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/acquirer/merchant/balanceinquiries.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/acquirer/merchant/{payments/payments_client.rb → cardpayments/card_payments_client.rb} +10 -10
- data/lib/worldline/acquiring/sdk/v1/acquirer/merchant/{payments → cardpayments}/get_payment_status_params.rb +3 -3
- data/lib/worldline/acquiring/sdk/v1/acquirer/merchant/cardpayments.rb +4 -0
- data/lib/worldline/acquiring/sdk/v1/acquirer/merchant/{refunds/refunds_client.rb → cardrefunds/card_refunds_client.rb} +8 -8
- data/lib/worldline/acquiring/sdk/v1/acquirer/merchant/{refunds → cardrefunds}/get_refund_params.rb +3 -3
- data/lib/worldline/acquiring/sdk/v1/acquirer/merchant/cardrefunds.rb +4 -0
- data/lib/worldline/acquiring/sdk/v1/acquirer/merchant/dynamiccurrencyconversion/dynamic_currency_conversion_client.rb +1 -1
- data/lib/worldline/acquiring/sdk/v1/acquirer/merchant/dynamiccurrencyconversion.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/acquirer/merchant/merchant_client.rb +8 -8
- data/lib/worldline/acquiring/sdk/v1/acquirer/merchant/technicalreversals/technical_reversals_client.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/acquirer/merchant/technicalreversals.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/acquirer/merchant.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/acquirer.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/api_exception.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/authorization_exception.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/disputedocuments/dispute_documents_client.rb +89 -0
- data/lib/worldline/acquiring/sdk/v1/disputedocuments/upload_dispute_document_request.rb +30 -0
- data/lib/worldline/acquiring/sdk/v1/disputedocuments.rb +4 -0
- data/lib/worldline/acquiring/sdk/v1/disputeentries/dispute_entries_client.rb +56 -0
- data/lib/worldline/acquiring/sdk/v1/disputeentries.rb +4 -0
- data/lib/worldline/acquiring/sdk/v1/disputemanagement/dispute_management_client.rb +152 -0
- data/lib/worldline/acquiring/sdk/v1/disputemanagement/get_dispute_params.rb +30 -0
- data/lib/worldline/acquiring/sdk/v1/disputemanagement.rb +4 -0
- data/lib/worldline/acquiring/sdk/v1/domain/accept_dispute_liability_request.rb +48 -0
- data/lib/worldline/acquiring/sdk/v1/domain/additional_response_data.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/domain/address_verification_data.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/domain/aes_ukpt_pin_encryption_data.rb +57 -0
- data/lib/worldline/acquiring/sdk/v1/domain/amount_breakdown_data.rb +44 -0
- data/lib/worldline/acquiring/sdk/v1/domain/amount_data.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/domain/api_account_verification_request.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/domain/api_account_verification_response.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/domain/api_action_response.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/domain/api_action_response_for_refund.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/domain/api_balance_inquiry_request.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/domain/api_balance_inquiry_response.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/domain/api_capture_request.rb +27 -0
- data/lib/worldline/acquiring/sdk/v1/domain/api_capture_request_for_refund.rb +9 -0
- data/lib/worldline/acquiring/sdk/v1/domain/api_increment_request.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/domain/api_increment_response.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/domain/api_payment_error_response.rb +7 -0
- data/lib/worldline/acquiring/sdk/v1/domain/api_payment_refund_request.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/domain/api_payment_request.rb +9 -0
- data/lib/worldline/acquiring/sdk/v1/domain/api_payment_resource.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/domain/api_payment_response.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/domain/api_payment_reversal_request.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/domain/api_payment_summary_for_response.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/domain/api_references_for_responses.rb +7 -0
- data/lib/worldline/acquiring/sdk/v1/domain/api_refund_request.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/domain/api_refund_resource.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/domain/api_refund_response.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/domain/api_refund_reversal_request.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/domain/api_refund_summary_for_response.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/domain/api_reversal_response.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/domain/api_technical_reversal_request.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/domain/api_technical_reversal_response.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/domain/by_acquirer_ids.rb +54 -0
- data/lib/worldline/acquiring/sdk/v1/domain/by_merchant_ids.rb +55 -0
- data/lib/worldline/acquiring/sdk/v1/domain/by_merchant_root_ids.rb +55 -0
- data/lib/worldline/acquiring/sdk/v1/domain/capture_amount_breakdown_data.rb +36 -0
- data/lib/worldline/acquiring/sdk/v1/domain/capture_point_of_sale_data.rb +39 -0
- data/lib/worldline/acquiring/sdk/v1/domain/card_data_for_dcc.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/domain/card_on_file_data.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/domain/card_payment_data.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/domain/card_payment_data_for_balance_inquiry.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/domain/card_payment_data_for_refund.rb +9 -0
- data/lib/worldline/acquiring/sdk/v1/domain/card_payment_data_for_resource.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/domain/card_payment_data_for_response.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/domain/card_payment_data_for_verification.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/domain/customer_service_data.rb +48 -0
- data/lib/worldline/acquiring/sdk/v1/domain/date_range.rb +43 -0
- data/lib/worldline/acquiring/sdk/v1/domain/date_time_range.rb +55 -0
- data/lib/worldline/acquiring/sdk/v1/domain/dcc_data.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/domain/dcc_proposal.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/domain/dispute_case.rb +144 -0
- data/lib/worldline/acquiring/sdk/v1/domain/dispute_case_with_entries.rb +39 -0
- data/lib/worldline/acquiring/sdk/v1/domain/dispute_date_time_data.rb +57 -0
- data/lib/worldline/acquiring/sdk/v1/domain/dispute_document.rb +48 -0
- data/lib/worldline/acquiring/sdk/v1/domain/dispute_document_id_item.rb +34 -0
- data/lib/worldline/acquiring/sdk/v1/domain/dispute_entry.rb +142 -0
- data/lib/worldline/acquiring/sdk/v1/domain/dispute_entry_resources.rb +55 -0
- data/lib/worldline/acquiring/sdk/v1/domain/dispute_entry_with_dispute_summary.rb +43 -0
- data/lib/worldline/acquiring/sdk/v1/domain/dispute_merchant_data.rb +55 -0
- data/lib/worldline/acquiring/sdk/v1/domain/dispute_merchant_data_base.rb +48 -0
- data/lib/worldline/acquiring/sdk/v1/domain/dispute_references.rb +41 -0
- data/lib/worldline/acquiring/sdk/v1/domain/dispute_response.rb +43 -0
- data/lib/worldline/acquiring/sdk/v1/domain/dispute_summary.rb +80 -0
- data/lib/worldline/acquiring/sdk/v1/domain/dukpt_pin_encryption_data.rb +50 -0
- data/lib/worldline/acquiring/sdk/v1/domain/e_commerce_data.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/domain/e_commerce_data_for_account_verification.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/domain/e_commerce_data_for_response.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/domain/emv_data_item.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/domain/geo_coordinates.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/domain/get_dcc_rate_request.rb +1 -1
- data/lib/worldline/acquiring/sdk/v1/domain/get_dcc_rate_response.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/domain/initial_card_on_file_data.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/domain/marketplace_data.rb +41 -0
- data/lib/worldline/acquiring/sdk/v1/domain/merchant_data.rb +30 -0
- data/lib/worldline/acquiring/sdk/v1/domain/merchant_id_item.rb +41 -0
- data/lib/worldline/acquiring/sdk/v1/domain/merchant_root_id_item.rb +41 -0
- data/lib/worldline/acquiring/sdk/v1/domain/merchant_scope.rb +36 -0
- data/lib/worldline/acquiring/sdk/v1/domain/network_token_data.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/domain/online_pin_data.rb +50 -0
- data/lib/worldline/acquiring/sdk/v1/domain/original_transaction_data.rb +97 -0
- data/lib/worldline/acquiring/sdk/v1/domain/original_transaction_references.rb +41 -0
- data/lib/worldline/acquiring/sdk/v1/domain/original_transaction_summary_data.rb +66 -0
- data/lib/worldline/acquiring/sdk/v1/domain/pagination_request.rb +48 -0
- data/lib/worldline/acquiring/sdk/v1/domain/pagination_response.rb +48 -0
- data/lib/worldline/acquiring/sdk/v1/domain/payment_method_data.rb +34 -0
- data/lib/worldline/acquiring/sdk/v1/domain/payment_method_data_base.rb +48 -0
- data/lib/worldline/acquiring/sdk/v1/domain/payment_references.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/domain/pin_encryption_data.rb +36 -0
- data/lib/worldline/acquiring/sdk/v1/domain/plain_card_data.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/domain/point_of_sale_data.rb +7 -12
- data/lib/worldline/acquiring/sdk/v1/domain/point_of_sale_data_for_dcc.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/domain/point_of_sale_data_for_response.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/domain/rate_data.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/domain/search_dispute_entries_request.rb +104 -0
- data/lib/worldline/acquiring/sdk/v1/domain/search_disputes_request.rb +179 -0
- data/lib/worldline/acquiring/sdk/v1/domain/search_disputes_response.rb +55 -0
- data/lib/worldline/acquiring/sdk/v1/domain/service_location_address.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/domain/service_location_data.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/domain/signed_amount_data.rb +55 -0
- data/lib/worldline/acquiring/sdk/v1/domain/sub_operation.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/domain/sub_operation_for_refund.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/domain/submit_evidence_request.rb +69 -0
- data/lib/worldline/acquiring/sdk/v1/domain/subsequent_card_on_file_data.rb +7 -0
- data/lib/worldline/acquiring/sdk/v1/domain/terminal_data.rb +7 -0
- data/lib/worldline/acquiring/sdk/v1/domain/three_d_secure.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/domain/transaction_data_for_dcc.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/domain/transaction_references_base.rb +48 -0
- data/lib/worldline/acquiring/sdk/v1/domain/transaction_references_dispute.rb +76 -0
- data/lib/worldline/acquiring/sdk/v1/domain/upload_document_response.rb +41 -0
- data/lib/worldline/acquiring/sdk/v1/domain/zpk_pin_encryption_data.rb +50 -0
- data/lib/worldline/acquiring/sdk/v1/domain.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/exception_factory.rb +1 -0
- data/lib/worldline/acquiring/sdk/v1/ping/ping_client.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/ping.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/platform_exception.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/reference_exception.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1/v1_client.rb +24 -0
- data/lib/worldline/acquiring/sdk/v1/validation_exception.rb +0 -0
- data/lib/worldline/acquiring/sdk/v1.rb +0 -0
- data/lib/worldline/acquiring/sdk.rb +0 -0
- data/spec/comparable_extension.rb +0 -0
- data/spec/fixtures/resources/authentication/oauth2AccessToken.expired.json +0 -0
- data/spec/fixtures/resources/authentication/oauth2AccessToken.invalidClient.json +0 -0
- data/spec/fixtures/resources/authentication/oauth2AccessToken.json +0 -0
- data/spec/fixtures/resources/communication/getWithQueryParams.json +0 -0
- data/spec/fixtures/resources/communication/getWithoutQueryParams.json +0 -0
- data/spec/fixtures/resources/communication/notFound.html +0 -0
- data/spec/fixtures/resources/communication/postWithBadRequestResponse.json +0 -0
- data/spec/fixtures/resources/communication/postWithCreatedResponse.json +0 -0
- data/spec/fixtures/resources/communication/unknownServerError.json +0 -0
- data/spec/fixtures/resources/logging/bodyNoObfuscation.json +0 -0
- data/spec/fixtures/resources/logging/bodyWithBinObfuscated.json +0 -0
- data/spec/fixtures/resources/logging/bodyWithBinOriginal.json +0 -0
- data/spec/fixtures/resources/logging/bodyWithCardCustomObfuscated.json +0 -0
- data/spec/fixtures/resources/logging/bodyWithCardObfuscated.json +0 -0
- data/spec/fixtures/resources/logging/bodyWithCardOriginal.json +0 -0
- data/spec/fixtures/resources/logging/bodyWithObjectObfuscated.json +0 -0
- data/spec/fixtures/resources/logging/bodyWithObjectOriginal.json +0 -0
- data/spec/fixtures/resources/properties.oauth2.yml +0 -0
- data/spec/fixtures/resources/properties.proxy.yml +0 -0
- data/spec/integration/connection_pooling_spec.rb +0 -0
- data/spec/integration/custom_oauth2_scopes_spec.rb +3 -3
- data/spec/integration/multipart_form_data_spec.rb +0 -0
- data/spec/integration/process_payment_spec.rb +3 -3
- data/spec/integration/request_dcc_rate_spec.rb +0 -0
- data/spec/integration/sdk_proxy_spec.rb +0 -0
- data/spec/integration_setup.rb +1 -1
- data/spec/lib/authentication/oauth2_authenticator_spec.rb +0 -0
- data/spec/lib/authentication/oauth2_scopes_spec.rb +0 -0
- data/spec/lib/client_spec.rb +0 -0
- data/spec/lib/communication/default_connection_logger_spec.rb +0 -0
- data/spec/lib/communication/default_connection_spec.rb +0 -0
- data/spec/lib/communication/metadata_provider_spec.rb +0 -0
- data/spec/lib/communicator_configuration_spec.rb +0 -0
- data/spec/lib/communicator_spec.rb +0 -0
- data/spec/lib/factory_spec.rb +0 -0
- data/spec/lib/json/default_marshaller_spec.rb +0 -0
- data/spec/lib/logging/obfuscation/body_obfuscator_spec.rb +0 -0
- data/spec/lib/logging/obfuscation/header_obfuscator_spec.rb +0 -0
- data/spec/lib/logging/ruby_communicator_logger_spec.rb +0 -0
- data/spec/lib/logging/stdout_communicator_logger_spec.rb +0 -0
- data/spec/spec_helper.rb +0 -0
- metadata +67 -12
- data/lib/worldline/acquiring/sdk/v1/acquirer/merchant/payments.rb +0 -4
- data/lib/worldline/acquiring/sdk/v1/acquirer/merchant/refunds.rb +0 -4
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This file was automatically generated.
|
|
3
|
+
#
|
|
4
|
+
require 'worldline/acquiring/sdk/domain/data_object'
|
|
5
|
+
require 'worldline/acquiring/sdk/v1/domain/dispute_merchant_data_base'
|
|
6
|
+
require 'worldline/acquiring/sdk/v1/domain/original_transaction_summary_data'
|
|
7
|
+
|
|
8
|
+
module Worldline
|
|
9
|
+
module Acquiring
|
|
10
|
+
module SDK
|
|
11
|
+
module V1
|
|
12
|
+
module Domain
|
|
13
|
+
# @attr [String] acquirer_dispute_reference
|
|
14
|
+
# @attr [Worldline::Acquiring::SDK::V1::Domain::DisputeMerchantDataBase] merchant_data
|
|
15
|
+
# @attr [Worldline::Acquiring::SDK::V1::Domain::OriginalTransactionSummaryData] original_transaction_data
|
|
16
|
+
# @attr [String] scheme_reason
|
|
17
|
+
# @attr [String] scheme_reason_description
|
|
18
|
+
# @attr [String] unified_category
|
|
19
|
+
# @attr [String] unified_reason
|
|
20
|
+
class DisputeSummary < Worldline::Acquiring::SDK::Domain::DataObject
|
|
21
|
+
|
|
22
|
+
attr_accessor :acquirer_dispute_reference
|
|
23
|
+
|
|
24
|
+
attr_accessor :merchant_data
|
|
25
|
+
|
|
26
|
+
attr_accessor :original_transaction_data
|
|
27
|
+
|
|
28
|
+
attr_accessor :scheme_reason
|
|
29
|
+
|
|
30
|
+
attr_accessor :scheme_reason_description
|
|
31
|
+
|
|
32
|
+
attr_accessor :unified_category
|
|
33
|
+
|
|
34
|
+
attr_accessor :unified_reason
|
|
35
|
+
|
|
36
|
+
# @return (Hash)
|
|
37
|
+
def to_h
|
|
38
|
+
hash = super
|
|
39
|
+
hash['acquirerDisputeReference'] = @acquirer_dispute_reference unless @acquirer_dispute_reference.nil?
|
|
40
|
+
hash['merchantData'] = @merchant_data.to_h unless @merchant_data.nil?
|
|
41
|
+
hash['originalTransactionData'] = @original_transaction_data.to_h unless @original_transaction_data.nil?
|
|
42
|
+
hash['schemeReason'] = @scheme_reason unless @scheme_reason.nil?
|
|
43
|
+
hash['schemeReasonDescription'] = @scheme_reason_description unless @scheme_reason_description.nil?
|
|
44
|
+
hash['unifiedCategory'] = @unified_category unless @unified_category.nil?
|
|
45
|
+
hash['unifiedReason'] = @unified_reason unless @unified_reason.nil?
|
|
46
|
+
hash
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
def from_hash(hash)
|
|
50
|
+
super
|
|
51
|
+
if hash.has_key? 'acquirerDisputeReference'
|
|
52
|
+
@acquirer_dispute_reference = hash['acquirerDisputeReference']
|
|
53
|
+
end
|
|
54
|
+
if hash.has_key? 'merchantData'
|
|
55
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['merchantData']] unless hash['merchantData'].is_a? Hash
|
|
56
|
+
@merchant_data = Worldline::Acquiring::SDK::V1::Domain::DisputeMerchantDataBase.new_from_hash(hash['merchantData'])
|
|
57
|
+
end
|
|
58
|
+
if hash.has_key? 'originalTransactionData'
|
|
59
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['originalTransactionData']] unless hash['originalTransactionData'].is_a? Hash
|
|
60
|
+
@original_transaction_data = Worldline::Acquiring::SDK::V1::Domain::OriginalTransactionSummaryData.new_from_hash(hash['originalTransactionData'])
|
|
61
|
+
end
|
|
62
|
+
if hash.has_key? 'schemeReason'
|
|
63
|
+
@scheme_reason = hash['schemeReason']
|
|
64
|
+
end
|
|
65
|
+
if hash.has_key? 'schemeReasonDescription'
|
|
66
|
+
@scheme_reason_description = hash['schemeReasonDescription']
|
|
67
|
+
end
|
|
68
|
+
if hash.has_key? 'unifiedCategory'
|
|
69
|
+
@unified_category = hash['unifiedCategory']
|
|
70
|
+
end
|
|
71
|
+
if hash.has_key? 'unifiedReason'
|
|
72
|
+
@unified_reason = hash['unifiedReason']
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
end
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This file was automatically generated.
|
|
3
|
+
#
|
|
4
|
+
require 'worldline/acquiring/sdk/v1/domain/pin_encryption_data'
|
|
5
|
+
|
|
6
|
+
module Worldline
|
|
7
|
+
module Acquiring
|
|
8
|
+
module SDK
|
|
9
|
+
module V1
|
|
10
|
+
module Domain
|
|
11
|
+
# @attr [String] key_serial_number
|
|
12
|
+
class DukptPinEncryptionData < Worldline::Acquiring::SDK::V1::Domain::PinEncryptionData
|
|
13
|
+
|
|
14
|
+
PIN_ENCRYPTION_TYPE = 'DUKPT'.freeze
|
|
15
|
+
|
|
16
|
+
undef_method :pin_encryption_type=
|
|
17
|
+
|
|
18
|
+
attr_accessor :key_serial_number
|
|
19
|
+
|
|
20
|
+
def initialize
|
|
21
|
+
super
|
|
22
|
+
@pin_encryption_type = PIN_ENCRYPTION_TYPE
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
# @return [String]
|
|
26
|
+
def pin_encryption_type
|
|
27
|
+
PIN_ENCRYPTION_TYPE
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# @return (Hash)
|
|
31
|
+
def to_h
|
|
32
|
+
hash = super
|
|
33
|
+
hash['keySerialNumber'] = @key_serial_number unless @key_serial_number.nil?
|
|
34
|
+
hash['pinEncryptionType'] = PIN_ENCRYPTION_TYPE
|
|
35
|
+
hash
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
def from_hash(hash)
|
|
39
|
+
super
|
|
40
|
+
@pin_encryption_type = PIN_ENCRYPTION_TYPE
|
|
41
|
+
if hash.has_key? 'keySerialNumber'
|
|
42
|
+
@key_serial_number = hash['keySerialNumber']
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -17,7 +17,7 @@ module Worldline
|
|
|
17
17
|
# @attr [String] rate_reference_id
|
|
18
18
|
# @attr [String] target_currency
|
|
19
19
|
# @attr [Worldline::Acquiring::SDK::V1::Domain::TransactionDataForDcc] transaction
|
|
20
|
-
class
|
|
20
|
+
class GetDccRateRequest < Worldline::Acquiring::SDK::Domain::DataObject
|
|
21
21
|
|
|
22
22
|
attr_accessor :card_payment_data
|
|
23
23
|
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This file was automatically generated.
|
|
3
|
+
#
|
|
4
|
+
require 'worldline/acquiring/sdk/domain/data_object'
|
|
5
|
+
|
|
6
|
+
module Worldline
|
|
7
|
+
module Acquiring
|
|
8
|
+
module SDK
|
|
9
|
+
module V1
|
|
10
|
+
module Domain
|
|
11
|
+
# @attr [String] retailer_country_code
|
|
12
|
+
# @attr [String] retailer_name
|
|
13
|
+
class MarketplaceData < Worldline::Acquiring::SDK::Domain::DataObject
|
|
14
|
+
|
|
15
|
+
attr_accessor :retailer_country_code
|
|
16
|
+
|
|
17
|
+
attr_accessor :retailer_name
|
|
18
|
+
|
|
19
|
+
# @return (Hash)
|
|
20
|
+
def to_h
|
|
21
|
+
hash = super
|
|
22
|
+
hash['retailerCountryCode'] = @retailer_country_code unless @retailer_country_code.nil?
|
|
23
|
+
hash['retailerName'] = @retailer_name unless @retailer_name.nil?
|
|
24
|
+
hash
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def from_hash(hash)
|
|
28
|
+
super
|
|
29
|
+
if hash.has_key? 'retailerCountryCode'
|
|
30
|
+
@retailer_country_code = hash['retailerCountryCode']
|
|
31
|
+
end
|
|
32
|
+
if hash.has_key? 'retailerName'
|
|
33
|
+
@retailer_name = hash['retailerName']
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
# This file was automatically generated.
|
|
3
3
|
#
|
|
4
4
|
require 'worldline/acquiring/sdk/domain/data_object'
|
|
5
|
+
require 'worldline/acquiring/sdk/v1/domain/customer_service_data'
|
|
5
6
|
|
|
6
7
|
module Worldline
|
|
7
8
|
module Acquiring
|
|
@@ -11,10 +12,14 @@ module Worldline
|
|
|
11
12
|
# @attr [String] address
|
|
12
13
|
# @attr [String] city
|
|
13
14
|
# @attr [String] country_code
|
|
15
|
+
# @attr [Worldline::Acquiring::SDK::V1::Domain::CustomerServiceData] customer_service_data
|
|
14
16
|
# @attr [Integer] merchant_category_code
|
|
15
17
|
# @attr [String] name
|
|
18
|
+
# @attr [String] payment_facilitator_id
|
|
16
19
|
# @attr [String] postal_code
|
|
17
20
|
# @attr [String] state_code
|
|
21
|
+
# @attr [String] sub_merchant_id
|
|
22
|
+
# @attr [String] tax_id
|
|
18
23
|
class MerchantData < Worldline::Acquiring::SDK::Domain::DataObject
|
|
19
24
|
|
|
20
25
|
attr_accessor :address
|
|
@@ -23,24 +28,36 @@ module Worldline
|
|
|
23
28
|
|
|
24
29
|
attr_accessor :country_code
|
|
25
30
|
|
|
31
|
+
attr_accessor :customer_service_data
|
|
32
|
+
|
|
26
33
|
attr_accessor :merchant_category_code
|
|
27
34
|
|
|
28
35
|
attr_accessor :name
|
|
29
36
|
|
|
37
|
+
attr_accessor :payment_facilitator_id
|
|
38
|
+
|
|
30
39
|
attr_accessor :postal_code
|
|
31
40
|
|
|
32
41
|
attr_accessor :state_code
|
|
33
42
|
|
|
43
|
+
attr_accessor :sub_merchant_id
|
|
44
|
+
|
|
45
|
+
attr_accessor :tax_id
|
|
46
|
+
|
|
34
47
|
# @return (Hash)
|
|
35
48
|
def to_h
|
|
36
49
|
hash = super
|
|
37
50
|
hash['address'] = @address unless @address.nil?
|
|
38
51
|
hash['city'] = @city unless @city.nil?
|
|
39
52
|
hash['countryCode'] = @country_code unless @country_code.nil?
|
|
53
|
+
hash['customerServiceData'] = @customer_service_data.to_h unless @customer_service_data.nil?
|
|
40
54
|
hash['merchantCategoryCode'] = @merchant_category_code unless @merchant_category_code.nil?
|
|
41
55
|
hash['name'] = @name unless @name.nil?
|
|
56
|
+
hash['paymentFacilitatorId'] = @payment_facilitator_id unless @payment_facilitator_id.nil?
|
|
42
57
|
hash['postalCode'] = @postal_code unless @postal_code.nil?
|
|
43
58
|
hash['stateCode'] = @state_code unless @state_code.nil?
|
|
59
|
+
hash['subMerchantId'] = @sub_merchant_id unless @sub_merchant_id.nil?
|
|
60
|
+
hash['taxId'] = @tax_id unless @tax_id.nil?
|
|
44
61
|
hash
|
|
45
62
|
end
|
|
46
63
|
|
|
@@ -55,18 +72,31 @@ module Worldline
|
|
|
55
72
|
if hash.has_key? 'countryCode'
|
|
56
73
|
@country_code = hash['countryCode']
|
|
57
74
|
end
|
|
75
|
+
if hash.has_key? 'customerServiceData'
|
|
76
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['customerServiceData']] unless hash['customerServiceData'].is_a? Hash
|
|
77
|
+
@customer_service_data = Worldline::Acquiring::SDK::V1::Domain::CustomerServiceData.new_from_hash(hash['customerServiceData'])
|
|
78
|
+
end
|
|
58
79
|
if hash.has_key? 'merchantCategoryCode'
|
|
59
80
|
@merchant_category_code = hash['merchantCategoryCode']
|
|
60
81
|
end
|
|
61
82
|
if hash.has_key? 'name'
|
|
62
83
|
@name = hash['name']
|
|
63
84
|
end
|
|
85
|
+
if hash.has_key? 'paymentFacilitatorId'
|
|
86
|
+
@payment_facilitator_id = hash['paymentFacilitatorId']
|
|
87
|
+
end
|
|
64
88
|
if hash.has_key? 'postalCode'
|
|
65
89
|
@postal_code = hash['postalCode']
|
|
66
90
|
end
|
|
67
91
|
if hash.has_key? 'stateCode'
|
|
68
92
|
@state_code = hash['stateCode']
|
|
69
93
|
end
|
|
94
|
+
if hash.has_key? 'subMerchantId'
|
|
95
|
+
@sub_merchant_id = hash['subMerchantId']
|
|
96
|
+
end
|
|
97
|
+
if hash.has_key? 'taxId'
|
|
98
|
+
@tax_id = hash['taxId']
|
|
99
|
+
end
|
|
70
100
|
end
|
|
71
101
|
end
|
|
72
102
|
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This file was automatically generated.
|
|
3
|
+
#
|
|
4
|
+
require 'worldline/acquiring/sdk/domain/data_object'
|
|
5
|
+
|
|
6
|
+
module Worldline
|
|
7
|
+
module Acquiring
|
|
8
|
+
module SDK
|
|
9
|
+
module V1
|
|
10
|
+
module Domain
|
|
11
|
+
# @attr [String] acquirer_id
|
|
12
|
+
# @attr [String] merchant_id
|
|
13
|
+
class MerchantIdItem < Worldline::Acquiring::SDK::Domain::DataObject
|
|
14
|
+
|
|
15
|
+
attr_accessor :acquirer_id
|
|
16
|
+
|
|
17
|
+
attr_accessor :merchant_id
|
|
18
|
+
|
|
19
|
+
# @return (Hash)
|
|
20
|
+
def to_h
|
|
21
|
+
hash = super
|
|
22
|
+
hash['acquirerId'] = @acquirer_id unless @acquirer_id.nil?
|
|
23
|
+
hash['merchantId'] = @merchant_id unless @merchant_id.nil?
|
|
24
|
+
hash
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def from_hash(hash)
|
|
28
|
+
super
|
|
29
|
+
if hash.has_key? 'acquirerId'
|
|
30
|
+
@acquirer_id = hash['acquirerId']
|
|
31
|
+
end
|
|
32
|
+
if hash.has_key? 'merchantId'
|
|
33
|
+
@merchant_id = hash['merchantId']
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This file was automatically generated.
|
|
3
|
+
#
|
|
4
|
+
require 'worldline/acquiring/sdk/domain/data_object'
|
|
5
|
+
|
|
6
|
+
module Worldline
|
|
7
|
+
module Acquiring
|
|
8
|
+
module SDK
|
|
9
|
+
module V1
|
|
10
|
+
module Domain
|
|
11
|
+
# @attr [String] acquirer_id
|
|
12
|
+
# @attr [String] merchant_root_id
|
|
13
|
+
class MerchantRootIdItem < Worldline::Acquiring::SDK::Domain::DataObject
|
|
14
|
+
|
|
15
|
+
attr_accessor :acquirer_id
|
|
16
|
+
|
|
17
|
+
attr_accessor :merchant_root_id
|
|
18
|
+
|
|
19
|
+
# @return (Hash)
|
|
20
|
+
def to_h
|
|
21
|
+
hash = super
|
|
22
|
+
hash['acquirerId'] = @acquirer_id unless @acquirer_id.nil?
|
|
23
|
+
hash['merchantRootId'] = @merchant_root_id unless @merchant_root_id.nil?
|
|
24
|
+
hash
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def from_hash(hash)
|
|
28
|
+
super
|
|
29
|
+
if hash.has_key? 'acquirerId'
|
|
30
|
+
@acquirer_id = hash['acquirerId']
|
|
31
|
+
end
|
|
32
|
+
if hash.has_key? 'merchantRootId'
|
|
33
|
+
@merchant_root_id = hash['merchantRootId']
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This file was automatically generated.
|
|
3
|
+
#
|
|
4
|
+
require 'worldline/acquiring/sdk/domain/data_object'
|
|
5
|
+
|
|
6
|
+
module Worldline
|
|
7
|
+
module Acquiring
|
|
8
|
+
module SDK
|
|
9
|
+
module V1
|
|
10
|
+
module Domain
|
|
11
|
+
# @attr [String] merchant_scope_type Possible values are: BY_ACQUIRER_IDS, BY_MERCHANT_ROOT_IDS, BY_MERCHANT_IDS. Read-only.
|
|
12
|
+
class MerchantScope < Worldline::Acquiring::SDK::Domain::DataObject
|
|
13
|
+
|
|
14
|
+
attr_reader :merchant_scope_type
|
|
15
|
+
attr_writer :merchant_scope_type
|
|
16
|
+
protected :merchant_scope_type=
|
|
17
|
+
|
|
18
|
+
# @return (Hash)
|
|
19
|
+
def to_h
|
|
20
|
+
hash = super
|
|
21
|
+
hash['merchantScopeType'] = merchant_scope_type unless merchant_scope_type.nil?
|
|
22
|
+
hash
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def from_hash(hash)
|
|
26
|
+
super
|
|
27
|
+
if hash.has_key? 'merchantScopeType'
|
|
28
|
+
@merchant_scope_type = hash['merchantScopeType']
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
File without changes
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This file was automatically generated.
|
|
3
|
+
#
|
|
4
|
+
require 'worldline/acquiring/sdk/domain/data_object'
|
|
5
|
+
require 'worldline/acquiring/sdk/v1/domain/pin_encryption_data'
|
|
6
|
+
|
|
7
|
+
module Worldline
|
|
8
|
+
module Acquiring
|
|
9
|
+
module SDK
|
|
10
|
+
module V1
|
|
11
|
+
module Domain
|
|
12
|
+
# @attr [String] encrypted_pin_block
|
|
13
|
+
# @attr [Integer] pin_block_format
|
|
14
|
+
# @attr [Worldline::Acquiring::SDK::V1::Domain::PinEncryptionData] pin_encryption_data
|
|
15
|
+
class OnlinePinData < Worldline::Acquiring::SDK::Domain::DataObject
|
|
16
|
+
|
|
17
|
+
attr_accessor :encrypted_pin_block
|
|
18
|
+
|
|
19
|
+
attr_accessor :pin_block_format
|
|
20
|
+
|
|
21
|
+
attr_accessor :pin_encryption_data
|
|
22
|
+
|
|
23
|
+
# @return (Hash)
|
|
24
|
+
def to_h
|
|
25
|
+
hash = super
|
|
26
|
+
hash['encryptedPinBlock'] = @encrypted_pin_block unless @encrypted_pin_block.nil?
|
|
27
|
+
hash['pinBlockFormat'] = @pin_block_format unless @pin_block_format.nil?
|
|
28
|
+
hash['pinEncryptionData'] = @pin_encryption_data.to_h unless @pin_encryption_data.nil?
|
|
29
|
+
hash
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
def from_hash(hash)
|
|
33
|
+
super
|
|
34
|
+
if hash.has_key? 'encryptedPinBlock'
|
|
35
|
+
@encrypted_pin_block = hash['encryptedPinBlock']
|
|
36
|
+
end
|
|
37
|
+
if hash.has_key? 'pinBlockFormat'
|
|
38
|
+
@pin_block_format = hash['pinBlockFormat']
|
|
39
|
+
end
|
|
40
|
+
if hash.has_key? 'pinEncryptionData'
|
|
41
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['pinEncryptionData']] unless hash['pinEncryptionData'].is_a? Hash
|
|
42
|
+
@pin_encryption_data = Worldline::Acquiring::SDK::V1::Domain::PinEncryptionData.new_from_hash(hash['pinEncryptionData'])
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This file was automatically generated.
|
|
3
|
+
#
|
|
4
|
+
require 'worldline/acquiring/sdk/domain/data_object'
|
|
5
|
+
require 'worldline/acquiring/sdk/v1/domain/amount_data'
|
|
6
|
+
require 'worldline/acquiring/sdk/v1/domain/payment_method_data'
|
|
7
|
+
require 'worldline/acquiring/sdk/v1/domain/transaction_references_dispute'
|
|
8
|
+
|
|
9
|
+
module Worldline
|
|
10
|
+
module Acquiring
|
|
11
|
+
module SDK
|
|
12
|
+
module V1
|
|
13
|
+
module Domain
|
|
14
|
+
# @attr [String] cardholder_verification_method
|
|
15
|
+
# @attr [String] local_transaction_date_time
|
|
16
|
+
# @attr [String] payment_category
|
|
17
|
+
# @attr [Worldline::Acquiring::SDK::V1::Domain::PaymentMethodData] payment_method_data
|
|
18
|
+
# @attr [String] point_of_sale_entry_mode
|
|
19
|
+
# @attr [String] scheme_processed_date_time
|
|
20
|
+
# @attr [Worldline::Acquiring::SDK::V1::Domain::AmountData] settlement_amount
|
|
21
|
+
# @attr [Worldline::Acquiring::SDK::V1::Domain::AmountData] transaction_amount
|
|
22
|
+
# @attr [Worldline::Acquiring::SDK::V1::Domain::TransactionReferencesDispute] transaction_references
|
|
23
|
+
class OriginalTransactionData < Worldline::Acquiring::SDK::Domain::DataObject
|
|
24
|
+
|
|
25
|
+
attr_accessor :cardholder_verification_method
|
|
26
|
+
|
|
27
|
+
attr_accessor :local_transaction_date_time
|
|
28
|
+
|
|
29
|
+
attr_accessor :payment_category
|
|
30
|
+
|
|
31
|
+
attr_accessor :payment_method_data
|
|
32
|
+
|
|
33
|
+
attr_accessor :point_of_sale_entry_mode
|
|
34
|
+
|
|
35
|
+
attr_accessor :scheme_processed_date_time
|
|
36
|
+
|
|
37
|
+
attr_accessor :settlement_amount
|
|
38
|
+
|
|
39
|
+
attr_accessor :transaction_amount
|
|
40
|
+
|
|
41
|
+
attr_accessor :transaction_references
|
|
42
|
+
|
|
43
|
+
# @return (Hash)
|
|
44
|
+
def to_h
|
|
45
|
+
hash = super
|
|
46
|
+
hash['cardholderVerificationMethod'] = @cardholder_verification_method unless @cardholder_verification_method.nil?
|
|
47
|
+
hash['localTransactionDateTime'] = @local_transaction_date_time unless @local_transaction_date_time.nil?
|
|
48
|
+
hash['paymentCategory'] = @payment_category unless @payment_category.nil?
|
|
49
|
+
hash['paymentMethodData'] = @payment_method_data.to_h unless @payment_method_data.nil?
|
|
50
|
+
hash['pointOfSaleEntryMode'] = @point_of_sale_entry_mode unless @point_of_sale_entry_mode.nil?
|
|
51
|
+
hash['schemeProcessedDateTime'] = @scheme_processed_date_time unless @scheme_processed_date_time.nil?
|
|
52
|
+
hash['settlementAmount'] = @settlement_amount.to_h unless @settlement_amount.nil?
|
|
53
|
+
hash['transactionAmount'] = @transaction_amount.to_h unless @transaction_amount.nil?
|
|
54
|
+
hash['transactionReferences'] = @transaction_references.to_h unless @transaction_references.nil?
|
|
55
|
+
hash
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
def from_hash(hash)
|
|
59
|
+
super
|
|
60
|
+
if hash.has_key? 'cardholderVerificationMethod'
|
|
61
|
+
@cardholder_verification_method = hash['cardholderVerificationMethod']
|
|
62
|
+
end
|
|
63
|
+
if hash.has_key? 'localTransactionDateTime'
|
|
64
|
+
@local_transaction_date_time = hash['localTransactionDateTime']
|
|
65
|
+
end
|
|
66
|
+
if hash.has_key? 'paymentCategory'
|
|
67
|
+
@payment_category = hash['paymentCategory']
|
|
68
|
+
end
|
|
69
|
+
if hash.has_key? 'paymentMethodData'
|
|
70
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['paymentMethodData']] unless hash['paymentMethodData'].is_a? Hash
|
|
71
|
+
@payment_method_data = Worldline::Acquiring::SDK::V1::Domain::PaymentMethodData.new_from_hash(hash['paymentMethodData'])
|
|
72
|
+
end
|
|
73
|
+
if hash.has_key? 'pointOfSaleEntryMode'
|
|
74
|
+
@point_of_sale_entry_mode = hash['pointOfSaleEntryMode']
|
|
75
|
+
end
|
|
76
|
+
if hash.has_key? 'schemeProcessedDateTime'
|
|
77
|
+
@scheme_processed_date_time = hash['schemeProcessedDateTime']
|
|
78
|
+
end
|
|
79
|
+
if hash.has_key? 'settlementAmount'
|
|
80
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['settlementAmount']] unless hash['settlementAmount'].is_a? Hash
|
|
81
|
+
@settlement_amount = Worldline::Acquiring::SDK::V1::Domain::AmountData.new_from_hash(hash['settlementAmount'])
|
|
82
|
+
end
|
|
83
|
+
if hash.has_key? 'transactionAmount'
|
|
84
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['transactionAmount']] unless hash['transactionAmount'].is_a? Hash
|
|
85
|
+
@transaction_amount = Worldline::Acquiring::SDK::V1::Domain::AmountData.new_from_hash(hash['transactionAmount'])
|
|
86
|
+
end
|
|
87
|
+
if hash.has_key? 'transactionReferences'
|
|
88
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['transactionReferences']] unless hash['transactionReferences'].is_a? Hash
|
|
89
|
+
@transaction_references = Worldline::Acquiring::SDK::V1::Domain::TransactionReferencesDispute.new_from_hash(hash['transactionReferences'])
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This file was automatically generated.
|
|
3
|
+
#
|
|
4
|
+
require 'worldline/acquiring/sdk/domain/data_object'
|
|
5
|
+
|
|
6
|
+
module Worldline
|
|
7
|
+
module Acquiring
|
|
8
|
+
module SDK
|
|
9
|
+
module V1
|
|
10
|
+
module Domain
|
|
11
|
+
# @attr [String] original_scheme_transaction_id
|
|
12
|
+
# @attr [String] original_scheme_transaction_link_id
|
|
13
|
+
class OriginalTransactionReferences < Worldline::Acquiring::SDK::Domain::DataObject
|
|
14
|
+
|
|
15
|
+
attr_accessor :original_scheme_transaction_id
|
|
16
|
+
|
|
17
|
+
attr_accessor :original_scheme_transaction_link_id
|
|
18
|
+
|
|
19
|
+
# @return (Hash)
|
|
20
|
+
def to_h
|
|
21
|
+
hash = super
|
|
22
|
+
hash['originalSchemeTransactionId'] = @original_scheme_transaction_id unless @original_scheme_transaction_id.nil?
|
|
23
|
+
hash['originalSchemeTransactionLinkId'] = @original_scheme_transaction_link_id unless @original_scheme_transaction_link_id.nil?
|
|
24
|
+
hash
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def from_hash(hash)
|
|
28
|
+
super
|
|
29
|
+
if hash.has_key? 'originalSchemeTransactionId'
|
|
30
|
+
@original_scheme_transaction_id = hash['originalSchemeTransactionId']
|
|
31
|
+
end
|
|
32
|
+
if hash.has_key? 'originalSchemeTransactionLinkId'
|
|
33
|
+
@original_scheme_transaction_link_id = hash['originalSchemeTransactionLinkId']
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This file was automatically generated.
|
|
3
|
+
#
|
|
4
|
+
require 'worldline/acquiring/sdk/domain/data_object'
|
|
5
|
+
require 'worldline/acquiring/sdk/v1/domain/payment_method_data_base'
|
|
6
|
+
require 'worldline/acquiring/sdk/v1/domain/transaction_references_base'
|
|
7
|
+
|
|
8
|
+
module Worldline
|
|
9
|
+
module Acquiring
|
|
10
|
+
module SDK
|
|
11
|
+
module V1
|
|
12
|
+
module Domain
|
|
13
|
+
# @attr [String] cardholder_verification_method
|
|
14
|
+
# @attr [String] payment_category
|
|
15
|
+
# @attr [Worldline::Acquiring::SDK::V1::Domain::PaymentMethodDataBase] payment_method_data
|
|
16
|
+
# @attr [String] point_of_sale_entry_mode
|
|
17
|
+
# @attr [Worldline::Acquiring::SDK::V1::Domain::TransactionReferencesBase] transaction_references
|
|
18
|
+
class OriginalTransactionSummaryData < Worldline::Acquiring::SDK::Domain::DataObject
|
|
19
|
+
|
|
20
|
+
attr_accessor :cardholder_verification_method
|
|
21
|
+
|
|
22
|
+
attr_accessor :payment_category
|
|
23
|
+
|
|
24
|
+
attr_accessor :payment_method_data
|
|
25
|
+
|
|
26
|
+
attr_accessor :point_of_sale_entry_mode
|
|
27
|
+
|
|
28
|
+
attr_accessor :transaction_references
|
|
29
|
+
|
|
30
|
+
# @return (Hash)
|
|
31
|
+
def to_h
|
|
32
|
+
hash = super
|
|
33
|
+
hash['cardholderVerificationMethod'] = @cardholder_verification_method unless @cardholder_verification_method.nil?
|
|
34
|
+
hash['paymentCategory'] = @payment_category unless @payment_category.nil?
|
|
35
|
+
hash['paymentMethodData'] = @payment_method_data.to_h unless @payment_method_data.nil?
|
|
36
|
+
hash['pointOfSaleEntryMode'] = @point_of_sale_entry_mode unless @point_of_sale_entry_mode.nil?
|
|
37
|
+
hash['transactionReferences'] = @transaction_references.to_h unless @transaction_references.nil?
|
|
38
|
+
hash
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
def from_hash(hash)
|
|
42
|
+
super
|
|
43
|
+
if hash.has_key? 'cardholderVerificationMethod'
|
|
44
|
+
@cardholder_verification_method = hash['cardholderVerificationMethod']
|
|
45
|
+
end
|
|
46
|
+
if hash.has_key? 'paymentCategory'
|
|
47
|
+
@payment_category = hash['paymentCategory']
|
|
48
|
+
end
|
|
49
|
+
if hash.has_key? 'paymentMethodData'
|
|
50
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['paymentMethodData']] unless hash['paymentMethodData'].is_a? Hash
|
|
51
|
+
@payment_method_data = Worldline::Acquiring::SDK::V1::Domain::PaymentMethodDataBase.new_from_hash(hash['paymentMethodData'])
|
|
52
|
+
end
|
|
53
|
+
if hash.has_key? 'pointOfSaleEntryMode'
|
|
54
|
+
@point_of_sale_entry_mode = hash['pointOfSaleEntryMode']
|
|
55
|
+
end
|
|
56
|
+
if hash.has_key? 'transactionReferences'
|
|
57
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['transactionReferences']] unless hash['transactionReferences'].is_a? Hash
|
|
58
|
+
@transaction_references = Worldline::Acquiring::SDK::V1::Domain::TransactionReferencesBase.new_from_hash(hash['transactionReferences'])
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|