connect-sdk-ruby 4.2.0 → 4.2.1

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: 227d21f080883738919bda758616eca5a502872d224694b862cd831b75162a0a
4
- data.tar.gz: 8e5d1dba0d0b9174f649e6dd6d423f416297c4f55d816f333bf80828e05de8a7
3
+ metadata.gz: ad171d5a17dd9882058aa009cfe4db74a466bdb5d571cbbde608afb5be1d5182
4
+ data.tar.gz: 06f0b2a5373eb7ca663d0c234325a58426f51e82edf9ba2cf25205a036647cc9
5
5
  SHA512:
6
- metadata.gz: 47197b1e2efe3afd6d56df1a874ea308d18e9d926ef52b8e30c565810710c2c30d7784a2551d23f91ace6f188e0c49a77ad7c4aadfe33b6dfe0a70f34d444f31
7
- data.tar.gz: 468879e2626ddfa32037701023936369ecf439c44b6d53d67740e8e1fdb730a7a542b733f00fbd971c6c798b6a86bd88888a7b2abf29eeebf8f71103c4459129
6
+ metadata.gz: dfb291fcbf06b3b8a8c0e70f4857ef76e67b35b6bf8d4ab727be6de21fb0bf34ac307f42803f992640150308bcda423ce46461e0e0df715e456b9aff94541b21
7
+ data.tar.gz: 241fa249b58e9c8a6e45a89ec5a914a25b39e9de7e37b31bc93efa66c22881a1c06eb8b3b1db143934733d430bfb6026efd8886c038bdcf7cfde1b8ab85fc5a8
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'connect-sdk-ruby'
3
- spec.version = '4.2.0'
3
+ spec.version = '4.2.1'
4
4
  spec.authors = ['Worldline Global Collect']
5
5
  spec.email = ['github.connect@worldline.com']
6
6
  spec.summary = %q{SDK to communicate with the Worldline Global Collect platform using the Worldline Connect Server API}
@@ -14,7 +14,7 @@ module Worldline
14
14
  class MetadataProvider
15
15
  private
16
16
 
17
- SDK_VERSION = '4.2.0'.freeze
17
+ SDK_VERSION = '4.2.1'.freeze
18
18
  SERVER_META_INFO_HEADER = 'X-GCS-ServerMetaInfo'.freeze
19
19
  PROHIBITED_HEADERS = [SERVER_META_INFO_HEADER, 'X-GCS-Idempotence-Key','Date', 'Content-Type', 'Authorization'].sort!.freeze
20
20
  CHARSET = 'utf-8'.freeze
@@ -0,0 +1,100 @@
1
+ #
2
+ # This class was auto-generated from the API references found at
3
+ # https://apireference.connect.worldline-solutions.com/
4
+ #
5
+ require 'worldline/connect/sdk/v1/domain/abstract_payment_method_specific_input'
6
+ require 'worldline/connect/sdk/v1/domain/card_recurrence_details'
7
+
8
+ module Worldline
9
+ module Connect
10
+ module SDK
11
+ module V1
12
+ module Domain
13
+ # @attr [String] authorization_mode
14
+ # @attr [String] customer_reference
15
+ # @attr [String] initial_scheme_transaction_id
16
+ # @attr [Worldline::Connect::SDK::V1::Domain::CardRecurrenceDetails] recurring
17
+ # @attr [true/false] requires_approval
18
+ # @attr [true/false] skip_fraud_service
19
+ # @attr [String] token
20
+ # @attr [true/false] tokenize
21
+ # @attr [String] unscheduled_card_on_file_requestor
22
+ # @attr [String] unscheduled_card_on_file_sequence_indicator
23
+ class AbstractMobilePaymentMethodSpecificInput < Worldline::Connect::SDK::V1::Domain::AbstractPaymentMethodSpecificInput
24
+
25
+ attr_accessor :authorization_mode
26
+
27
+ attr_accessor :customer_reference
28
+
29
+ attr_accessor :initial_scheme_transaction_id
30
+
31
+ attr_accessor :recurring
32
+
33
+ attr_accessor :requires_approval
34
+
35
+ attr_accessor :skip_fraud_service
36
+
37
+ attr_accessor :token
38
+
39
+ attr_accessor :tokenize
40
+
41
+ attr_accessor :unscheduled_card_on_file_requestor
42
+
43
+ attr_accessor :unscheduled_card_on_file_sequence_indicator
44
+
45
+ # @return (Hash)
46
+ def to_h
47
+ hash = super
48
+ hash['authorizationMode'] = @authorization_mode unless @authorization_mode.nil?
49
+ hash['customerReference'] = @customer_reference unless @customer_reference.nil?
50
+ hash['initialSchemeTransactionId'] = @initial_scheme_transaction_id unless @initial_scheme_transaction_id.nil?
51
+ hash['recurring'] = @recurring.to_h unless @recurring.nil?
52
+ hash['requiresApproval'] = @requires_approval unless @requires_approval.nil?
53
+ hash['skipFraudService'] = @skip_fraud_service unless @skip_fraud_service.nil?
54
+ hash['token'] = @token unless @token.nil?
55
+ hash['tokenize'] = @tokenize unless @tokenize.nil?
56
+ hash['unscheduledCardOnFileRequestor'] = @unscheduled_card_on_file_requestor unless @unscheduled_card_on_file_requestor.nil?
57
+ hash['unscheduledCardOnFileSequenceIndicator'] = @unscheduled_card_on_file_sequence_indicator unless @unscheduled_card_on_file_sequence_indicator.nil?
58
+ hash
59
+ end
60
+
61
+ def from_hash(hash)
62
+ super
63
+ if hash.has_key? 'authorizationMode'
64
+ @authorization_mode = hash['authorizationMode']
65
+ end
66
+ if hash.has_key? 'customerReference'
67
+ @customer_reference = hash['customerReference']
68
+ end
69
+ if hash.has_key? 'initialSchemeTransactionId'
70
+ @initial_scheme_transaction_id = hash['initialSchemeTransactionId']
71
+ end
72
+ if hash.has_key? 'recurring'
73
+ raise TypeError, "value '%s' is not a Hash" % [hash['recurring']] unless hash['recurring'].is_a? Hash
74
+ @recurring = Worldline::Connect::SDK::V1::Domain::CardRecurrenceDetails.new_from_hash(hash['recurring'])
75
+ end
76
+ if hash.has_key? 'requiresApproval'
77
+ @requires_approval = hash['requiresApproval']
78
+ end
79
+ if hash.has_key? 'skipFraudService'
80
+ @skip_fraud_service = hash['skipFraudService']
81
+ end
82
+ if hash.has_key? 'token'
83
+ @token = hash['token']
84
+ end
85
+ if hash.has_key? 'tokenize'
86
+ @tokenize = hash['tokenize']
87
+ end
88
+ if hash.has_key? 'unscheduledCardOnFileRequestor'
89
+ @unscheduled_card_on_file_requestor = hash['unscheduledCardOnFileRequestor']
90
+ end
91
+ if hash.has_key? 'unscheduledCardOnFileSequenceIndicator'
92
+ @unscheduled_card_on_file_sequence_indicator = hash['unscheduledCardOnFileSequenceIndicator']
93
+ end
94
+ end
95
+ end
96
+ end
97
+ end
98
+ end
99
+ end
100
+ end
@@ -0,0 +1,35 @@
1
+ #
2
+ # This class was auto-generated from the API references found at
3
+ # https://apireference.connect.worldline-solutions.com/
4
+ #
5
+ require 'worldline/connect/sdk/v1/domain/base_billing_details'
6
+
7
+ module Worldline
8
+ module Connect
9
+ module SDK
10
+ module V1
11
+ module Domain
12
+ # @attr [Integer] automatic_reload_payment_threshold_amount
13
+ class AutomaticReloadBillingDetails < Worldline::Connect::SDK::V1::Domain::BaseBillingDetails
14
+
15
+ attr_accessor :automatic_reload_payment_threshold_amount
16
+
17
+ # @return (Hash)
18
+ def to_h
19
+ hash = super
20
+ hash['automaticReloadPaymentThresholdAmount'] = @automatic_reload_payment_threshold_amount unless @automatic_reload_payment_threshold_amount.nil?
21
+ hash
22
+ end
23
+
24
+ def from_hash(hash)
25
+ super
26
+ if hash.has_key? 'automaticReloadPaymentThresholdAmount'
27
+ @automatic_reload_payment_threshold_amount = hash['automaticReloadPaymentThresholdAmount']
28
+ end
29
+ end
30
+ end
31
+ end
32
+ end
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,35 @@
1
+ #
2
+ # This class was auto-generated from the API references found at
3
+ # https://apireference.connect.worldline-solutions.com/
4
+ #
5
+ require 'worldline/connect/sdk/domain/data_object'
6
+
7
+ module Worldline
8
+ module Connect
9
+ module SDK
10
+ module V1
11
+ module Domain
12
+ # @attr [String] description
13
+ class BaseBillingDetails < Worldline::Connect::SDK::Domain::DataObject
14
+
15
+ attr_accessor :description
16
+
17
+ # @return (Hash)
18
+ def to_h
19
+ hash = super
20
+ hash['description'] = @description unless @description.nil?
21
+ hash
22
+ end
23
+
24
+ def from_hash(hash)
25
+ super
26
+ if hash.has_key? 'description'
27
+ @description = hash['description']
28
+ end
29
+ end
30
+ end
31
+ end
32
+ end
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,49 @@
1
+ #
2
+ # This class was auto-generated from the API references found at
3
+ # https://apireference.connect.worldline-solutions.com/
4
+ #
5
+ require 'worldline/connect/sdk/v1/domain/base_billing_details'
6
+
7
+ module Worldline
8
+ module Connect
9
+ module SDK
10
+ module V1
11
+ module Domain
12
+ # @attr [String] deferred_payment_date
13
+ # @attr [String] free_cancellation_date
14
+ # @attr [String] free_cancellation_date_time_zone
15
+ class DeferredBillingDetails < Worldline::Connect::SDK::V1::Domain::BaseBillingDetails
16
+
17
+ attr_accessor :deferred_payment_date
18
+
19
+ attr_accessor :free_cancellation_date
20
+
21
+ attr_accessor :free_cancellation_date_time_zone
22
+
23
+ # @return (Hash)
24
+ def to_h
25
+ hash = super
26
+ hash['deferredPaymentDate'] = @deferred_payment_date unless @deferred_payment_date.nil?
27
+ hash['freeCancellationDate'] = @free_cancellation_date unless @free_cancellation_date.nil?
28
+ hash['freeCancellationDateTimeZone'] = @free_cancellation_date_time_zone unless @free_cancellation_date_time_zone.nil?
29
+ hash
30
+ end
31
+
32
+ def from_hash(hash)
33
+ super
34
+ if hash.has_key? 'deferredPaymentDate'
35
+ @deferred_payment_date = hash['deferredPaymentDate']
36
+ end
37
+ if hash.has_key? 'freeCancellationDate'
38
+ @free_cancellation_date = hash['freeCancellationDate']
39
+ end
40
+ if hash.has_key? 'freeCancellationDateTimeZone'
41
+ @free_cancellation_date_time_zone = hash['freeCancellationDateTimeZone']
42
+ end
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
@@ -2,7 +2,7 @@
2
2
  # This class was auto-generated from the API references found at
3
3
  # https://apireference.connect.worldline-solutions.com/
4
4
  #
5
- require 'worldline/connect/sdk/v1/domain/abstract_payment_method_specific_input'
5
+ require 'worldline/connect/sdk/v1/domain/abstract_mobile_payment_method_specific_input'
6
6
  require 'worldline/connect/sdk/v1/domain/decrypted_payment_data'
7
7
  require 'worldline/connect/sdk/v1/domain/mobile_payment_product320_specific_input'
8
8
 
@@ -11,50 +11,36 @@ module Worldline
11
11
  module SDK
12
12
  module V1
13
13
  module Domain
14
- # @attr [String] authorization_mode
15
- # @attr [String] customer_reference
16
14
  # @attr [Worldline::Connect::SDK::V1::Domain::DecryptedPaymentData] decrypted_payment_data
17
15
  # @attr [String] encrypted_payment_data
16
+ # @attr [true/false] is_recurring
17
+ # @attr [String] merchant_initiated_reason_indicator
18
18
  # @attr [Worldline::Connect::SDK::V1::Domain::MobilePaymentProduct320SpecificInput] payment_product320_specific_input
19
- # @attr [true/false] requires_approval
20
- # @attr [true/false] skip_fraud_service
21
- class MobilePaymentMethodSpecificInput < Worldline::Connect::SDK::V1::Domain::AbstractPaymentMethodSpecificInput
22
-
23
- attr_accessor :authorization_mode
24
-
25
- attr_accessor :customer_reference
19
+ class MobilePaymentMethodSpecificInput < Worldline::Connect::SDK::V1::Domain::AbstractMobilePaymentMethodSpecificInput
26
20
 
27
21
  attr_accessor :decrypted_payment_data
28
22
 
29
23
  attr_accessor :encrypted_payment_data
30
24
 
31
- attr_accessor :payment_product320_specific_input
25
+ attr_accessor :is_recurring
32
26
 
33
- attr_accessor :requires_approval
27
+ attr_accessor :merchant_initiated_reason_indicator
34
28
 
35
- attr_accessor :skip_fraud_service
29
+ attr_accessor :payment_product320_specific_input
36
30
 
37
31
  # @return (Hash)
38
32
  def to_h
39
33
  hash = super
40
- hash['authorizationMode'] = @authorization_mode unless @authorization_mode.nil?
41
- hash['customerReference'] = @customer_reference unless @customer_reference.nil?
42
34
  hash['decryptedPaymentData'] = @decrypted_payment_data.to_h unless @decrypted_payment_data.nil?
43
35
  hash['encryptedPaymentData'] = @encrypted_payment_data unless @encrypted_payment_data.nil?
36
+ hash['isRecurring'] = @is_recurring unless @is_recurring.nil?
37
+ hash['merchantInitiatedReasonIndicator'] = @merchant_initiated_reason_indicator unless @merchant_initiated_reason_indicator.nil?
44
38
  hash['paymentProduct320SpecificInput'] = @payment_product320_specific_input.to_h unless @payment_product320_specific_input.nil?
45
- hash['requiresApproval'] = @requires_approval unless @requires_approval.nil?
46
- hash['skipFraudService'] = @skip_fraud_service unless @skip_fraud_service.nil?
47
39
  hash
48
40
  end
49
41
 
50
42
  def from_hash(hash)
51
43
  super
52
- if hash.has_key? 'authorizationMode'
53
- @authorization_mode = hash['authorizationMode']
54
- end
55
- if hash.has_key? 'customerReference'
56
- @customer_reference = hash['customerReference']
57
- end
58
44
  if hash.has_key? 'decryptedPaymentData'
59
45
  raise TypeError, "value '%s' is not a Hash" % [hash['decryptedPaymentData']] unless hash['decryptedPaymentData'].is_a? Hash
60
46
  @decrypted_payment_data = Worldline::Connect::SDK::V1::Domain::DecryptedPaymentData.new_from_hash(hash['decryptedPaymentData'])
@@ -62,16 +48,16 @@ module Worldline
62
48
  if hash.has_key? 'encryptedPaymentData'
63
49
  @encrypted_payment_data = hash['encryptedPaymentData']
64
50
  end
51
+ if hash.has_key? 'isRecurring'
52
+ @is_recurring = hash['isRecurring']
53
+ end
54
+ if hash.has_key? 'merchantInitiatedReasonIndicator'
55
+ @merchant_initiated_reason_indicator = hash['merchantInitiatedReasonIndicator']
56
+ end
65
57
  if hash.has_key? 'paymentProduct320SpecificInput'
66
58
  raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct320SpecificInput']] unless hash['paymentProduct320SpecificInput'].is_a? Hash
67
59
  @payment_product320_specific_input = Worldline::Connect::SDK::V1::Domain::MobilePaymentProduct320SpecificInput.new_from_hash(hash['paymentProduct320SpecificInput'])
68
60
  end
69
- if hash.has_key? 'requiresApproval'
70
- @requires_approval = hash['requiresApproval']
71
- end
72
- if hash.has_key? 'skipFraudService'
73
- @skip_fraud_service = hash['skipFraudService']
74
- end
75
61
  end
76
62
  end
77
63
  end
@@ -2,7 +2,7 @@
2
2
  # This class was auto-generated from the API references found at
3
3
  # https://apireference.connect.worldline-solutions.com/
4
4
  #
5
- require 'worldline/connect/sdk/v1/domain/abstract_payment_method_specific_input'
5
+ require 'worldline/connect/sdk/v1/domain/abstract_mobile_payment_method_specific_input'
6
6
  require 'worldline/connect/sdk/v1/domain/mobile_payment_product302_specific_input_hosted_checkout'
7
7
  require 'worldline/connect/sdk/v1/domain/mobile_payment_product320_specific_input_hosted_checkout'
8
8
 
@@ -11,46 +11,24 @@ module Worldline
11
11
  module SDK
12
12
  module V1
13
13
  module Domain
14
- # @attr [String] authorization_mode
15
- # @attr [String] customer_reference
16
14
  # @attr [Worldline::Connect::SDK::V1::Domain::MobilePaymentProduct302SpecificInputHostedCheckout] payment_product302_specific_input
17
15
  # @attr [Worldline::Connect::SDK::V1::Domain::MobilePaymentProduct320SpecificInputHostedCheckout] payment_product320_specific_input
18
- # @attr [true/false] requires_approval
19
- # @attr [true/false] skip_fraud_service
20
- class MobilePaymentMethodSpecificInputHostedCheckout < Worldline::Connect::SDK::V1::Domain::AbstractPaymentMethodSpecificInput
21
-
22
- attr_accessor :authorization_mode
23
-
24
- attr_accessor :customer_reference
16
+ class MobilePaymentMethodSpecificInputHostedCheckout < Worldline::Connect::SDK::V1::Domain::AbstractMobilePaymentMethodSpecificInput
25
17
 
26
18
  attr_accessor :payment_product302_specific_input
27
19
 
28
20
  attr_accessor :payment_product320_specific_input
29
21
 
30
- attr_accessor :requires_approval
31
-
32
- attr_accessor :skip_fraud_service
33
-
34
22
  # @return (Hash)
35
23
  def to_h
36
24
  hash = super
37
- hash['authorizationMode'] = @authorization_mode unless @authorization_mode.nil?
38
- hash['customerReference'] = @customer_reference unless @customer_reference.nil?
39
25
  hash['paymentProduct302SpecificInput'] = @payment_product302_specific_input.to_h unless @payment_product302_specific_input.nil?
40
26
  hash['paymentProduct320SpecificInput'] = @payment_product320_specific_input.to_h unless @payment_product320_specific_input.nil?
41
- hash['requiresApproval'] = @requires_approval unless @requires_approval.nil?
42
- hash['skipFraudService'] = @skip_fraud_service unless @skip_fraud_service.nil?
43
27
  hash
44
28
  end
45
29
 
46
30
  def from_hash(hash)
47
31
  super
48
- if hash.has_key? 'authorizationMode'
49
- @authorization_mode = hash['authorizationMode']
50
- end
51
- if hash.has_key? 'customerReference'
52
- @customer_reference = hash['customerReference']
53
- end
54
32
  if hash.has_key? 'paymentProduct302SpecificInput'
55
33
  raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct302SpecificInput']] unless hash['paymentProduct302SpecificInput'].is_a? Hash
56
34
  @payment_product302_specific_input = Worldline::Connect::SDK::V1::Domain::MobilePaymentProduct302SpecificInputHostedCheckout.new_from_hash(hash['paymentProduct302SpecificInput'])
@@ -59,12 +37,6 @@ module Worldline
59
37
  raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct320SpecificInput']] unless hash['paymentProduct320SpecificInput'].is_a? Hash
60
38
  @payment_product320_specific_input = Worldline::Connect::SDK::V1::Domain::MobilePaymentProduct320SpecificInputHostedCheckout.new_from_hash(hash['paymentProduct320SpecificInput'])
61
39
  end
62
- if hash.has_key? 'requiresApproval'
63
- @requires_approval = hash['requiresApproval']
64
- end
65
- if hash.has_key? 'skipFraudService'
66
- @skip_fraud_service = hash['skipFraudService']
67
- end
68
40
  end
69
41
  end
70
42
  end
@@ -14,29 +14,41 @@ module Worldline
14
14
  module Domain
15
15
  # @attr [String] authorisation_code
16
16
  # @attr [Worldline::Connect::SDK::V1::Domain::CardFraudResults] fraud_results
17
+ # @attr [String] initial_scheme_transaction_id
17
18
  # @attr [String] network
18
19
  # @attr [Worldline::Connect::SDK::V1::Domain::MobilePaymentData] payment_data
20
+ # @attr [String] scheme_transaction_id
19
21
  # @attr [Worldline::Connect::SDK::V1::Domain::ThreeDSecureResults] three_d_secure_results
22
+ # @attr [String] token
20
23
  class MobilePaymentMethodSpecificOutput < Worldline::Connect::SDK::V1::Domain::AbstractPaymentMethodSpecificOutput
21
24
 
22
25
  attr_accessor :authorisation_code
23
26
 
24
27
  attr_accessor :fraud_results
25
28
 
29
+ attr_accessor :initial_scheme_transaction_id
30
+
26
31
  attr_accessor :network
27
32
 
28
33
  attr_accessor :payment_data
29
34
 
35
+ attr_accessor :scheme_transaction_id
36
+
30
37
  attr_accessor :three_d_secure_results
31
38
 
39
+ attr_accessor :token
40
+
32
41
  # @return (Hash)
33
42
  def to_h
34
43
  hash = super
35
44
  hash['authorisationCode'] = @authorisation_code unless @authorisation_code.nil?
36
45
  hash['fraudResults'] = @fraud_results.to_h unless @fraud_results.nil?
46
+ hash['initialSchemeTransactionId'] = @initial_scheme_transaction_id unless @initial_scheme_transaction_id.nil?
37
47
  hash['network'] = @network unless @network.nil?
38
48
  hash['paymentData'] = @payment_data.to_h unless @payment_data.nil?
49
+ hash['schemeTransactionId'] = @scheme_transaction_id unless @scheme_transaction_id.nil?
39
50
  hash['threeDSecureResults'] = @three_d_secure_results.to_h unless @three_d_secure_results.nil?
51
+ hash['token'] = @token unless @token.nil?
40
52
  hash
41
53
  end
42
54
 
@@ -49,6 +61,9 @@ module Worldline
49
61
  raise TypeError, "value '%s' is not a Hash" % [hash['fraudResults']] unless hash['fraudResults'].is_a? Hash
50
62
  @fraud_results = Worldline::Connect::SDK::V1::Domain::CardFraudResults.new_from_hash(hash['fraudResults'])
51
63
  end
64
+ if hash.has_key? 'initialSchemeTransactionId'
65
+ @initial_scheme_transaction_id = hash['initialSchemeTransactionId']
66
+ end
52
67
  if hash.has_key? 'network'
53
68
  @network = hash['network']
54
69
  end
@@ -56,10 +71,16 @@ module Worldline
56
71
  raise TypeError, "value '%s' is not a Hash" % [hash['paymentData']] unless hash['paymentData'].is_a? Hash
57
72
  @payment_data = Worldline::Connect::SDK::V1::Domain::MobilePaymentData.new_from_hash(hash['paymentData'])
58
73
  end
74
+ if hash.has_key? 'schemeTransactionId'
75
+ @scheme_transaction_id = hash['schemeTransactionId']
76
+ end
59
77
  if hash.has_key? 'threeDSecureResults'
60
78
  raise TypeError, "value '%s' is not a Hash" % [hash['threeDSecureResults']] unless hash['threeDSecureResults'].is_a? Hash
61
79
  @three_d_secure_results = Worldline::Connect::SDK::V1::Domain::ThreeDSecureResults.new_from_hash(hash['threeDSecureResults'])
62
80
  end
81
+ if hash.has_key? 'token'
82
+ @token = hash['token']
83
+ end
63
84
  end
64
85
  end
65
86
  end
@@ -0,0 +1,91 @@
1
+ #
2
+ # This class was auto-generated from the API references found at
3
+ # https://apireference.connect.worldline-solutions.com/
4
+ #
5
+ require 'worldline/connect/sdk/domain/data_object'
6
+ require 'worldline/connect/sdk/v1/domain/automatic_reload_billing_details'
7
+ require 'worldline/connect/sdk/v1/domain/deferred_billing_details'
8
+ require 'worldline/connect/sdk/v1/domain/recurring_billing_details'
9
+
10
+ module Worldline
11
+ module Connect
12
+ module SDK
13
+ module V1
14
+ module Domain
15
+ # @attr [Worldline::Connect::SDK::V1::Domain::AutomaticReloadBillingDetails] automatic_reload_billing
16
+ # @attr [String] billing_agreement
17
+ # @attr [Worldline::Connect::SDK::V1::Domain::DeferredBillingDetails] deferred_billing
18
+ # @attr [String] management_url
19
+ # @attr [String] payment_description
20
+ # @attr [Worldline::Connect::SDK::V1::Domain::RecurringBillingDetails] regular_billing
21
+ # @attr [String] token_notification_url
22
+ # @attr [Worldline::Connect::SDK::V1::Domain::RecurringBillingDetails] trial_billing
23
+ class PaymentProduct302SpecificInput < Worldline::Connect::SDK::Domain::DataObject
24
+
25
+ attr_accessor :automatic_reload_billing
26
+
27
+ attr_accessor :billing_agreement
28
+
29
+ attr_accessor :deferred_billing
30
+
31
+ attr_accessor :management_url
32
+
33
+ attr_accessor :payment_description
34
+
35
+ attr_accessor :regular_billing
36
+
37
+ attr_accessor :token_notification_url
38
+
39
+ attr_accessor :trial_billing
40
+
41
+ # @return (Hash)
42
+ def to_h
43
+ hash = super
44
+ hash['automaticReloadBilling'] = @automatic_reload_billing.to_h unless @automatic_reload_billing.nil?
45
+ hash['billingAgreement'] = @billing_agreement unless @billing_agreement.nil?
46
+ hash['deferredBilling'] = @deferred_billing.to_h unless @deferred_billing.nil?
47
+ hash['managementUrl'] = @management_url unless @management_url.nil?
48
+ hash['paymentDescription'] = @payment_description unless @payment_description.nil?
49
+ hash['regularBilling'] = @regular_billing.to_h unless @regular_billing.nil?
50
+ hash['tokenNotificationUrl'] = @token_notification_url unless @token_notification_url.nil?
51
+ hash['trialBilling'] = @trial_billing.to_h unless @trial_billing.nil?
52
+ hash
53
+ end
54
+
55
+ def from_hash(hash)
56
+ super
57
+ if hash.has_key? 'automaticReloadBilling'
58
+ raise TypeError, "value '%s' is not a Hash" % [hash['automaticReloadBilling']] unless hash['automaticReloadBilling'].is_a? Hash
59
+ @automatic_reload_billing = Worldline::Connect::SDK::V1::Domain::AutomaticReloadBillingDetails.new_from_hash(hash['automaticReloadBilling'])
60
+ end
61
+ if hash.has_key? 'billingAgreement'
62
+ @billing_agreement = hash['billingAgreement']
63
+ end
64
+ if hash.has_key? 'deferredBilling'
65
+ raise TypeError, "value '%s' is not a Hash" % [hash['deferredBilling']] unless hash['deferredBilling'].is_a? Hash
66
+ @deferred_billing = Worldline::Connect::SDK::V1::Domain::DeferredBillingDetails.new_from_hash(hash['deferredBilling'])
67
+ end
68
+ if hash.has_key? 'managementUrl'
69
+ @management_url = hash['managementUrl']
70
+ end
71
+ if hash.has_key? 'paymentDescription'
72
+ @payment_description = hash['paymentDescription']
73
+ end
74
+ if hash.has_key? 'regularBilling'
75
+ raise TypeError, "value '%s' is not a Hash" % [hash['regularBilling']] unless hash['regularBilling'].is_a? Hash
76
+ @regular_billing = Worldline::Connect::SDK::V1::Domain::RecurringBillingDetails.new_from_hash(hash['regularBilling'])
77
+ end
78
+ if hash.has_key? 'tokenNotificationUrl'
79
+ @token_notification_url = hash['tokenNotificationUrl']
80
+ end
81
+ if hash.has_key? 'trialBilling'
82
+ raise TypeError, "value '%s' is not a Hash" % [hash['trialBilling']] unless hash['trialBilling'].is_a? Hash
83
+ @trial_billing = Worldline::Connect::SDK::V1::Domain::RecurringBillingDetails.new_from_hash(hash['trialBilling'])
84
+ end
85
+ end
86
+ end
87
+ end
88
+ end
89
+ end
90
+ end
91
+ end
@@ -0,0 +1,18 @@
1
+ #
2
+ # This class was auto-generated from the API references found at
3
+ # https://apireference.connect.worldline-solutions.com/
4
+ #
5
+ require 'worldline/connect/sdk/v1/domain/base_billing_details'
6
+
7
+ module Worldline
8
+ module Connect
9
+ module SDK
10
+ module V1
11
+ module Domain
12
+ class RecurringBillingDetails < Worldline::Connect::SDK::V1::Domain::BaseBillingDetails
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
18
+ end
@@ -4,6 +4,7 @@
4
4
  #
5
5
  require 'worldline/connect/sdk/domain/data_object'
6
6
  require 'worldline/connect/sdk/v1/domain/frequency'
7
+ require 'worldline/connect/sdk/v1/domain/payment_product302_specific_input'
7
8
  require 'worldline/connect/sdk/v1/domain/trial_information'
8
9
 
9
10
  module Worldline
@@ -11,28 +12,50 @@ module Worldline
11
12
  module SDK
12
13
  module V1
13
14
  module Domain
15
+ # @attr [Worldline::Connect::SDK::V1::Domain::PaymentProduct302SpecificInput] payment_product302_specific_input
16
+ # @attr [String] recurring_end_date
14
17
  # @attr [Worldline::Connect::SDK::V1::Domain::Frequency] recurring_interval
18
+ # @attr [String] recurring_start_date
15
19
  # @attr [Worldline::Connect::SDK::V1::Domain::TrialInformation] trial_information
16
20
  class RecurringPaymentsData < Worldline::Connect::SDK::Domain::DataObject
17
21
 
22
+ attr_accessor :payment_product302_specific_input
23
+
24
+ attr_accessor :recurring_end_date
25
+
18
26
  attr_accessor :recurring_interval
19
27
 
28
+ attr_accessor :recurring_start_date
29
+
20
30
  attr_accessor :trial_information
21
31
 
22
32
  # @return (Hash)
23
33
  def to_h
24
34
  hash = super
35
+ hash['paymentProduct302SpecificInput'] = @payment_product302_specific_input.to_h unless @payment_product302_specific_input.nil?
36
+ hash['recurringEndDate'] = @recurring_end_date unless @recurring_end_date.nil?
25
37
  hash['recurringInterval'] = @recurring_interval.to_h unless @recurring_interval.nil?
38
+ hash['recurringStartDate'] = @recurring_start_date unless @recurring_start_date.nil?
26
39
  hash['trialInformation'] = @trial_information.to_h unless @trial_information.nil?
27
40
  hash
28
41
  end
29
42
 
30
43
  def from_hash(hash)
31
44
  super
45
+ if hash.has_key? 'paymentProduct302SpecificInput'
46
+ raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct302SpecificInput']] unless hash['paymentProduct302SpecificInput'].is_a? Hash
47
+ @payment_product302_specific_input = Worldline::Connect::SDK::V1::Domain::PaymentProduct302SpecificInput.new_from_hash(hash['paymentProduct302SpecificInput'])
48
+ end
49
+ if hash.has_key? 'recurringEndDate'
50
+ @recurring_end_date = hash['recurringEndDate']
51
+ end
32
52
  if hash.has_key? 'recurringInterval'
33
53
  raise TypeError, "value '%s' is not a Hash" % [hash['recurringInterval']] unless hash['recurringInterval'].is_a? Hash
34
54
  @recurring_interval = Worldline::Connect::SDK::V1::Domain::Frequency.new_from_hash(hash['recurringInterval'])
35
55
  end
56
+ if hash.has_key? 'recurringStartDate'
57
+ @recurring_start_date = hash['recurringStartDate']
58
+ end
36
59
  if hash.has_key? 'trialInformation'
37
60
  raise TypeError, "value '%s' is not a Hash" % [hash['trialInformation']] unless hash['trialInformation'].is_a? Hash
38
61
  @trial_information = Worldline::Connect::SDK::V1::Domain::TrialInformation.new_from_hash(hash['trialInformation'])
@@ -15,6 +15,7 @@ module Worldline
15
15
  # @attr [Worldline::Connect::SDK::V1::Domain::AmountOfMoney] amount_of_money_after_trial
16
16
  # @attr [String] end_date
17
17
  # @attr [true/false] is_recurring
18
+ # @attr [String] start_date
18
19
  # @attr [Worldline::Connect::SDK::V1::Domain::TrialPeriod] trial_period
19
20
  # @attr [Worldline::Connect::SDK::V1::Domain::Frequency] trial_period_recurring
20
21
  class TrialInformation < Worldline::Connect::SDK::Domain::DataObject
@@ -25,6 +26,8 @@ module Worldline
25
26
 
26
27
  attr_accessor :is_recurring
27
28
 
29
+ attr_accessor :start_date
30
+
28
31
  attr_accessor :trial_period
29
32
 
30
33
  attr_accessor :trial_period_recurring
@@ -35,6 +38,7 @@ module Worldline
35
38
  hash['amountOfMoneyAfterTrial'] = @amount_of_money_after_trial.to_h unless @amount_of_money_after_trial.nil?
36
39
  hash['endDate'] = @end_date unless @end_date.nil?
37
40
  hash['isRecurring'] = @is_recurring unless @is_recurring.nil?
41
+ hash['startDate'] = @start_date unless @start_date.nil?
38
42
  hash['trialPeriod'] = @trial_period.to_h unless @trial_period.nil?
39
43
  hash['trialPeriodRecurring'] = @trial_period_recurring.to_h unless @trial_period_recurring.nil?
40
44
  hash
@@ -52,6 +56,9 @@ module Worldline
52
56
  if hash.has_key? 'isRecurring'
53
57
  @is_recurring = hash['isRecurring']
54
58
  end
59
+ if hash.has_key? 'startDate'
60
+ @start_date = hash['startDate']
61
+ end
55
62
  if hash.has_key? 'trialPeriod'
56
63
  raise TypeError, "value '%s' is not a Hash" % [hash['trialPeriod']] unless hash['trialPeriod'].is_a? Hash
57
64
  @trial_period = Worldline::Connect::SDK::V1::Domain::TrialPeriod.new_from_hash(hash['trialPeriod'])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: connect-sdk-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.0
4
+ version: 4.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Worldline Global Collect
@@ -274,6 +274,7 @@ files:
274
274
  - lib/worldline/connect/sdk/v1/domain/abstract_cash_payment_method_specific_input.rb
275
275
  - lib/worldline/connect/sdk/v1/domain/abstract_e_invoice_payment_method_specific_input.rb
276
276
  - lib/worldline/connect/sdk/v1/domain/abstract_indicator.rb
277
+ - lib/worldline/connect/sdk/v1/domain/abstract_mobile_payment_method_specific_input.rb
277
278
  - lib/worldline/connect/sdk/v1/domain/abstract_order_status.rb
278
279
  - lib/worldline/connect/sdk/v1/domain/abstract_payment_method_specific_input.rb
279
280
  - lib/worldline/connect/sdk/v1/domain/abstract_payment_method_specific_output.rb
@@ -312,6 +313,7 @@ files:
312
313
  - lib/worldline/connect/sdk/v1/domain/approve_refund_request.rb
313
314
  - lib/worldline/connect/sdk/v1/domain/approve_token_request.rb
314
315
  - lib/worldline/connect/sdk/v1/domain/authentication_indicator.rb
316
+ - lib/worldline/connect/sdk/v1/domain/automatic_reload_billing_details.rb
315
317
  - lib/worldline/connect/sdk/v1/domain/bank_account.rb
316
318
  - lib/worldline/connect/sdk/v1/domain/bank_account_bban.rb
317
319
  - lib/worldline/connect/sdk/v1/domain/bank_account_bban_refund.rb
@@ -325,6 +327,7 @@ files:
325
327
  - lib/worldline/connect/sdk/v1/domain/bank_transfer_payment_method_specific_input_base.rb
326
328
  - lib/worldline/connect/sdk/v1/domain/bank_transfer_payment_method_specific_output.rb
327
329
  - lib/worldline/connect/sdk/v1/domain/bank_transfer_payout_method_specific_input.rb
330
+ - lib/worldline/connect/sdk/v1/domain/base_billing_details.rb
328
331
  - lib/worldline/connect/sdk/v1/domain/boleto_bancario_requiredness_validator.rb
329
332
  - lib/worldline/connect/sdk/v1/domain/browser_data.rb
330
333
  - lib/worldline/connect/sdk/v1/domain/cancel_approval_payment_response.rb
@@ -403,6 +406,7 @@ files:
403
406
  - lib/worldline/connect/sdk/v1/domain/cybersource_decision_manager.rb
404
407
  - lib/worldline/connect/sdk/v1/domain/debtor.rb
405
408
  - lib/worldline/connect/sdk/v1/domain/decrypted_payment_data.rb
409
+ - lib/worldline/connect/sdk/v1/domain/deferred_billing_details.rb
406
410
  - lib/worldline/connect/sdk/v1/domain/device_fingerprint_details.rb
407
411
  - lib/worldline/connect/sdk/v1/domain/device_fingerprint_request.rb
408
412
  - lib/worldline/connect/sdk/v1/domain/device_fingerprint_response.rb
@@ -524,6 +528,7 @@ files:
524
528
  - lib/worldline/connect/sdk/v1/domain/payment_output.rb
525
529
  - lib/worldline/connect/sdk/v1/domain/payment_product.rb
526
530
  - lib/worldline/connect/sdk/v1/domain/payment_product302_specific_data.rb
531
+ - lib/worldline/connect/sdk/v1/domain/payment_product302_specific_input.rb
527
532
  - lib/worldline/connect/sdk/v1/domain/payment_product3201_specific_output.rb
528
533
  - lib/worldline/connect/sdk/v1/domain/payment_product320_specific_data.rb
529
534
  - lib/worldline/connect/sdk/v1/domain/payment_product771_specific_output.rb
@@ -571,6 +576,7 @@ files:
571
576
  - lib/worldline/connect/sdk/v1/domain/personal_name_token.rb
572
577
  - lib/worldline/connect/sdk/v1/domain/protection_eligibility.rb
573
578
  - lib/worldline/connect/sdk/v1/domain/range_validator.rb
579
+ - lib/worldline/connect/sdk/v1/domain/recurring_billing_details.rb
574
580
  - lib/worldline/connect/sdk/v1/domain/recurring_payments_data.rb
575
581
  - lib/worldline/connect/sdk/v1/domain/redirect_data.rb
576
582
  - lib/worldline/connect/sdk/v1/domain/redirect_data_base.rb