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
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This file was automatically generated.
|
|
3
|
+
#
|
|
4
|
+
require 'worldline/acquiring/sdk/v1/domain/merchant_scope'
|
|
5
|
+
|
|
6
|
+
module Worldline
|
|
7
|
+
module Acquiring
|
|
8
|
+
module SDK
|
|
9
|
+
module V1
|
|
10
|
+
module Domain
|
|
11
|
+
# @attr [Array<String>] acquirer_ids
|
|
12
|
+
class ByAcquirerIds < Worldline::Acquiring::SDK::V1::Domain::MerchantScope
|
|
13
|
+
|
|
14
|
+
MERCHANT_SCOPE_TYPE = 'BY_ACQUIRER_IDS'.freeze
|
|
15
|
+
|
|
16
|
+
undef_method :merchant_scope_type=
|
|
17
|
+
|
|
18
|
+
attr_accessor :acquirer_ids
|
|
19
|
+
|
|
20
|
+
def initialize
|
|
21
|
+
super
|
|
22
|
+
@merchant_scope_type = MERCHANT_SCOPE_TYPE
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
# @return [String]
|
|
26
|
+
def merchant_scope_type
|
|
27
|
+
MERCHANT_SCOPE_TYPE
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# @return (Hash)
|
|
31
|
+
def to_h
|
|
32
|
+
hash = super
|
|
33
|
+
hash['acquirerIds'] = @acquirer_ids unless @acquirer_ids.nil?
|
|
34
|
+
hash['merchantScopeType'] = MERCHANT_SCOPE_TYPE
|
|
35
|
+
hash
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
def from_hash(hash)
|
|
39
|
+
super
|
|
40
|
+
@merchant_scope_type = MERCHANT_SCOPE_TYPE
|
|
41
|
+
if hash.has_key? 'acquirerIds'
|
|
42
|
+
raise TypeError, "value '%s' is not an Array" % [hash['acquirerIds']] unless hash['acquirerIds'].is_a? Array
|
|
43
|
+
@acquirer_ids = []
|
|
44
|
+
hash['acquirerIds'].each do |e|
|
|
45
|
+
@acquirer_ids << e
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This file was automatically generated.
|
|
3
|
+
#
|
|
4
|
+
require 'worldline/acquiring/sdk/v1/domain/merchant_id_item'
|
|
5
|
+
require 'worldline/acquiring/sdk/v1/domain/merchant_scope'
|
|
6
|
+
|
|
7
|
+
module Worldline
|
|
8
|
+
module Acquiring
|
|
9
|
+
module SDK
|
|
10
|
+
module V1
|
|
11
|
+
module Domain
|
|
12
|
+
# @attr [Array<Worldline::Acquiring::SDK::V1::Domain::MerchantIdItem>] merchant_ids
|
|
13
|
+
class ByMerchantIds < Worldline::Acquiring::SDK::V1::Domain::MerchantScope
|
|
14
|
+
|
|
15
|
+
MERCHANT_SCOPE_TYPE = 'BY_MERCHANT_IDS'.freeze
|
|
16
|
+
|
|
17
|
+
undef_method :merchant_scope_type=
|
|
18
|
+
|
|
19
|
+
attr_accessor :merchant_ids
|
|
20
|
+
|
|
21
|
+
def initialize
|
|
22
|
+
super
|
|
23
|
+
@merchant_scope_type = MERCHANT_SCOPE_TYPE
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# @return [String]
|
|
27
|
+
def merchant_scope_type
|
|
28
|
+
MERCHANT_SCOPE_TYPE
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# @return (Hash)
|
|
32
|
+
def to_h
|
|
33
|
+
hash = super
|
|
34
|
+
hash['merchantIds'] = @merchant_ids.collect{|val| val.to_h} unless @merchant_ids.nil?
|
|
35
|
+
hash['merchantScopeType'] = MERCHANT_SCOPE_TYPE
|
|
36
|
+
hash
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
def from_hash(hash)
|
|
40
|
+
super
|
|
41
|
+
@merchant_scope_type = MERCHANT_SCOPE_TYPE
|
|
42
|
+
if hash.has_key? 'merchantIds'
|
|
43
|
+
raise TypeError, "value '%s' is not an Array" % [hash['merchantIds']] unless hash['merchantIds'].is_a? Array
|
|
44
|
+
@merchant_ids = []
|
|
45
|
+
hash['merchantIds'].each do |e|
|
|
46
|
+
@merchant_ids << Worldline::Acquiring::SDK::V1::Domain::MerchantIdItem.new_from_hash(e)
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This file was automatically generated.
|
|
3
|
+
#
|
|
4
|
+
require 'worldline/acquiring/sdk/v1/domain/merchant_root_id_item'
|
|
5
|
+
require 'worldline/acquiring/sdk/v1/domain/merchant_scope'
|
|
6
|
+
|
|
7
|
+
module Worldline
|
|
8
|
+
module Acquiring
|
|
9
|
+
module SDK
|
|
10
|
+
module V1
|
|
11
|
+
module Domain
|
|
12
|
+
# @attr [Array<Worldline::Acquiring::SDK::V1::Domain::MerchantRootIdItem>] merchant_root_ids
|
|
13
|
+
class ByMerchantRootIds < Worldline::Acquiring::SDK::V1::Domain::MerchantScope
|
|
14
|
+
|
|
15
|
+
MERCHANT_SCOPE_TYPE = 'BY_MERCHANT_ROOT_IDS'.freeze
|
|
16
|
+
|
|
17
|
+
undef_method :merchant_scope_type=
|
|
18
|
+
|
|
19
|
+
attr_accessor :merchant_root_ids
|
|
20
|
+
|
|
21
|
+
def initialize
|
|
22
|
+
super
|
|
23
|
+
@merchant_scope_type = MERCHANT_SCOPE_TYPE
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# @return [String]
|
|
27
|
+
def merchant_scope_type
|
|
28
|
+
MERCHANT_SCOPE_TYPE
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# @return (Hash)
|
|
32
|
+
def to_h
|
|
33
|
+
hash = super
|
|
34
|
+
hash['merchantRootIds'] = @merchant_root_ids.collect{|val| val.to_h} unless @merchant_root_ids.nil?
|
|
35
|
+
hash['merchantScopeType'] = MERCHANT_SCOPE_TYPE
|
|
36
|
+
hash
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
def from_hash(hash)
|
|
40
|
+
super
|
|
41
|
+
@merchant_scope_type = MERCHANT_SCOPE_TYPE
|
|
42
|
+
if hash.has_key? 'merchantRootIds'
|
|
43
|
+
raise TypeError, "value '%s' is not an Array" % [hash['merchantRootIds']] unless hash['merchantRootIds'].is_a? Array
|
|
44
|
+
@merchant_root_ids = []
|
|
45
|
+
hash['merchantRootIds'].each do |e|
|
|
46
|
+
@merchant_root_ids << Worldline::Acquiring::SDK::V1::Domain::MerchantRootIdItem.new_from_hash(e)
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This file was automatically generated.
|
|
3
|
+
#
|
|
4
|
+
require 'worldline/acquiring/sdk/domain/data_object'
|
|
5
|
+
require 'worldline/acquiring/sdk/v1/domain/emv_data_item'
|
|
6
|
+
|
|
7
|
+
module Worldline
|
|
8
|
+
module Acquiring
|
|
9
|
+
module SDK
|
|
10
|
+
module V1
|
|
11
|
+
module Domain
|
|
12
|
+
# @attr [Array<Worldline::Acquiring::SDK::V1::Domain::EmvDataItem>] emv_data
|
|
13
|
+
class CapturePointOfSaleData < Worldline::Acquiring::SDK::Domain::DataObject
|
|
14
|
+
|
|
15
|
+
attr_accessor :emv_data
|
|
16
|
+
|
|
17
|
+
# @return (Hash)
|
|
18
|
+
def to_h
|
|
19
|
+
hash = super
|
|
20
|
+
hash['emvData'] = @emv_data.collect{|val| val.to_h} unless @emv_data.nil?
|
|
21
|
+
hash
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def from_hash(hash)
|
|
25
|
+
super
|
|
26
|
+
if hash.has_key? 'emvData'
|
|
27
|
+
raise TypeError, "value '%s' is not an Array" % [hash['emvData']] unless hash['emvData'].is_a? Array
|
|
28
|
+
@emv_data = []
|
|
29
|
+
hash['emvData'].each do |e|
|
|
30
|
+
@emv_data << Worldline::Acquiring::SDK::V1::Domain::EmvDataItem.new_from_hash(e)
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
#
|
|
4
4
|
require 'worldline/acquiring/sdk/domain/data_object'
|
|
5
5
|
require 'worldline/acquiring/sdk/v1/domain/network_token_data'
|
|
6
|
+
require 'worldline/acquiring/sdk/v1/domain/original_transaction_references'
|
|
6
7
|
require 'worldline/acquiring/sdk/v1/domain/plain_card_data'
|
|
7
8
|
require 'worldline/acquiring/sdk/v1/domain/point_of_sale_data'
|
|
8
9
|
|
|
@@ -18,6 +19,7 @@ module Worldline
|
|
|
18
19
|
# @attr [String] card_entry_mode
|
|
19
20
|
# @attr [String] cardholder_verification_method
|
|
20
21
|
# @attr [Worldline::Acquiring::SDK::V1::Domain::NetworkTokenData] network_token_data
|
|
22
|
+
# @attr [Worldline::Acquiring::SDK::V1::Domain::OriginalTransactionReferences] original_transaction_references
|
|
21
23
|
# @attr [Worldline::Acquiring::SDK::V1::Domain::PointOfSaleData] point_of_sale_data
|
|
22
24
|
# @attr [String] wallet_id
|
|
23
25
|
class CardPaymentDataForRefund < Worldline::Acquiring::SDK::Domain::DataObject
|
|
@@ -36,6 +38,8 @@ module Worldline
|
|
|
36
38
|
|
|
37
39
|
attr_accessor :network_token_data
|
|
38
40
|
|
|
41
|
+
attr_accessor :original_transaction_references
|
|
42
|
+
|
|
39
43
|
attr_accessor :point_of_sale_data
|
|
40
44
|
|
|
41
45
|
attr_accessor :wallet_id
|
|
@@ -50,6 +54,7 @@ module Worldline
|
|
|
50
54
|
hash['cardEntryMode'] = @card_entry_mode unless @card_entry_mode.nil?
|
|
51
55
|
hash['cardholderVerificationMethod'] = @cardholder_verification_method unless @cardholder_verification_method.nil?
|
|
52
56
|
hash['networkTokenData'] = @network_token_data.to_h unless @network_token_data.nil?
|
|
57
|
+
hash['originalTransactionReferences'] = @original_transaction_references.to_h unless @original_transaction_references.nil?
|
|
53
58
|
hash['pointOfSaleData'] = @point_of_sale_data.to_h unless @point_of_sale_data.nil?
|
|
54
59
|
hash['walletId'] = @wallet_id unless @wallet_id.nil?
|
|
55
60
|
hash
|
|
@@ -80,6 +85,10 @@ module Worldline
|
|
|
80
85
|
raise TypeError, "value '%s' is not a Hash" % [hash['networkTokenData']] unless hash['networkTokenData'].is_a? Hash
|
|
81
86
|
@network_token_data = Worldline::Acquiring::SDK::V1::Domain::NetworkTokenData.new_from_hash(hash['networkTokenData'])
|
|
82
87
|
end
|
|
88
|
+
if hash.has_key? 'originalTransactionReferences'
|
|
89
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['originalTransactionReferences']] unless hash['originalTransactionReferences'].is_a? Hash
|
|
90
|
+
@original_transaction_references = Worldline::Acquiring::SDK::V1::Domain::OriginalTransactionReferences.new_from_hash(hash['originalTransactionReferences'])
|
|
91
|
+
end
|
|
83
92
|
if hash.has_key? 'pointOfSaleData'
|
|
84
93
|
raise TypeError, "value '%s' is not a Hash" % [hash['pointOfSaleData']] unless hash['pointOfSaleData'].is_a? Hash
|
|
85
94
|
@point_of_sale_data = Worldline::Acquiring::SDK::V1::Domain::PointOfSaleData.new_from_hash(hash['pointOfSaleData'])
|
|
@@ -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] customer_service_email
|
|
12
|
+
# @attr [String] customer_service_phone_number
|
|
13
|
+
# @attr [String] customer_service_url
|
|
14
|
+
class CustomerServiceData < Worldline::Acquiring::SDK::Domain::DataObject
|
|
15
|
+
|
|
16
|
+
attr_accessor :customer_service_email
|
|
17
|
+
|
|
18
|
+
attr_accessor :customer_service_phone_number
|
|
19
|
+
|
|
20
|
+
attr_accessor :customer_service_url
|
|
21
|
+
|
|
22
|
+
# @return (Hash)
|
|
23
|
+
def to_h
|
|
24
|
+
hash = super
|
|
25
|
+
hash['customerServiceEmail'] = @customer_service_email unless @customer_service_email.nil?
|
|
26
|
+
hash['customerServicePhoneNumber'] = @customer_service_phone_number unless @customer_service_phone_number.nil?
|
|
27
|
+
hash['customerServiceUrl'] = @customer_service_url unless @customer_service_url.nil?
|
|
28
|
+
hash
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
def from_hash(hash)
|
|
32
|
+
super
|
|
33
|
+
if hash.has_key? 'customerServiceEmail'
|
|
34
|
+
@customer_service_email = hash['customerServiceEmail']
|
|
35
|
+
end
|
|
36
|
+
if hash.has_key? 'customerServicePhoneNumber'
|
|
37
|
+
@customer_service_phone_number = hash['customerServicePhoneNumber']
|
|
38
|
+
end
|
|
39
|
+
if hash.has_key? 'customerServiceUrl'
|
|
40
|
+
@customer_service_url = hash['customerServiceUrl']
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This file was automatically generated.
|
|
3
|
+
#
|
|
4
|
+
require 'date'
|
|
5
|
+
|
|
6
|
+
require 'worldline/acquiring/sdk/domain/data_object'
|
|
7
|
+
|
|
8
|
+
module Worldline
|
|
9
|
+
module Acquiring
|
|
10
|
+
module SDK
|
|
11
|
+
module V1
|
|
12
|
+
module Domain
|
|
13
|
+
# @attr [Date] greater_equal
|
|
14
|
+
# @attr [Date] lower_equal
|
|
15
|
+
class DateRange < Worldline::Acquiring::SDK::Domain::DataObject
|
|
16
|
+
|
|
17
|
+
attr_accessor :greater_equal
|
|
18
|
+
|
|
19
|
+
attr_accessor :lower_equal
|
|
20
|
+
|
|
21
|
+
# @return (Hash)
|
|
22
|
+
def to_h
|
|
23
|
+
hash = super
|
|
24
|
+
hash['greaterEqual'] = @greater_equal.iso8601 unless @greater_equal.nil?
|
|
25
|
+
hash['lowerEqual'] = @lower_equal.iso8601 unless @lower_equal.nil?
|
|
26
|
+
hash
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
def from_hash(hash)
|
|
30
|
+
super
|
|
31
|
+
if hash.has_key? 'greaterEqual'
|
|
32
|
+
@greater_equal = Date.parse(hash['greaterEqual'])
|
|
33
|
+
end
|
|
34
|
+
if hash.has_key? 'lowerEqual'
|
|
35
|
+
@lower_equal = Date.parse(hash['lowerEqual'])
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -0,0 +1,55 @@
|
|
|
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] greater
|
|
12
|
+
# @attr [String] greater_equal
|
|
13
|
+
# @attr [String] lower
|
|
14
|
+
# @attr [String] lower_equal
|
|
15
|
+
class DateTimeRange < Worldline::Acquiring::SDK::Domain::DataObject
|
|
16
|
+
|
|
17
|
+
attr_accessor :greater
|
|
18
|
+
|
|
19
|
+
attr_accessor :greater_equal
|
|
20
|
+
|
|
21
|
+
attr_accessor :lower
|
|
22
|
+
|
|
23
|
+
attr_accessor :lower_equal
|
|
24
|
+
|
|
25
|
+
# @return (Hash)
|
|
26
|
+
def to_h
|
|
27
|
+
hash = super
|
|
28
|
+
hash['greater'] = @greater unless @greater.nil?
|
|
29
|
+
hash['greaterEqual'] = @greater_equal unless @greater_equal.nil?
|
|
30
|
+
hash['lower'] = @lower unless @lower.nil?
|
|
31
|
+
hash['lowerEqual'] = @lower_equal unless @lower_equal.nil?
|
|
32
|
+
hash
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def from_hash(hash)
|
|
36
|
+
super
|
|
37
|
+
if hash.has_key? 'greater'
|
|
38
|
+
@greater = hash['greater']
|
|
39
|
+
end
|
|
40
|
+
if hash.has_key? 'greaterEqual'
|
|
41
|
+
@greater_equal = hash['greaterEqual']
|
|
42
|
+
end
|
|
43
|
+
if hash.has_key? 'lower'
|
|
44
|
+
@lower = hash['lower']
|
|
45
|
+
end
|
|
46
|
+
if hash.has_key? 'lowerEqual'
|
|
47
|
+
@lower_equal = hash['lowerEqual']
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
@@ -0,0 +1,144 @@
|
|
|
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/dispute_date_time_data'
|
|
7
|
+
require 'worldline/acquiring/sdk/v1/domain/dispute_merchant_data'
|
|
8
|
+
require 'worldline/acquiring/sdk/v1/domain/dispute_references'
|
|
9
|
+
require 'worldline/acquiring/sdk/v1/domain/original_transaction_data'
|
|
10
|
+
require 'worldline/acquiring/sdk/v1/domain/signed_amount_data'
|
|
11
|
+
|
|
12
|
+
module Worldline
|
|
13
|
+
module Acquiring
|
|
14
|
+
module SDK
|
|
15
|
+
module V1
|
|
16
|
+
module Domain
|
|
17
|
+
# @attr [Worldline::Acquiring::SDK::V1::Domain::DisputeDateTimeData] dispute_date_time_data
|
|
18
|
+
# @attr [String] dispute_id
|
|
19
|
+
# @attr [Worldline::Acquiring::SDK::V1::Domain::DisputeReferences] dispute_references
|
|
20
|
+
# @attr [String] dispute_stage
|
|
21
|
+
# @attr [String] dispute_status
|
|
22
|
+
# @attr [String] dispute_status_category
|
|
23
|
+
# @attr [true/false] is_open
|
|
24
|
+
# @attr [Worldline::Acquiring::SDK::V1::Domain::SignedAmountData] merchant_balance_amount
|
|
25
|
+
# @attr [Worldline::Acquiring::SDK::V1::Domain::DisputeMerchantData] merchant_data
|
|
26
|
+
# @attr [Worldline::Acquiring::SDK::V1::Domain::AmountData] original_dispute_amount
|
|
27
|
+
# @attr [Worldline::Acquiring::SDK::V1::Domain::OriginalTransactionData] original_transaction_data
|
|
28
|
+
# @attr [String] scheme_reason
|
|
29
|
+
# @attr [String] scheme_reason_description
|
|
30
|
+
# @attr [String] unified_category
|
|
31
|
+
# @attr [String] unified_reason
|
|
32
|
+
class DisputeCase < Worldline::Acquiring::SDK::Domain::DataObject
|
|
33
|
+
|
|
34
|
+
attr_accessor :dispute_date_time_data
|
|
35
|
+
|
|
36
|
+
attr_accessor :dispute_id
|
|
37
|
+
|
|
38
|
+
attr_accessor :dispute_references
|
|
39
|
+
|
|
40
|
+
attr_accessor :dispute_stage
|
|
41
|
+
|
|
42
|
+
attr_accessor :dispute_status
|
|
43
|
+
|
|
44
|
+
attr_accessor :dispute_status_category
|
|
45
|
+
|
|
46
|
+
attr_accessor :is_open
|
|
47
|
+
|
|
48
|
+
attr_accessor :merchant_balance_amount
|
|
49
|
+
|
|
50
|
+
attr_accessor :merchant_data
|
|
51
|
+
|
|
52
|
+
attr_accessor :original_dispute_amount
|
|
53
|
+
|
|
54
|
+
attr_accessor :original_transaction_data
|
|
55
|
+
|
|
56
|
+
attr_accessor :scheme_reason
|
|
57
|
+
|
|
58
|
+
attr_accessor :scheme_reason_description
|
|
59
|
+
|
|
60
|
+
attr_accessor :unified_category
|
|
61
|
+
|
|
62
|
+
attr_accessor :unified_reason
|
|
63
|
+
|
|
64
|
+
# @return (Hash)
|
|
65
|
+
def to_h
|
|
66
|
+
hash = super
|
|
67
|
+
hash['disputeDateTimeData'] = @dispute_date_time_data.to_h unless @dispute_date_time_data.nil?
|
|
68
|
+
hash['disputeId'] = @dispute_id unless @dispute_id.nil?
|
|
69
|
+
hash['disputeReferences'] = @dispute_references.to_h unless @dispute_references.nil?
|
|
70
|
+
hash['disputeStage'] = @dispute_stage unless @dispute_stage.nil?
|
|
71
|
+
hash['disputeStatus'] = @dispute_status unless @dispute_status.nil?
|
|
72
|
+
hash['disputeStatusCategory'] = @dispute_status_category unless @dispute_status_category.nil?
|
|
73
|
+
hash['isOpen'] = @is_open unless @is_open.nil?
|
|
74
|
+
hash['merchantBalanceAmount'] = @merchant_balance_amount.to_h unless @merchant_balance_amount.nil?
|
|
75
|
+
hash['merchantData'] = @merchant_data.to_h unless @merchant_data.nil?
|
|
76
|
+
hash['originalDisputeAmount'] = @original_dispute_amount.to_h unless @original_dispute_amount.nil?
|
|
77
|
+
hash['originalTransactionData'] = @original_transaction_data.to_h unless @original_transaction_data.nil?
|
|
78
|
+
hash['schemeReason'] = @scheme_reason unless @scheme_reason.nil?
|
|
79
|
+
hash['schemeReasonDescription'] = @scheme_reason_description unless @scheme_reason_description.nil?
|
|
80
|
+
hash['unifiedCategory'] = @unified_category unless @unified_category.nil?
|
|
81
|
+
hash['unifiedReason'] = @unified_reason unless @unified_reason.nil?
|
|
82
|
+
hash
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
def from_hash(hash)
|
|
86
|
+
super
|
|
87
|
+
if hash.has_key? 'disputeDateTimeData'
|
|
88
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['disputeDateTimeData']] unless hash['disputeDateTimeData'].is_a? Hash
|
|
89
|
+
@dispute_date_time_data = Worldline::Acquiring::SDK::V1::Domain::DisputeDateTimeData.new_from_hash(hash['disputeDateTimeData'])
|
|
90
|
+
end
|
|
91
|
+
if hash.has_key? 'disputeId'
|
|
92
|
+
@dispute_id = hash['disputeId']
|
|
93
|
+
end
|
|
94
|
+
if hash.has_key? 'disputeReferences'
|
|
95
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['disputeReferences']] unless hash['disputeReferences'].is_a? Hash
|
|
96
|
+
@dispute_references = Worldline::Acquiring::SDK::V1::Domain::DisputeReferences.new_from_hash(hash['disputeReferences'])
|
|
97
|
+
end
|
|
98
|
+
if hash.has_key? 'disputeStage'
|
|
99
|
+
@dispute_stage = hash['disputeStage']
|
|
100
|
+
end
|
|
101
|
+
if hash.has_key? 'disputeStatus'
|
|
102
|
+
@dispute_status = hash['disputeStatus']
|
|
103
|
+
end
|
|
104
|
+
if hash.has_key? 'disputeStatusCategory'
|
|
105
|
+
@dispute_status_category = hash['disputeStatusCategory']
|
|
106
|
+
end
|
|
107
|
+
if hash.has_key? 'isOpen'
|
|
108
|
+
@is_open = hash['isOpen']
|
|
109
|
+
end
|
|
110
|
+
if hash.has_key? 'merchantBalanceAmount'
|
|
111
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['merchantBalanceAmount']] unless hash['merchantBalanceAmount'].is_a? Hash
|
|
112
|
+
@merchant_balance_amount = Worldline::Acquiring::SDK::V1::Domain::SignedAmountData.new_from_hash(hash['merchantBalanceAmount'])
|
|
113
|
+
end
|
|
114
|
+
if hash.has_key? 'merchantData'
|
|
115
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['merchantData']] unless hash['merchantData'].is_a? Hash
|
|
116
|
+
@merchant_data = Worldline::Acquiring::SDK::V1::Domain::DisputeMerchantData.new_from_hash(hash['merchantData'])
|
|
117
|
+
end
|
|
118
|
+
if hash.has_key? 'originalDisputeAmount'
|
|
119
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['originalDisputeAmount']] unless hash['originalDisputeAmount'].is_a? Hash
|
|
120
|
+
@original_dispute_amount = Worldline::Acquiring::SDK::V1::Domain::AmountData.new_from_hash(hash['originalDisputeAmount'])
|
|
121
|
+
end
|
|
122
|
+
if hash.has_key? 'originalTransactionData'
|
|
123
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['originalTransactionData']] unless hash['originalTransactionData'].is_a? Hash
|
|
124
|
+
@original_transaction_data = Worldline::Acquiring::SDK::V1::Domain::OriginalTransactionData.new_from_hash(hash['originalTransactionData'])
|
|
125
|
+
end
|
|
126
|
+
if hash.has_key? 'schemeReason'
|
|
127
|
+
@scheme_reason = hash['schemeReason']
|
|
128
|
+
end
|
|
129
|
+
if hash.has_key? 'schemeReasonDescription'
|
|
130
|
+
@scheme_reason_description = hash['schemeReasonDescription']
|
|
131
|
+
end
|
|
132
|
+
if hash.has_key? 'unifiedCategory'
|
|
133
|
+
@unified_category = hash['unifiedCategory']
|
|
134
|
+
end
|
|
135
|
+
if hash.has_key? 'unifiedReason'
|
|
136
|
+
@unified_reason = hash['unifiedReason']
|
|
137
|
+
end
|
|
138
|
+
end
|
|
139
|
+
end
|
|
140
|
+
end
|
|
141
|
+
end
|
|
142
|
+
end
|
|
143
|
+
end
|
|
144
|
+
end
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This file was automatically generated.
|
|
3
|
+
#
|
|
4
|
+
require 'worldline/acquiring/sdk/v1/domain/dispute_case'
|
|
5
|
+
require 'worldline/acquiring/sdk/v1/domain/dispute_entry'
|
|
6
|
+
|
|
7
|
+
module Worldline
|
|
8
|
+
module Acquiring
|
|
9
|
+
module SDK
|
|
10
|
+
module V1
|
|
11
|
+
module Domain
|
|
12
|
+
# @attr [Array<Worldline::Acquiring::SDK::V1::Domain::DisputeEntry>] entries
|
|
13
|
+
class DisputeCaseWithEntries < Worldline::Acquiring::SDK::V1::Domain::DisputeCase
|
|
14
|
+
|
|
15
|
+
attr_accessor :entries
|
|
16
|
+
|
|
17
|
+
# @return (Hash)
|
|
18
|
+
def to_h
|
|
19
|
+
hash = super
|
|
20
|
+
hash['entries'] = @entries.collect{|val| val.to_h} unless @entries.nil?
|
|
21
|
+
hash
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def from_hash(hash)
|
|
25
|
+
super
|
|
26
|
+
if hash.has_key? 'entries'
|
|
27
|
+
raise TypeError, "value '%s' is not an Array" % [hash['entries']] unless hash['entries'].is_a? Array
|
|
28
|
+
@entries = []
|
|
29
|
+
hash['entries'].each do |e|
|
|
30
|
+
@entries << Worldline::Acquiring::SDK::V1::Domain::DisputeEntry.new_from_hash(e)
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This file was automatically generated.
|
|
3
|
+
#
|
|
4
|
+
require 'date'
|
|
5
|
+
|
|
6
|
+
require 'worldline/acquiring/sdk/domain/data_object'
|
|
7
|
+
|
|
8
|
+
module Worldline
|
|
9
|
+
module Acquiring
|
|
10
|
+
module SDK
|
|
11
|
+
module V1
|
|
12
|
+
module Domain
|
|
13
|
+
# @attr [String] closed_date_time
|
|
14
|
+
# @attr [String] last_status_changed_date_time
|
|
15
|
+
# @attr [String] opened_date_time
|
|
16
|
+
# @attr [Date] response_due_date
|
|
17
|
+
class DisputeDateTimeData < Worldline::Acquiring::SDK::Domain::DataObject
|
|
18
|
+
|
|
19
|
+
attr_accessor :closed_date_time
|
|
20
|
+
|
|
21
|
+
attr_accessor :last_status_changed_date_time
|
|
22
|
+
|
|
23
|
+
attr_accessor :opened_date_time
|
|
24
|
+
|
|
25
|
+
attr_accessor :response_due_date
|
|
26
|
+
|
|
27
|
+
# @return (Hash)
|
|
28
|
+
def to_h
|
|
29
|
+
hash = super
|
|
30
|
+
hash['closedDateTime'] = @closed_date_time unless @closed_date_time.nil?
|
|
31
|
+
hash['lastStatusChangedDateTime'] = @last_status_changed_date_time unless @last_status_changed_date_time.nil?
|
|
32
|
+
hash['openedDateTime'] = @opened_date_time unless @opened_date_time.nil?
|
|
33
|
+
hash['responseDueDate'] = @response_due_date.iso8601 unless @response_due_date.nil?
|
|
34
|
+
hash
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
def from_hash(hash)
|
|
38
|
+
super
|
|
39
|
+
if hash.has_key? 'closedDateTime'
|
|
40
|
+
@closed_date_time = hash['closedDateTime']
|
|
41
|
+
end
|
|
42
|
+
if hash.has_key? 'lastStatusChangedDateTime'
|
|
43
|
+
@last_status_changed_date_time = hash['lastStatusChangedDateTime']
|
|
44
|
+
end
|
|
45
|
+
if hash.has_key? 'openedDateTime'
|
|
46
|
+
@opened_date_time = hash['openedDateTime']
|
|
47
|
+
end
|
|
48
|
+
if hash.has_key? 'responseDueDate'
|
|
49
|
+
@response_due_date = Date.parse(hash['responseDueDate'])
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|