checkout_sdk 1.1.7 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b2a7e1557158e8381bfbf318e1cfef80519f8df0889b98e28b8a33ea220873a5
4
- data.tar.gz: 93f1dbae3763bca6872f065d077e3ff113c9dec6e67f39071b5c8cbf05cfc037
3
+ metadata.gz: 622d9d100ea4bacc079b7004c68eed945ab997058b6cb5df0e3dcfb844828a3f
4
+ data.tar.gz: 89097b31f1189afbb501c68241818fe5e2beeac6daa746bac3e9ca5994a4d57c
5
5
  SHA512:
6
- metadata.gz: 1e7a17d7f19728b444b4b02689f178aa0fa3a6e66d07d6462f39f9766dae5da3aea839ed7c7ad0a571c87043fd42d69361a2a9afbfae4bdca4c68bfe81535af7
7
- data.tar.gz: c5d72ac85ba9b18281912ffc445a116dc1435237526b8a2b8afe7a2d9283f8ec90d96bdf6316a6e24ccb5b8654614ae3dc127924da48632e22f73830291f7b59
6
+ metadata.gz: fe4eff9e638233a09803894c6fd31b1a4b58ecd70c4a5fba9c32a6c6fc3e1b495fae0ee453435b9d224ebb92ab659bba6e321cb63620d45ea6d3f9aaeaf8cf8e
7
+ data.tar.gz: 1247b228c521fc41105f2da0c3803911dd3f6c0e866b380150615d44d4b12798ca3170b1b7c04950c8e851948aab0d46d0072f95e963fb197dac684c1531e2bf
@@ -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
@@ -6,6 +6,7 @@ module CheckoutSdk
6
6
  BANK_ACCOUNT = 'bank_account'
7
7
  TOKEN = 'token'
8
8
  CARD = 'card'
9
+ SEPA = 'sepa'
9
10
  CARD_TOKEN = 'card_token'
10
11
  end
11
12
  end
@@ -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'
@@ -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 :bic,
13
- :description,
10
+ attr_accessor :description,
14
11
  :language
15
12
 
16
13
  def initialize
@@ -5,6 +5,9 @@ module CheckoutSdk
5
5
  module AuthenticationType
6
6
  REGULAR = 'regular'
7
7
  RECURRING = 'recurring'
8
+ INSTALLMENT = 'installment'
9
+ MAINTAIN_CARD = 'maintain_card'
10
+ ADD_CARD = 'add_card'
8
11
  end
9
12
  end
10
13
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CheckoutSdk
4
- VERSION = '1.1.7'
4
+ VERSION = '1.1.8'
5
5
  end
data/lib/checkout_sdk.rb CHANGED
@@ -9,6 +9,7 @@ require 'faraday/net_http'
9
9
  require 'faraday/follow_redirects'
10
10
  require 'mime/types'
11
11
  require 'logger'
12
+ require 'ostruct'
12
13
 
13
14
  # Version
14
15
  require 'checkout_sdk/version'
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.7
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-03-26 00:00:00.000000000 Z
11
+ date: 2024-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -236,6 +236,8 @@ files:
236
236
  - lib/checkout_sdk/instruments/base_instruments_client.rb
237
237
  - lib/checkout_sdk/instruments/create/instrument.rb
238
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
239
241
  - lib/checkout_sdk/instruments/create/instrument_token.rb
240
242
  - lib/checkout_sdk/instruments/get/bank_account_field_query.rb
241
243
  - lib/checkout_sdk/instruments/get/payment_network.rb