connect-sdk-ruby 3.0.0 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/connect-sdk-ruby.gemspec +1 -1
- data/examples/v1/merchant/captures/create_refund_capture_example.rb +3 -3
- data/examples/v1/merchant/payments/create_payment_example.rb +3 -3
- data/examples/v1/merchant/payments/refund_payment_example.rb +3 -3
- data/examples/v1/merchant/payouts/create_payout_example.rb +3 -3
- data/lib/worldline/connect/sdk/communication/metadata_provider.rb +1 -1
- data/lib/worldline/connect/sdk/v1/api_exception.rb +5 -7
- data/lib/worldline/connect/sdk/v1/authorization_exception.rb +3 -3
- data/lib/worldline/connect/sdk/v1/declined_payment_exception.rb +12 -23
- data/lib/worldline/connect/sdk/v1/declined_payout_exception.rb +13 -24
- data/lib/worldline/connect/sdk/v1/declined_refund_exception.rb +13 -24
- data/lib/worldline/connect/sdk/v1/declined_transaction_exception.rb +2 -2
- data/lib/worldline/connect/sdk/v1/domain/abstract_card_payment_method_specific_input.rb +0 -3
- data/lib/worldline/connect/sdk/v1/domain/abstract_sepa_direct_debit_payment_product771_specific_input.rb +0 -1
- data/lib/worldline/connect/sdk/v1/domain/additional_order_input.rb +0 -3
- data/lib/worldline/connect/sdk/v1/domain/airline_data.rb +0 -1
- data/lib/worldline/connect/sdk/v1/domain/airline_flight_leg.rb +0 -1
- data/lib/worldline/connect/sdk/v1/domain/bank_transfer_payout_method_specific_input.rb +0 -1
- data/lib/worldline/connect/sdk/v1/domain/card_payment_method_specific_input.rb +0 -2
- data/lib/worldline/connect/sdk/v1/domain/card_payment_method_specific_output.rb +7 -0
- data/lib/worldline/connect/sdk/v1/domain/cash_payment_method_specific_input.rb +0 -1
- data/lib/worldline/connect/sdk/v1/domain/cash_payment_product1503_specific_input.rb +0 -1
- data/lib/worldline/connect/sdk/v1/domain/company_information.rb +7 -0
- data/lib/worldline/connect/sdk/v1/domain/create_payout_request.rb +0 -8
- data/lib/worldline/connect/sdk/v1/domain/created_payment_output.rb +0 -1
- data/lib/worldline/connect/sdk/v1/domain/customer.rb +0 -1
- data/lib/worldline/connect/sdk/v1/domain/customer_base.rb +0 -1
- data/lib/worldline/connect/sdk/v1/domain/customer_risk_assessment.rb +0 -1
- data/lib/worldline/connect/sdk/v1/domain/decrypted_payment_data.rb +0 -1
- data/lib/worldline/connect/sdk/v1/domain/device_render_options.rb +0 -1
- data/lib/worldline/connect/sdk/v1/domain/external_cardholder_authentication_data.rb +0 -1
- data/lib/worldline/connect/sdk/v1/domain/fraud_fields.rb +0 -12
- data/lib/worldline/connect/sdk/v1/domain/fraud_fields_shipping_details.rb +0 -3
- data/lib/worldline/connect/sdk/v1/domain/level3_summary_data.rb +0 -3
- data/lib/worldline/connect/sdk/v1/domain/line_item.rb +0 -1
- data/lib/worldline/connect/sdk/v1/domain/loan_recipient.rb +0 -5
- data/lib/worldline/connect/sdk/v1/domain/order.rb +0 -2
- data/lib/worldline/connect/sdk/v1/domain/order_line_details.rb +7 -0
- data/lib/worldline/connect/sdk/v1/domain/order_type_information.rb +7 -0
- data/lib/worldline/connect/sdk/v1/domain/payment_approval_response.rb +0 -1
- data/lib/worldline/connect/sdk/v1/domain/redirect_payment_method_specific_input.rb +0 -10
- data/lib/worldline/connect/sdk/v1/domain/redirect_payment_product809_specific_input.rb +0 -1
- data/lib/worldline/connect/sdk/v1/domain/redirect_payment_product840_specific_input.rb +0 -1
- data/lib/worldline/connect/sdk/v1/domain/shipping.rb +7 -0
- data/lib/worldline/connect/sdk/v1/domain/value_mapping_element.rb +0 -1
- data/lib/worldline/connect/sdk/v1/exception_factory.rb +19 -14
- data/lib/worldline/connect/sdk/v1/idempotence_exception.rb +2 -3
- data/lib/worldline/connect/sdk/v1/merchant/captures/captures_client.rb +6 -4
- data/lib/worldline/connect/sdk/v1/merchant/disputes/disputes_client.rb +12 -8
- data/lib/worldline/connect/sdk/v1/merchant/disputes/upload_file_request.rb +2 -1
- data/lib/worldline/connect/sdk/v1/merchant/files/files_client.rb +3 -2
- data/lib/worldline/connect/sdk/v1/merchant/hostedcheckouts/hostedcheckouts_client.rb +9 -6
- data/lib/worldline/connect/sdk/v1/merchant/hostedmandatemanagements/hostedmandatemanagements_client.rb +6 -4
- data/lib/worldline/connect/sdk/v1/merchant/installments/installments_client.rb +3 -2
- data/lib/worldline/connect/sdk/v1/merchant/mandates/mandates_client.rb +18 -12
- data/lib/worldline/connect/sdk/v1/merchant/merchant_client.rb +16 -0
- data/lib/worldline/connect/sdk/v1/merchant/payments/find_payments_params.rb +1 -0
- data/lib/worldline/connect/sdk/v1/merchant/payments/payments_client.rb +51 -34
- data/lib/worldline/connect/sdk/v1/merchant/payouts/find_payouts_params.rb +1 -0
- data/lib/worldline/connect/sdk/v1/merchant/payouts/payouts_client.rb +18 -12
- data/lib/worldline/connect/sdk/v1/merchant/productgroups/find_productgroups_params.rb +1 -0
- data/lib/worldline/connect/sdk/v1/merchant/productgroups/get_productgroup_params.rb +1 -0
- data/lib/worldline/connect/sdk/v1/merchant/productgroups/productgroups_client.rb +9 -6
- data/lib/worldline/connect/sdk/v1/merchant/products/directory_params.rb +1 -0
- data/lib/worldline/connect/sdk/v1/merchant/products/find_products_params.rb +1 -0
- data/lib/worldline/connect/sdk/v1/merchant/products/get_product_params.rb +1 -0
- data/lib/worldline/connect/sdk/v1/merchant/products/networks_params.rb +1 -0
- data/lib/worldline/connect/sdk/v1/merchant/products/products_client.rb +21 -14
- data/lib/worldline/connect/sdk/v1/merchant/refunds/find_refunds_params.rb +1 -0
- data/lib/worldline/connect/sdk/v1/merchant/refunds/refunds_client.rb +15 -10
- data/lib/worldline/connect/sdk/v1/merchant/riskassessments/riskassessments_client.rb +6 -4
- data/lib/worldline/connect/sdk/v1/merchant/services/convert_amount_params.rb +1 -0
- data/lib/worldline/connect/sdk/v1/merchant/services/privacypolicy_params.rb +1 -0
- data/lib/worldline/connect/sdk/v1/merchant/services/services_client.rb +15 -10
- data/lib/worldline/connect/sdk/v1/merchant/sessions/sessions_client.rb +3 -2
- data/lib/worldline/connect/sdk/v1/merchant/tokens/delete_token_params.rb +1 -0
- data/lib/worldline/connect/sdk/v1/merchant/tokens/tokens_client.rb +15 -10
- data/lib/worldline/connect/sdk/v1/platform_exception.rb +2 -4
- data/lib/worldline/connect/sdk/v1/reference_exception.rb +1 -2
- data/lib/worldline/connect/sdk/v1/v1_client.rb +1 -0
- data/lib/worldline/connect/sdk/v1/validation_exception.rb +2 -3
- data/lib/worldline/connect/sdk/v1/webhooks/v1_webhooks_factory.rb +1 -0
- metadata +2 -3
- data/lib/worldline/connect/sdk/v1/domain/redirect_payment_product816_specific_input.rb +0 -37
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f13c96b2c167c5b1f5665adc4e6006189c00c92d3183c8183d2c10f9b172d995
|
4
|
+
data.tar.gz: c9c77cbb8aef6ba1fac3086bf15537813bd0c8ea29f8f2def6901fb8fdf33a94
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 041e1ea9d321498af00f39a210bde17a810354b5c7d1d4c02467305c9d63bc9e1208d9083c0534ad41a4769edc9e9dd8b1dd9507ffa93577098b171d59af0b3f
|
7
|
+
data.tar.gz: c4eeada737202e4353ec11ac0b395ee3a3bba37dd3c5f5b483797e7648af55772f9e82a06c8ac66d1e18cd0994292dab89f264d4d6fa38962f060dd471f679d8
|
data/connect-sdk-ruby.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = 'connect-sdk-ruby'
|
3
|
-
spec.version = '3.
|
3
|
+
spec.version = '3.2.0'
|
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}
|
@@ -29,7 +29,7 @@ def example
|
|
29
29
|
rescue Worldline::Connect::SDK::V1::DeclinedRefundException => e
|
30
30
|
handle_declined_refund(e.refund_result)
|
31
31
|
rescue Worldline::Connect::SDK::V1::ApiException => e
|
32
|
-
|
32
|
+
handle_error_response(e.error_id, e.errors)
|
33
33
|
end
|
34
34
|
end
|
35
35
|
end
|
@@ -48,6 +48,6 @@ def handle_declined_refund(refund_result)
|
|
48
48
|
# handle the result here
|
49
49
|
end
|
50
50
|
|
51
|
-
def
|
52
|
-
# handle the
|
51
|
+
def handle_error_response(error_id, errors)
|
52
|
+
# handle the error response here
|
53
53
|
end
|
@@ -198,7 +198,7 @@ def example
|
|
198
198
|
rescue Worldline::Connect::SDK::V1::DeclinedPaymentException => e
|
199
199
|
handle_declined_payment(e.payment_result)
|
200
200
|
rescue Worldline::Connect::SDK::V1::ApiException => e
|
201
|
-
|
201
|
+
handle_error_response(e.error_id, e.errors)
|
202
202
|
end
|
203
203
|
end
|
204
204
|
end
|
@@ -217,6 +217,6 @@ def handle_declined_payment(create_payment_result)
|
|
217
217
|
# handle the result here
|
218
218
|
end
|
219
219
|
|
220
|
-
def
|
221
|
-
# handle the
|
220
|
+
def handle_error_response(error_id, errors)
|
221
|
+
# handle the error response here
|
222
222
|
end
|
@@ -59,7 +59,7 @@ def example
|
|
59
59
|
rescue Worldline::Connect::SDK::V1::DeclinedRefundException => e
|
60
60
|
handle_declined_refund(e.refund_result)
|
61
61
|
rescue Worldline::Connect::SDK::V1::ApiException => e
|
62
|
-
|
62
|
+
handle_error_response(e.error_id, e.errors)
|
63
63
|
end
|
64
64
|
end
|
65
65
|
end
|
@@ -78,6 +78,6 @@ def handle_declined_refund(refund_result)
|
|
78
78
|
# handle the result here
|
79
79
|
end
|
80
80
|
|
81
|
-
def
|
82
|
-
# handle the
|
81
|
+
def handle_error_response(error_id, errors)
|
82
|
+
# handle the error response here
|
83
83
|
end
|
@@ -78,7 +78,7 @@ def example
|
|
78
78
|
rescue Worldline::Connect::SDK::V1::DeclinedPayoutException => e
|
79
79
|
handle_declined_payout(e.payout_result)
|
80
80
|
rescue Worldline::Connect::SDK::V1::ApiException => e
|
81
|
-
|
81
|
+
handle_error_response(e.error_id, e.errors)
|
82
82
|
end
|
83
83
|
end
|
84
84
|
end
|
@@ -97,6 +97,6 @@ def handle_declined_payout(payout_result)
|
|
97
97
|
# handle the result here
|
98
98
|
end
|
99
99
|
|
100
|
-
def
|
101
|
-
# handle the
|
100
|
+
def handle_error_response(error_id, errors)
|
101
|
+
# handle the error response here
|
102
102
|
end
|
@@ -14,7 +14,7 @@ module Worldline
|
|
14
14
|
class MetadataProvider
|
15
15
|
private
|
16
16
|
|
17
|
-
SDK_VERSION = '3.
|
17
|
+
SDK_VERSION = '3.2.0'.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
|
@@ -8,14 +8,12 @@ module Worldline
|
|
8
8
|
module Connect
|
9
9
|
module SDK
|
10
10
|
module V1
|
11
|
-
#
|
12
|
-
# It is raised when an error response is received from the Worldline Global Collect platform.
|
13
|
-
# It contains data about the returned response.
|
11
|
+
# Represents an error response from the Worldline Global Collect platform which contains an ID and a list of errors.
|
14
12
|
#
|
15
13
|
# @attr_reader [Integer] status_code HTTP status code of the returned response.
|
16
14
|
# @attr_reader [String] response_body Message body of the returned response.
|
17
|
-
# @attr_reader [String]
|
18
|
-
# @attr_reader [Array<Worldline::Connect::SDK::V1::Domain::APIError>] errors
|
15
|
+
# @attr_reader [String] error_id The _errorId_ received from the Worldline Global Collect platform if available.
|
16
|
+
# @attr_reader [Array<Worldline::Connect::SDK::V1::Domain::APIError>] errors The _errors_ received from the Worldline Global Collect platform if available;
|
19
17
|
# may be empty but never _nil_
|
20
18
|
class ApiException < RuntimeError
|
21
19
|
|
@@ -23,8 +21,8 @@ module Worldline
|
|
23
21
|
#
|
24
22
|
# @param status_code (Integer) HTTP status code the response
|
25
23
|
# @param response_body (String) HTTP response body
|
26
|
-
# @param error_id (String)
|
27
|
-
# @param errors (Array<Worldline::Connect::SDK::V1::Domain::APIError>)
|
24
|
+
# @param error_id (String) The _errorId_ received from the Worldline Global Collect platform
|
25
|
+
# @param errors (Array<Worldline::Connect::SDK::V1::Domain::APIError>) The _errors_ received from the Worldline Global Collect platform
|
28
26
|
# @param message (String) error message to include
|
29
27
|
def initialize(status_code, response_body, error_id, errors,
|
30
28
|
message='the Worldline Global Collect platform returned an error response')
|
@@ -8,11 +8,11 @@ module Worldline
|
|
8
8
|
module Connect
|
9
9
|
module SDK
|
10
10
|
module V1
|
11
|
-
#
|
12
|
-
# Corresponds to a HTTP status code of 403.
|
13
|
-
# @see ApiException#initialize
|
11
|
+
# Represents an error response from the Worldline Global Collect platform when authorization failed.
|
14
12
|
class AuthorizationException < ApiException
|
15
13
|
|
14
|
+
# Create a new AuthorizationException.
|
15
|
+
# @see ApiException#initialize
|
16
16
|
def initialize(status_code, response_body, error_id, errors,
|
17
17
|
message='the Worldline Global Collect platform returned an authorization error response')
|
18
18
|
super(status_code, response_body, error_id, errors, message)
|
@@ -2,48 +2,37 @@
|
|
2
2
|
# This class was auto-generated from the API references found at
|
3
3
|
# https://apireference.connect.worldline-solutions.com/
|
4
4
|
#
|
5
|
-
|
5
|
+
require_relative 'declined_transaction_exception'
|
6
6
|
|
7
7
|
module Worldline
|
8
8
|
module Connect
|
9
9
|
module SDK
|
10
10
|
module V1
|
11
|
-
#
|
11
|
+
# Represents an error response from a create payment call.
|
12
12
|
class DeclinedPaymentException < DeclinedTransactionException
|
13
13
|
|
14
14
|
# Create a new DeclinedPaymentException.
|
15
15
|
# @see ApiException#initialize
|
16
|
-
def initialize(status_code, response_body,
|
17
|
-
|
18
|
-
|
19
|
-
else
|
20
|
-
super(status_code, response_body, errors.error_id, errors.errors, build_message(errors))
|
21
|
-
end
|
22
|
-
@errors = errors
|
16
|
+
def initialize(status_code, response_body, response)
|
17
|
+
super(status_code, response_body, response&.error_id, response&.errors, build_message(response))
|
18
|
+
@response = response
|
23
19
|
end
|
24
20
|
|
25
|
-
# The
|
26
|
-
# @return [Worldline::Connect::SDK::V1::Domain::CreatePaymentResult]
|
21
|
+
# The result of creating a payment
|
22
|
+
# @return [Worldline::Connect::SDK::V1::Domain::CreatePaymentResult, nil]
|
27
23
|
def payment_result
|
28
|
-
|
29
|
-
nil
|
30
|
-
else
|
31
|
-
@errors.payment_result
|
32
|
-
end
|
24
|
+
@response&.payment_result
|
33
25
|
end
|
34
26
|
|
35
27
|
private
|
36
28
|
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
else
|
41
|
-
payment = nil
|
42
|
-
end
|
29
|
+
# @param response [Worldline::Connect::SDK::V1::Domain::PaymentErrorResponse, nil]
|
30
|
+
def build_message(response)
|
31
|
+
payment = response&.payment_result&.payment
|
43
32
|
if payment.nil?
|
44
33
|
'the Worldline Global Collect platform returned a declined payment response'
|
45
34
|
else
|
46
|
-
"declined payment '
|
35
|
+
"declined payment '#{payment.id}' with status '#{payment.status}'"
|
47
36
|
end
|
48
37
|
end
|
49
38
|
end
|
@@ -2,48 +2,37 @@
|
|
2
2
|
# This class was auto-generated from the API references found at
|
3
3
|
# https://apireference.connect.worldline-solutions.com/
|
4
4
|
#
|
5
|
-
|
5
|
+
require_relative 'declined_transaction_exception'
|
6
6
|
|
7
7
|
module Worldline
|
8
8
|
module Connect
|
9
9
|
module SDK
|
10
10
|
module V1
|
11
|
-
#
|
11
|
+
# Represents an error response from a payout call.
|
12
12
|
class DeclinedPayoutException < DeclinedTransactionException
|
13
13
|
|
14
14
|
# Create a new DeclinedPayoutException.
|
15
15
|
# @see ApiException#initialize
|
16
|
-
def initialize(status_code, response_body,
|
17
|
-
|
18
|
-
|
19
|
-
else
|
20
|
-
super(status_code, response_body, errors.error_id, errors.errors, build_message(errors))
|
21
|
-
end
|
22
|
-
@errors = errors
|
16
|
+
def initialize(status_code, response_body, response)
|
17
|
+
super(status_code, response_body, response&.error_id, response&.errors, build_message(response))
|
18
|
+
@response = response
|
23
19
|
end
|
24
20
|
|
25
|
-
# The
|
26
|
-
# @return [Worldline::Connect::SDK::V1::Domain::PayoutResult]
|
21
|
+
# The result of creating a payout
|
22
|
+
# @return [Worldline::Connect::SDK::V1::Domain::PayoutResult, nil]
|
27
23
|
def payout_result
|
28
|
-
|
29
|
-
nil
|
30
|
-
else
|
31
|
-
@errors.payout_result
|
32
|
-
end
|
24
|
+
@response&.payout_result
|
33
25
|
end
|
34
26
|
|
35
27
|
private
|
36
28
|
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
payout = nil
|
42
|
-
end
|
43
|
-
if payout.nil?
|
29
|
+
# @param response [Worldline::Connect::SDK::V1::Domain::PayoutErrorResponse, nil]
|
30
|
+
def build_message(response)
|
31
|
+
payout_result = response&.payout_result
|
32
|
+
if payout_result.nil?
|
44
33
|
'the Worldline Global Collect platform returned a declined payout response'
|
45
34
|
else
|
46
|
-
"declined payout '
|
35
|
+
"declined payout '#{payout_result.id}' with status '#{payout_result.status}'"
|
47
36
|
end
|
48
37
|
end
|
49
38
|
end
|
@@ -2,48 +2,37 @@
|
|
2
2
|
# This class was auto-generated from the API references found at
|
3
3
|
# https://apireference.connect.worldline-solutions.com/
|
4
4
|
#
|
5
|
-
|
5
|
+
require_relative 'declined_transaction_exception'
|
6
6
|
|
7
7
|
module Worldline
|
8
8
|
module Connect
|
9
9
|
module SDK
|
10
10
|
module V1
|
11
|
-
#
|
11
|
+
# Represents an error response from a refund call.
|
12
12
|
class DeclinedRefundException < DeclinedTransactionException
|
13
13
|
|
14
14
|
# Create a new DeclinedRefundException.
|
15
15
|
# @see ApiException#initialize
|
16
|
-
def initialize(status_code, response_body,
|
17
|
-
|
18
|
-
|
19
|
-
else
|
20
|
-
super(status_code, response_body, errors.error_id, errors.errors, build_message(errors))
|
21
|
-
end
|
22
|
-
@errors = errors
|
16
|
+
def initialize(status_code, response_body, response)
|
17
|
+
super(status_code, response_body, response&.error_id, response&.errors, build_message(response))
|
18
|
+
@response = response
|
23
19
|
end
|
24
20
|
|
25
|
-
# The
|
26
|
-
# @return [Worldline::Connect::SDK::V1::Domain::RefundResult]
|
21
|
+
# The result of creating a refund
|
22
|
+
# @return [Worldline::Connect::SDK::V1::Domain::RefundResult, nil]
|
27
23
|
def refund_result
|
28
|
-
|
29
|
-
nil
|
30
|
-
else
|
31
|
-
@errors.refund_result
|
32
|
-
end
|
24
|
+
@response&.refund_result
|
33
25
|
end
|
34
26
|
|
35
27
|
private
|
36
28
|
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
refund = nil
|
42
|
-
end
|
43
|
-
if refund.nil?
|
29
|
+
# @param response [Worldline::Connect::SDK::V1::Domain::RefundErrorResponse, nil]
|
30
|
+
def build_message(response)
|
31
|
+
refund_result = response&.refund_result
|
32
|
+
if refund_result.nil?
|
44
33
|
'the Worldline Global Collect platform returned a declined refund response'
|
45
34
|
else
|
46
|
-
"declined refund '
|
35
|
+
"declined refund '#{refund_result.id}' with status '#{refund_result.status}'"
|
47
36
|
end
|
48
37
|
end
|
49
38
|
end
|
@@ -2,13 +2,13 @@
|
|
2
2
|
# This class was auto-generated from the API references found at
|
3
3
|
# https://apireference.connect.worldline-solutions.com/
|
4
4
|
#
|
5
|
-
|
5
|
+
require_relative 'api_exception'
|
6
6
|
|
7
7
|
module Worldline
|
8
8
|
module Connect
|
9
9
|
module SDK
|
10
10
|
module V1
|
11
|
-
#
|
11
|
+
# Represents an error response from a create payment, payout or refund call.
|
12
12
|
class DeclinedTransactionException < ApiException
|
13
13
|
|
14
14
|
# Create a new DeclinedTransactionException.
|
@@ -37,13 +37,11 @@ module Worldline
|
|
37
37
|
|
38
38
|
attr_accessor :recurring
|
39
39
|
|
40
|
-
#
|
41
40
|
# @deprecated Use recurring.recurringPaymentSequenceIndicator instead
|
42
41
|
attr_accessor :recurring_payment_sequence_indicator
|
43
42
|
|
44
43
|
attr_accessor :requires_approval
|
45
44
|
|
46
|
-
#
|
47
45
|
# @deprecated Use threeDSecure.skipAuthentication instead
|
48
46
|
attr_accessor :skip_authentication
|
49
47
|
|
@@ -55,7 +53,6 @@ module Worldline
|
|
55
53
|
|
56
54
|
attr_accessor :transaction_channel
|
57
55
|
|
58
|
-
#
|
59
56
|
# @deprecated Use unscheduledCardOnFileSequenceIndicator instead
|
60
57
|
attr_accessor :unscheduled_card_on_file_indicator
|
61
58
|
|
@@ -12,7 +12,6 @@ module Worldline
|
|
12
12
|
# @attr [String] mandate_reference
|
13
13
|
class AbstractSepaDirectDebitPaymentProduct771SpecificInput < Worldline::Connect::SDK::Domain::DataObject
|
14
14
|
|
15
|
-
#
|
16
15
|
# @deprecated Use existingUniqueMandateReference or mandate.uniqueMandateReference instead
|
17
16
|
attr_accessor :mandate_reference
|
18
17
|
|
@@ -33,17 +33,14 @@ module Worldline
|
|
33
33
|
|
34
34
|
attr_accessor :installments
|
35
35
|
|
36
|
-
#
|
37
36
|
# @deprecated Use Order.shoppingCart.amountBreakdown instead
|
38
37
|
attr_accessor :level3_summary_data
|
39
38
|
|
40
|
-
#
|
41
39
|
# @deprecated No replacement
|
42
40
|
attr_accessor :loan_recipient
|
43
41
|
|
44
42
|
attr_accessor :lodging_data
|
45
43
|
|
46
|
-
#
|
47
44
|
# @deprecated Use installments.numberOfInstallments instead
|
48
45
|
attr_accessor :number_of_installments
|
49
46
|
|
@@ -24,7 +24,6 @@ module Worldline
|
|
24
24
|
|
25
25
|
attr_accessor :card
|
26
26
|
|
27
|
-
#
|
28
27
|
# @deprecated Use threeDSecure.externalCardholderAuthenticationData instead
|
29
28
|
attr_accessor :external_cardholder_authentication_data
|
30
29
|
|
@@ -34,7 +33,6 @@ module Worldline
|
|
34
33
|
|
35
34
|
attr_accessor :network_token_data
|
36
35
|
|
37
|
-
#
|
38
36
|
# @deprecated Use threeDSecure.redirectionData.returnUrl instead
|
39
37
|
attr_accessor :return_url
|
40
38
|
|
@@ -16,6 +16,7 @@ module Worldline
|
|
16
16
|
# @attr [Worldline::Connect::SDK::V1::Domain::CardEssentials] card
|
17
17
|
# @attr [Worldline::Connect::SDK::V1::Domain::CardFraudResults] fraud_results
|
18
18
|
# @attr [String] initial_scheme_transaction_id
|
19
|
+
# @attr [true/false] network_token_used
|
19
20
|
# @attr [String] scheme_transaction_id
|
20
21
|
# @attr [Worldline::Connect::SDK::V1::Domain::ThreeDSecureResults] three_d_secure_results
|
21
22
|
# @attr [String] token
|
@@ -29,6 +30,8 @@ module Worldline
|
|
29
30
|
|
30
31
|
attr_accessor :initial_scheme_transaction_id
|
31
32
|
|
33
|
+
attr_accessor :network_token_used
|
34
|
+
|
32
35
|
attr_accessor :scheme_transaction_id
|
33
36
|
|
34
37
|
attr_accessor :three_d_secure_results
|
@@ -42,6 +45,7 @@ module Worldline
|
|
42
45
|
hash['card'] = @card.to_h unless @card.nil?
|
43
46
|
hash['fraudResults'] = @fraud_results.to_h unless @fraud_results.nil?
|
44
47
|
hash['initialSchemeTransactionId'] = @initial_scheme_transaction_id unless @initial_scheme_transaction_id.nil?
|
48
|
+
hash['networkTokenUsed'] = @network_token_used unless @network_token_used.nil?
|
45
49
|
hash['schemeTransactionId'] = @scheme_transaction_id unless @scheme_transaction_id.nil?
|
46
50
|
hash['threeDSecureResults'] = @three_d_secure_results.to_h unless @three_d_secure_results.nil?
|
47
51
|
hash['token'] = @token unless @token.nil?
|
@@ -64,6 +68,9 @@ module Worldline
|
|
64
68
|
if hash.has_key? 'initialSchemeTransactionId'
|
65
69
|
@initial_scheme_transaction_id = hash['initialSchemeTransactionId']
|
66
70
|
end
|
71
|
+
if hash.has_key? 'networkTokenUsed'
|
72
|
+
@network_token_used = hash['networkTokenUsed']
|
73
|
+
end
|
67
74
|
if hash.has_key? 'schemeTransactionId'
|
68
75
|
@scheme_transaction_id = hash['schemeTransactionId']
|
69
76
|
end
|
@@ -25,7 +25,6 @@ module Worldline
|
|
25
25
|
# @attr [Worldline::Connect::SDK::V1::Domain::CashPaymentProduct1526SpecificInput] payment_product1526_specific_input
|
26
26
|
class CashPaymentMethodSpecificInput < Worldline::Connect::SDK::V1::Domain::AbstractCashPaymentMethodSpecificInput
|
27
27
|
|
28
|
-
#
|
29
28
|
# @deprecated No replacement
|
30
29
|
attr_accessor :payment_product1503_specific_input
|
31
30
|
|
@@ -13,7 +13,6 @@ module Worldline
|
|
13
13
|
# @deprecated No replacement
|
14
14
|
class CashPaymentProduct1503SpecificInput < Worldline::Connect::SDK::Domain::DataObject
|
15
15
|
|
16
|
-
#
|
17
16
|
# @deprecated No replacement, since Boleto Bancario no longer needs a return URL
|
18
17
|
attr_accessor :return_url
|
19
18
|
|
@@ -9,10 +9,13 @@ module Worldline
|
|
9
9
|
module SDK
|
10
10
|
module V1
|
11
11
|
module Domain
|
12
|
+
# @attr [String] date_of_incorporation
|
12
13
|
# @attr [String] name
|
13
14
|
# @attr [String] vat_number
|
14
15
|
class CompanyInformation < Worldline::Connect::SDK::Domain::DataObject
|
15
16
|
|
17
|
+
attr_accessor :date_of_incorporation
|
18
|
+
|
16
19
|
attr_accessor :name
|
17
20
|
|
18
21
|
attr_accessor :vat_number
|
@@ -20,6 +23,7 @@ module Worldline
|
|
20
23
|
# @return (Hash)
|
21
24
|
def to_h
|
22
25
|
hash = super
|
26
|
+
hash['dateOfIncorporation'] = @date_of_incorporation unless @date_of_incorporation.nil?
|
23
27
|
hash['name'] = @name unless @name.nil?
|
24
28
|
hash['vatNumber'] = @vat_number unless @vat_number.nil?
|
25
29
|
hash
|
@@ -27,6 +31,9 @@ module Worldline
|
|
27
31
|
|
28
32
|
def from_hash(hash)
|
29
33
|
super
|
34
|
+
if hash.has_key? 'dateOfIncorporation'
|
35
|
+
@date_of_incorporation = hash['dateOfIncorporation']
|
36
|
+
end
|
30
37
|
if hash.has_key? 'name'
|
31
38
|
@name = hash['name']
|
32
39
|
end
|
@@ -32,15 +32,12 @@ module Worldline
|
|
32
32
|
# @attr [String] swift_code
|
33
33
|
class CreatePayoutRequest < Worldline::Connect::SDK::Domain::DataObject
|
34
34
|
|
35
|
-
#
|
36
35
|
# @deprecated Moved to PayoutDetails
|
37
36
|
attr_accessor :amount_of_money
|
38
37
|
|
39
|
-
#
|
40
38
|
# @deprecated Moved to BankTransferPayoutMethodSpecificInput
|
41
39
|
attr_accessor :bank_account_bban
|
42
40
|
|
43
|
-
#
|
44
41
|
# @deprecated Moved to BankTransferPayoutMethodSpecificInput
|
45
42
|
attr_accessor :bank_account_iban
|
46
43
|
|
@@ -48,27 +45,22 @@ module Worldline
|
|
48
45
|
|
49
46
|
attr_accessor :card_payout_method_specific_input
|
50
47
|
|
51
|
-
#
|
52
48
|
# @deprecated Moved to PayoutDetails
|
53
49
|
attr_accessor :customer
|
54
50
|
|
55
51
|
attr_accessor :merchant
|
56
52
|
|
57
|
-
#
|
58
53
|
# @deprecated Moved to BankTransferPayoutMethodSpecificInput
|
59
54
|
attr_accessor :payout_date
|
60
55
|
|
61
56
|
attr_accessor :payout_details
|
62
57
|
|
63
|
-
#
|
64
58
|
# @deprecated Moved to BankTransferPayoutMethodSpecificInput
|
65
59
|
attr_accessor :payout_text
|
66
60
|
|
67
|
-
#
|
68
61
|
# @deprecated Moved to PayoutDetails
|
69
62
|
attr_accessor :references
|
70
63
|
|
71
|
-
#
|
72
64
|
# @deprecated Moved to BankTransferPayoutMethodSpecificInput
|
73
65
|
attr_accessor :swift_code
|
74
66
|
|