checkout_sdk 1.1.1 → 1.1.2
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/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/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 +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21dfa103feecfb3122a81c194f9f3006a8434ee1ce3efbaf80803fcb32522b69
|
4
|
+
data.tar.gz: '028781c0b608f175abae7c46a92de8a771b714b510beab90c47afd409d68d14f'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee6040521f21bb3e857d005065a85b268a86bb4a4e9f3594701842612f994c107d872d65488bc02222e7af0de4f6815404a99b272ed96a96919b95753641594e
|
7
|
+
data.tar.gz: 445750633d07ddedcbe53396588924fe88b7c954a3f1d5e968e6305669a5aff90ff905d75be8202997d43f972371b7b6ba6f236765f74795b5556361fbdbcbdd
|
@@ -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
|
@@ -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.2
|
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-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -222,7 +222,9 @@ files:
|
|
222
222
|
- lib/checkout_sdk/financial/financial_client.rb
|
223
223
|
- lib/checkout_sdk/forex/forex.rb
|
224
224
|
- lib/checkout_sdk/forex/forex_client.rb
|
225
|
+
- lib/checkout_sdk/forex/forex_source.rb
|
225
226
|
- lib/checkout_sdk/forex/quote_request.rb
|
227
|
+
- lib/checkout_sdk/forex/rates_query_filter.rb
|
226
228
|
- lib/checkout_sdk/http_metadata.rb
|
227
229
|
- lib/checkout_sdk/instruments/base_instruments_client.rb
|
228
230
|
- lib/checkout_sdk/instruments/create/instrument.rb
|