checkout_sdk 1.1.5 → 1.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/checkout_sdk/accounts/company_verification.rb +14 -0
- data/lib/checkout_sdk/accounts/company_verification_type.rb +10 -0
- data/lib/checkout_sdk/accounts/entity_financial_details.rb +4 -1
- data/lib/checkout_sdk/accounts/individual.rb +4 -1
- data/lib/checkout_sdk/accounts/onboard_entity.rb +4 -1
- data/lib/checkout_sdk/accounts/onboard_sub_entity_documents.rb +17 -0
- data/lib/checkout_sdk/accounts/representative.rb +4 -1
- data/lib/checkout_sdk/accounts/tax_verification.rb +14 -0
- data/lib/checkout_sdk/accounts/tax_verification_type.rb +9 -0
- data/lib/checkout_sdk/checkout_api.rb +7 -1
- data/lib/checkout_sdk/disputes/disputes_client.rb +6 -0
- data/lib/checkout_sdk/payments/hosted/hosted_payments_session.rb +3 -0
- data/lib/checkout_sdk/payments/payment_request.rb +10 -1
- data/lib/checkout_sdk/payments/payment_retry_request.rb +17 -0
- data/lib/checkout_sdk/payments/payment_segment.rb +17 -0
- data/lib/checkout_sdk/payments/payments.rb +3 -0
- data/lib/checkout_sdk/payments/sessions/payment_sessions_client.rb +20 -0
- data/lib/checkout_sdk/payments/source/apm/giropay_source.rb +4 -0
- data/lib/checkout_sdk/sessions/completion/non_hosted_completion_info.rb +4 -1
- data/lib/checkout_sdk/version.rb +1 -1
- metadata +10 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2a7e1557158e8381bfbf318e1cfef80519f8df0889b98e28b8a33ea220873a5
|
4
|
+
data.tar.gz: 93f1dbae3763bca6872f065d077e3ff113c9dec6e67f39071b5c8cbf05cfc037
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e7a17d7f19728b444b4b02689f178aa0fa3a6e66d07d6462f39f9766dae5da3aea839ed7c7ad0a571c87043fd42d69361a2a9afbfae4bdca4c68bfe81535af7
|
7
|
+
data.tar.gz: c5d72ac85ba9b18281912ffc445a116dc1435237526b8a2b8afe7a2d9283f8ec90d96bdf6316a6e24ccb5b8654614ae3dc127924da48632e22f73830291f7b59
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module CheckoutSdk
|
4
|
+
module Accounts
|
5
|
+
# @!attribute type
|
6
|
+
# @return [String] {CompanyVerificationType}
|
7
|
+
# @!attribute front
|
8
|
+
# @return [String]
|
9
|
+
class CompanyVerification
|
10
|
+
attr_accessor :type,
|
11
|
+
:front
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -10,11 +10,14 @@ module CheckoutSdk
|
|
10
10
|
# @return [Integer]
|
11
11
|
# @!attribute documents
|
12
12
|
# @return [EntityFinancialDocuments]
|
13
|
+
# @!attribute currency
|
14
|
+
# @return [String] {CheckoutSdk::Common::Currency}
|
13
15
|
class EntityFinancialDetails
|
14
16
|
attr_accessor :annual_processing_volume,
|
15
17
|
:average_transaction_value,
|
16
18
|
:highest_transaction_value,
|
17
|
-
:documents
|
19
|
+
:documents,
|
20
|
+
:currency
|
18
21
|
end
|
19
22
|
end
|
20
23
|
end
|
@@ -22,6 +22,8 @@ module CheckoutSdk
|
|
22
22
|
# @return [PlaceOfBirth]
|
23
23
|
# @!attribute identification
|
24
24
|
# @return [Identification]
|
25
|
+
# @!attribute financial_details
|
26
|
+
# @return [EntityFinancialDetails]
|
25
27
|
class Individual
|
26
28
|
attr_accessor :first_name,
|
27
29
|
:middle_name,
|
@@ -32,7 +34,8 @@ module CheckoutSdk
|
|
32
34
|
:registered_address,
|
33
35
|
:date_of_birth,
|
34
36
|
:place_of_birth,
|
35
|
-
:identification
|
37
|
+
:identification,
|
38
|
+
:financial_details
|
36
39
|
end
|
37
40
|
end
|
38
41
|
end
|
@@ -12,12 +12,15 @@ module CheckoutSdk
|
|
12
12
|
# @return [Company]
|
13
13
|
# @!attribute individual
|
14
14
|
# @return [Individual]
|
15
|
+
# @!attribute documents
|
16
|
+
# @return [OnboardSubEntityDocuments]
|
15
17
|
class OnboardEntity
|
16
18
|
attr_accessor :reference,
|
17
19
|
:contact_details,
|
18
20
|
:profile,
|
19
21
|
:company,
|
20
|
-
:individual
|
22
|
+
:individual,
|
23
|
+
:documents
|
21
24
|
end
|
22
25
|
end
|
23
26
|
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module CheckoutSdk
|
4
|
+
module Accounts
|
5
|
+
# @!attribute documents
|
6
|
+
# @return [Document]
|
7
|
+
# @!attribute company_verification
|
8
|
+
# @return [CompanyVerification]
|
9
|
+
# @!attribute tax_verification
|
10
|
+
# @return [TaxVerification]
|
11
|
+
class OnboardSubEntityDocuments
|
12
|
+
attr_accessor :documents,
|
13
|
+
:company_verification,
|
14
|
+
:tax_verification
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -20,6 +20,8 @@ module CheckoutSdk
|
|
20
20
|
# @return [PlaceOfBirth]
|
21
21
|
# @!attribute roles
|
22
22
|
# @return [Array(String)]
|
23
|
+
# @!attribute documents
|
24
|
+
# @return [OnboardSubEntityDocuments]
|
23
25
|
class Representative
|
24
26
|
attr_accessor :id,
|
25
27
|
:first_name,
|
@@ -29,7 +31,8 @@ module CheckoutSdk
|
|
29
31
|
:phone,
|
30
32
|
:date_of_birth,
|
31
33
|
:place_of_birth,
|
32
|
-
:roles
|
34
|
+
:roles,
|
35
|
+
:documents
|
33
36
|
end
|
34
37
|
end
|
35
38
|
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module CheckoutSdk
|
4
|
+
module Accounts
|
5
|
+
# @!attribute type
|
6
|
+
# @return [String] {TaxVerificationType}
|
7
|
+
# @!attribute front
|
8
|
+
# @return [String]
|
9
|
+
class TaxVerification
|
10
|
+
attr_accessor :type,
|
11
|
+
:front
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -39,6 +39,10 @@ module CheckoutSdk
|
|
39
39
|
# @return [CheckoutSdk::Financial::FinancialClient]
|
40
40
|
# @!attribute issuing
|
41
41
|
# @return [CheckoutSdk::Issuing::IssuingClient]
|
42
|
+
# @!attribute contexts
|
43
|
+
# @return [CheckoutSdk::Payments::PaymentContextsClient]
|
44
|
+
# @!attribute payment_sessions
|
45
|
+
# @return [CheckoutSdk::Payments::PaymentSessionsClient]
|
42
46
|
class CheckoutApi
|
43
47
|
attr_reader :customers,
|
44
48
|
:disputes,
|
@@ -59,7 +63,8 @@ module CheckoutSdk
|
|
59
63
|
:metadata,
|
60
64
|
:financial,
|
61
65
|
:issuing,
|
62
|
-
:contexts
|
66
|
+
:contexts,
|
67
|
+
:payment_sessions
|
63
68
|
|
64
69
|
# @param [CheckoutConfiguration] configuration
|
65
70
|
def initialize(configuration)
|
@@ -84,6 +89,7 @@ module CheckoutSdk
|
|
84
89
|
@financial = CheckoutSdk::Financial::FinancialClient.new api_client, configuration
|
85
90
|
@issuing = CheckoutSdk::Issuing::IssuingClient.new api_client, configuration
|
86
91
|
@contexts = CheckoutSdk::Payments::PaymentContextsClient.new api_client, configuration
|
92
|
+
@payment_sessions = CheckoutSdk::Payments::PaymentSessionsClient.new api_client, configuration
|
87
93
|
end
|
88
94
|
|
89
95
|
private
|
@@ -7,6 +7,7 @@ module CheckoutSdk
|
|
7
7
|
FILES = 'files'
|
8
8
|
ACCEPT = 'accept'
|
9
9
|
EVIDENCE = 'evidence'
|
10
|
+
SUBMITTED = 'submitted'
|
10
11
|
SCHEME_FILES = 'schemefiles'
|
11
12
|
private_constant :DISPUTES, :FILES, :ACCEPT, :EVIDENCE, :SCHEME_FILES
|
12
13
|
|
@@ -47,6 +48,11 @@ module CheckoutSdk
|
|
47
48
|
api_client.invoke_post(build_path(DISPUTES, dispute_id, EVIDENCE), sdk_authorization)
|
48
49
|
end
|
49
50
|
|
51
|
+
# @param [String] dispute_id
|
52
|
+
def get_compiled_submitted_evidence(dispute_id)
|
53
|
+
api_client.invoke_get(build_path(DISPUTES, dispute_id, EVIDENCE, SUBMITTED), sdk_authorization)
|
54
|
+
end
|
55
|
+
|
50
56
|
# @param [String] dispute_id
|
51
57
|
def get_dispute_scheme_files(dispute_id)
|
52
58
|
api_client.invoke_get(build_path(DISPUTES, dispute_id, SCHEME_FILES), sdk_authorization)
|
@@ -28,6 +28,8 @@ module CheckoutSdk
|
|
28
28
|
# @return [ProcessingSettings]
|
29
29
|
# @!attribute allow_payment_methods
|
30
30
|
# @return [Array(CheckoutSdk::Common::PaymentSourceType)]
|
31
|
+
# @!attribute disabled_payment_methods
|
32
|
+
# @return [Array(CheckoutSdk::Common::PaymentSourceType)]
|
31
33
|
# @!attribute products
|
32
34
|
# @return [Array(CheckoutSdk::Common::Product)]
|
33
35
|
# @!attribute risk
|
@@ -66,6 +68,7 @@ module CheckoutSdk
|
|
66
68
|
:recipient,
|
67
69
|
:processing,
|
68
70
|
:allow_payment_methods,
|
71
|
+
:disabled_payment_methods,
|
69
72
|
:products,
|
70
73
|
:risk,
|
71
74
|
:success_url,
|
@@ -2,6 +2,8 @@
|
|
2
2
|
|
3
3
|
module CheckoutSdk
|
4
4
|
module Payments
|
5
|
+
# @!attribute payment_context_id
|
6
|
+
# @return [String]
|
5
7
|
# @!attribute source
|
6
8
|
# @return [PaymentSource]
|
7
9
|
# @!attribute amount
|
@@ -28,6 +30,8 @@ module CheckoutSdk
|
|
28
30
|
# @return [BillingDescriptor]
|
29
31
|
# @!attribute shipping
|
30
32
|
# @return [ShippingDetails]
|
33
|
+
# @!attribute segment
|
34
|
+
# @return [PaymentSegment]
|
31
35
|
# @!attribute three_ds
|
32
36
|
# @return [ThreeDSRequest]
|
33
37
|
# @!attribute processing_channel_id
|
@@ -55,10 +59,13 @@ module CheckoutSdk
|
|
55
59
|
# @return [ProcessingSettings]
|
56
60
|
# @!attribute items
|
57
61
|
# @return [Array(Product)]
|
62
|
+
# @!attribute retry
|
63
|
+
# @return [PaymentRetryRequest]
|
58
64
|
# @!attribute metadata
|
59
65
|
# @return [Hash{String => Object}]
|
60
66
|
class PaymentRequest
|
61
|
-
attr_accessor :
|
67
|
+
attr_accessor :payment_context_id,
|
68
|
+
:source,
|
62
69
|
:amount,
|
63
70
|
:currency,
|
64
71
|
:payment_type,
|
@@ -71,6 +78,7 @@ module CheckoutSdk
|
|
71
78
|
:customer,
|
72
79
|
:billing_descriptor,
|
73
80
|
:shipping,
|
81
|
+
:segment,
|
74
82
|
:three_ds,
|
75
83
|
:processing_channel_id,
|
76
84
|
:previous_payment_id,
|
@@ -84,6 +92,7 @@ module CheckoutSdk
|
|
84
92
|
:amount_allocations,
|
85
93
|
:processing,
|
86
94
|
:items,
|
95
|
+
:retry,
|
87
96
|
:metadata
|
88
97
|
end
|
89
98
|
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module CheckoutSdk
|
4
|
+
module Payments
|
5
|
+
# @!attribute enabled
|
6
|
+
# @return [TrueClass, FalseClass]
|
7
|
+
# @!attribute max_attempts
|
8
|
+
# @return [Integer]
|
9
|
+
# @!attribute end_after_days
|
10
|
+
# @return [Integer]
|
11
|
+
class PaymentRetryRequest
|
12
|
+
attr_accessor :enabled,
|
13
|
+
:max_attempts,
|
14
|
+
:end_after_day
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module CheckoutSdk
|
4
|
+
module Payments
|
5
|
+
# @!attribute brand
|
6
|
+
# @return [String]
|
7
|
+
# @!attribute business_category
|
8
|
+
# @return [String]
|
9
|
+
# @!attribute market
|
10
|
+
# @return [String]
|
11
|
+
class PaymentSegment
|
12
|
+
attr_accessor :brand,
|
13
|
+
:business_category,
|
14
|
+
:market
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module CheckoutSdk
|
4
|
+
module Payments
|
5
|
+
class PaymentSessionsClient < Client
|
6
|
+
PAYMENT_SESSIONS = 'payment-sessions'
|
7
|
+
|
8
|
+
# @param [ApiClient] api_client
|
9
|
+
# @param [CheckoutConfiguration] configuration
|
10
|
+
def initialize(api_client, configuration)
|
11
|
+
super api_client, configuration, CheckoutSdk::AuthorizationType::SECRET_KEY
|
12
|
+
end
|
13
|
+
|
14
|
+
# @param [Hash] payment_sessions
|
15
|
+
def create_payment_sessions(payment_sessions)
|
16
|
+
api_client.invoke_post(PAYMENT_SESSIONS, sdk_authorization, payment_sessions)
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -2,7 +2,11 @@
|
|
2
2
|
|
3
3
|
module CheckoutSdk
|
4
4
|
module Payments
|
5
|
+
# @!attribute account_holder
|
6
|
+
# @return [CheckoutSdk::Common::AccountHolder]
|
5
7
|
class GiropaySource < PaymentSource
|
8
|
+
attr_accessor :account_holder
|
9
|
+
|
6
10
|
def initialize
|
7
11
|
super CheckoutSdk::Common::PaymentSourceType::GIROPAY
|
8
12
|
end
|
@@ -4,8 +4,11 @@ module CheckoutSdk
|
|
4
4
|
module Sessions
|
5
5
|
# @!attribute callback_url
|
6
6
|
# @return [String]
|
7
|
+
# @!attribute challenge_notification_url
|
8
|
+
# # @return [String]
|
7
9
|
class NonHostedCompletionInfo < CompletionInfo
|
8
|
-
attr_accessor :callback_url
|
10
|
+
attr_accessor :callback_url,
|
11
|
+
:challenge_notification_url
|
9
12
|
|
10
13
|
def initialize
|
11
14
|
super CompletionInfoType::NON_HOSTED
|
data/lib/checkout_sdk/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: checkout_sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Checkout
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-03-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -131,6 +131,8 @@ files:
|
|
131
131
|
- lib/checkout_sdk/accounts/accounts_client.rb
|
132
132
|
- lib/checkout_sdk/accounts/business_type.rb
|
133
133
|
- lib/checkout_sdk/accounts/company.rb
|
134
|
+
- lib/checkout_sdk/accounts/company_verification.rb
|
135
|
+
- lib/checkout_sdk/accounts/company_verification_type.rb
|
134
136
|
- lib/checkout_sdk/accounts/contact_details.rb
|
135
137
|
- lib/checkout_sdk/accounts/date_of_birth.rb
|
136
138
|
- lib/checkout_sdk/accounts/document.rb
|
@@ -149,6 +151,7 @@ files:
|
|
149
151
|
- lib/checkout_sdk/accounts/instrument_details_sepa.rb
|
150
152
|
- lib/checkout_sdk/accounts/instrument_document.rb
|
151
153
|
- lib/checkout_sdk/accounts/onboard_entity.rb
|
154
|
+
- lib/checkout_sdk/accounts/onboard_sub_entity_documents.rb
|
152
155
|
- lib/checkout_sdk/accounts/payment_instrument.rb
|
153
156
|
- lib/checkout_sdk/accounts/payment_instrument_request.rb
|
154
157
|
- lib/checkout_sdk/accounts/payment_instruments_query.rb
|
@@ -161,6 +164,8 @@ files:
|
|
161
164
|
- lib/checkout_sdk/accounts/schedule_frequency_type.rb
|
162
165
|
- lib/checkout_sdk/accounts/schedule_frequency_weekly.rb
|
163
166
|
- lib/checkout_sdk/accounts/schedule_request.rb
|
167
|
+
- lib/checkout_sdk/accounts/tax_verification.rb
|
168
|
+
- lib/checkout_sdk/accounts/tax_verification_type.rb
|
164
169
|
- lib/checkout_sdk/accounts/update_payment_instrument_request.rb
|
165
170
|
- lib/checkout_sdk/accounts/update_schedule.rb
|
166
171
|
- lib/checkout_sdk/api_client.rb
|
@@ -295,6 +300,8 @@ files:
|
|
295
300
|
- lib/checkout_sdk/payments/payment_instruction.rb
|
296
301
|
- lib/checkout_sdk/payments/payment_recipient.rb
|
297
302
|
- lib/checkout_sdk/payments/payment_request.rb
|
303
|
+
- lib/checkout_sdk/payments/payment_retry_request.rb
|
304
|
+
- lib/checkout_sdk/payments/payment_segment.rb
|
298
305
|
- lib/checkout_sdk/payments/payment_type.rb
|
299
306
|
- lib/checkout_sdk/payments/payments.rb
|
300
307
|
- lib/checkout_sdk/payments/payments_client.rb
|
@@ -353,6 +360,7 @@ files:
|
|
353
360
|
- lib/checkout_sdk/payments/sender/sender_type.rb
|
354
361
|
- lib/checkout_sdk/payments/sender/source_of_funds.rb
|
355
362
|
- lib/checkout_sdk/payments/sender/ticket.rb
|
363
|
+
- lib/checkout_sdk/payments/sessions/payment_sessions_client.rb
|
356
364
|
- lib/checkout_sdk/payments/shipping_details.rb
|
357
365
|
- lib/checkout_sdk/payments/shipping_preference.rb
|
358
366
|
- lib/checkout_sdk/payments/source/apm/after_pay_source.rb
|