checkout_sdk 1.1.6 → 1.1.8
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/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/profile.rb +4 -1
- 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/common/instrument_type.rb +1 -0
- data/lib/checkout_sdk/disputes/disputes_client.rb +6 -0
- data/lib/checkout_sdk/instruments/create/instrument_data.rb +26 -0
- data/lib/checkout_sdk/instruments/create/instrument_sepa.rb +18 -0
- data/lib/checkout_sdk/instruments/instruments.rb +2 -0
- data/lib/checkout_sdk/payments/hosted/hosted_payments_session.rb +3 -0
- data/lib/checkout_sdk/payments/payment_request.rb +4 -1
- data/lib/checkout_sdk/payments/source/apm/ideal_source.rb +1 -4
- data/lib/checkout_sdk/sessions/authentication_type.rb +3 -0
- data/lib/checkout_sdk/sessions/completion/non_hosted_completion_info.rb +4 -1
- data/lib/checkout_sdk/version.rb +1 -1
- data/lib/checkout_sdk.rb +1 -0
- metadata +9 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 622d9d100ea4bacc079b7004c68eed945ab997058b6cb5df0e3dcfb844828a3f
|
4
|
+
data.tar.gz: 89097b31f1189afbb501c68241818fe5e2beeac6daa746bac3e9ca5994a4d57c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe4eff9e638233a09803894c6fd31b1a4b58ecd70c4a5fba9c32a6c6fc3e1b495fae0ee453435b9d224ebb92ab659bba6e321cb63620d45ea6d3f9aaeaf8cf8e
|
7
|
+
data.tar.gz: 1247b228c521fc41105f2da0c3803911dd3f6c0e866b380150615d44d4b12798ca3170b1b7c04950c8e851948aab0d46d0072f95e963fb197dac684c1531e2bf
|
@@ -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
|
@@ -8,10 +8,13 @@ module CheckoutSdk
|
|
8
8
|
# @return [Array(String)]
|
9
9
|
# @!attribute default_holding_currency
|
10
10
|
# @return [String] {CheckoutSdk::Common::Currency}
|
11
|
+
# @!attribute holding_currencies
|
12
|
+
# @return [Array(CheckoutSdk::Common::Currency)]
|
11
13
|
class Profile
|
12
14
|
attr_accessor :urls,
|
13
15
|
:mccs,
|
14
|
-
:default_holding_currency
|
16
|
+
:default_holding_currency,
|
17
|
+
:holding_currencies
|
15
18
|
end
|
16
19
|
end
|
17
20
|
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
|
@@ -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)
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module CheckoutSdk
|
4
|
+
module Instruments
|
5
|
+
# @!attribute account_number
|
6
|
+
# @return [String]
|
7
|
+
# @!attribute country
|
8
|
+
# @return [String] {CheckoutSdk::Common::Country}
|
9
|
+
# @!attribute currency
|
10
|
+
# @return [String] {CheckoutSdk::Common::Currency}
|
11
|
+
# @!attribute payment_type
|
12
|
+
# @return [String] {CheckoutSdk::Payments::PaymentType}
|
13
|
+
# @!attribute mandate_id
|
14
|
+
# @return [String]
|
15
|
+
# @!attribute date_of_signature
|
16
|
+
# @return [DateTime]
|
17
|
+
class InstrumentData
|
18
|
+
attr_accessor :account_number,
|
19
|
+
:country,
|
20
|
+
:currency,
|
21
|
+
:payment_type,
|
22
|
+
:mandate_id,
|
23
|
+
:date_of_signature
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module CheckoutSdk
|
4
|
+
module Instruments
|
5
|
+
# @!attribute instrument_data
|
6
|
+
# @return [InstrumentData]
|
7
|
+
# @!attribute account_holder
|
8
|
+
# @return [CheckoutSdk::Common::AccountHolder]
|
9
|
+
class InstrumentSepa < Instrument
|
10
|
+
attr_accessor :instrument_data,
|
11
|
+
:account_holder
|
12
|
+
|
13
|
+
def initialize
|
14
|
+
super CheckoutSdk::Common::InstrumentType::SEPA
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -12,6 +12,8 @@ require 'checkout_sdk/instruments/get/bank_account_field_query'
|
|
12
12
|
require 'checkout_sdk/instruments/create/instrument'
|
13
13
|
require 'checkout_sdk/instruments/create/instrument_token'
|
14
14
|
require 'checkout_sdk/instruments/create/instrument_bank_account'
|
15
|
+
require 'checkout_sdk/instruments/create/instrument_sepa'
|
16
|
+
require 'checkout_sdk/instruments/create/instrument_data'
|
15
17
|
# Client
|
16
18
|
require 'checkout_sdk/instruments/base_instruments_client'
|
17
19
|
require 'checkout_sdk/instruments/instruments_client'
|
@@ -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,
|
@@ -63,6 +63,8 @@ module CheckoutSdk
|
|
63
63
|
# @return [PaymentRetryRequest]
|
64
64
|
# @!attribute metadata
|
65
65
|
# @return [Hash{String => Object}]
|
66
|
+
# @!attribute instruction
|
67
|
+
# @return [PaymentInstruction]
|
66
68
|
class PaymentRequest
|
67
69
|
attr_accessor :payment_context_id,
|
68
70
|
:source,
|
@@ -93,7 +95,8 @@ module CheckoutSdk
|
|
93
95
|
:processing,
|
94
96
|
:items,
|
95
97
|
:retry,
|
96
|
-
:metadata
|
98
|
+
:metadata,
|
99
|
+
:instruction
|
97
100
|
end
|
98
101
|
end
|
99
102
|
end
|
@@ -2,15 +2,12 @@
|
|
2
2
|
|
3
3
|
module CheckoutSdk
|
4
4
|
module Payments
|
5
|
-
# @!attribute bic
|
6
|
-
# @return [String]
|
7
5
|
# @!attribute description
|
8
6
|
# @return [String]
|
9
7
|
# @!attribute language
|
10
8
|
# @return [String]
|
11
9
|
class IdealSource < PaymentSource
|
12
|
-
attr_accessor :
|
13
|
-
:description,
|
10
|
+
attr_accessor :description,
|
14
11
|
:language
|
15
12
|
|
16
13
|
def initialize
|
@@ -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
data/lib/checkout_sdk.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.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Checkout
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-05-15 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
|
@@ -231,6 +236,8 @@ files:
|
|
231
236
|
- lib/checkout_sdk/instruments/base_instruments_client.rb
|
232
237
|
- lib/checkout_sdk/instruments/create/instrument.rb
|
233
238
|
- lib/checkout_sdk/instruments/create/instrument_bank_account.rb
|
239
|
+
- lib/checkout_sdk/instruments/create/instrument_data.rb
|
240
|
+
- lib/checkout_sdk/instruments/create/instrument_sepa.rb
|
234
241
|
- lib/checkout_sdk/instruments/create/instrument_token.rb
|
235
242
|
- lib/checkout_sdk/instruments/get/bank_account_field_query.rb
|
236
243
|
- lib/checkout_sdk/instruments/get/payment_network.rb
|