class Clayful::Customer
Public Class Methods
add_coupon(*args)
click to toggle source
# File lib/models/customer.rb, line 16 def self.add_coupon(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'add_coupon', 'http_method' => 'POST', 'path' => '/v1/customers/{customerId}/coupons', 'params' => ['customerId', ], 'args' => args }) end
authenticate(*args)
click to toggle source
# File lib/models/customer.rb, line 29 def self.authenticate(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'authenticate', 'http_method' => 'POST', 'path' => '/v1/customers/auth', 'params' => [], 'args' => args }) end
authenticate_by_3rd_party(*args)
click to toggle source
# File lib/models/customer.rb, line 42 def self.authenticate_by_3rd_party(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'authenticate_by_3rd_party', 'http_method' => 'POST', 'path' => '/v1/customers/auth/{vendor}', 'params' => ['vendor', ], 'args' => args }) end
count(*args)
click to toggle source
# File lib/models/customer.rb, line 55 def self.count(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'count', 'http_method' => 'GET', 'path' => '/v1/customers/count', 'params' => [], 'args' => args }) end
count_coupons(*args)
click to toggle source
# File lib/models/customer.rb, line 68 def self.count_coupons(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'count_coupons', 'http_method' => 'GET', 'path' => '/v1/customers/{customerId}/coupons/count', 'params' => ['customerId', ], 'args' => args }) end
count_coupons_for_me(*args)
click to toggle source
# File lib/models/customer.rb, line 81 def self.count_coupons_for_me(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'count_coupons_for_me', 'http_method' => 'GET', 'path' => '/v1/me/coupons/count', 'params' => [], 'args' => args }) end
create(*args)
click to toggle source
# File lib/models/customer.rb, line 94 def self.create(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'create', 'http_method' => 'POST', 'path' => '/v1/customers', 'params' => [], 'args' => args }) end
create_me(*args)
click to toggle source
# File lib/models/customer.rb, line 107 def self.create_me(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'create_me', 'http_method' => 'POST', 'path' => '/v1/me', 'params' => [], 'args' => args }) end
create_verification(*args)
click to toggle source
# File lib/models/customer.rb, line 120 def self.create_verification(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'create_verification', 'http_method' => 'POST', 'path' => '/v1/customers/verifications', 'params' => [], 'args' => args }) end
delete(*args)
click to toggle source
# File lib/models/customer.rb, line 133 def self.delete(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'delete', 'http_method' => 'DELETE', 'path' => '/v1/customers/{customerId}', 'params' => ['customerId', ], 'args' => args }) end
delete_coupon(*args)
click to toggle source
# File lib/models/customer.rb, line 146 def self.delete_coupon(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'delete_coupon', 'http_method' => 'DELETE', 'path' => '/v1/customers/{customerId}/coupons/{couponId}', 'params' => ['customerId', 'couponId', ], 'args' => args }) end
delete_coupon_for_me(*args)
click to toggle source
# File lib/models/customer.rb, line 159 def self.delete_coupon_for_me(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'delete_coupon_for_me', 'http_method' => 'DELETE', 'path' => '/v1/me/coupons/{couponId}', 'params' => ['couponId', ], 'args' => args }) end
delete_me(*args)
click to toggle source
# File lib/models/customer.rb, line 172 def self.delete_me(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'delete_me', 'http_method' => 'DELETE', 'path' => '/v1/me', 'params' => [], 'args' => args }) end
delete_metafield(*args)
click to toggle source
# File lib/models/customer.rb, line 185 def self.delete_metafield(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'delete_metafield', 'http_method' => 'DELETE', 'path' => '/v1/customers/{customerId}/meta/{field}', 'params' => ['customerId', 'field', ], 'args' => args }) end
get(*args)
click to toggle source
# File lib/models/customer.rb, line 198 def self.get(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'get', 'http_method' => 'GET', 'path' => '/v1/customers/{customerId}', 'params' => ['customerId', ], 'args' => args }) end
get_me(*args)
click to toggle source
# File lib/models/customer.rb, line 211 def self.get_me(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'get_me', 'http_method' => 'GET', 'path' => '/v1/me', 'params' => [], 'args' => args }) end
increase_metafield(*args)
click to toggle source
# File lib/models/customer.rb, line 224 def self.increase_metafield(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'increase_metafield', 'http_method' => 'POST', 'path' => '/v1/customers/{customerId}/meta/{field}/inc', 'params' => ['customerId', 'field', ], 'args' => args }) end
is_authenticated(*args)
click to toggle source
# File lib/models/customer.rb, line 237 def self.is_authenticated(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'is_authenticated', 'http_method' => 'GET', 'path' => '/v1/customers/auth', 'params' => [], 'args' => args }) end
list(*args)
click to toggle source
# File lib/models/customer.rb, line 250 def self.list(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'list', 'http_method' => 'GET', 'path' => '/v1/customers', 'params' => [], 'args' => args }) end
list_by_flag_votes(*args)
click to toggle source
# File lib/models/customer.rb, line 263 def self.list_by_flag_votes(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'list_by_flag_votes', 'http_method' => 'GET', 'path' => '/v1/{voteModel}/{voteModelId}/flags/customers', 'params' => ['voteModel', 'voteModelId', ], 'args' => args }) end
list_by_help_votes(*args)
click to toggle source
# File lib/models/customer.rb, line 289 def self.list_by_help_votes(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'list_by_help_votes', 'http_method' => 'GET', 'path' => '/v1/{voteModel}/{voteModelId}/helped/{upDown}/customers', 'params' => ['voteModel', 'voteModelId', 'upDown', ], 'args' => args }) end
list_coupons(*args)
click to toggle source
# File lib/models/customer.rb, line 315 def self.list_coupons(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'list_coupons', 'http_method' => 'GET', 'path' => '/v1/customers/{customerId}/coupons', 'params' => ['customerId', ], 'args' => args }) end
list_coupons_for_me(*args)
click to toggle source
# File lib/models/customer.rb, line 328 def self.list_coupons_for_me(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'list_coupons_for_me', 'http_method' => 'GET', 'path' => '/v1/me/coupons', 'params' => [], 'args' => args }) end
name()
click to toggle source
# File lib/models/customer.rb, line 8 def self.name @@name end
path()
click to toggle source
# File lib/models/customer.rb, line 12 def self.path @@path end
pull_from_metafield(*args)
click to toggle source
# File lib/models/customer.rb, line 341 def self.pull_from_metafield(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'pull_from_metafield', 'http_method' => 'POST', 'path' => '/v1/customers/{customerId}/meta/{field}/pull', 'params' => ['customerId', 'field', ], 'args' => args }) end
push_to_metafield(*args)
click to toggle source
# File lib/models/customer.rb, line 354 def self.push_to_metafield(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'push_to_metafield', 'http_method' => 'POST', 'path' => '/v1/customers/{customerId}/meta/{field}/push', 'params' => ['customerId', 'field', ], 'args' => args }) end
recover_credential(*args)
click to toggle source
# File lib/models/customer.rb, line 367 def self.recover_credential(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'recover_credential', 'http_method' => 'POST', 'path' => '/v1/customers/credentials/{credentialField}/recoveries/{recoveryMethod}', 'params' => ['credentialField', 'recoveryMethod', ], 'args' => args }) end
request_verification(*args)
click to toggle source
# File lib/models/customer.rb, line 380 def self.request_verification(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'request_verification', 'http_method' => 'POST', 'path' => '/v1/customers/verifications/{channelSlug}', 'params' => ['channelSlug', ], 'args' => args }) end
request_verification_email(*args)
click to toggle source
# File lib/models/customer.rb, line 393 def self.request_verification_email(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'request_verification_email', 'http_method' => 'POST', 'path' => '/v1/customers/verifications/emails', 'params' => [], 'args' => args }) end
reset_password(*args)
click to toggle source
# File lib/models/customer.rb, line 406 def self.reset_password(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'reset_password', 'http_method' => 'PUT', 'path' => '/v1/customers/{customerId}/password', 'params' => ['customerId', ], 'args' => args }) end
update(*args)
click to toggle source
# File lib/models/customer.rb, line 419 def self.update(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'update', 'http_method' => 'PUT', 'path' => '/v1/customers/{customerId}', 'params' => ['customerId', ], 'args' => args }) end
update_credentials(*args)
click to toggle source
# File lib/models/customer.rb, line 432 def self.update_credentials(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'update_credentials', 'http_method' => 'PUT', 'path' => '/v1/customers/{customerId}/credentials', 'params' => ['customerId', ], 'args' => args }) end
update_credentials_for_me(*args)
click to toggle source
# File lib/models/customer.rb, line 445 def self.update_credentials_for_me(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'update_credentials_for_me', 'http_method' => 'PUT', 'path' => '/v1/me/credentials', 'params' => [], 'args' => args }) end
update_me(*args)
click to toggle source
# File lib/models/customer.rb, line 458 def self.update_me(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'update_me', 'http_method' => 'PUT', 'path' => '/v1/me', 'params' => [], 'args' => args }) end
verify(*args)
click to toggle source
# File lib/models/customer.rb, line 471 def self.verify(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'verify', 'http_method' => 'POST', 'path' => '/v1/customers/{customerId}/verified', 'params' => ['customerId', ], 'args' => args }) end