onlinepayments-sdk-ruby 6.4.0 → 7.1.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/README.md +1 -1
- data/lib/onlinepayments/sdk/communication/metadata_provider.rb +1 -1
- data/lib/onlinepayments/sdk/domain/cancel_payment_request.rb +12 -0
- data/lib/onlinepayments/sdk/domain/capture_payment_request.rb +12 -0
- data/lib/onlinepayments/sdk/domain/card_data_without_cvv.rb +44 -0
- data/lib/onlinepayments/sdk/domain/card_payment_method_specific_input.rb +9 -0
- data/lib/onlinepayments/sdk/domain/card_payment_method_specific_input_base.rb +9 -0
- data/lib/onlinepayments/sdk/domain/card_payment_method_specific_input_for_hosted_checkout.rb +7 -0
- data/lib/onlinepayments/sdk/domain/create_certificate_response.rb +37 -0
- data/lib/onlinepayments/sdk/domain/create_hosted_fields_session_request.rb +30 -0
- data/lib/onlinepayments/sdk/domain/create_hosted_fields_session_response.rb +46 -0
- data/lib/onlinepayments/sdk/domain/create_payment_link_request.rb +7 -0
- data/lib/onlinepayments/sdk/domain/create_payment_request.rb +9 -0
- data/lib/onlinepayments/sdk/domain/created_token_response.rb +9 -0
- data/lib/onlinepayments/sdk/domain/credit_card_specific_input_hosted_tokenization.rb +3 -3
- data/lib/onlinepayments/sdk/domain/credit_card_validation_rules.rb +37 -0
- data/lib/onlinepayments/sdk/domain/crm_token.rb +37 -0
- data/lib/onlinepayments/sdk/domain/csr_request.rb +30 -0
- data/lib/onlinepayments/sdk/domain/detokenization_response.rb +35 -0
- data/lib/onlinepayments/sdk/domain/detokenized_token_response.rb +72 -0
- data/lib/onlinepayments/sdk/domain/g_pay_three_d_secure.rb +7 -0
- data/lib/onlinepayments/sdk/domain/hosted_checkout_specific_input.rb +9 -0
- data/lib/onlinepayments/sdk/domain/import_cof_series_request.rb +60 -0
- data/lib/onlinepayments/sdk/domain/import_cof_series_response.rb +30 -0
- data/lib/onlinepayments/sdk/domain/line_item_detail.rb +37 -0
- data/lib/onlinepayments/sdk/domain/market_place.rb +37 -0
- data/lib/onlinepayments/sdk/domain/omnichannel_payment_specific_input.rb +30 -0
- data/lib/onlinepayments/sdk/domain/omnichannel_payout_specific_input.rb +7 -0
- data/lib/onlinepayments/sdk/domain/omnichannel_subsequent_specific_input.rb +30 -0
- data/lib/onlinepayments/sdk/domain/payment_link_response.rb +7 -0
- data/lib/onlinepayments/sdk/domain/payment_output.rb +9 -0
- data/lib/onlinepayments/sdk/domain/payment_product840.rb +30 -0
- data/lib/onlinepayments/sdk/domain/payment_product840_specific_output.rb +15 -0
- data/lib/onlinepayments/sdk/domain/payment_response.rb +9 -0
- data/lib/onlinepayments/sdk/domain/redirect_payment_method_specific_input.rb +18 -0
- data/lib/onlinepayments/sdk/domain/redirect_payment_product11_specific_input.rb +32 -0
- data/lib/onlinepayments/sdk/domain/redirect_payment_product3307_specific_input.rb +13 -0
- data/lib/onlinepayments/sdk/domain/redirect_payment_product5300_specific_input.rb +7 -0
- data/lib/onlinepayments/sdk/domain/refund_redirect_payment_method_specific_input.rb +32 -0
- data/lib/onlinepayments/sdk/domain/refund_redirect_payment_product900_specific_input.rb +30 -0
- data/lib/onlinepayments/sdk/domain/refund_request.rb +21 -0
- data/lib/onlinepayments/sdk/domain/session_data.rb +62 -0
- data/lib/onlinepayments/sdk/domain/session_details.rb +37 -0
- data/lib/onlinepayments/sdk/domain/shopping_cart_output.rb +35 -0
- data/lib/onlinepayments/sdk/domain/show_form_data.rb +9 -0
- data/lib/onlinepayments/sdk/domain/split_payment_product_filter.rb +34 -0
- data/lib/onlinepayments/sdk/domain/split_payment_product_filters_hosted_checkout.rb +40 -0
- data/lib/onlinepayments/sdk/domain/subsequent_card_payment_method_specific_input.rb +9 -0
- data/lib/onlinepayments/sdk/domain/subsequent_payment_request.rb +9 -0
- data/lib/onlinepayments/sdk/domain/token_response.rb +9 -0
- data/lib/onlinepayments/sdk/merchant/cofseries/cof_series_client.rb +55 -0
- data/lib/onlinepayments/sdk/merchant/cofseries.rb +4 -0
- data/lib/onlinepayments/sdk/merchant/hostedfields/hosted_fields_client.rb +55 -0
- data/lib/onlinepayments/sdk/merchant/hostedfields.rb +4 -0
- data/lib/onlinepayments/sdk/merchant/merchant_client.rb +26 -2
- data/lib/onlinepayments/sdk/merchant/paymentlinks/payment_links_client.rb +0 -29
- data/lib/onlinepayments/sdk/merchant/payouts/payouts_client.rb +19 -19
- data/lib/onlinepayments/sdk/merchant/tokenization/get_card_data_by_payments_params.rb +40 -0
- data/lib/onlinepayments/sdk/merchant/tokenization/get_card_data_by_tokens_params.rb +40 -0
- data/lib/onlinepayments/sdk/merchant/tokenization/tokenization_client.rb +112 -0
- data/lib/onlinepayments/sdk/merchant/tokenization.rb +4 -0
- data/lib/onlinepayments/sdk/merchant/tokens/tokens_client.rb +24 -24
- data/onlinepayments-sdk-ruby.gemspec +1 -1
- metadata +35 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5e7cb9ac92f598fdb1b46de7835bc571cc1ea6ae6dbc8280e0b8d4bd11d66789
|
|
4
|
+
data.tar.gz: 68a5f622d5e0f09218c4011d9221e13cb6a04040e72edbc125796e0d67c3739d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 71a201da39a7eaea4df36a890264e6d1b24f698cbf9b182ae3b456baea515cba83ced63744b224b905d1e2a7a5476de5e32ace889b2ba749983a4ac489139b21
|
|
7
|
+
data.tar.gz: a3147cade391aa8a68aa2dc64a116de320a91d29e7ada868144a6f03d91db9d9a82105edabb995fc945a141c9c13a4b92a85bed99080f3dad1c27917fe62a562
|
data/README.md
CHANGED
|
@@ -10,7 +10,7 @@ The Ruby SDK helps you to communicate with the payment platform server API. Its
|
|
|
10
10
|
* handling of all the details concerning authentication
|
|
11
11
|
* handling of required metadata
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
See the [Online Payments Developer Hub](https://github.com/Online-Payments/sdk-ruby/) for more information on how to use the SDK.
|
|
14
14
|
|
|
15
15
|
## Structure of this repository
|
|
16
16
|
|
|
@@ -13,7 +13,7 @@ module OnlinePayments
|
|
|
13
13
|
class MetadataProvider
|
|
14
14
|
private
|
|
15
15
|
|
|
16
|
-
SDK_VERSION = '
|
|
16
|
+
SDK_VERSION = '7.1.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
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
#
|
|
4
4
|
require 'onlinepayments/sdk/domain/amount_of_money'
|
|
5
5
|
require 'onlinepayments/sdk/domain/data_object'
|
|
6
|
+
require 'onlinepayments/sdk/domain/line_item_detail'
|
|
6
7
|
require 'onlinepayments/sdk/domain/operation_payment_references'
|
|
7
8
|
|
|
8
9
|
module OnlinePayments
|
|
@@ -10,6 +11,7 @@ module OnlinePayments
|
|
|
10
11
|
module Domain
|
|
11
12
|
# @attr [OnlinePayments::SDK::Domain::AmountOfMoney] amount_of_money
|
|
12
13
|
# @attr [true/false] is_final
|
|
14
|
+
# @attr [Array<OnlinePayments::SDK::Domain::LineItemDetail>] line_item_details
|
|
13
15
|
# @attr [OnlinePayments::SDK::Domain::OperationPaymentReferences] operation_references
|
|
14
16
|
class CancelPaymentRequest < OnlinePayments::SDK::Domain::DataObject
|
|
15
17
|
|
|
@@ -17,6 +19,8 @@ module OnlinePayments
|
|
|
17
19
|
|
|
18
20
|
attr_accessor :is_final
|
|
19
21
|
|
|
22
|
+
attr_accessor :line_item_details
|
|
23
|
+
|
|
20
24
|
attr_accessor :operation_references
|
|
21
25
|
|
|
22
26
|
# @return (Hash)
|
|
@@ -24,6 +28,7 @@ module OnlinePayments
|
|
|
24
28
|
hash = super
|
|
25
29
|
hash['amountOfMoney'] = @amount_of_money.to_h unless @amount_of_money.nil?
|
|
26
30
|
hash['isFinal'] = @is_final unless @is_final.nil?
|
|
31
|
+
hash['lineItemDetails'] = @line_item_details.collect{|val| val.to_h} unless @line_item_details.nil?
|
|
27
32
|
hash['operationReferences'] = @operation_references.to_h unless @operation_references.nil?
|
|
28
33
|
hash
|
|
29
34
|
end
|
|
@@ -37,6 +42,13 @@ module OnlinePayments
|
|
|
37
42
|
if hash.has_key? 'isFinal'
|
|
38
43
|
@is_final = hash['isFinal']
|
|
39
44
|
end
|
|
45
|
+
if hash.has_key? 'lineItemDetails'
|
|
46
|
+
raise TypeError, "value '%s' is not an Array" % [hash['lineItemDetails']] unless hash['lineItemDetails'].is_a? Array
|
|
47
|
+
@line_item_details = []
|
|
48
|
+
hash['lineItemDetails'].each do |e|
|
|
49
|
+
@line_item_details << OnlinePayments::SDK::Domain::LineItemDetail.new_from_hash(e)
|
|
50
|
+
end
|
|
51
|
+
end
|
|
40
52
|
if hash.has_key? 'operationReferences'
|
|
41
53
|
raise TypeError, "value '%s' is not a Hash" % [hash['operationReferences']] unless hash['operationReferences'].is_a? Hash
|
|
42
54
|
@operation_references = OnlinePayments::SDK::Domain::OperationPaymentReferences.new_from_hash(hash['operationReferences'])
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
# This file was automatically generated.
|
|
3
3
|
#
|
|
4
4
|
require 'onlinepayments/sdk/domain/data_object'
|
|
5
|
+
require 'onlinepayments/sdk/domain/line_item_detail'
|
|
5
6
|
require 'onlinepayments/sdk/domain/operation_payment_references'
|
|
6
7
|
require 'onlinepayments/sdk/domain/payment_references'
|
|
7
8
|
|
|
@@ -10,6 +11,7 @@ module OnlinePayments
|
|
|
10
11
|
module Domain
|
|
11
12
|
# @attr [Integer] amount
|
|
12
13
|
# @attr [true/false] is_final
|
|
14
|
+
# @attr [Array<OnlinePayments::SDK::Domain::LineItemDetail>] line_item_details
|
|
13
15
|
# @attr [OnlinePayments::SDK::Domain::OperationPaymentReferences] operation_references
|
|
14
16
|
# @attr [OnlinePayments::SDK::Domain::PaymentReferences] references
|
|
15
17
|
class CapturePaymentRequest < OnlinePayments::SDK::Domain::DataObject
|
|
@@ -18,6 +20,8 @@ module OnlinePayments
|
|
|
18
20
|
|
|
19
21
|
attr_accessor :is_final
|
|
20
22
|
|
|
23
|
+
attr_accessor :line_item_details
|
|
24
|
+
|
|
21
25
|
attr_accessor :operation_references
|
|
22
26
|
|
|
23
27
|
attr_accessor :references
|
|
@@ -27,6 +31,7 @@ module OnlinePayments
|
|
|
27
31
|
hash = super
|
|
28
32
|
hash['amount'] = @amount unless @amount.nil?
|
|
29
33
|
hash['isFinal'] = @is_final unless @is_final.nil?
|
|
34
|
+
hash['lineItemDetails'] = @line_item_details.collect{|val| val.to_h} unless @line_item_details.nil?
|
|
30
35
|
hash['operationReferences'] = @operation_references.to_h unless @operation_references.nil?
|
|
31
36
|
hash['references'] = @references.to_h unless @references.nil?
|
|
32
37
|
hash
|
|
@@ -40,6 +45,13 @@ module OnlinePayments
|
|
|
40
45
|
if hash.has_key? 'isFinal'
|
|
41
46
|
@is_final = hash['isFinal']
|
|
42
47
|
end
|
|
48
|
+
if hash.has_key? 'lineItemDetails'
|
|
49
|
+
raise TypeError, "value '%s' is not an Array" % [hash['lineItemDetails']] unless hash['lineItemDetails'].is_a? Array
|
|
50
|
+
@line_item_details = []
|
|
51
|
+
hash['lineItemDetails'].each do |e|
|
|
52
|
+
@line_item_details << OnlinePayments::SDK::Domain::LineItemDetail.new_from_hash(e)
|
|
53
|
+
end
|
|
54
|
+
end
|
|
43
55
|
if hash.has_key? 'operationReferences'
|
|
44
56
|
raise TypeError, "value '%s' is not a Hash" % [hash['operationReferences']] unless hash['operationReferences'].is_a? Hash
|
|
45
57
|
@operation_references = OnlinePayments::SDK::Domain::OperationPaymentReferences.new_from_hash(hash['operationReferences'])
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This file was automatically generated.
|
|
3
|
+
#
|
|
4
|
+
require 'onlinepayments/sdk/domain/data_object'
|
|
5
|
+
|
|
6
|
+
module OnlinePayments
|
|
7
|
+
module SDK
|
|
8
|
+
module Domain
|
|
9
|
+
# @attr [String] card_number
|
|
10
|
+
# @attr [String] cardholder_name
|
|
11
|
+
# @attr [String] expiry_date
|
|
12
|
+
class CardDataWithoutCvv < OnlinePayments::SDK::Domain::DataObject
|
|
13
|
+
|
|
14
|
+
attr_accessor :card_number
|
|
15
|
+
|
|
16
|
+
attr_accessor :cardholder_name
|
|
17
|
+
|
|
18
|
+
attr_accessor :expiry_date
|
|
19
|
+
|
|
20
|
+
# @return (Hash)
|
|
21
|
+
def to_h
|
|
22
|
+
hash = super
|
|
23
|
+
hash['cardNumber'] = @card_number unless @card_number.nil?
|
|
24
|
+
hash['cardholderName'] = @cardholder_name unless @cardholder_name.nil?
|
|
25
|
+
hash['expiryDate'] = @expiry_date unless @expiry_date.nil?
|
|
26
|
+
hash
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
def from_hash(hash)
|
|
30
|
+
super
|
|
31
|
+
if hash.has_key? 'cardNumber'
|
|
32
|
+
@card_number = hash['cardNumber']
|
|
33
|
+
end
|
|
34
|
+
if hash.has_key? 'cardholderName'
|
|
35
|
+
@cardholder_name = hash['cardholderName']
|
|
36
|
+
end
|
|
37
|
+
if hash.has_key? 'expiryDate'
|
|
38
|
+
@expiry_date = hash['expiryDate']
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
@@ -5,6 +5,7 @@ require 'onlinepayments/sdk/domain/card'
|
|
|
5
5
|
require 'onlinepayments/sdk/domain/card_recurrence_details'
|
|
6
6
|
require 'onlinepayments/sdk/domain/currency_conversion_input'
|
|
7
7
|
require 'onlinepayments/sdk/domain/data_object'
|
|
8
|
+
require 'onlinepayments/sdk/domain/market_place'
|
|
8
9
|
require 'onlinepayments/sdk/domain/multiple_payment_information'
|
|
9
10
|
require 'onlinepayments/sdk/domain/network_token_data'
|
|
10
11
|
require 'onlinepayments/sdk/domain/payment_product130_specific_input'
|
|
@@ -26,6 +27,7 @@ module OnlinePayments
|
|
|
26
27
|
# @attr [OnlinePayments::SDK::Domain::CurrencyConversionInput] currency_conversion
|
|
27
28
|
# @attr [String] initial_scheme_transaction_id
|
|
28
29
|
# @attr [true/false] is_recurring
|
|
30
|
+
# @attr [OnlinePayments::SDK::Domain::MarketPlace] market_place
|
|
29
31
|
# @attr [OnlinePayments::SDK::Domain::MultiplePaymentInformation] multiple_payment_information
|
|
30
32
|
# @attr [OnlinePayments::SDK::Domain::NetworkTokenData] network_token_data
|
|
31
33
|
# @attr [OnlinePayments::SDK::Domain::PaymentProduct130SpecificInput] payment_product130_specific_input
|
|
@@ -64,6 +66,8 @@ module OnlinePayments
|
|
|
64
66
|
|
|
65
67
|
attr_accessor :is_recurring
|
|
66
68
|
|
|
69
|
+
attr_accessor :market_place
|
|
70
|
+
|
|
67
71
|
attr_accessor :multiple_payment_information
|
|
68
72
|
|
|
69
73
|
attr_accessor :network_token_data
|
|
@@ -113,6 +117,7 @@ module OnlinePayments
|
|
|
113
117
|
hash['currencyConversion'] = @currency_conversion.to_h unless @currency_conversion.nil?
|
|
114
118
|
hash['initialSchemeTransactionId'] = @initial_scheme_transaction_id unless @initial_scheme_transaction_id.nil?
|
|
115
119
|
hash['isRecurring'] = @is_recurring unless @is_recurring.nil?
|
|
120
|
+
hash['marketPlace'] = @market_place.to_h unless @market_place.nil?
|
|
116
121
|
hash['multiplePaymentInformation'] = @multiple_payment_information.to_h unless @multiple_payment_information.nil?
|
|
117
122
|
hash['networkTokenData'] = @network_token_data.to_h unless @network_token_data.nil?
|
|
118
123
|
hash['paymentProduct130SpecificInput'] = @payment_product130_specific_input.to_h unless @payment_product130_specific_input.nil?
|
|
@@ -165,6 +170,10 @@ module OnlinePayments
|
|
|
165
170
|
if hash.has_key? 'isRecurring'
|
|
166
171
|
@is_recurring = hash['isRecurring']
|
|
167
172
|
end
|
|
173
|
+
if hash.has_key? 'marketPlace'
|
|
174
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['marketPlace']] unless hash['marketPlace'].is_a? Hash
|
|
175
|
+
@market_place = OnlinePayments::SDK::Domain::MarketPlace.new_from_hash(hash['marketPlace'])
|
|
176
|
+
end
|
|
168
177
|
if hash.has_key? 'multiplePaymentInformation'
|
|
169
178
|
raise TypeError, "value '%s' is not a Hash" % [hash['multiplePaymentInformation']] unless hash['multiplePaymentInformation'].is_a? Hash
|
|
170
179
|
@multiple_payment_information = OnlinePayments::SDK::Domain::MultiplePaymentInformation.new_from_hash(hash['multiplePaymentInformation'])
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
require 'onlinepayments/sdk/domain/card_recurrence_details'
|
|
5
5
|
require 'onlinepayments/sdk/domain/currency_conversion_specific_input'
|
|
6
6
|
require 'onlinepayments/sdk/domain/data_object'
|
|
7
|
+
require 'onlinepayments/sdk/domain/market_place'
|
|
7
8
|
require 'onlinepayments/sdk/domain/multiple_payment_information'
|
|
8
9
|
require 'onlinepayments/sdk/domain/payment_product130_specific_input'
|
|
9
10
|
require 'onlinepayments/sdk/domain/payment_product3012_specific_input'
|
|
@@ -20,6 +21,7 @@ module OnlinePayments
|
|
|
20
21
|
# @attr [String] authorization_mode
|
|
21
22
|
# @attr [OnlinePayments::SDK::Domain::CurrencyConversionSpecificInput] currency_conversion_specific_input
|
|
22
23
|
# @attr [String] initial_scheme_transaction_id
|
|
24
|
+
# @attr [OnlinePayments::SDK::Domain::MarketPlace] market_place
|
|
23
25
|
# @attr [OnlinePayments::SDK::Domain::MultiplePaymentInformation] multiple_payment_information
|
|
24
26
|
# @attr [OnlinePayments::SDK::Domain::PaymentProduct130SpecificInput] payment_product130_specific_input
|
|
25
27
|
# @attr [OnlinePayments::SDK::Domain::PaymentProduct3012SpecificInput] payment_product3012_specific_input
|
|
@@ -45,6 +47,8 @@ module OnlinePayments
|
|
|
45
47
|
|
|
46
48
|
attr_accessor :initial_scheme_transaction_id
|
|
47
49
|
|
|
50
|
+
attr_accessor :market_place
|
|
51
|
+
|
|
48
52
|
attr_accessor :multiple_payment_information
|
|
49
53
|
|
|
50
54
|
attr_accessor :payment_product130_specific_input
|
|
@@ -82,6 +86,7 @@ module OnlinePayments
|
|
|
82
86
|
hash['authorizationMode'] = @authorization_mode unless @authorization_mode.nil?
|
|
83
87
|
hash['currencyConversionSpecificInput'] = @currency_conversion_specific_input.to_h unless @currency_conversion_specific_input.nil?
|
|
84
88
|
hash['initialSchemeTransactionId'] = @initial_scheme_transaction_id unless @initial_scheme_transaction_id.nil?
|
|
89
|
+
hash['marketPlace'] = @market_place.to_h unless @market_place.nil?
|
|
85
90
|
hash['multiplePaymentInformation'] = @multiple_payment_information.to_h unless @multiple_payment_information.nil?
|
|
86
91
|
hash['paymentProduct130SpecificInput'] = @payment_product130_specific_input.to_h unless @payment_product130_specific_input.nil?
|
|
87
92
|
hash['paymentProduct3012SpecificInput'] = @payment_product3012_specific_input.to_h unless @payment_product3012_specific_input.nil?
|
|
@@ -115,6 +120,10 @@ module OnlinePayments
|
|
|
115
120
|
if hash.has_key? 'initialSchemeTransactionId'
|
|
116
121
|
@initial_scheme_transaction_id = hash['initialSchemeTransactionId']
|
|
117
122
|
end
|
|
123
|
+
if hash.has_key? 'marketPlace'
|
|
124
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['marketPlace']] unless hash['marketPlace'].is_a? Hash
|
|
125
|
+
@market_place = OnlinePayments::SDK::Domain::MarketPlace.new_from_hash(hash['marketPlace'])
|
|
126
|
+
end
|
|
118
127
|
if hash.has_key? 'multiplePaymentInformation'
|
|
119
128
|
raise TypeError, "value '%s' is not a Hash" % [hash['multiplePaymentInformation']] unless hash['multiplePaymentInformation'].is_a? Hash
|
|
120
129
|
@multiple_payment_information = OnlinePayments::SDK::Domain::MultiplePaymentInformation.new_from_hash(hash['multiplePaymentInformation'])
|
data/lib/onlinepayments/sdk/domain/card_payment_method_specific_input_for_hosted_checkout.rb
CHANGED
|
@@ -9,6 +9,7 @@ module OnlinePayments
|
|
|
9
9
|
# @attr [true/false] click_to_pay
|
|
10
10
|
# @attr [true/false] group_cards
|
|
11
11
|
# @attr [Array<Integer>] payment_product_preferred_order
|
|
12
|
+
# @attr [String] tokenization_mode
|
|
12
13
|
class CardPaymentMethodSpecificInputForHostedCheckout < OnlinePayments::SDK::Domain::DataObject
|
|
13
14
|
|
|
14
15
|
attr_accessor :click_to_pay
|
|
@@ -17,12 +18,15 @@ module OnlinePayments
|
|
|
17
18
|
|
|
18
19
|
attr_accessor :payment_product_preferred_order
|
|
19
20
|
|
|
21
|
+
attr_accessor :tokenization_mode
|
|
22
|
+
|
|
20
23
|
# @return (Hash)
|
|
21
24
|
def to_h
|
|
22
25
|
hash = super
|
|
23
26
|
hash['clickToPay'] = @click_to_pay unless @click_to_pay.nil?
|
|
24
27
|
hash['groupCards'] = @group_cards unless @group_cards.nil?
|
|
25
28
|
hash['paymentProductPreferredOrder'] = @payment_product_preferred_order unless @payment_product_preferred_order.nil?
|
|
29
|
+
hash['tokenizationMode'] = @tokenization_mode unless @tokenization_mode.nil?
|
|
26
30
|
hash
|
|
27
31
|
end
|
|
28
32
|
|
|
@@ -41,6 +45,9 @@ module OnlinePayments
|
|
|
41
45
|
@payment_product_preferred_order << e
|
|
42
46
|
end
|
|
43
47
|
end
|
|
48
|
+
if hash.has_key? 'tokenizationMode'
|
|
49
|
+
@tokenization_mode = hash['tokenizationMode']
|
|
50
|
+
end
|
|
44
51
|
end
|
|
45
52
|
end
|
|
46
53
|
end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This file was automatically generated.
|
|
3
|
+
#
|
|
4
|
+
require 'onlinepayments/sdk/domain/data_object'
|
|
5
|
+
|
|
6
|
+
module OnlinePayments
|
|
7
|
+
module SDK
|
|
8
|
+
module Domain
|
|
9
|
+
# @attr [String] certificate_id
|
|
10
|
+
# @attr [String] signed_certificate
|
|
11
|
+
class CreateCertificateResponse < OnlinePayments::SDK::Domain::DataObject
|
|
12
|
+
|
|
13
|
+
attr_accessor :certificate_id
|
|
14
|
+
|
|
15
|
+
attr_accessor :signed_certificate
|
|
16
|
+
|
|
17
|
+
# @return (Hash)
|
|
18
|
+
def to_h
|
|
19
|
+
hash = super
|
|
20
|
+
hash['certificateId'] = @certificate_id unless @certificate_id.nil?
|
|
21
|
+
hash['signedCertificate'] = @signed_certificate unless @signed_certificate.nil?
|
|
22
|
+
hash
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def from_hash(hash)
|
|
26
|
+
super
|
|
27
|
+
if hash.has_key? 'certificateId'
|
|
28
|
+
@certificate_id = hash['certificateId']
|
|
29
|
+
end
|
|
30
|
+
if hash.has_key? 'signedCertificate'
|
|
31
|
+
@signed_certificate = hash['signedCertificate']
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This file was automatically generated.
|
|
3
|
+
#
|
|
4
|
+
require 'onlinepayments/sdk/domain/data_object'
|
|
5
|
+
|
|
6
|
+
module OnlinePayments
|
|
7
|
+
module SDK
|
|
8
|
+
module Domain
|
|
9
|
+
# @attr [String] locale
|
|
10
|
+
class CreateHostedFieldsSessionRequest < OnlinePayments::SDK::Domain::DataObject
|
|
11
|
+
|
|
12
|
+
attr_accessor :locale
|
|
13
|
+
|
|
14
|
+
# @return (Hash)
|
|
15
|
+
def to_h
|
|
16
|
+
hash = super
|
|
17
|
+
hash['locale'] = @locale unless @locale.nil?
|
|
18
|
+
hash
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def from_hash(hash)
|
|
22
|
+
super
|
|
23
|
+
if hash.has_key? 'locale'
|
|
24
|
+
@locale = hash['locale']
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This file was automatically generated.
|
|
3
|
+
#
|
|
4
|
+
require 'onlinepayments/sdk/domain/data_object'
|
|
5
|
+
require 'onlinepayments/sdk/domain/session_data'
|
|
6
|
+
|
|
7
|
+
module OnlinePayments
|
|
8
|
+
module SDK
|
|
9
|
+
module Domain
|
|
10
|
+
# @attr [String] sdk_sri
|
|
11
|
+
# @attr [String] sdk_url
|
|
12
|
+
# @attr [OnlinePayments::SDK::Domain::SessionData] session_data
|
|
13
|
+
class CreateHostedFieldsSessionResponse < OnlinePayments::SDK::Domain::DataObject
|
|
14
|
+
|
|
15
|
+
attr_accessor :sdk_sri
|
|
16
|
+
|
|
17
|
+
attr_accessor :sdk_url
|
|
18
|
+
|
|
19
|
+
attr_accessor :session_data
|
|
20
|
+
|
|
21
|
+
# @return (Hash)
|
|
22
|
+
def to_h
|
|
23
|
+
hash = super
|
|
24
|
+
hash['sdkSri'] = @sdk_sri unless @sdk_sri.nil?
|
|
25
|
+
hash['sdkUrl'] = @sdk_url unless @sdk_url.nil?
|
|
26
|
+
hash['sessionData'] = @session_data.to_h unless @session_data.nil?
|
|
27
|
+
hash
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
def from_hash(hash)
|
|
31
|
+
super
|
|
32
|
+
if hash.has_key? 'sdkSri'
|
|
33
|
+
@sdk_sri = hash['sdkSri']
|
|
34
|
+
end
|
|
35
|
+
if hash.has_key? 'sdkUrl'
|
|
36
|
+
@sdk_url = hash['sdkUrl']
|
|
37
|
+
end
|
|
38
|
+
if hash.has_key? 'sessionData'
|
|
39
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['sessionData']] unless hash['sessionData'].is_a? Hash
|
|
40
|
+
@session_data = OnlinePayments::SDK::Domain::SessionData.new_from_hash(hash['sessionData'])
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
@@ -20,6 +20,7 @@ module OnlinePayments
|
|
|
20
20
|
module Domain
|
|
21
21
|
# @attr [OnlinePayments::SDK::Domain::CardPaymentMethodSpecificInputBase] card_payment_method_specific_input
|
|
22
22
|
# @attr [String] description
|
|
23
|
+
# @attr [true/false] display_qr_code
|
|
23
24
|
# @attr [DateTime] expiration_date
|
|
24
25
|
# @attr [OnlinePayments::SDK::Domain::Feedbacks] feedbacks
|
|
25
26
|
# @attr [OnlinePayments::SDK::Domain::FraudFields] fraud_fields
|
|
@@ -39,6 +40,8 @@ module OnlinePayments
|
|
|
39
40
|
# @deprecated A note related to the created payment link. Use paymentLinkSpecificInput/description instead.
|
|
40
41
|
attr_accessor :description
|
|
41
42
|
|
|
43
|
+
attr_accessor :display_qr_code
|
|
44
|
+
|
|
42
45
|
# @deprecated The date after which the payment link will not be usable to complete the payment. The date sent cannot be more than 6 months in the future or a past date. It must also contain the UTC offset. Use paymentLinkSpecificInput/expirationDate instead.
|
|
43
46
|
attr_accessor :expiration_date
|
|
44
47
|
|
|
@@ -70,6 +73,7 @@ module OnlinePayments
|
|
|
70
73
|
hash = super
|
|
71
74
|
hash['cardPaymentMethodSpecificInput'] = @card_payment_method_specific_input.to_h unless @card_payment_method_specific_input.nil?
|
|
72
75
|
hash['description'] = @description unless @description.nil?
|
|
76
|
+
hash['displayQRCode'] = @display_qr_code unless @display_qr_code.nil?
|
|
73
77
|
hash['expirationDate'] = @expiration_date.iso8601(3) unless @expiration_date.nil?
|
|
74
78
|
hash['feedbacks'] = @feedbacks.to_h unless @feedbacks.nil?
|
|
75
79
|
hash['fraudFields'] = @fraud_fields.to_h unless @fraud_fields.nil?
|
|
@@ -94,6 +98,9 @@ module OnlinePayments
|
|
|
94
98
|
if hash.has_key? 'description'
|
|
95
99
|
@description = hash['description']
|
|
96
100
|
end
|
|
101
|
+
if hash.has_key? 'displayQRCode'
|
|
102
|
+
@display_qr_code = hash['displayQRCode']
|
|
103
|
+
end
|
|
97
104
|
if hash.has_key? 'expirationDate'
|
|
98
105
|
@expiration_date = DateTime.parse(hash['expirationDate'])
|
|
99
106
|
end
|
|
@@ -6,6 +6,7 @@ require 'onlinepayments/sdk/domain/data_object'
|
|
|
6
6
|
require 'onlinepayments/sdk/domain/feedbacks'
|
|
7
7
|
require 'onlinepayments/sdk/domain/fraud_fields'
|
|
8
8
|
require 'onlinepayments/sdk/domain/mobile_payment_method_specific_input'
|
|
9
|
+
require 'onlinepayments/sdk/domain/omnichannel_payment_specific_input'
|
|
9
10
|
require 'onlinepayments/sdk/domain/order'
|
|
10
11
|
require 'onlinepayments/sdk/domain/redirect_payment_method_specific_input'
|
|
11
12
|
require 'onlinepayments/sdk/domain/sepa_direct_debit_payment_method_specific_input'
|
|
@@ -20,6 +21,7 @@ module OnlinePayments
|
|
|
20
21
|
# @attr [String] hosted_fields_session_id
|
|
21
22
|
# @attr [String] hosted_tokenization_id
|
|
22
23
|
# @attr [OnlinePayments::SDK::Domain::MobilePaymentMethodSpecificInput] mobile_payment_method_specific_input
|
|
24
|
+
# @attr [OnlinePayments::SDK::Domain::OmnichannelPaymentSpecificInput] omnichannel_payment_specific_input
|
|
23
25
|
# @attr [OnlinePayments::SDK::Domain::Order] order
|
|
24
26
|
# @attr [OnlinePayments::SDK::Domain::RedirectPaymentMethodSpecificInput] redirect_payment_method_specific_input
|
|
25
27
|
# @attr [OnlinePayments::SDK::Domain::SepaDirectDebitPaymentMethodSpecificInput] sepa_direct_debit_payment_method_specific_input
|
|
@@ -39,6 +41,8 @@ module OnlinePayments
|
|
|
39
41
|
|
|
40
42
|
attr_accessor :mobile_payment_method_specific_input
|
|
41
43
|
|
|
44
|
+
attr_accessor :omnichannel_payment_specific_input
|
|
45
|
+
|
|
42
46
|
attr_accessor :order
|
|
43
47
|
|
|
44
48
|
attr_accessor :redirect_payment_method_specific_input
|
|
@@ -55,6 +59,7 @@ module OnlinePayments
|
|
|
55
59
|
hash['hostedFieldsSessionId'] = @hosted_fields_session_id unless @hosted_fields_session_id.nil?
|
|
56
60
|
hash['hostedTokenizationId'] = @hosted_tokenization_id unless @hosted_tokenization_id.nil?
|
|
57
61
|
hash['mobilePaymentMethodSpecificInput'] = @mobile_payment_method_specific_input.to_h unless @mobile_payment_method_specific_input.nil?
|
|
62
|
+
hash['omnichannelPaymentSpecificInput'] = @omnichannel_payment_specific_input.to_h unless @omnichannel_payment_specific_input.nil?
|
|
58
63
|
hash['order'] = @order.to_h unless @order.nil?
|
|
59
64
|
hash['redirectPaymentMethodSpecificInput'] = @redirect_payment_method_specific_input.to_h unless @redirect_payment_method_specific_input.nil?
|
|
60
65
|
hash['sepaDirectDebitPaymentMethodSpecificInput'] = @sepa_direct_debit_payment_method_specific_input.to_h unless @sepa_direct_debit_payment_method_specific_input.nil?
|
|
@@ -88,6 +93,10 @@ module OnlinePayments
|
|
|
88
93
|
raise TypeError, "value '%s' is not a Hash" % [hash['mobilePaymentMethodSpecificInput']] unless hash['mobilePaymentMethodSpecificInput'].is_a? Hash
|
|
89
94
|
@mobile_payment_method_specific_input = OnlinePayments::SDK::Domain::MobilePaymentMethodSpecificInput.new_from_hash(hash['mobilePaymentMethodSpecificInput'])
|
|
90
95
|
end
|
|
96
|
+
if hash.has_key? 'omnichannelPaymentSpecificInput'
|
|
97
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['omnichannelPaymentSpecificInput']] unless hash['omnichannelPaymentSpecificInput'].is_a? Hash
|
|
98
|
+
@omnichannel_payment_specific_input = OnlinePayments::SDK::Domain::OmnichannelPaymentSpecificInput.new_from_hash(hash['omnichannelPaymentSpecificInput'])
|
|
99
|
+
end
|
|
91
100
|
if hash.has_key? 'order'
|
|
92
101
|
raise TypeError, "value '%s' is not a Hash" % [hash['order']] unless hash['order'].is_a? Hash
|
|
93
102
|
@order = OnlinePayments::SDK::Domain::Order.new_from_hash(hash['order'])
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
# This file was automatically generated.
|
|
3
3
|
#
|
|
4
4
|
require 'onlinepayments/sdk/domain/card_without_cvv'
|
|
5
|
+
require 'onlinepayments/sdk/domain/crm_token'
|
|
5
6
|
require 'onlinepayments/sdk/domain/data_object'
|
|
6
7
|
require 'onlinepayments/sdk/domain/external_token_linked'
|
|
7
8
|
|
|
@@ -9,6 +10,7 @@ module OnlinePayments
|
|
|
9
10
|
module SDK
|
|
10
11
|
module Domain
|
|
11
12
|
# @attr [OnlinePayments::SDK::Domain::CardWithoutCvv] card
|
|
13
|
+
# @attr [OnlinePayments::SDK::Domain::CrmToken] crm_token
|
|
12
14
|
# @attr [OnlinePayments::SDK::Domain::ExternalTokenLinked] external_token_linked
|
|
13
15
|
# @attr [true/false] is_new_token
|
|
14
16
|
# @attr [String] token
|
|
@@ -17,6 +19,8 @@ module OnlinePayments
|
|
|
17
19
|
|
|
18
20
|
attr_accessor :card
|
|
19
21
|
|
|
22
|
+
attr_accessor :crm_token
|
|
23
|
+
|
|
20
24
|
attr_accessor :external_token_linked
|
|
21
25
|
|
|
22
26
|
attr_accessor :is_new_token
|
|
@@ -29,6 +33,7 @@ module OnlinePayments
|
|
|
29
33
|
def to_h
|
|
30
34
|
hash = super
|
|
31
35
|
hash['card'] = @card.to_h unless @card.nil?
|
|
36
|
+
hash['crmToken'] = @crm_token.to_h unless @crm_token.nil?
|
|
32
37
|
hash['externalTokenLinked'] = @external_token_linked.to_h unless @external_token_linked.nil?
|
|
33
38
|
hash['isNewToken'] = @is_new_token unless @is_new_token.nil?
|
|
34
39
|
hash['token'] = @token unless @token.nil?
|
|
@@ -42,6 +47,10 @@ module OnlinePayments
|
|
|
42
47
|
raise TypeError, "value '%s' is not a Hash" % [hash['card']] unless hash['card'].is_a? Hash
|
|
43
48
|
@card = OnlinePayments::SDK::Domain::CardWithoutCvv.new_from_hash(hash['card'])
|
|
44
49
|
end
|
|
50
|
+
if hash.has_key? 'crmToken'
|
|
51
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['crmToken']] unless hash['crmToken'].is_a? Hash
|
|
52
|
+
@crm_token = OnlinePayments::SDK::Domain::CrmToken.new_from_hash(hash['crmToken'])
|
|
53
|
+
end
|
|
45
54
|
if hash.has_key? 'externalTokenLinked'
|
|
46
55
|
raise TypeError, "value '%s' is not a Hash" % [hash['externalTokenLinked']] unless hash['externalTokenLinked'].is_a? Hash
|
|
47
56
|
@external_token_linked = OnlinePayments::SDK::Domain::ExternalTokenLinked.new_from_hash(hash['externalTokenLinked'])
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#
|
|
2
2
|
# This file was automatically generated.
|
|
3
3
|
#
|
|
4
|
-
require 'onlinepayments/sdk/domain/
|
|
4
|
+
require 'onlinepayments/sdk/domain/credit_card_validation_rules'
|
|
5
5
|
require 'onlinepayments/sdk/domain/data_object'
|
|
6
6
|
|
|
7
7
|
module OnlinePayments
|
|
8
8
|
module SDK
|
|
9
9
|
module Domain
|
|
10
|
-
# @attr [OnlinePayments::SDK::Domain::
|
|
10
|
+
# @attr [OnlinePayments::SDK::Domain::CreditCardValidationRules] validation_rules
|
|
11
11
|
# @attr [Array<Integer>] payment_product_preferred_order
|
|
12
12
|
class CreditCardSpecificInputHostedTokenization < OnlinePayments::SDK::Domain::DataObject
|
|
13
13
|
|
|
@@ -27,7 +27,7 @@ module OnlinePayments
|
|
|
27
27
|
super
|
|
28
28
|
if hash.has_key? 'ValidationRules'
|
|
29
29
|
raise TypeError, "value '%s' is not a Hash" % [hash['ValidationRules']] unless hash['ValidationRules'].is_a? Hash
|
|
30
|
-
@validation_rules = OnlinePayments::SDK::Domain::
|
|
30
|
+
@validation_rules = OnlinePayments::SDK::Domain::CreditCardValidationRules.new_from_hash(hash['ValidationRules'])
|
|
31
31
|
end
|
|
32
32
|
if hash.has_key? 'paymentProductPreferredOrder'
|
|
33
33
|
raise TypeError, "value '%s' is not an Array" % [hash['paymentProductPreferredOrder']] unless hash['paymentProductPreferredOrder'].is_a? Array
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This file was automatically generated.
|
|
3
|
+
#
|
|
4
|
+
require 'onlinepayments/sdk/domain/data_object'
|
|
5
|
+
|
|
6
|
+
module OnlinePayments
|
|
7
|
+
module SDK
|
|
8
|
+
module Domain
|
|
9
|
+
# @attr [true/false] cvv_mandatory_for_existing_token
|
|
10
|
+
# @attr [true/false] cvv_mandatory_for_new_token
|
|
11
|
+
class CreditCardValidationRules < OnlinePayments::SDK::Domain::DataObject
|
|
12
|
+
|
|
13
|
+
attr_accessor :cvv_mandatory_for_existing_token
|
|
14
|
+
|
|
15
|
+
attr_accessor :cvv_mandatory_for_new_token
|
|
16
|
+
|
|
17
|
+
# @return (Hash)
|
|
18
|
+
def to_h
|
|
19
|
+
hash = super
|
|
20
|
+
hash['cvvMandatoryForExistingToken'] = @cvv_mandatory_for_existing_token unless @cvv_mandatory_for_existing_token.nil?
|
|
21
|
+
hash['cvvMandatoryForNewToken'] = @cvv_mandatory_for_new_token unless @cvv_mandatory_for_new_token.nil?
|
|
22
|
+
hash
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def from_hash(hash)
|
|
26
|
+
super
|
|
27
|
+
if hash.has_key? 'cvvMandatoryForExistingToken'
|
|
28
|
+
@cvv_mandatory_for_existing_token = hash['cvvMandatoryForExistingToken']
|
|
29
|
+
end
|
|
30
|
+
if hash.has_key? 'cvvMandatoryForNewToken'
|
|
31
|
+
@cvv_mandatory_for_new_token = hash['cvvMandatoryForNewToken']
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This file was automatically generated.
|
|
3
|
+
#
|
|
4
|
+
require 'onlinepayments/sdk/domain/data_object'
|
|
5
|
+
|
|
6
|
+
module OnlinePayments
|
|
7
|
+
module SDK
|
|
8
|
+
module Domain
|
|
9
|
+
# @attr [String] unique_account_identifier
|
|
10
|
+
# @attr [String] unique_card_identifier
|
|
11
|
+
class CrmToken < OnlinePayments::SDK::Domain::DataObject
|
|
12
|
+
|
|
13
|
+
attr_accessor :unique_account_identifier
|
|
14
|
+
|
|
15
|
+
attr_accessor :unique_card_identifier
|
|
16
|
+
|
|
17
|
+
# @return (Hash)
|
|
18
|
+
def to_h
|
|
19
|
+
hash = super
|
|
20
|
+
hash['uniqueAccountIdentifier'] = @unique_account_identifier unless @unique_account_identifier.nil?
|
|
21
|
+
hash['uniqueCardIdentifier'] = @unique_card_identifier unless @unique_card_identifier.nil?
|
|
22
|
+
hash
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def from_hash(hash)
|
|
26
|
+
super
|
|
27
|
+
if hash.has_key? 'uniqueAccountIdentifier'
|
|
28
|
+
@unique_account_identifier = hash['uniqueAccountIdentifier']
|
|
29
|
+
end
|
|
30
|
+
if hash.has_key? 'uniqueCardIdentifier'
|
|
31
|
+
@unique_card_identifier = hash['uniqueCardIdentifier']
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This file was automatically generated.
|
|
3
|
+
#
|
|
4
|
+
require 'onlinepayments/sdk/domain/data_object'
|
|
5
|
+
|
|
6
|
+
module OnlinePayments
|
|
7
|
+
module SDK
|
|
8
|
+
module Domain
|
|
9
|
+
# @attr [String] csr
|
|
10
|
+
class CsrRequest < OnlinePayments::SDK::Domain::DataObject
|
|
11
|
+
|
|
12
|
+
attr_accessor :csr
|
|
13
|
+
|
|
14
|
+
# @return (Hash)
|
|
15
|
+
def to_h
|
|
16
|
+
hash = super
|
|
17
|
+
hash['csr'] = @csr unless @csr.nil?
|
|
18
|
+
hash
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def from_hash(hash)
|
|
22
|
+
super
|
|
23
|
+
if hash.has_key? 'csr'
|
|
24
|
+
@csr = hash['csr']
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|