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.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/acquiring-sdk-ruby.gemspec +1 -1
  3. data/lib/worldline/acquiring/sdk/authentication/oauth2_scopes.rb +8 -1
  4. data/lib/worldline/acquiring/sdk/communication/metadata_provider.rb +1 -1
  5. data/lib/worldline/acquiring/sdk/v1/acquirer/merchant/cardrefunds/get_refund_params.rb +1 -1
  6. data/lib/worldline/acquiring/sdk/v1/disputedocuments/dispute_documents_client.rb +89 -0
  7. data/lib/worldline/acquiring/sdk/v1/disputedocuments/upload_dispute_document_request.rb +30 -0
  8. data/lib/worldline/acquiring/sdk/v1/disputedocuments.rb +4 -0
  9. data/lib/worldline/acquiring/sdk/v1/disputeentries/dispute_entries_client.rb +56 -0
  10. data/lib/worldline/acquiring/sdk/v1/disputeentries.rb +4 -0
  11. data/lib/worldline/acquiring/sdk/v1/disputemanagement/dispute_management_client.rb +152 -0
  12. data/lib/worldline/acquiring/sdk/v1/disputemanagement/get_dispute_params.rb +30 -0
  13. data/lib/worldline/acquiring/sdk/v1/disputemanagement.rb +4 -0
  14. data/lib/worldline/acquiring/sdk/v1/domain/accept_dispute_liability_request.rb +48 -0
  15. data/lib/worldline/acquiring/sdk/v1/domain/aes_ukpt_pin_encryption_data.rb +57 -0
  16. data/lib/worldline/acquiring/sdk/v1/domain/api_capture_request.rb +9 -0
  17. data/lib/worldline/acquiring/sdk/v1/domain/api_capture_request_for_refund.rb +9 -0
  18. data/lib/worldline/acquiring/sdk/v1/domain/by_acquirer_ids.rb +54 -0
  19. data/lib/worldline/acquiring/sdk/v1/domain/by_merchant_ids.rb +55 -0
  20. data/lib/worldline/acquiring/sdk/v1/domain/by_merchant_root_ids.rb +55 -0
  21. data/lib/worldline/acquiring/sdk/v1/domain/capture_point_of_sale_data.rb +39 -0
  22. data/lib/worldline/acquiring/sdk/v1/domain/card_payment_data_for_refund.rb +9 -0
  23. data/lib/worldline/acquiring/sdk/v1/domain/customer_service_data.rb +48 -0
  24. data/lib/worldline/acquiring/sdk/v1/domain/date_range.rb +43 -0
  25. data/lib/worldline/acquiring/sdk/v1/domain/date_time_range.rb +55 -0
  26. data/lib/worldline/acquiring/sdk/v1/domain/dispute_case.rb +144 -0
  27. data/lib/worldline/acquiring/sdk/v1/domain/dispute_case_with_entries.rb +39 -0
  28. data/lib/worldline/acquiring/sdk/v1/domain/dispute_date_time_data.rb +57 -0
  29. data/lib/worldline/acquiring/sdk/v1/domain/dispute_document.rb +48 -0
  30. data/lib/worldline/acquiring/sdk/v1/domain/dispute_document_id_item.rb +34 -0
  31. data/lib/worldline/acquiring/sdk/v1/domain/dispute_entry.rb +142 -0
  32. data/lib/worldline/acquiring/sdk/v1/domain/dispute_entry_resources.rb +55 -0
  33. data/lib/worldline/acquiring/sdk/v1/domain/dispute_entry_with_dispute_summary.rb +43 -0
  34. data/lib/worldline/acquiring/sdk/v1/domain/dispute_merchant_data.rb +55 -0
  35. data/lib/worldline/acquiring/sdk/v1/domain/dispute_merchant_data_base.rb +48 -0
  36. data/lib/worldline/acquiring/sdk/v1/domain/dispute_references.rb +41 -0
  37. data/lib/worldline/acquiring/sdk/v1/domain/dispute_response.rb +43 -0
  38. data/lib/worldline/acquiring/sdk/v1/domain/dispute_summary.rb +80 -0
  39. data/lib/worldline/acquiring/sdk/v1/domain/dukpt_pin_encryption_data.rb +50 -0
  40. data/lib/worldline/acquiring/sdk/v1/domain/merchant_data.rb +30 -0
  41. data/lib/worldline/acquiring/sdk/v1/domain/merchant_id_item.rb +41 -0
  42. data/lib/worldline/acquiring/sdk/v1/domain/merchant_root_id_item.rb +41 -0
  43. data/lib/worldline/acquiring/sdk/v1/domain/merchant_scope.rb +36 -0
  44. data/lib/worldline/acquiring/sdk/v1/domain/online_pin_data.rb +50 -0
  45. data/lib/worldline/acquiring/sdk/v1/domain/original_transaction_data.rb +97 -0
  46. data/lib/worldline/acquiring/sdk/v1/domain/original_transaction_references.rb +41 -0
  47. data/lib/worldline/acquiring/sdk/v1/domain/original_transaction_summary_data.rb +66 -0
  48. data/lib/worldline/acquiring/sdk/v1/domain/pagination_request.rb +48 -0
  49. data/lib/worldline/acquiring/sdk/v1/domain/pagination_response.rb +48 -0
  50. data/lib/worldline/acquiring/sdk/v1/domain/payment_method_data.rb +34 -0
  51. data/lib/worldline/acquiring/sdk/v1/domain/payment_method_data_base.rb +48 -0
  52. data/lib/worldline/acquiring/sdk/v1/domain/pin_encryption_data.rb +36 -0
  53. data/lib/worldline/acquiring/sdk/v1/domain/point_of_sale_data.rb +7 -12
  54. data/lib/worldline/acquiring/sdk/v1/domain/search_dispute_entries_request.rb +104 -0
  55. data/lib/worldline/acquiring/sdk/v1/domain/search_disputes_request.rb +179 -0
  56. data/lib/worldline/acquiring/sdk/v1/domain/search_disputes_response.rb +55 -0
  57. data/lib/worldline/acquiring/sdk/v1/domain/signed_amount_data.rb +55 -0
  58. data/lib/worldline/acquiring/sdk/v1/domain/submit_evidence_request.rb +69 -0
  59. data/lib/worldline/acquiring/sdk/v1/domain/terminal_data.rb +7 -0
  60. data/lib/worldline/acquiring/sdk/v1/domain/transaction_references_base.rb +48 -0
  61. data/lib/worldline/acquiring/sdk/v1/domain/transaction_references_dispute.rb +76 -0
  62. data/lib/worldline/acquiring/sdk/v1/domain/upload_document_response.rb +41 -0
  63. data/lib/worldline/acquiring/sdk/v1/domain/zpk_pin_encryption_data.rb +50 -0
  64. data/lib/worldline/acquiring/sdk/v1/v1_client.rb +24 -0
  65. metadata +55 -3
@@ -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] document_id
12
+ # @attr [String] file_name
13
+ # @attr [String] mime_type
14
+ class DisputeDocument < Worldline::Acquiring::SDK::Domain::DataObject
15
+
16
+ attr_accessor :document_id
17
+
18
+ attr_accessor :file_name
19
+
20
+ attr_accessor :mime_type
21
+
22
+ # @return (Hash)
23
+ def to_h
24
+ hash = super
25
+ hash['documentId'] = @document_id unless @document_id.nil?
26
+ hash['fileName'] = @file_name unless @file_name.nil?
27
+ hash['mimeType'] = @mime_type unless @mime_type.nil?
28
+ hash
29
+ end
30
+
31
+ def from_hash(hash)
32
+ super
33
+ if hash.has_key? 'documentId'
34
+ @document_id = hash['documentId']
35
+ end
36
+ if hash.has_key? 'fileName'
37
+ @file_name = hash['fileName']
38
+ end
39
+ if hash.has_key? 'mimeType'
40
+ @mime_type = hash['mimeType']
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/domain/data_object'
5
+
6
+ module Worldline
7
+ module Acquiring
8
+ module SDK
9
+ module V1
10
+ module Domain
11
+ # @attr [String] document_id
12
+ class DisputeDocumentIdItem < Worldline::Acquiring::SDK::Domain::DataObject
13
+
14
+ attr_accessor :document_id
15
+
16
+ # @return (Hash)
17
+ def to_h
18
+ hash = super
19
+ hash['documentId'] = @document_id unless @document_id.nil?
20
+ hash
21
+ end
22
+
23
+ def from_hash(hash)
24
+ super
25
+ if hash.has_key? 'documentId'
26
+ @document_id = hash['documentId']
27
+ end
28
+ end
29
+ end
30
+ end
31
+ end
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,142 @@
1
+ #
2
+ # This file was automatically generated.
3
+ #
4
+ require 'date'
5
+
6
+ require 'worldline/acquiring/sdk/domain/data_object'
7
+ require 'worldline/acquiring/sdk/v1/domain/amount_data'
8
+ require 'worldline/acquiring/sdk/v1/domain/dispute_document'
9
+
10
+ module Worldline
11
+ module Acquiring
12
+ module SDK
13
+ module V1
14
+ module Domain
15
+ # @attr [Array<Worldline::Acquiring::SDK::V1::Domain::DisputeDocument>] documents
16
+ # @attr [String] elaboration
17
+ # @attr [String] entry_category
18
+ # @attr [String] entry_date_time
19
+ # @attr [String] entry_id
20
+ # @attr [String] entry_type
21
+ # @attr [String] entry_type_description
22
+ # @attr [String] message_text
23
+ # @attr [String] questionnaire
24
+ # @attr [Date] response_due_date
25
+ # @attr [String] scheme_reason
26
+ # @attr [String] scheme_reason_description
27
+ # @attr [Worldline::Acquiring::SDK::V1::Domain::AmountData] settlement_amount
28
+ # @attr [Worldline::Acquiring::SDK::V1::Domain::AmountData] transaction_amount
29
+ # @attr [String] user_id
30
+ class DisputeEntry < Worldline::Acquiring::SDK::Domain::DataObject
31
+
32
+ attr_accessor :documents
33
+
34
+ attr_accessor :elaboration
35
+
36
+ attr_accessor :entry_category
37
+
38
+ attr_accessor :entry_date_time
39
+
40
+ attr_accessor :entry_id
41
+
42
+ attr_accessor :entry_type
43
+
44
+ attr_accessor :entry_type_description
45
+
46
+ attr_accessor :message_text
47
+
48
+ attr_accessor :questionnaire
49
+
50
+ attr_accessor :response_due_date
51
+
52
+ attr_accessor :scheme_reason
53
+
54
+ attr_accessor :scheme_reason_description
55
+
56
+ attr_accessor :settlement_amount
57
+
58
+ attr_accessor :transaction_amount
59
+
60
+ attr_accessor :user_id
61
+
62
+ # @return (Hash)
63
+ def to_h
64
+ hash = super
65
+ hash['documents'] = @documents.collect{|val| val.to_h} unless @documents.nil?
66
+ hash['elaboration'] = @elaboration unless @elaboration.nil?
67
+ hash['entryCategory'] = @entry_category unless @entry_category.nil?
68
+ hash['entryDateTime'] = @entry_date_time unless @entry_date_time.nil?
69
+ hash['entryId'] = @entry_id unless @entry_id.nil?
70
+ hash['entryType'] = @entry_type unless @entry_type.nil?
71
+ hash['entryTypeDescription'] = @entry_type_description unless @entry_type_description.nil?
72
+ hash['messageText'] = @message_text unless @message_text.nil?
73
+ hash['questionnaire'] = @questionnaire unless @questionnaire.nil?
74
+ hash['responseDueDate'] = @response_due_date.iso8601 unless @response_due_date.nil?
75
+ hash['schemeReason'] = @scheme_reason unless @scheme_reason.nil?
76
+ hash['schemeReasonDescription'] = @scheme_reason_description unless @scheme_reason_description.nil?
77
+ hash['settlementAmount'] = @settlement_amount.to_h unless @settlement_amount.nil?
78
+ hash['transactionAmount'] = @transaction_amount.to_h unless @transaction_amount.nil?
79
+ hash['userId'] = @user_id unless @user_id.nil?
80
+ hash
81
+ end
82
+
83
+ def from_hash(hash)
84
+ super
85
+ if hash.has_key? 'documents'
86
+ raise TypeError, "value '%s' is not an Array" % [hash['documents']] unless hash['documents'].is_a? Array
87
+ @documents = []
88
+ hash['documents'].each do |e|
89
+ @documents << Worldline::Acquiring::SDK::V1::Domain::DisputeDocument.new_from_hash(e)
90
+ end
91
+ end
92
+ if hash.has_key? 'elaboration'
93
+ @elaboration = hash['elaboration']
94
+ end
95
+ if hash.has_key? 'entryCategory'
96
+ @entry_category = hash['entryCategory']
97
+ end
98
+ if hash.has_key? 'entryDateTime'
99
+ @entry_date_time = hash['entryDateTime']
100
+ end
101
+ if hash.has_key? 'entryId'
102
+ @entry_id = hash['entryId']
103
+ end
104
+ if hash.has_key? 'entryType'
105
+ @entry_type = hash['entryType']
106
+ end
107
+ if hash.has_key? 'entryTypeDescription'
108
+ @entry_type_description = hash['entryTypeDescription']
109
+ end
110
+ if hash.has_key? 'messageText'
111
+ @message_text = hash['messageText']
112
+ end
113
+ if hash.has_key? 'questionnaire'
114
+ @questionnaire = hash['questionnaire']
115
+ end
116
+ if hash.has_key? 'responseDueDate'
117
+ @response_due_date = Date.parse(hash['responseDueDate'])
118
+ end
119
+ if hash.has_key? 'schemeReason'
120
+ @scheme_reason = hash['schemeReason']
121
+ end
122
+ if hash.has_key? 'schemeReasonDescription'
123
+ @scheme_reason_description = hash['schemeReasonDescription']
124
+ end
125
+ if hash.has_key? 'settlementAmount'
126
+ raise TypeError, "value '%s' is not a Hash" % [hash['settlementAmount']] unless hash['settlementAmount'].is_a? Hash
127
+ @settlement_amount = Worldline::Acquiring::SDK::V1::Domain::AmountData.new_from_hash(hash['settlementAmount'])
128
+ end
129
+ if hash.has_key? 'transactionAmount'
130
+ raise TypeError, "value '%s' is not a Hash" % [hash['transactionAmount']] unless hash['transactionAmount'].is_a? Hash
131
+ @transaction_amount = Worldline::Acquiring::SDK::V1::Domain::AmountData.new_from_hash(hash['transactionAmount'])
132
+ end
133
+ if hash.has_key? 'userId'
134
+ @user_id = hash['userId']
135
+ end
136
+ end
137
+ end
138
+ end
139
+ end
140
+ end
141
+ end
142
+ end
@@ -0,0 +1,55 @@
1
+ #
2
+ # This file was automatically generated.
3
+ #
4
+ require 'worldline/acquiring/sdk/domain/data_object'
5
+ require 'worldline/acquiring/sdk/v1/domain/dispute_entry_with_dispute_summary'
6
+ require 'worldline/acquiring/sdk/v1/domain/pagination_response'
7
+
8
+ module Worldline
9
+ module Acquiring
10
+ module SDK
11
+ module V1
12
+ module Domain
13
+ # @attr [Array<Worldline::Acquiring::SDK::V1::Domain::DisputeEntryWithDisputeSummary>] dispute_entries
14
+ # @attr [Worldline::Acquiring::SDK::V1::Domain::PaginationResponse] pagination
15
+ # @attr [String] request_id
16
+ class DisputeEntryResources < Worldline::Acquiring::SDK::Domain::DataObject
17
+
18
+ attr_accessor :dispute_entries
19
+
20
+ attr_accessor :pagination
21
+
22
+ attr_accessor :request_id
23
+
24
+ # @return (Hash)
25
+ def to_h
26
+ hash = super
27
+ hash['disputeEntries'] = @dispute_entries.collect{|val| val.to_h} unless @dispute_entries.nil?
28
+ hash['pagination'] = @pagination.to_h unless @pagination.nil?
29
+ hash['requestId'] = @request_id unless @request_id.nil?
30
+ hash
31
+ end
32
+
33
+ def from_hash(hash)
34
+ super
35
+ if hash.has_key? 'disputeEntries'
36
+ raise TypeError, "value '%s' is not an Array" % [hash['disputeEntries']] unless hash['disputeEntries'].is_a? Array
37
+ @dispute_entries = []
38
+ hash['disputeEntries'].each do |e|
39
+ @dispute_entries << Worldline::Acquiring::SDK::V1::Domain::DisputeEntryWithDisputeSummary.new_from_hash(e)
40
+ end
41
+ end
42
+ if hash.has_key? 'pagination'
43
+ raise TypeError, "value '%s' is not a Hash" % [hash['pagination']] unless hash['pagination'].is_a? Hash
44
+ @pagination = Worldline::Acquiring::SDK::V1::Domain::PaginationResponse.new_from_hash(hash['pagination'])
45
+ end
46
+ if hash.has_key? 'requestId'
47
+ @request_id = hash['requestId']
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end
53
+ end
54
+ end
55
+ end
@@ -0,0 +1,43 @@
1
+ #
2
+ # This file was automatically generated.
3
+ #
4
+ require 'worldline/acquiring/sdk/v1/domain/dispute_entry'
5
+ require 'worldline/acquiring/sdk/v1/domain/dispute_summary'
6
+
7
+ module Worldline
8
+ module Acquiring
9
+ module SDK
10
+ module V1
11
+ module Domain
12
+ # @attr [String] dispute_id
13
+ # @attr [Worldline::Acquiring::SDK::V1::Domain::DisputeSummary] dispute_summary
14
+ class DisputeEntryWithDisputeSummary < Worldline::Acquiring::SDK::V1::Domain::DisputeEntry
15
+
16
+ attr_accessor :dispute_id
17
+
18
+ attr_accessor :dispute_summary
19
+
20
+ # @return (Hash)
21
+ def to_h
22
+ hash = super
23
+ hash['disputeId'] = @dispute_id unless @dispute_id.nil?
24
+ hash['disputeSummary'] = @dispute_summary.to_h unless @dispute_summary.nil?
25
+ hash
26
+ end
27
+
28
+ def from_hash(hash)
29
+ super
30
+ if hash.has_key? 'disputeId'
31
+ @dispute_id = hash['disputeId']
32
+ end
33
+ if hash.has_key? 'disputeSummary'
34
+ raise TypeError, "value '%s' is not a Hash" % [hash['disputeSummary']] unless hash['disputeSummary'].is_a? Hash
35
+ @dispute_summary = Worldline::Acquiring::SDK::V1::Domain::DisputeSummary.new_from_hash(hash['disputeSummary'])
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/v1/domain/dispute_merchant_data_base'
5
+
6
+ module Worldline
7
+ module Acquiring
8
+ module SDK
9
+ module V1
10
+ module Domain
11
+ # @attr [Integer] merchant_category_code
12
+ # @attr [String] merchant_city
13
+ # @attr [String] merchant_country_code
14
+ # @attr [String] merchant_name
15
+ class DisputeMerchantData < Worldline::Acquiring::SDK::V1::Domain::DisputeMerchantDataBase
16
+
17
+ attr_accessor :merchant_category_code
18
+
19
+ attr_accessor :merchant_city
20
+
21
+ attr_accessor :merchant_country_code
22
+
23
+ attr_accessor :merchant_name
24
+
25
+ # @return (Hash)
26
+ def to_h
27
+ hash = super
28
+ hash['merchantCategoryCode'] = @merchant_category_code unless @merchant_category_code.nil?
29
+ hash['merchantCity'] = @merchant_city unless @merchant_city.nil?
30
+ hash['merchantCountryCode'] = @merchant_country_code unless @merchant_country_code.nil?
31
+ hash['merchantName'] = @merchant_name unless @merchant_name.nil?
32
+ hash
33
+ end
34
+
35
+ def from_hash(hash)
36
+ super
37
+ if hash.has_key? 'merchantCategoryCode'
38
+ @merchant_category_code = hash['merchantCategoryCode']
39
+ end
40
+ if hash.has_key? 'merchantCity'
41
+ @merchant_city = hash['merchantCity']
42
+ end
43
+ if hash.has_key? 'merchantCountryCode'
44
+ @merchant_country_code = hash['merchantCountryCode']
45
+ end
46
+ if hash.has_key? 'merchantName'
47
+ @merchant_name = hash['merchantName']
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end
53
+ end
54
+ end
55
+ 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] acquirer_id
12
+ # @attr [String] merchant_id
13
+ # @attr [String] merchant_root_id
14
+ class DisputeMerchantDataBase < Worldline::Acquiring::SDK::Domain::DataObject
15
+
16
+ attr_accessor :acquirer_id
17
+
18
+ attr_accessor :merchant_id
19
+
20
+ attr_accessor :merchant_root_id
21
+
22
+ # @return (Hash)
23
+ def to_h
24
+ hash = super
25
+ hash['acquirerId'] = @acquirer_id unless @acquirer_id.nil?
26
+ hash['merchantId'] = @merchant_id unless @merchant_id.nil?
27
+ hash['merchantRootId'] = @merchant_root_id unless @merchant_root_id.nil?
28
+ hash
29
+ end
30
+
31
+ def from_hash(hash)
32
+ super
33
+ if hash.has_key? 'acquirerId'
34
+ @acquirer_id = hash['acquirerId']
35
+ end
36
+ if hash.has_key? 'merchantId'
37
+ @merchant_id = hash['merchantId']
38
+ end
39
+ if hash.has_key? 'merchantRootId'
40
+ @merchant_root_id = hash['merchantRootId']
41
+ end
42
+ end
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
48
+ 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_dispute_reference
12
+ # @attr [String] scheme_dispute_reference
13
+ class DisputeReferences < Worldline::Acquiring::SDK::Domain::DataObject
14
+
15
+ attr_accessor :acquirer_dispute_reference
16
+
17
+ attr_accessor :scheme_dispute_reference
18
+
19
+ # @return (Hash)
20
+ def to_h
21
+ hash = super
22
+ hash['acquirerDisputeReference'] = @acquirer_dispute_reference unless @acquirer_dispute_reference.nil?
23
+ hash['schemeDisputeReference'] = @scheme_dispute_reference unless @scheme_dispute_reference.nil?
24
+ hash
25
+ end
26
+
27
+ def from_hash(hash)
28
+ super
29
+ if hash.has_key? 'acquirerDisputeReference'
30
+ @acquirer_dispute_reference = hash['acquirerDisputeReference']
31
+ end
32
+ if hash.has_key? 'schemeDisputeReference'
33
+ @scheme_dispute_reference = hash['schemeDisputeReference']
34
+ end
35
+ end
36
+ end
37
+ end
38
+ end
39
+ end
40
+ end
41
+ end
@@ -0,0 +1,43 @@
1
+ #
2
+ # This file was automatically generated.
3
+ #
4
+ require 'worldline/acquiring/sdk/domain/data_object'
5
+ require 'worldline/acquiring/sdk/v1/domain/dispute_case_with_entries'
6
+
7
+ module Worldline
8
+ module Acquiring
9
+ module SDK
10
+ module V1
11
+ module Domain
12
+ # @attr [Worldline::Acquiring::SDK::V1::Domain::DisputeCaseWithEntries] dispute
13
+ # @attr [String] request_id
14
+ class DisputeResponse < Worldline::Acquiring::SDK::Domain::DataObject
15
+
16
+ attr_accessor :dispute
17
+
18
+ attr_accessor :request_id
19
+
20
+ # @return (Hash)
21
+ def to_h
22
+ hash = super
23
+ hash['dispute'] = @dispute.to_h unless @dispute.nil?
24
+ hash['requestId'] = @request_id unless @request_id.nil?
25
+ hash
26
+ end
27
+
28
+ def from_hash(hash)
29
+ super
30
+ if hash.has_key? 'dispute'
31
+ raise TypeError, "value '%s' is not a Hash" % [hash['dispute']] unless hash['dispute'].is_a? Hash
32
+ @dispute = Worldline::Acquiring::SDK::V1::Domain::DisputeCaseWithEntries.new_from_hash(hash['dispute'])
33
+ end
34
+ if hash.has_key? 'requestId'
35
+ @request_id = hash['requestId']
36
+ end
37
+ end
38
+ end
39
+ end
40
+ end
41
+ end
42
+ end
43
+ end
@@ -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