acquiring-sdk-ruby 2.0.0 → 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/acquiring-sdk-ruby.gemspec +1 -1
- data/lib/worldline/acquiring/sdk/authentication/oauth2_scopes.rb +8 -1
- data/lib/worldline/acquiring/sdk/communication/metadata_provider.rb +1 -1
- data/lib/worldline/acquiring/sdk/v1/acquirer/merchant/cardrefunds/get_refund_params.rb +1 -1
- 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/aes_ukpt_pin_encryption_data.rb +57 -0
- data/lib/worldline/acquiring/sdk/v1/domain/api_capture_request.rb +9 -0
- data/lib/worldline/acquiring/sdk/v1/domain/api_capture_request_for_refund.rb +9 -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_point_of_sale_data.rb +39 -0
- data/lib/worldline/acquiring/sdk/v1/domain/card_payment_data_for_refund.rb +9 -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/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/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/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/pin_encryption_data.rb +36 -0
- data/lib/worldline/acquiring/sdk/v1/domain/point_of_sale_data.rb +7 -12
- 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/signed_amount_data.rb +55 -0
- data/lib/worldline/acquiring/sdk/v1/domain/submit_evidence_request.rb +69 -0
- data/lib/worldline/acquiring/sdk/v1/domain/terminal_data.rb +7 -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/v1_client.rb +24 -0
- metadata +55 -3
|
@@ -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
|
|
@@ -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
|
|
@@ -0,0 +1,48 @@
|
|
|
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 [Integer] from_index
|
|
12
|
+
# @attr [Integer] page_size
|
|
13
|
+
# @attr [String] search_id
|
|
14
|
+
class PaginationRequest < Worldline::Acquiring::SDK::Domain::DataObject
|
|
15
|
+
|
|
16
|
+
attr_accessor :from_index
|
|
17
|
+
|
|
18
|
+
attr_accessor :page_size
|
|
19
|
+
|
|
20
|
+
attr_accessor :search_id
|
|
21
|
+
|
|
22
|
+
# @return (Hash)
|
|
23
|
+
def to_h
|
|
24
|
+
hash = super
|
|
25
|
+
hash['fromIndex'] = @from_index unless @from_index.nil?
|
|
26
|
+
hash['pageSize'] = @page_size unless @page_size.nil?
|
|
27
|
+
hash['searchId'] = @search_id unless @search_id.nil?
|
|
28
|
+
hash
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
def from_hash(hash)
|
|
32
|
+
super
|
|
33
|
+
if hash.has_key? 'fromIndex'
|
|
34
|
+
@from_index = hash['fromIndex']
|
|
35
|
+
end
|
|
36
|
+
if hash.has_key? 'pageSize'
|
|
37
|
+
@page_size = hash['pageSize']
|
|
38
|
+
end
|
|
39
|
+
if hash.has_key? 'searchId'
|
|
40
|
+
@search_id = hash['searchId']
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
@@ -0,0 +1,48 @@
|
|
|
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 [Integer] last_index
|
|
12
|
+
# @attr [String] search_id
|
|
13
|
+
# @attr [Integer] total_count
|
|
14
|
+
class PaginationResponse < Worldline::Acquiring::SDK::Domain::DataObject
|
|
15
|
+
|
|
16
|
+
attr_accessor :last_index
|
|
17
|
+
|
|
18
|
+
attr_accessor :search_id
|
|
19
|
+
|
|
20
|
+
attr_accessor :total_count
|
|
21
|
+
|
|
22
|
+
# @return (Hash)
|
|
23
|
+
def to_h
|
|
24
|
+
hash = super
|
|
25
|
+
hash['lastIndex'] = @last_index unless @last_index.nil?
|
|
26
|
+
hash['searchId'] = @search_id unless @search_id.nil?
|
|
27
|
+
hash['totalCount'] = @total_count unless @total_count.nil?
|
|
28
|
+
hash
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
def from_hash(hash)
|
|
32
|
+
super
|
|
33
|
+
if hash.has_key? 'lastIndex'
|
|
34
|
+
@last_index = hash['lastIndex']
|
|
35
|
+
end
|
|
36
|
+
if hash.has_key? 'searchId'
|
|
37
|
+
@search_id = hash['searchId']
|
|
38
|
+
end
|
|
39
|
+
if hash.has_key? 'totalCount'
|
|
40
|
+
@total_count = hash['totalCount']
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This file was automatically generated.
|
|
3
|
+
#
|
|
4
|
+
require 'worldline/acquiring/sdk/v1/domain/payment_method_data_base'
|
|
5
|
+
|
|
6
|
+
module Worldline
|
|
7
|
+
module Acquiring
|
|
8
|
+
module SDK
|
|
9
|
+
module V1
|
|
10
|
+
module Domain
|
|
11
|
+
# @attr [String] issuing_country_code
|
|
12
|
+
class PaymentMethodData < Worldline::Acquiring::SDK::V1::Domain::PaymentMethodDataBase
|
|
13
|
+
|
|
14
|
+
attr_accessor :issuing_country_code
|
|
15
|
+
|
|
16
|
+
# @return (Hash)
|
|
17
|
+
def to_h
|
|
18
|
+
hash = super
|
|
19
|
+
hash['issuingCountryCode'] = @issuing_country_code unless @issuing_country_code.nil?
|
|
20
|
+
hash
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def from_hash(hash)
|
|
24
|
+
super
|
|
25
|
+
if hash.has_key? 'issuingCountryCode'
|
|
26
|
+
@issuing_country_code = hash['issuingCountryCode']
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,48 @@
|
|
|
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] masked_identifier
|
|
12
|
+
# @attr [String] scheme
|
|
13
|
+
# @attr [String] scheme_brand
|
|
14
|
+
class PaymentMethodDataBase < Worldline::Acquiring::SDK::Domain::DataObject
|
|
15
|
+
|
|
16
|
+
attr_accessor :masked_identifier
|
|
17
|
+
|
|
18
|
+
attr_accessor :scheme
|
|
19
|
+
|
|
20
|
+
attr_accessor :scheme_brand
|
|
21
|
+
|
|
22
|
+
# @return (Hash)
|
|
23
|
+
def to_h
|
|
24
|
+
hash = super
|
|
25
|
+
hash['maskedIdentifier'] = @masked_identifier unless @masked_identifier.nil?
|
|
26
|
+
hash['scheme'] = @scheme unless @scheme.nil?
|
|
27
|
+
hash['schemeBrand'] = @scheme_brand unless @scheme_brand.nil?
|
|
28
|
+
hash
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
def from_hash(hash)
|
|
32
|
+
super
|
|
33
|
+
if hash.has_key? 'maskedIdentifier'
|
|
34
|
+
@masked_identifier = hash['maskedIdentifier']
|
|
35
|
+
end
|
|
36
|
+
if hash.has_key? 'scheme'
|
|
37
|
+
@scheme = hash['scheme']
|
|
38
|
+
end
|
|
39
|
+
if hash.has_key? 'schemeBrand'
|
|
40
|
+
@scheme_brand = hash['schemeBrand']
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
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] pin_encryption_type Possible values are: AES_UKPT, DUKPT, ZPK. Read-only.
|
|
12
|
+
class PinEncryptionData < Worldline::Acquiring::SDK::Domain::DataObject
|
|
13
|
+
|
|
14
|
+
attr_reader :pin_encryption_type
|
|
15
|
+
attr_writer :pin_encryption_type
|
|
16
|
+
protected :pin_encryption_type=
|
|
17
|
+
|
|
18
|
+
# @return (Hash)
|
|
19
|
+
def to_h
|
|
20
|
+
hash = super
|
|
21
|
+
hash['pinEncryptionType'] = pin_encryption_type unless pin_encryption_type.nil?
|
|
22
|
+
hash
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def from_hash(hash)
|
|
26
|
+
super
|
|
27
|
+
if hash.has_key? 'pinEncryptionType'
|
|
28
|
+
@pin_encryption_type = hash['pinEncryptionType']
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|