Class: CheckoutSdk::StandaloneAccountUpdater::StandaloneAccountUpdaterClient

Inherits:
Client
  • Object
show all
Defined in:
lib/checkout_sdk/standalone_account_updater/standalone_account_updater_client.rb

Overview

Client for the Standalone Account Updater API. Uses OAuth with the ‘vault:real-time-account-updater` scope.

Instance Attribute Summary

Attributes inherited from Client

#api_client, #authorization_type, #configuration

Instance Method Summary collapse

Constructor Details

#initialize(api_client, configuration) ⇒ StandaloneAccountUpdaterClient

Returns a new instance of StandaloneAccountUpdaterClient.

Parameters:



14
15
16
# File 'lib/checkout_sdk/standalone_account_updater/standalone_account_updater_client.rb', line 14

def initialize(api_client, configuration)
  super(api_client, configuration, CheckoutSdk::AuthorizationType::OAUTH)
end

Instance Method Details

#update_card(account_updater_request) ⇒ Object

Get updated card credentials.

Parameters:



20
21
22
23
24
25
26
# File 'lib/checkout_sdk/standalone_account_updater/standalone_account_updater_client.rb', line 20

def update_card()
  api_client.invoke_post(
    build_path(ACCOUNT_UPDATER, CARDS),
    sdk_authorization,
    
  )
end