checkout_sdk 1.0.0 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +3 -0
  3. data/lib/checkout_sdk/accounts/accounts.rb +5 -0
  4. data/lib/checkout_sdk/accounts/accounts_client.rb +26 -2
  5. data/lib/checkout_sdk/accounts/instrument_details.rb +9 -0
  6. data/lib/checkout_sdk/accounts/instrument_details_faster_payments.rb +14 -0
  7. data/lib/checkout_sdk/accounts/instrument_details_sepa.rb +14 -0
  8. data/lib/checkout_sdk/accounts/payment_instrument_request.rb +33 -0
  9. data/lib/checkout_sdk/accounts/payment_instruments_query.rb +11 -0
  10. data/lib/checkout_sdk/api_client.rb +2 -2
  11. data/lib/checkout_sdk/apm/previous/sepa/sepa_client.rb +4 -3
  12. data/lib/checkout_sdk/checkout_api.rb +5 -1
  13. data/lib/checkout_sdk/disputes/disputes_client.rb +7 -1
  14. data/lib/checkout_sdk/metadata/metadata.rb +11 -0
  15. data/lib/checkout_sdk/metadata/metadata_client.rb +22 -0
  16. data/lib/checkout_sdk/metadata/metadata_format.rb +10 -0
  17. data/lib/checkout_sdk/metadata/metadata_request.rb +14 -0
  18. data/lib/checkout_sdk/metadata/source/bin_metadata_source.rb +15 -0
  19. data/lib/checkout_sdk/metadata/source/card_metadata_source.rb +15 -0
  20. data/lib/checkout_sdk/metadata/source/id_metadata_source.rb +15 -0
  21. data/lib/checkout_sdk/metadata/source/metadata_source.rb +19 -0
  22. data/lib/checkout_sdk/metadata/source/metadata_source_type.rb +12 -0
  23. data/lib/checkout_sdk/metadata/source/token_metadata_source.rb +15 -0
  24. data/lib/checkout_sdk/oauth_scopes.rb +2 -0
  25. data/lib/checkout_sdk/payments/payment_recipient.rb +7 -1
  26. data/lib/checkout_sdk/payments/previous/source/id_source.rb +7 -1
  27. data/lib/checkout_sdk/payments/previous/source/token_source.rb +3 -0
  28. data/lib/checkout_sdk/payments/source/id_source.rb +7 -1
  29. data/lib/checkout_sdk/payments/source/token_source.rb +3 -0
  30. data/lib/checkout_sdk/risk/risk_client.rb +2 -0
  31. data/lib/checkout_sdk/transfers/transfers_client.rb +1 -1
  32. data/lib/checkout_sdk/version.rb +1 -1
  33. data/lib/checkout_sdk.rb +1 -0
  34. metadata +25 -10
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b5bbda884a13d07e5623ca6e8bfe89341a423cfb132f0572920aeafa8eccde6f
4
- data.tar.gz: 6b3cdd2cd33a3d55989379c3274d72950af873ca5352763a89f0ea9d38c0ad60
3
+ metadata.gz: 2847132422e096016b86e44a865cc8954e8fc705b26a0493f9e38328c2c21c06
4
+ data.tar.gz: cd129fd4091e1d82ff0b5237a559fcd5e99360c44da151ec8dae13fc1074cbf3
5
5
  SHA512:
6
- metadata.gz: efc40dfb03aa542f200f82530b6addbffa6e5afed8c27ac74c59c8dd7dad41c1c6a102ee0de6d556b5585acdb6f28e873f4ecf762ee518210579096650b4e710
7
- data.tar.gz: 37bd641e9b370e799fc2eee037a65f47c7b6bee723195db4d2e9eab6f42641a7303c7a5a82d9bbdd501a6a9b239dae3310e0d81113746f20d7fea0c1bb7fd9b7
6
+ metadata.gz: b93ffff597f3e273da665aea9a805434593514222c8c77f6c72491489d1fc098ff132745df41c6fcf9282baa682750100be9239cda2e9e7a7b7ab256715d3e2b
7
+ data.tar.gz: c0d81d308824a5f991fa67cad30d1e019d40446cbb813be7315ab8df579144d3d9c950978182826ca2e56fd2902a157a48b6ac5b225a3f3fa2335f95083ae808
data/.rubocop.yml CHANGED
@@ -7,6 +7,9 @@ Metrics/AbcSize:
7
7
  Lint/MissingSuper:
8
8
  Enabled: false
9
9
 
10
+ Lint/EmptyClass:
11
+ Enabled: false
12
+
10
13
  Layout/LineLength:
11
14
  Max: 120
12
15
 
@@ -28,3 +28,8 @@ require 'checkout_sdk/accounts/schedule_request'
28
28
  require 'checkout_sdk/accounts/schedule_frequency_weekly'
29
29
  require 'checkout_sdk/accounts/schedule_frequency_daily'
30
30
  require 'checkout_sdk/accounts/schedule_frequency_monthly'
31
+ require 'checkout_sdk/accounts/instrument_details'
32
+ require 'checkout_sdk/accounts/instrument_details_faster_payments'
33
+ require 'checkout_sdk/accounts/instrument_details_sepa'
34
+ require 'checkout_sdk/accounts/payment_instrument_request'
35
+ require 'checkout_sdk/accounts/payment_instruments_query'
@@ -10,13 +10,14 @@ module CheckoutSdk
10
10
  INSTRUMENT = 'instruments'
11
11
  PAYOUT_SCHEDULE = 'payout-schedules'
12
12
  FILES = 'files'
13
- private_constant :ACCOUNTS, :ENTITIES, :INSTRUMENT, :PAYOUT_SCHEDULE, :FILES
13
+ PAYMENT_INSTRUMENTS = 'payment-instruments'
14
+ private_constant :ACCOUNTS, :ENTITIES, :INSTRUMENT, :PAYOUT_SCHEDULE, :FILES, :PAYMENT_INSTRUMENTS
14
15
 
15
16
  # @param [ApiClient] api_client
16
17
  # @param [ApiClient] files_client
17
18
  # @param [CheckoutConfiguration] configuration
18
19
  def initialize(api_client, files_client, configuration)
19
- super(api_client, configuration, CheckoutSdk::AuthorizationType::OAUTH)
20
+ super(api_client, configuration, CheckoutSdk::AuthorizationType::SECRET_KEY_OR_OAUTH)
20
21
  @files_client = files_client
21
22
  end
22
23
 
@@ -36,6 +37,7 @@ module CheckoutSdk
36
37
  api_client.invoke_put(build_path(ACCOUNTS, ENTITIES, entity_id), sdk_authorization, entity_request)
37
38
  end
38
39
 
40
+ # @deprecated Please use {#add_payment_instrument} instead
39
41
  # @param [String] entity_id
40
42
  # @param [PaymentInstrument] payment_instrument
41
43
  def create_payment_instrument(entity_id, payment_instrument)
@@ -43,6 +45,28 @@ module CheckoutSdk
43
45
  payment_instrument)
44
46
  end
45
47
 
48
+ # @param [String] entity_id
49
+ # @param [PaymentInstrumentRequest] payment_instrument
50
+ def add_payment_instrument(entity_id, payment_instrument)
51
+ api_client.invoke_post(build_path(ACCOUNTS, ENTITIES, entity_id, PAYMENT_INSTRUMENTS), sdk_authorization,
52
+ payment_instrument)
53
+ end
54
+
55
+ # @param [String] entity_id
56
+ # @param [PaymentInstrumentsQuery,nil] payment_instruments_query
57
+ def query_payment_instruments(entity_id, payment_instruments_query = nil)
58
+ api_client.invoke_get(build_path(ACCOUNTS, ENTITIES, entity_id, PAYMENT_INSTRUMENTS),
59
+ sdk_authorization,
60
+ payment_instruments_query)
61
+ end
62
+
63
+ # @param [String] entity_id
64
+ # @param [String] payment_instrument_id
65
+ def retrieve_payment_instrument_details(entity_id, payment_instrument_id)
66
+ api_client.invoke_get(build_path(ACCOUNTS, ENTITIES, entity_id, PAYMENT_INSTRUMENTS, payment_instrument_id),
67
+ sdk_authorization)
68
+ end
69
+
46
70
  # @param [String] entity_id
47
71
  # @param [String] currency {CheckoutSdk::Common::Currency}
48
72
  # @param [UpdateSchedule] update_schedule
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CheckoutSdk
4
+ module Accounts
5
+ # @abstract
6
+ class InstrumentDetails
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CheckoutSdk
4
+ module Accounts
5
+ # @!attribute account_number
6
+ # @return [String]
7
+ # @!attribute bank_code
8
+ # @return [String]
9
+ class InstrumentDetailsFasterPayments < InstrumentDetails
10
+ attr_accessor :account_number,
11
+ :bank_code
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CheckoutSdk
4
+ module Accounts
5
+ # @!attribute iban
6
+ # @return [String]
7
+ # @!attribute swift_bic
8
+ # @return [String]
9
+ class InstrumentDetailsSepa < InstrumentDetails
10
+ attr_accessor :iban,
11
+ :swift_bic
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,33 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CheckoutSdk
4
+ module Accounts
5
+ # @!attribute label
6
+ # @return [String]
7
+ # @!attribute type
8
+ # @return [String] {CheckoutSdk::Common::InstrumentType}
9
+ # @!attribute currency
10
+ # @return [String] {CheckoutSdk::Common::Currency}
11
+ # @!attribute country
12
+ # @return [String] {CheckoutSdk::Common::Country}
13
+ # @!attribute default
14
+ # @return [TrueClass, FalseClass]
15
+ # @!attribute document
16
+ # @return [InstrumentDocument]
17
+ # @!attribute instrument_details
18
+ # @return [InstrumentDetails]
19
+ class PaymentInstrumentRequest
20
+ attr_accessor :label,
21
+ :type,
22
+ :currency,
23
+ :country,
24
+ :default,
25
+ :document,
26
+ :instrument_details
27
+
28
+ def initialize
29
+ @type = CheckoutSdk::Common::InstrumentType::BANK_ACCOUNT
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CheckoutSdk
4
+ module Accounts
5
+ # @!attribute status
6
+ # @return [String]
7
+ class PaymentInstrumentsQuery
8
+ attr_accessor :status
9
+ end
10
+ end
11
+ end
@@ -50,7 +50,7 @@ module CheckoutSdk
50
50
  def submit_file(path,
51
51
  authorization,
52
52
  request)
53
- upload_file(path, authorization, request)
53
+ upload(path, authorization, request)
54
54
  end
55
55
 
56
56
  private
@@ -107,7 +107,7 @@ module CheckoutSdk
107
107
  }
108
108
  end
109
109
 
110
- def upload_file(path, authorization, file_request)
110
+ def upload(path, authorization, file_request)
111
111
  headers = get_default_headers authorization
112
112
 
113
113
  file = File.open(file_request.file)
@@ -4,10 +4,11 @@ module CheckoutSdk
4
4
  module Previous
5
5
  module Apm
6
6
  class SepaClient < Client
7
+ APMS = 'apms'
7
8
  SEPA_MANDATES = 'sepa/mandates'
8
9
  PPRO = 'ppro'
9
10
  CANCEL = 'cancel'
10
- private_constant :SEPA_MANDATES, :PPRO, :CANCEL
11
+ private_constant :APMS, :SEPA_MANDATES, :PPRO, :CANCEL
11
12
 
12
13
  # @param [ApiClient] api_client
13
14
  # @param [CheckoutConfiguration] configuration
@@ -27,12 +28,12 @@ module CheckoutSdk
27
28
 
28
29
  # @param mandate_id [String]
29
30
  def get_mandate_via_ppro(mandate_id)
30
- api_client.invoke_get(build_path(PPRO, SEPA_MANDATES, mandate_id), sdk_authorization)
31
+ api_client.invoke_get(build_path(APMS, PPRO, SEPA_MANDATES, mandate_id), sdk_authorization)
31
32
  end
32
33
 
33
34
  # @param mandate_id [String]
34
35
  def cancel_mandate_via_ppro(mandate_id)
35
- api_client.invoke_post(build_path(PPRO, SEPA_MANDATES, mandate_id, CANCEL), sdk_authorization)
36
+ api_client.invoke_post(build_path(APMS, PPRO, SEPA_MANDATES, mandate_id, CANCEL), sdk_authorization)
36
37
  end
37
38
  end
38
39
  end
@@ -33,6 +33,8 @@ module CheckoutSdk
33
33
  # @return [CheckoutSdk::Balances::BalancesClient]
34
34
  # @!attribute transfers
35
35
  # @return [CheckoutSdk::Transfers::TransfersClient]
36
+ # @!attribute metadata
37
+ # @return [CheckoutSdk::Metadata::MetadataClient]
36
38
  class CheckoutApi
37
39
  attr_reader :customers,
38
40
  :disputes,
@@ -49,7 +51,8 @@ module CheckoutSdk
49
51
  :workflows,
50
52
  :risk,
51
53
  :balances,
52
- :transfers
54
+ :transfers,
55
+ :metadata
53
56
 
54
57
  # @param [CheckoutConfiguration] configuration
55
58
  def initialize(configuration)
@@ -70,6 +73,7 @@ module CheckoutSdk
70
73
  @risk = CheckoutSdk::Risk::RiskClient.new api_client, configuration
71
74
  @balances = CheckoutSdk::Balances::BalancesClient.new(balances_client(configuration), configuration)
72
75
  @transfers = CheckoutSdk::Transfers::TransfersClient.new(transfers_client(configuration), configuration)
76
+ @metadata = CheckoutSdk::Metadata::MetadataClient.new api_client, configuration
73
77
  end
74
78
 
75
79
  private
@@ -7,7 +7,8 @@ module CheckoutSdk
7
7
  FILES = 'files'
8
8
  ACCEPT = 'accept'
9
9
  EVIDENCE = 'evidence'
10
- private_constant :DISPUTES, :FILES, :ACCEPT, :EVIDENCE
10
+ SCHEME_FILES = 'schemefiles'
11
+ private_constant :DISPUTES, :FILES, :ACCEPT, :EVIDENCE, :SCHEME_FILES
11
12
 
12
13
  # @param [ApiClient] api_client
13
14
  # @param [CheckoutConfiguration] configuration
@@ -46,6 +47,11 @@ module CheckoutSdk
46
47
  api_client.invoke_post(build_path(DISPUTES, dispute_id, EVIDENCE), sdk_authorization)
47
48
  end
48
49
 
50
+ # @param [String] dispute_id
51
+ def get_dispute_scheme_files(dispute_id)
52
+ api_client.invoke_get(build_path(DISPUTES, dispute_id, SCHEME_FILES), sdk_authorization)
53
+ end
54
+
49
55
  # @param [CheckoutSdk::Common::FileRequest] file_request
50
56
  def upload_file(file_request)
51
57
  api_client.submit_file(FILES, sdk_authorization, file_request)
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'checkout_sdk/metadata/metadata_client'
4
+ require 'checkout_sdk/metadata/metadata_format'
5
+ require 'checkout_sdk/metadata/metadata_request'
6
+ require 'checkout_sdk/metadata/source/metadata_source'
7
+ require 'checkout_sdk/metadata/source/bin_metadata_source'
8
+ require 'checkout_sdk/metadata/source/card_metadata_source'
9
+ require 'checkout_sdk/metadata/source/id_metadata_source'
10
+ require 'checkout_sdk/metadata/source/metadata_source_type'
11
+ require 'checkout_sdk/metadata/source/token_metadata_source'
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CheckoutSdk
4
+ module Metadata
5
+ class MetadataClient < Client
6
+ METADATA = 'metadata'
7
+ CARD = 'card'
8
+ private_constant :METADATA, :CARD
9
+
10
+ # @param [ApiClient] api_client
11
+ # @param [CheckoutConfiguration] configuration
12
+ def initialize(api_client, configuration)
13
+ super api_client, configuration, CheckoutSdk::AuthorizationType::SECRET_KEY_OR_OAUTH
14
+ end
15
+
16
+ # @param [MetadataRequest] metadata_request
17
+ def request_card_metadata(metadata_request)
18
+ api_client.invoke_post(build_path(METADATA, CARD), sdk_authorization, metadata_request)
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CheckoutSdk
4
+ module Metadata
5
+ module Format
6
+ BASIC = 'basic'
7
+ CARD_PAYOUTS = 'card_payouts'
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CheckoutSdk
4
+ module Metadata
5
+ # @!attribute source
6
+ # @return [MetadataSource]
7
+ # @!attribute format
8
+ # @return [String] {Format}
9
+ class MetadataRequest
10
+ attr_accessor :source,
11
+ :format
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CheckoutSdk
4
+ module Metadata
5
+ # @!attribute bin
6
+ # @return [String]
7
+ class BinMetadataSource < MetadataSource
8
+ attr_accessor :bin
9
+
10
+ def initialize
11
+ super MetadataSourceType::BIN
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CheckoutSdk
4
+ module Metadata
5
+ # @!attribute number
6
+ # @return [String]
7
+ class CardMetadataSource < MetadataSource
8
+ attr_accessor :number
9
+
10
+ def initialize
11
+ super MetadataSourceType::CARD
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CheckoutSdk
4
+ module Metadata
5
+ # @!attribute id
6
+ # @return [String]
7
+ class IdMetadataSource < MetadataSource
8
+ attr_accessor :id
9
+
10
+ def initialize
11
+ super MetadataSourceType::ID
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CheckoutSdk
4
+ module Metadata
5
+ # @!attribute type
6
+ # @return [String] {MetadataSourceType}
7
+ class MetadataSource
8
+ attr_reader :type
9
+
10
+ protected
11
+
12
+ # @abstract
13
+ # @param [String] type {MetadataSourceType}
14
+ def initialize(type)
15
+ @type = type
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CheckoutSdk
4
+ module Metadata
5
+ module MetadataSourceType
6
+ BIN = 'bin'
7
+ CARD = 'card'
8
+ ID = 'id'
9
+ TOKEN = 'token'
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CheckoutSdk
4
+ module Metadata
5
+ # @!attribute token
6
+ # @return [String]
7
+ class TokenMetadataSource < MetadataSource
8
+ attr_accessor :token
9
+
10
+ def initialize
11
+ super MetadataSourceType::TOKEN
12
+ end
13
+ end
14
+ end
15
+ end
@@ -20,6 +20,7 @@ module CheckoutSdk
20
20
  DISPUTES_VIEW = 'disputes:view'
21
21
  DISPUTES_PROVIDE_EVIDENCE = 'disputes:provide-evidence'
22
22
  DISPUTES_ACCEPT = 'disputes:accept'
23
+ DISPUTES_SCHEME_FILES = 'disputes:scheme-files'
23
24
  MARKETPLACE = 'marketplace'
24
25
  ACCOUNTS = 'accounts'
25
26
  FLOW = 'flow'
@@ -39,5 +40,6 @@ module CheckoutSdk
39
40
  MIDDLEWARE_MERCHANTS_PUBLIC = 'middleware:merchants-public'
40
41
  REPORTING = 'reporting'
41
42
  REPORTING_VIEW = 'reporting:view'
43
+ CARD_METADATA = 'vault:card-metadata'
42
44
  end
43
45
  end
@@ -8,13 +8,19 @@ module CheckoutSdk
8
8
  # @return [String]
9
9
  # @!attribute zip
10
10
  # @return [String]
11
+ # @!attribute first_name
12
+ # @return [String]
11
13
  # @!attribute last_name
12
14
  # @return [String]
15
+ # @!attribute country
16
+ # @return [String] {CheckoutSdk::Common::Country}
13
17
  class PaymentRecipient
14
18
  attr_accessor :dob,
15
19
  :account_number,
16
20
  :zip,
17
- :last_name
21
+ :first_name,
22
+ :last_name,
23
+ :country
18
24
  end
19
25
  end
20
26
  end
@@ -7,9 +7,15 @@ module CheckoutSdk
7
7
  # @return [String]
8
8
  # @!attribute cvv
9
9
  # @return [String]
10
+ # @!attribute stored
11
+ # @return [TrueClass, FalseClass]
12
+ # @!attribute store_for_future_use
13
+ # @return [TrueClass, FalseClass]
10
14
  class IdSource < PaymentSource
11
15
  attr_accessor :id,
12
- :cvv
16
+ :cvv,
17
+ :stored,
18
+ :store_for_future_use
13
19
 
14
20
  def initialize
15
21
  super CheckoutSdk::Common::PaymentSourceType::ID
@@ -9,12 +9,15 @@ module CheckoutSdk
9
9
  # @return [CheckoutSdk::Common::Address]
10
10
  # @!attribute phone
11
11
  # @return [CheckoutSdk::Common::Phone]
12
+ # @!attribute stored
13
+ # @return [TrueClass, FalseClass]
12
14
  # @!attribute store_for_future_use
13
15
  # @return [TrueClass, FalseClass]
14
16
  class TokenSource < PaymentSource
15
17
  attr_accessor :token,
16
18
  :billing_address,
17
19
  :phone,
20
+ :stored,
18
21
  :store_for_future_use
19
22
 
20
23
  def initialize
@@ -8,10 +8,16 @@ module CheckoutSdk
8
8
  # @return [String]
9
9
  # @!attribute payment_method
10
10
  # @return [String]
11
+ # @!attribute stored
12
+ # @return [TrueClass, FalseClass]
13
+ # @!attribute store_for_future_use
14
+ # @return [TrueClass, FalseClass]
11
15
  class IdSource < PaymentSource
12
16
  attr_accessor :id,
13
17
  :cvv,
14
- :payment_method
18
+ :payment_method,
19
+ :stored,
20
+ :store_for_future_use
15
21
 
16
22
  def initialize
17
23
  super CheckoutSdk::Common::PaymentSourceType::ID
@@ -8,12 +8,15 @@ module CheckoutSdk
8
8
  # @return [CheckoutSdk::Common::Address]
9
9
  # @!attribute phone
10
10
  # @return [CheckoutSdk::Common::Phone]
11
+ # @!attribute stored
12
+ # @return [TrueClass, FalseClass]
11
13
  # @!attribute store_for_future_use
12
14
  # @return [TrueClass, FalseClass]
13
15
  class TokenSource < PaymentSource
14
16
  attr_accessor :token,
15
17
  :billing_address,
16
18
  :phone,
19
+ :stored,
17
20
  :store_for_future_use
18
21
 
19
22
  def initialize
@@ -2,6 +2,8 @@
2
2
 
3
3
  module CheckoutSdk
4
4
  module Risk
5
+ # @deprecated Risk endpoints are no longer supported officially, This module will be removed in a
6
+ # future release.
5
7
  class RiskClient < Client
6
8
  PRE_AUTHENTICATION = 'risk/assessments/pre-authentication'
7
9
  PRE_CAPTURE = 'risk/assessments/pre-capture'
@@ -9,7 +9,7 @@ module CheckoutSdk
9
9
  # @param [ApiClient] api_client
10
10
  # @param [CheckoutConfiguration] configuration
11
11
  def initialize(api_client, configuration)
12
- super(api_client, configuration, CheckoutSdk::AuthorizationType::OAUTH)
12
+ super(api_client, configuration, CheckoutSdk::AuthorizationType::SECRET_KEY_OR_OAUTH)
13
13
  end
14
14
 
15
15
  # @param [CreateTransfer] create_transfer
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CheckoutSdk
4
- VERSION = '1.0.0'
4
+ VERSION = '1.0.2'
5
5
  end
data/lib/checkout_sdk.rb CHANGED
@@ -62,6 +62,7 @@ require 'checkout_sdk/workflows/workflows'
62
62
  require 'checkout_sdk/risk/risk'
63
63
  require 'checkout_sdk/balances/balances'
64
64
  require 'checkout_sdk/transfers/transfers'
65
+ require 'checkout_sdk/metadata/metadata'
65
66
 
66
67
  # Checkout modules (previous)
67
68
  require 'checkout_sdk/sources/sources'
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.0.0
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Checkout
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-11-29 00:00:00.000000000 Z
11
+ date: 2023-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -58,42 +58,42 @@ dependencies:
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: 2.0.0
61
+ version: 1.10.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: 2.0.0
68
+ version: 1.10.0
69
69
  - !ruby/object:Gem::Dependency
70
- name: faraday-multipart
70
+ name: faraday-follow_redirects
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 1.0.4
75
+ version: 0.3.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 1.0.4
82
+ version: 0.3.0
83
83
  - !ruby/object:Gem::Dependency
84
- name: faraday-follow_redirects
84
+ name: faraday-multipart
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 0.3.0
89
+ version: 1.0.4
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 0.3.0
96
+ version: 1.0.4
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: mime-types
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -142,9 +142,14 @@ files:
142
142
  - lib/checkout_sdk/accounts/file_request.rb
143
143
  - lib/checkout_sdk/accounts/identification.rb
144
144
  - lib/checkout_sdk/accounts/individual.rb
145
+ - lib/checkout_sdk/accounts/instrument_details.rb
146
+ - lib/checkout_sdk/accounts/instrument_details_faster_payments.rb
147
+ - lib/checkout_sdk/accounts/instrument_details_sepa.rb
145
148
  - lib/checkout_sdk/accounts/instrument_document.rb
146
149
  - lib/checkout_sdk/accounts/onboard_entity.rb
147
150
  - lib/checkout_sdk/accounts/payment_instrument.rb
151
+ - lib/checkout_sdk/accounts/payment_instrument_request.rb
152
+ - lib/checkout_sdk/accounts/payment_instruments_query.rb
148
153
  - lib/checkout_sdk/accounts/phone.rb
149
154
  - lib/checkout_sdk/accounts/place_of_birth.rb
150
155
  - lib/checkout_sdk/accounts/profile.rb
@@ -231,6 +236,16 @@ files:
231
236
  - lib/checkout_sdk/instruments/update/update_instrument_card.rb
232
237
  - lib/checkout_sdk/instruments/update/update_instrument_token.rb
233
238
  - lib/checkout_sdk/json_serializer.rb
239
+ - lib/checkout_sdk/metadata/metadata.rb
240
+ - lib/checkout_sdk/metadata/metadata_client.rb
241
+ - lib/checkout_sdk/metadata/metadata_format.rb
242
+ - lib/checkout_sdk/metadata/metadata_request.rb
243
+ - lib/checkout_sdk/metadata/source/bin_metadata_source.rb
244
+ - lib/checkout_sdk/metadata/source/card_metadata_source.rb
245
+ - lib/checkout_sdk/metadata/source/id_metadata_source.rb
246
+ - lib/checkout_sdk/metadata/source/metadata_source.rb
247
+ - lib/checkout_sdk/metadata/source/metadata_source_type.rb
248
+ - lib/checkout_sdk/metadata/source/token_metadata_source.rb
234
249
  - lib/checkout_sdk/oauth_access_token.rb
235
250
  - lib/checkout_sdk/oauth_scopes.rb
236
251
  - lib/checkout_sdk/oauth_sdk_credentials.rb