class Clayful::Order

Public Class Methods

accept_refund(*args) click to toggle source
# File lib/models/order.rb, line 16
def self.accept_refund(*args)

        Clayful.call_api({
                'model_name'       => @@name,
                'method_name'      => 'accept_refund',
                'http_method'      => 'POST',
                'path'             => '/v1/orders/{orderId}/refunds/{refundId}/accepted',
                'params'           => ['orderId', 'refundId', ],
                'without_payload'  => true,
                'args'             => args
        })

end
authenticate(*args) click to toggle source
# File lib/models/order.rb, line 30
def self.authenticate(*args)

        Clayful.call_api({
                'model_name'       => @@name,
                'method_name'      => 'authenticate',
                'http_method'      => 'POST',
                'path'             => '/v1/orders/{orderId}/auth',
                'params'           => ['orderId', ],
                'args'             => args
        })

end
cancel(*args) click to toggle source
# File lib/models/order.rb, line 43
def self.cancel(*args)

        Clayful.call_api({
                'model_name'       => @@name,
                'method_name'      => 'cancel',
                'http_method'      => 'POST',
                'path'             => '/v1/orders/{orderId}/cancellation',
                'params'           => ['orderId', ],
                'args'             => args
        })

end
cancel_for_me(*args) click to toggle source
# File lib/models/order.rb, line 56
def self.cancel_for_me(*args)

        Clayful.call_api({
                'model_name'       => @@name,
                'method_name'      => 'cancel_for_me',
                'http_method'      => 'POST',
                'path'             => '/v1/me/orders/{orderId}/cancellation',
                'params'           => ['orderId', ],
                'args'             => args
        })

end
cancel_refund(*args) click to toggle source
# File lib/models/order.rb, line 69
def self.cancel_refund(*args)

        Clayful.call_api({
                'model_name'       => @@name,
                'method_name'      => 'cancel_refund',
                'http_method'      => 'POST',
                'path'             => '/v1/orders/{orderId}/refunds/{refundId}/cancellation',
                'params'           => ['orderId', 'refundId', ],
                'args'             => args
        })

end
cancel_refund_for_me(*args) click to toggle source
# File lib/models/order.rb, line 82
def self.cancel_refund_for_me(*args)

        Clayful.call_api({
                'model_name'       => @@name,
                'method_name'      => 'cancel_refund_for_me',
                'http_method'      => 'POST',
                'path'             => '/v1/me/orders/{orderId}/refunds/{refundId}/cancellation',
                'params'           => ['orderId', 'refundId', ],
                'args'             => args
        })

end
check_ticket(*args) click to toggle source
# File lib/models/order.rb, line 95
def self.check_ticket(*args)

        Clayful.call_api({
                'model_name'       => @@name,
                'method_name'      => 'check_ticket',
                'http_method'      => 'POST',
                'path'             => '/v1/orders/tickets/{code}/validity',
                'params'           => ['code', ],
                'args'             => args
        })

end
count(*args) click to toggle source
# File lib/models/order.rb, line 108
def self.count(*args)

        Clayful.call_api({
                'model_name'       => @@name,
                'method_name'      => 'count',
                'http_method'      => 'GET',
                'path'             => '/v1/orders/count',
                'params'           => [],
                'args'             => args
        })

end
count_for_me(*args) click to toggle source
# File lib/models/order.rb, line 121
def self.count_for_me(*args)

        Clayful.call_api({
                'model_name'       => @@name,
                'method_name'      => 'count_for_me',
                'http_method'      => 'GET',
                'path'             => '/v1/me/orders/count',
                'params'           => [],
                'args'             => args
        })

end
create_download_url(*args) click to toggle source
# File lib/models/order.rb, line 134
def self.create_download_url(*args)

        Clayful.call_api({
                'model_name'       => @@name,
                'method_name'      => 'create_download_url',
                'http_method'      => 'POST',
                'path'             => '/v1/orders/{orderId}/items/{itemId}/download/url',
                'params'           => ['orderId', 'itemId', ],
                'without_payload'  => true,
                'args'             => args
        })

end
create_download_url_for_me(*args) click to toggle source
# File lib/models/order.rb, line 148
def self.create_download_url_for_me(*args)

        Clayful.call_api({
                'model_name'       => @@name,
                'method_name'      => 'create_download_url_for_me',
                'http_method'      => 'POST',
                'path'             => '/v1/me/orders/{orderId}/items/{itemId}/download/url',
                'params'           => ['orderId', 'itemId', ],
                'without_payload'  => true,
                'args'             => args
        })

end
create_fulfillment(*args) click to toggle source
# File lib/models/order.rb, line 162
def self.create_fulfillment(*args)

        Clayful.call_api({
                'model_name'       => @@name,
                'method_name'      => 'create_fulfillment',
                'http_method'      => 'POST',
                'path'             => '/v1/orders/{orderId}/fulfillments',
                'params'           => ['orderId', ],
                'args'             => args
        })

end
delete(*args) click to toggle source
# File lib/models/order.rb, line 175
def self.delete(*args)

        Clayful.call_api({
                'model_name'       => @@name,
                'method_name'      => 'delete',
                'http_method'      => 'DELETE',
                'path'             => '/v1/orders/{orderId}',
                'params'           => ['orderId', ],
                'args'             => args
        })

end
delete_fulfillment(*args) click to toggle source
# File lib/models/order.rb, line 188
def self.delete_fulfillment(*args)

        Clayful.call_api({
                'model_name'       => @@name,
                'method_name'      => 'delete_fulfillment',
                'http_method'      => 'DELETE',
                'path'             => '/v1/orders/{orderId}/fulfillments/{fulfillmentId}',
                'params'           => ['orderId', 'fulfillmentId', ],
                'args'             => args
        })

end
delete_inventory_operation(*args) click to toggle source
# File lib/models/order.rb, line 201
def self.delete_inventory_operation(*args)

        Clayful.call_api({
                'model_name'       => @@name,
                'method_name'      => 'delete_inventory_operation',
                'http_method'      => 'DELETE',
                'path'             => '/v1/orders/{orderId}/inventory/operations/{operationId}',
                'params'           => ['orderId', 'operationId', ],
                'args'             => args
        })

end
delete_metafield(*args) click to toggle source
# File lib/models/order.rb, line 214
def self.delete_metafield(*args)

        Clayful.call_api({
                'model_name'       => @@name,
                'method_name'      => 'delete_metafield',
                'http_method'      => 'DELETE',
                'path'             => '/v1/orders/{orderId}/meta/{field}',
                'params'           => ['orderId', 'field', ],
                'args'             => args
        })

end
delete_refund(*args) click to toggle source
# File lib/models/order.rb, line 227
def self.delete_refund(*args)

        Clayful.call_api({
                'model_name'       => @@name,
                'method_name'      => 'delete_refund',
                'http_method'      => 'DELETE',
                'path'             => '/v1/orders/{orderId}/refunds/{refundId}',
                'params'           => ['orderId', 'refundId', ],
                'args'             => args
        })

end
get(*args) click to toggle source
# File lib/models/order.rb, line 240
def self.get(*args)

        Clayful.call_api({
                'model_name'       => @@name,
                'method_name'      => 'get',
                'http_method'      => 'GET',
                'path'             => '/v1/orders/{orderId}',
                'params'           => ['orderId', ],
                'args'             => args
        })

end
get_for_me(*args) click to toggle source
# File lib/models/order.rb, line 253
def self.get_for_me(*args)

        Clayful.call_api({
                'model_name'       => @@name,
                'method_name'      => 'get_for_me',
                'http_method'      => 'GET',
                'path'             => '/v1/me/orders/{orderId}',
                'params'           => ['orderId', ],
                'args'             => args
        })

end
increase_metafield(*args) click to toggle source
# File lib/models/order.rb, line 266
def self.increase_metafield(*args)

        Clayful.call_api({
                'model_name'       => @@name,
                'method_name'      => 'increase_metafield',
                'http_method'      => 'POST',
                'path'             => '/v1/orders/{orderId}/meta/{field}/inc',
                'params'           => ['orderId', 'field', ],
                'args'             => args
        })

end
list(*args) click to toggle source
# File lib/models/order.rb, line 279
def self.list(*args)

        Clayful.call_api({
                'model_name'       => @@name,
                'method_name'      => 'list',
                'http_method'      => 'GET',
                'path'             => '/v1/orders',
                'params'           => [],
                'args'             => args
        })

end
list_by_subscription(*args) click to toggle source
# File lib/models/order.rb, line 292
def self.list_by_subscription(*args)

        Clayful.call_api({
                'model_name'       => @@name,
                'method_name'      => 'list_by_subscription',
                'http_method'      => 'GET',
                'path'             => '/v1/subscriptions/{subscriptionId}/orders',
                'params'           => ['subscriptionId', ],
                'args'             => args
        })

end
list_by_subscription_for_me(*args) click to toggle source
# File lib/models/order.rb, line 305
def self.list_by_subscription_for_me(*args)

        Clayful.call_api({
                'model_name'       => @@name,
                'method_name'      => 'list_by_subscription_for_me',
                'http_method'      => 'GET',
                'path'             => '/v1/me/subscriptions/{subscriptionId}/orders',
                'params'           => ['subscriptionId', ],
                'args'             => args
        })

end
list_for_me(*args) click to toggle source
# File lib/models/order.rb, line 318
def self.list_for_me(*args)

        Clayful.call_api({
                'model_name'       => @@name,
                'method_name'      => 'list_for_me',
                'http_method'      => 'GET',
                'path'             => '/v1/me/orders',
                'params'           => [],
                'args'             => args
        })

end
list_inventory_operations(*args) click to toggle source
# File lib/models/order.rb, line 331
def self.list_inventory_operations(*args)

        Clayful.call_api({
                'model_name'       => @@name,
                'method_name'      => 'list_inventory_operations',
                'http_method'      => 'GET',
                'path'             => '/v1/orders/{orderId}/inventory/operations',
                'params'           => ['orderId', ],
                'args'             => args
        })

end
mark_as_done(*args) click to toggle source
# File lib/models/order.rb, line 344
def self.mark_as_done(*args)

        Clayful.call_api({
                'model_name'       => @@name,
                'method_name'      => 'mark_as_done',
                'http_method'      => 'POST',
                'path'             => '/v1/orders/{orderId}/done',
                'params'           => ['orderId', ],
                'without_payload'  => true,
                'args'             => args
        })

end
mark_as_not_received(*args) click to toggle source
# File lib/models/order.rb, line 358
def self.mark_as_not_received(*args)

        Clayful.call_api({
                'model_name'       => @@name,
                'method_name'      => 'mark_as_not_received',
                'http_method'      => 'DELETE',
                'path'             => '/v1/orders/{orderId}/received',
                'params'           => ['orderId', ],
                'args'             => args
        })

end
mark_as_not_received_for_me(*args) click to toggle source
# File lib/models/order.rb, line 371
def self.mark_as_not_received_for_me(*args)

        Clayful.call_api({
                'model_name'       => @@name,
                'method_name'      => 'mark_as_not_received_for_me',
                'http_method'      => 'DELETE',
                'path'             => '/v1/me/orders/{orderId}/received',
                'params'           => ['orderId', ],
                'args'             => args
        })

end
mark_as_received(*args) click to toggle source
# File lib/models/order.rb, line 384
def self.mark_as_received(*args)

        Clayful.call_api({
                'model_name'       => @@name,
                'method_name'      => 'mark_as_received',
                'http_method'      => 'POST',
                'path'             => '/v1/orders/{orderId}/received',
                'params'           => ['orderId', ],
                'without_payload'  => true,
                'args'             => args
        })

end
mark_as_received_for_me(*args) click to toggle source
# File lib/models/order.rb, line 398
def self.mark_as_received_for_me(*args)

        Clayful.call_api({
                'model_name'       => @@name,
                'method_name'      => 'mark_as_received_for_me',
                'http_method'      => 'POST',
                'path'             => '/v1/me/orders/{orderId}/received',
                'params'           => ['orderId', ],
                'without_payload'  => true,
                'args'             => args
        })

end
mark_as_undone(*args) click to toggle source
# File lib/models/order.rb, line 412
def self.mark_as_undone(*args)

        Clayful.call_api({
                'model_name'       => @@name,
                'method_name'      => 'mark_as_undone',
                'http_method'      => 'DELETE',
                'path'             => '/v1/orders/{orderId}/done',
                'params'           => ['orderId', ],
                'args'             => args
        })

end
name() click to toggle source
# File lib/models/order.rb, line 8
def self.name
        @@name
end
path() click to toggle source
# File lib/models/order.rb, line 12
def self.path
        @@path
end
pull_from_metafield(*args) click to toggle source
# File lib/models/order.rb, line 425
def self.pull_from_metafield(*args)

        Clayful.call_api({
                'model_name'       => @@name,
                'method_name'      => 'pull_from_metafield',
                'http_method'      => 'POST',
                'path'             => '/v1/orders/{orderId}/meta/{field}/pull',
                'params'           => ['orderId', 'field', ],
                'args'             => args
        })

end
push_to_metafield(*args) click to toggle source
# File lib/models/order.rb, line 438
def self.push_to_metafield(*args)

        Clayful.call_api({
                'model_name'       => @@name,
                'method_name'      => 'push_to_metafield',
                'http_method'      => 'POST',
                'path'             => '/v1/orders/{orderId}/meta/{field}/push',
                'params'           => ['orderId', 'field', ],
                'args'             => args
        })

end
register_payment_method(*args) click to toggle source
# File lib/models/order.rb, line 451
def self.register_payment_method(*args)

        Clayful.call_api({
                'model_name'       => @@name,
                'method_name'      => 'register_payment_method',
                'http_method'      => 'POST',
                'path'             => '/v1/orders/{orderId}/transactions/payments/methods',
                'params'           => ['orderId', ],
                'args'             => args
        })

end
request_refund(*args) click to toggle source
# File lib/models/order.rb, line 464
def self.request_refund(*args)

        Clayful.call_api({
                'model_name'       => @@name,
                'method_name'      => 'request_refund',
                'http_method'      => 'POST',
                'path'             => '/v1/orders/{orderId}/refunds',
                'params'           => ['orderId', ],
                'args'             => args
        })

end
request_refund_for_me(*args) click to toggle source
# File lib/models/order.rb, line 477
def self.request_refund_for_me(*args)

        Clayful.call_api({
                'model_name'       => @@name,
                'method_name'      => 'request_refund_for_me',
                'http_method'      => 'POST',
                'path'             => '/v1/me/orders/{orderId}/refunds',
                'params'           => ['orderId', ],
                'args'             => args
        })

end
restock_all_refund_items(*args) click to toggle source
# File lib/models/order.rb, line 490
def self.restock_all_refund_items(*args)

        Clayful.call_api({
                'model_name'       => @@name,
                'method_name'      => 'restock_all_refund_items',
                'http_method'      => 'POST',
                'path'             => '/v1/orders/{orderId}/refunds/{refundId}/restock/all',
                'params'           => ['orderId', 'refundId', ],
                'without_payload'  => true,
                'args'             => args
        })

end
restock_refund_items(*args) click to toggle source
# File lib/models/order.rb, line 504
def self.restock_refund_items(*args)

        Clayful.call_api({
                'model_name'       => @@name,
                'method_name'      => 'restock_refund_items',
                'http_method'      => 'POST',
                'path'             => '/v1/orders/{orderId}/refunds/{refundId}/restock',
                'params'           => ['orderId', 'refundId', ],
                'args'             => args
        })

end
sync_inventory(*args) click to toggle source
# File lib/models/order.rb, line 517
def self.sync_inventory(*args)

        Clayful.call_api({
                'model_name'       => @@name,
                'method_name'      => 'sync_inventory',
                'http_method'      => 'POST',
                'path'             => '/v1/orders/{orderId}/synced',
                'params'           => ['orderId', ],
                'without_payload'  => true,
                'args'             => args
        })

end
unaccept_refund(*args) click to toggle source
# File lib/models/order.rb, line 531
def self.unaccept_refund(*args)

        Clayful.call_api({
                'model_name'       => @@name,
                'method_name'      => 'unaccept_refund',
                'http_method'      => 'DELETE',
                'path'             => '/v1/orders/{orderId}/refunds/{refundId}/accepted',
                'params'           => ['orderId', 'refundId', ],
                'args'             => args
        })

end
unregister_payment_method(*args) click to toggle source
# File lib/models/order.rb, line 544
def self.unregister_payment_method(*args)

        Clayful.call_api({
                'model_name'       => @@name,
                'method_name'      => 'unregister_payment_method',
                'http_method'      => 'DELETE',
                'path'             => '/v1/orders/{orderId}/transactions/payments/methods/{paymentMethodId}',
                'params'           => ['orderId', 'paymentMethodId', ],
                'args'             => args
        })

end
update(*args) click to toggle source
# File lib/models/order.rb, line 557
def self.update(*args)

        Clayful.call_api({
                'model_name'       => @@name,
                'method_name'      => 'update',
                'http_method'      => 'PUT',
                'path'             => '/v1/orders/{orderId}',
                'params'           => ['orderId', ],
                'args'             => args
        })

end
update_cancellation(*args) click to toggle source
# File lib/models/order.rb, line 570
def self.update_cancellation(*args)

        Clayful.call_api({
                'model_name'       => @@name,
                'method_name'      => 'update_cancellation',
                'http_method'      => 'PUT',
                'path'             => '/v1/orders/{orderId}/cancellation',
                'params'           => ['orderId', ],
                'args'             => args
        })

end
update_cancellation_for_me(*args) click to toggle source
# File lib/models/order.rb, line 583
def self.update_cancellation_for_me(*args)

        Clayful.call_api({
                'model_name'       => @@name,
                'method_name'      => 'update_cancellation_for_me',
                'http_method'      => 'PUT',
                'path'             => '/v1/me/orders/{orderId}/cancellation',
                'params'           => ['orderId', ],
                'args'             => args
        })

end
update_for_me(*args) click to toggle source
# File lib/models/order.rb, line 596
def self.update_for_me(*args)

        Clayful.call_api({
                'model_name'       => @@name,
                'method_name'      => 'update_for_me',
                'http_method'      => 'PUT',
                'path'             => '/v1/me/orders/{orderId}',
                'params'           => ['orderId', ],
                'args'             => args
        })

end
update_fulfillment(*args) click to toggle source
# File lib/models/order.rb, line 609
def self.update_fulfillment(*args)

        Clayful.call_api({
                'model_name'       => @@name,
                'method_name'      => 'update_fulfillment',
                'http_method'      => 'PUT',
                'path'             => '/v1/orders/{orderId}/fulfillments/{fulfillmentId}',
                'params'           => ['orderId', 'fulfillmentId', ],
                'args'             => args
        })

end
update_item(*args) click to toggle source
# File lib/models/order.rb, line 622
def self.update_item(*args)

        Clayful.call_api({
                'model_name'       => @@name,
                'method_name'      => 'update_item',
                'http_method'      => 'PUT',
                'path'             => '/v1/orders/{orderId}/items/{itemId}',
                'params'           => ['orderId', 'itemId', ],
                'args'             => args
        })

end
update_refund(*args) click to toggle source
# File lib/models/order.rb, line 635
def self.update_refund(*args)

        Clayful.call_api({
                'model_name'       => @@name,
                'method_name'      => 'update_refund',
                'http_method'      => 'PUT',
                'path'             => '/v1/orders/{orderId}/refunds/{refundId}',
                'params'           => ['orderId', 'refundId', ],
                'args'             => args
        })

end
update_refund_cancellation(*args) click to toggle source
# File lib/models/order.rb, line 648
def self.update_refund_cancellation(*args)

        Clayful.call_api({
                'model_name'       => @@name,
                'method_name'      => 'update_refund_cancellation',
                'http_method'      => 'PUT',
                'path'             => '/v1/orders/{orderId}/refunds/{refundId}/cancellation',
                'params'           => ['orderId', 'refundId', ],
                'args'             => args
        })

end
update_refund_cancellation_for_me(*args) click to toggle source
# File lib/models/order.rb, line 661
def self.update_refund_cancellation_for_me(*args)

        Clayful.call_api({
                'model_name'       => @@name,
                'method_name'      => 'update_refund_cancellation_for_me',
                'http_method'      => 'PUT',
                'path'             => '/v1/me/orders/{orderId}/refunds/{refundId}/cancellation',
                'params'           => ['orderId', 'refundId', ],
                'args'             => args
        })

end
update_refund_for_me(*args) click to toggle source
# File lib/models/order.rb, line 674
def self.update_refund_for_me(*args)

        Clayful.call_api({
                'model_name'       => @@name,
                'method_name'      => 'update_refund_for_me',
                'http_method'      => 'PUT',
                'path'             => '/v1/me/orders/{orderId}/refunds/{refundId}',
                'params'           => ['orderId', 'refundId', ],
                'args'             => args
        })

end
update_transactions(*args) click to toggle source
# File lib/models/order.rb, line 687
def self.update_transactions(*args)

        Clayful.call_api({
                'model_name'       => @@name,
                'method_name'      => 'update_transactions',
                'http_method'      => 'PUT',
                'path'             => '/v1/orders/{orderId}/transactions',
                'params'           => ['orderId', ],
                'args'             => args
        })

end
update_transactions_for_me(*args) click to toggle source
# File lib/models/order.rb, line 700
def self.update_transactions_for_me(*args)

        Clayful.call_api({
                'model_name'       => @@name,
                'method_name'      => 'update_transactions_for_me',
                'http_method'      => 'PUT',
                'path'             => '/v1/me/orders/{orderId}/transactions',
                'params'           => ['orderId', ],
                'without_payload'  => true,
                'args'             => args
        })

end
use_ticket(*args) click to toggle source
# File lib/models/order.rb, line 714
def self.use_ticket(*args)

        Clayful.call_api({
                'model_name'       => @@name,
                'method_name'      => 'use_ticket',
                'http_method'      => 'POST',
                'path'             => '/v1/orders/tickets/{code}/used',
                'params'           => ['code', ],
                'without_payload'  => true,
                'args'             => args
        })

end