checkout_sdk 1.1.1 → 1.1.3
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/accounts.rb +2 -0
- data/lib/checkout_sdk/accounts/headers.rb +11 -0
- data/lib/checkout_sdk/accounts/instrument_details_card_token.rb +11 -0
- data/lib/checkout_sdk/accounts/payment_instrument_request.rb +0 -4
- data/lib/checkout_sdk/accounts/update_payment_instrument_request.rb +4 -1
- data/lib/checkout_sdk/common/instrument_type.rb +1 -0
- data/lib/checkout_sdk/financial/financial_actions_query.rb +3 -0
- data/lib/checkout_sdk/forex/forex.rb +2 -0
- data/lib/checkout_sdk/forex/forex_client.rb +10 -3
- data/lib/checkout_sdk/forex/forex_source.rb +10 -0
- data/lib/checkout_sdk/forex/rates_query_filter.rb +20 -0
- data/lib/checkout_sdk/json_serializer.rb +2 -1
- data/lib/checkout_sdk/payments/hosted/hosted_payments_session.rb +0 -4
- data/lib/checkout_sdk/payments/links/payment_link.rb +0 -4
- data/lib/checkout_sdk/sessions/channel/browser_session.rb +3 -0
- data/lib/checkout_sdk/version.rb +1 -1
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe4967d92854672d3668f97b925b4d66e4ceb1bf08374ce054766596fe2b0181
|
4
|
+
data.tar.gz: 9ba27b9aea9e2eda47755455da5770383b3fa7ec9892c49dc68b81d8b680ff34
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82e3fbe3f10193ee8655553b58596fd6821d1b52dc1789e895daedb9f818c43b28a27a5db5c245703046ac24a402a3d5b8ec36efcd2019e02ea0ff3174394038
|
7
|
+
data.tar.gz: ba39851f661ef0885e35f8b2cd94025d358ce4ecaad015c8e14f43bbe97f04c9a62004f0620b1e2523744cb3b2117748563e3d2f717d0de4c1ba98886fbdd7a4
|
@@ -31,6 +31,8 @@ require 'checkout_sdk/accounts/schedule_frequency_monthly'
|
|
31
31
|
require 'checkout_sdk/accounts/instrument_details'
|
32
32
|
require 'checkout_sdk/accounts/instrument_details_faster_payments'
|
33
33
|
require 'checkout_sdk/accounts/instrument_details_sepa'
|
34
|
+
require 'checkout_sdk/accounts/instrument_details_card_token'
|
34
35
|
require 'checkout_sdk/accounts/payment_instrument_request'
|
35
36
|
require 'checkout_sdk/accounts/payment_instruments_query'
|
37
|
+
require 'checkout_sdk/accounts/headers'
|
36
38
|
require 'checkout_sdk/accounts/update_payment_instrument_request'
|
@@ -6,9 +6,12 @@ module CheckoutSdk
|
|
6
6
|
# @return [String]
|
7
7
|
# @!attribute default
|
8
8
|
# @return [TrueClass, FalseClass]
|
9
|
+
# @!attribute headers
|
10
|
+
# @return [Headers]
|
9
11
|
class UpdatePaymentInstrumentRequest
|
10
12
|
attr_accessor :label,
|
11
|
-
:default
|
13
|
+
:default,
|
14
|
+
:headers
|
12
15
|
end
|
13
16
|
end
|
14
17
|
end
|
@@ -6,6 +6,8 @@ module CheckoutSdk
|
|
6
6
|
# @return [String]
|
7
7
|
# @!attribute action_id
|
8
8
|
# @return [String]
|
9
|
+
# @!attribute reference
|
10
|
+
# @return [String]
|
9
11
|
# @!attribute limit
|
10
12
|
# @return [Integer]
|
11
13
|
# @!attribute pagination_token
|
@@ -13,6 +15,7 @@ module CheckoutSdk
|
|
13
15
|
class FinancialActionsQuery
|
14
16
|
attr_accessor :payment_id,
|
15
17
|
:action_id,
|
18
|
+
:reference,
|
16
19
|
:limit,
|
17
20
|
:pagination_token
|
18
21
|
end
|
@@ -3,8 +3,10 @@
|
|
3
3
|
module CheckoutSdk
|
4
4
|
module Forex
|
5
5
|
class ForexClient < Client
|
6
|
-
FOREX = 'forex
|
7
|
-
|
6
|
+
FOREX = 'forex'
|
7
|
+
QUOTES = 'quotes'
|
8
|
+
RATES = 'rates'
|
9
|
+
private_constant :FOREX, :QUOTES, :RATES
|
8
10
|
|
9
11
|
# @param [ApiClient] api_client
|
10
12
|
# @param [CheckoutConfiguration] configuration
|
@@ -14,7 +16,12 @@ module CheckoutSdk
|
|
14
16
|
|
15
17
|
# @param [Hash, QuoteRequest] quote_request
|
16
18
|
def request_quote(quote_request)
|
17
|
-
api_client.invoke_post(FOREX, sdk_authorization, quote_request)
|
19
|
+
api_client.invoke_post(build_path(FOREX, QUOTES), sdk_authorization, quote_request)
|
20
|
+
end
|
21
|
+
|
22
|
+
# @param [Hash, RatesQueryFilter] rates_query_filter
|
23
|
+
def get_rates(rates_query_filter)
|
24
|
+
api_client.invoke_get(build_path(FOREX, RATES), sdk_authorization, rates_query_filter)
|
18
25
|
end
|
19
26
|
end
|
20
27
|
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module CheckoutSdk
|
4
|
+
module Forex
|
5
|
+
# @!attribute product
|
6
|
+
# @return [String]
|
7
|
+
# @!attribute source
|
8
|
+
# @return [String] {ForexSource}
|
9
|
+
# @!attribute currency_pairs
|
10
|
+
# @return [String]
|
11
|
+
# @!attribute process_channel_id
|
12
|
+
# @return [String]
|
13
|
+
class RatesQueryFilter
|
14
|
+
attr_accessor :product,
|
15
|
+
:source,
|
16
|
+
:currency_pairs,
|
17
|
+
:process_channel_id
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -5,7 +5,8 @@ module CheckoutSdk
|
|
5
5
|
KEYS_TRANSFORMATIONS = { three_ds: '3ds',
|
6
6
|
account_holder_type: 'account-holder-type',
|
7
7
|
payment_network: 'payment-network',
|
8
|
-
from_: 'from'
|
8
|
+
from_: 'from',
|
9
|
+
if_match: 'if-match' }.freeze
|
9
10
|
|
10
11
|
def self.to_custom_hash(object)
|
11
12
|
hash = {}
|
@@ -50,9 +50,6 @@ module CheckoutSdk
|
|
50
50
|
# @return [Time]
|
51
51
|
# @!attribute processing_channel_id
|
52
52
|
# @return [String] - Not available on Previous.
|
53
|
-
# @!attribute marketplace
|
54
|
-
# @deprecated Please use {#amount_allocations} instead
|
55
|
-
# @return [CheckoutSdk::Common::MarketplaceData] - Not available on Previous.
|
56
53
|
# @!attribute amount_allocations
|
57
54
|
# @return [Array(CheckoutSdk::Common::AmountAllocations)] - Not available on Previous.
|
58
55
|
class HostedPaymentsSession
|
@@ -80,7 +77,6 @@ module CheckoutSdk
|
|
80
77
|
:capture,
|
81
78
|
:capture_on,
|
82
79
|
:processing_channel_id,
|
83
|
-
:marketplace,
|
84
80
|
:amount_allocations
|
85
81
|
end
|
86
82
|
end
|
@@ -18,9 +18,6 @@ module CheckoutSdk
|
|
18
18
|
# @return [String]
|
19
19
|
# @!attribute processing_channel_id
|
20
20
|
# @return [String] - Not available on Previous.
|
21
|
-
# @!attribute marketplace
|
22
|
-
# @deprecated Please use {#amount_allocations} instead
|
23
|
-
# @return [CheckoutSdk::Common::MarketplaceData] - Not available on Previous.
|
24
21
|
# @!attribute amount_allocations
|
25
22
|
# @return [Array(CheckoutSdk::Common::AmountAllocations)] - Not available on Previous.
|
26
23
|
# @!attribute expires_in
|
@@ -62,7 +59,6 @@ module CheckoutSdk
|
|
62
59
|
:reference,
|
63
60
|
:description,
|
64
61
|
:processing_channel_id,
|
65
|
-
:marketplace,
|
66
62
|
:amount_allocations,
|
67
63
|
:expires_in,
|
68
64
|
:customer,
|
@@ -8,6 +8,8 @@ module CheckoutSdk
|
|
8
8
|
# @return [String]
|
9
9
|
# @!attribute java_enabled
|
10
10
|
# @return [TrueClass, FalseClass]
|
11
|
+
# @!attribute javascript_enabled
|
12
|
+
# @return [TrueClass, FalseClass]
|
11
13
|
# @!attribute language
|
12
14
|
# @return [String]
|
13
15
|
# @!attribute color_depth
|
@@ -26,6 +28,7 @@ module CheckoutSdk
|
|
26
28
|
attr_accessor :three_ds_method_completion,
|
27
29
|
:accept_header,
|
28
30
|
:java_enabled,
|
31
|
+
:javascript_enabled,
|
29
32
|
:language,
|
30
33
|
:color_depth,
|
31
34
|
:screen_height,
|
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.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Checkout
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -140,9 +140,11 @@ files:
|
|
140
140
|
- lib/checkout_sdk/accounts/entity_financial_details.rb
|
141
141
|
- lib/checkout_sdk/accounts/entity_financial_documents.rb
|
142
142
|
- lib/checkout_sdk/accounts/file_request.rb
|
143
|
+
- lib/checkout_sdk/accounts/headers.rb
|
143
144
|
- lib/checkout_sdk/accounts/identification.rb
|
144
145
|
- lib/checkout_sdk/accounts/individual.rb
|
145
146
|
- lib/checkout_sdk/accounts/instrument_details.rb
|
147
|
+
- lib/checkout_sdk/accounts/instrument_details_card_token.rb
|
146
148
|
- lib/checkout_sdk/accounts/instrument_details_faster_payments.rb
|
147
149
|
- lib/checkout_sdk/accounts/instrument_details_sepa.rb
|
148
150
|
- lib/checkout_sdk/accounts/instrument_document.rb
|
@@ -222,7 +224,9 @@ files:
|
|
222
224
|
- lib/checkout_sdk/financial/financial_client.rb
|
223
225
|
- lib/checkout_sdk/forex/forex.rb
|
224
226
|
- lib/checkout_sdk/forex/forex_client.rb
|
227
|
+
- lib/checkout_sdk/forex/forex_source.rb
|
225
228
|
- lib/checkout_sdk/forex/quote_request.rb
|
229
|
+
- lib/checkout_sdk/forex/rates_query_filter.rb
|
226
230
|
- lib/checkout_sdk/http_metadata.rb
|
227
231
|
- lib/checkout_sdk/instruments/base_instruments_client.rb
|
228
232
|
- lib/checkout_sdk/instruments/create/instrument.rb
|