Class: CheckoutSdk::Customers::CustomersClient
Instance Attribute Summary
#api_client, #authorization_type, #configuration
Instance Method Summary
collapse
Constructor Details
#initialize(api_client, configuration) ⇒ CustomersClient
Returns a new instance of CustomersClient.
Instance Method Details
#create(customer_request) ⇒ Object
16
17
18
|
# File 'lib/checkout_sdk/customers/customers_client.rb', line 16
def create(customer_request)
api_client.invoke_post(CUSTOMERS, sdk_authorization, customer_request)
end
|
#delete(customer_id) ⇒ Object
32
33
34
|
# File 'lib/checkout_sdk/customers/customers_client.rb', line 32
def delete(customer_id)
api_client.invoke_delete(build_path(CUSTOMERS, customer_id), sdk_authorization)
end
|
#get(customer_id) ⇒ Object
21
22
23
|
# File 'lib/checkout_sdk/customers/customers_client.rb', line 21
def get(customer_id)
api_client.invoke_get(build_path(CUSTOMERS, customer_id), sdk_authorization)
end
|
#update(customer_id, customer_request) ⇒ Object
27
28
29
|
# File 'lib/checkout_sdk/customers/customers_client.rb', line 27
def update(customer_id, customer_request)
api_client.invoke_patch(build_path(CUSTOMERS, customer_id), sdk_authorization, customer_request)
end
|