Class: CheckoutSdk::StandaloneAccountUpdater::StandaloneAccountUpdaterClient
- Inherits:
-
Client
- Object
- Client
- CheckoutSdk::StandaloneAccountUpdater::StandaloneAccountUpdaterClient
- 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
-
#initialize(api_client, configuration) ⇒ StandaloneAccountUpdaterClient
constructor
A new instance of StandaloneAccountUpdaterClient.
-
#update_card(account_updater_request) ⇒ Object
Get updated card credentials.
Constructor Details
#initialize(api_client, configuration) ⇒ StandaloneAccountUpdaterClient
Returns a new instance of StandaloneAccountUpdaterClient.
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.
20 21 22 23 24 25 26 |
# File 'lib/checkout_sdk/standalone_account_updater/standalone_account_updater_client.rb', line 20 def update_card(account_updater_request) api_client.invoke_post( build_path(ACCOUNT_UPDATER, CARDS), , account_updater_request ) end |