onlinepayments-sdk-ruby 9.1.0 → 10.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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 63e62925d34c894fc380a07a0d295d2365994a8cb92c536c3539da084c9febc3
|
|
4
|
+
data.tar.gz: e212bcbc15034f90b6ce22b81f8caf2eba4446f5cac7befee35aac4d0a821d9b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b87c5aab4e28abdfe3867307c5ede2ee80d1f05c06186f5ab4ecb0fd25314faa4f09e22dbaeb9cb2ad19fefdf579d7896542cc2beb5bc002885275da4ab7c24e
|
|
7
|
+
data.tar.gz: ee83263d2cf3e48fa6a8cb7309d418094005f7d62e96825d2dc0e6bc16e642a155aabc80b638eef20192da8c6bd4cc125ffd56b29008ef84be26bd714a0f375d
|
|
@@ -13,7 +13,7 @@ module OnlinePayments
|
|
|
13
13
|
class MetadataProvider
|
|
14
14
|
private
|
|
15
15
|
|
|
16
|
-
SDK_VERSION = '
|
|
16
|
+
SDK_VERSION = '10.0.0'.freeze
|
|
17
17
|
SERVER_META_INFO_HEADER = 'X-GCS-ServerMetaInfo'.freeze
|
|
18
18
|
PROHIBITED_HEADERS = [SERVER_META_INFO_HEADER, 'X-GCS-Idempotence-Key', 'Date', 'Content-Type', 'Authorization'].sort!.freeze
|
|
19
19
|
CHARSET = 'utf-8'.freeze
|
|
@@ -16,11 +16,11 @@ module OnlinePayments
|
|
|
16
16
|
# @attr [String, nil] distance_unit
|
|
17
17
|
# @attr [String, nil] driver_identification_number
|
|
18
18
|
# @attr [String, nil] driver_tax_number
|
|
19
|
-
# @attr [OnlinePayments::SDK::Domain::CarRentalPickupReturnData, nil]
|
|
19
|
+
# @attr [OnlinePayments::SDK::Domain::CarRentalPickupReturnData, nil] pickup_details
|
|
20
20
|
# @attr [Integer, nil] rental_rate_amount
|
|
21
21
|
# @attr [String, nil] rental_rate_type
|
|
22
22
|
# @attr [String, nil] renter_name
|
|
23
|
-
# @attr [OnlinePayments::SDK::Domain::CarRentalPickupReturnData, nil]
|
|
23
|
+
# @attr [OnlinePayments::SDK::Domain::CarRentalPickupReturnData, nil] return_details
|
|
24
24
|
# @attr [true/false, nil] tax_exempt_indicator
|
|
25
25
|
# @attr [String, nil] toll_free_number
|
|
26
26
|
# @attr [OnlinePayments::SDK::Domain::CarRentalVehicleData, nil] vehicle
|
|
@@ -42,7 +42,7 @@ module OnlinePayments
|
|
|
42
42
|
|
|
43
43
|
attr_accessor :driver_tax_number
|
|
44
44
|
|
|
45
|
-
attr_accessor :
|
|
45
|
+
attr_accessor :pickup_details
|
|
46
46
|
|
|
47
47
|
attr_accessor :rental_rate_amount
|
|
48
48
|
|
|
@@ -50,7 +50,7 @@ module OnlinePayments
|
|
|
50
50
|
|
|
51
51
|
attr_accessor :renter_name
|
|
52
52
|
|
|
53
|
-
attr_accessor :
|
|
53
|
+
attr_accessor :return_details
|
|
54
54
|
|
|
55
55
|
attr_accessor :tax_exempt_indicator
|
|
56
56
|
|
|
@@ -69,11 +69,11 @@ module OnlinePayments
|
|
|
69
69
|
hash['distanceUnit'] = @distance_unit unless @distance_unit.nil?
|
|
70
70
|
hash['driverIdentificationNumber'] = @driver_identification_number unless @driver_identification_number.nil?
|
|
71
71
|
hash['driverTaxNumber'] = @driver_tax_number unless @driver_tax_number.nil?
|
|
72
|
-
hash['
|
|
72
|
+
hash['pickupDetails'] = @pickup_details.to_h unless @pickup_details.nil?
|
|
73
73
|
hash['rentalRateAmount'] = @rental_rate_amount unless @rental_rate_amount.nil?
|
|
74
74
|
hash['rentalRateType'] = @rental_rate_type unless @rental_rate_type.nil?
|
|
75
75
|
hash['renterName'] = @renter_name unless @renter_name.nil?
|
|
76
|
-
hash['
|
|
76
|
+
hash['returnDetails'] = @return_details.to_h unless @return_details.nil?
|
|
77
77
|
hash['taxExemptIndicator'] = @tax_exempt_indicator unless @tax_exempt_indicator.nil?
|
|
78
78
|
hash['tollFreeNumber'] = @toll_free_number unless @toll_free_number.nil?
|
|
79
79
|
hash['vehicle'] = @vehicle.to_h unless @vehicle.nil?
|
|
@@ -106,9 +106,9 @@ module OnlinePayments
|
|
|
106
106
|
if hash.has_key? 'driverTaxNumber'
|
|
107
107
|
@driver_tax_number = hash['driverTaxNumber']
|
|
108
108
|
end
|
|
109
|
-
if hash.has_key? '
|
|
110
|
-
raise TypeError, "value '%s' is not a Hash" % [hash['
|
|
111
|
-
@
|
|
109
|
+
if hash.has_key? 'pickupDetails'
|
|
110
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['pickupDetails']] unless hash['pickupDetails'].is_a? Hash
|
|
111
|
+
@pickup_details = OnlinePayments::SDK::Domain::CarRentalPickupReturnData.new_from_hash(hash['pickupDetails'])
|
|
112
112
|
end
|
|
113
113
|
if hash.has_key? 'rentalRateAmount'
|
|
114
114
|
@rental_rate_amount = hash['rentalRateAmount']
|
|
@@ -119,9 +119,9 @@ module OnlinePayments
|
|
|
119
119
|
if hash.has_key? 'renterName'
|
|
120
120
|
@renter_name = hash['renterName']
|
|
121
121
|
end
|
|
122
|
-
if hash.has_key? '
|
|
123
|
-
raise TypeError, "value '%s' is not a Hash" % [hash['
|
|
124
|
-
@
|
|
122
|
+
if hash.has_key? 'returnDetails'
|
|
123
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['returnDetails']] unless hash['returnDetails'].is_a? Hash
|
|
124
|
+
@return_details = OnlinePayments::SDK::Domain::CarRentalPickupReturnData.new_from_hash(hash['returnDetails'])
|
|
125
125
|
end
|
|
126
126
|
if hash.has_key? 'taxExemptIndicator'
|
|
127
127
|
@tax_exempt_indicator = hash['taxExemptIndicator']
|
|
@@ -39,6 +39,7 @@ module OnlinePayments
|
|
|
39
39
|
# @attr [Integer, nil] payment_product_id
|
|
40
40
|
# @attr [OnlinePayments::SDK::Domain::ReattemptInstructions, nil] reattempt_instructions
|
|
41
41
|
# @attr [String, nil] scheme_reference_data
|
|
42
|
+
# @attr [String, nil] scheme_transaction_id
|
|
42
43
|
# @attr [OnlinePayments::SDK::Domain::ThreeDSecureResults, nil] three_d_secure_results
|
|
43
44
|
# @attr [String, nil] token
|
|
44
45
|
class CardPaymentMethodSpecificOutput < OnlinePayments::SDK::Domain::DataObject
|
|
@@ -83,6 +84,8 @@ module OnlinePayments
|
|
|
83
84
|
|
|
84
85
|
attr_accessor :scheme_reference_data
|
|
85
86
|
|
|
87
|
+
attr_accessor :scheme_transaction_id
|
|
88
|
+
|
|
86
89
|
attr_accessor :three_d_secure_results
|
|
87
90
|
|
|
88
91
|
attr_accessor :token
|
|
@@ -110,6 +113,7 @@ module OnlinePayments
|
|
|
110
113
|
hash['paymentProductId'] = @payment_product_id unless @payment_product_id.nil?
|
|
111
114
|
hash['reattemptInstructions'] = @reattempt_instructions.to_h unless @reattempt_instructions.nil?
|
|
112
115
|
hash['schemeReferenceData'] = @scheme_reference_data unless @scheme_reference_data.nil?
|
|
116
|
+
hash['schemeTransactionId'] = @scheme_transaction_id unless @scheme_transaction_id.nil?
|
|
113
117
|
hash['threeDSecureResults'] = @three_d_secure_results.to_h unless @three_d_secure_results.nil?
|
|
114
118
|
hash['token'] = @token unless @token.nil?
|
|
115
119
|
hash
|
|
@@ -189,6 +193,9 @@ module OnlinePayments
|
|
|
189
193
|
if hash.has_key? 'schemeReferenceData'
|
|
190
194
|
@scheme_reference_data = hash['schemeReferenceData']
|
|
191
195
|
end
|
|
196
|
+
if hash.has_key? 'schemeTransactionId'
|
|
197
|
+
@scheme_transaction_id = hash['schemeTransactionId']
|
|
198
|
+
end
|
|
192
199
|
if hash.has_key? 'threeDSecureResults'
|
|
193
200
|
raise TypeError, "value '%s' is not a Hash" % [hash['threeDSecureResults']] unless hash['threeDSecureResults'].is_a? Hash
|
|
194
201
|
@three_d_secure_results = OnlinePayments::SDK::Domain::ThreeDSecureResults.new_from_hash(hash['threeDSecureResults'])
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Gem::Specification.new do |spec|
|
|
2
2
|
spec.name = 'onlinepayments-sdk-ruby'
|
|
3
|
-
spec.version = '
|
|
3
|
+
spec.version = '10.0.0'
|
|
4
4
|
spec.authors = ['Worldline Direct support team']
|
|
5
5
|
spec.email = ['82139942+worldline-direct-support-team@users.noreply.github.com']
|
|
6
6
|
spec.summary = %q{SDK to communicate with the Online Payments platform using the Online Payments Server API}
|