How to use the bigcommerce.subresource.SubResource function in bigcommerce

To help you get started, we’ve selected a few bigcommerce examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github bigcommerce / bigcommerce-api-python / bigcommerce / subresource.py View on Github external
res_name = "shipments"
    parent_name = "orders"
    
class OrderShippingAddress(SubResource):
    res_name = "shippingaddresses"
    parent_name = "orders"
    
class ProductSKU(SubResource):
    res_name = "skus"
    parent_name = "products"
 
class ProductConfigurableField(SubResource):
    res_name = "configurablefields"
    parent_name = "products"
    
class ProductCustomField(SubResource):
    res_name = "customfields"
    parent_name = "products"
    
class ProductDiscountRule(SubResource):
    res_name = "discountrules"
    parent_name = "products"
    
class ProductImage(SubResource):
    res_name = "images"
    parent_name = "products"
    
class ProductRule(SubResource):
    res_name = "rules"
    parent_name = "products"
    
class ProductVideo(SubResource):
github bigcommerce / bigcommerce-api-python / bigcommerce / subresource.py View on Github external
res_name = "configurablefields"
    parent_name = "products"
    
class ProductCustomField(SubResource):
    res_name = "customfields"
    parent_name = "products"
    
class ProductDiscountRule(SubResource):
    res_name = "discountrules"
    parent_name = "products"
    
class ProductImage(SubResource):
    res_name = "images"
    parent_name = "products"
    
class ProductRule(SubResource):
    res_name = "rules"
    parent_name = "products"
    
class ProductVideo(SubResource):
    res_name = "productvideos"
    parent_name = "products"
    
class ShippingMethod(SubResource):
    res_name = "methods"
    parent_name = "shipping"
github bigcommerce / bigcommerce-api-python / bigcommerce / subresource.py View on Github external
res_name = "skus"
    parent_name = "products"
 
class ProductConfigurableField(SubResource):
    res_name = "configurablefields"
    parent_name = "products"
    
class ProductCustomField(SubResource):
    res_name = "customfields"
    parent_name = "products"
    
class ProductDiscountRule(SubResource):
    res_name = "discountrules"
    parent_name = "products"
    
class ProductImage(SubResource):
    res_name = "images"
    parent_name = "products"
    
class ProductRule(SubResource):
    res_name = "rules"
    parent_name = "products"
    
class ProductVideo(SubResource):
    res_name = "productvideos"
    parent_name = "products"
    
class ShippingMethod(SubResource):
    res_name = "methods"
    parent_name = "shipping"
github bigcommerce / bigcommerce-api-python / bigcommerce / subresource.py View on Github external
res_name = "customfields"
    parent_name = "products"
    
class ProductDiscountRule(SubResource):
    res_name = "discountrules"
    parent_name = "products"
    
class ProductImage(SubResource):
    res_name = "images"
    parent_name = "products"
    
class ProductRule(SubResource):
    res_name = "rules"
    parent_name = "products"
    
class ProductVideo(SubResource):
    res_name = "productvideos"
    parent_name = "products"
    
class ShippingMethod(SubResource):
    res_name = "methods"
    parent_name = "shipping"
github bigcommerce / bigcommerce-api-python / bigcommerce / subresource.py View on Github external
res_name = "values"
    parent_name = "options"

class OrderShipment(SubResource):
    res_name = "shipments"
    parent_name = "orders"
    
class OrderShippingAddress(SubResource):
    res_name = "shippingaddresses"
    parent_name = "orders"
    
class ProductSKU(SubResource):
    res_name = "skus"
    parent_name = "products"
 
class ProductConfigurableField(SubResource):
    res_name = "configurablefields"
    parent_name = "products"
    
class ProductCustomField(SubResource):
    res_name = "customfields"
    parent_name = "products"
    
class ProductDiscountRule(SubResource):
    res_name = "discountrules"
    parent_name = "products"
    
class ProductImage(SubResource):
    res_name = "images"
    parent_name = "products"
    
class ProductRule(SubResource):
github bigcommerce / bigcommerce-api-python / bigcommerce / subresource.py View on Github external
def delete(self, **options):
        """
        Deletes this resource from the store.
        Equivalent to GET /resource/subresource/sres_id
        """
        self.client.delete('/{}/{}.json'.format(self.parent_name, 
                                                self.res_name, 
                                                self.id), 
                           **options)
    
class CountryState(SubResource):
    res_name = "states"
    parent_name = "countries"
    
class OptionValue(SubResource):
    res_name = "values"
    parent_name = "options"

class OrderShipment(SubResource):
    res_name = "shipments"
    parent_name = "orders"
    
class OrderShippingAddress(SubResource):
    res_name = "shippingaddresses"
    parent_name = "orders"
    
class ProductSKU(SubResource):
    res_name = "skus"
    parent_name = "products"
 
class ProductConfigurableField(SubResource):
github bigcommerce / bigcommerce-api-python / bigcommerce / subresource.py View on Github external
res_name = "shippingaddresses"
    parent_name = "orders"
    
class ProductSKU(SubResource):
    res_name = "skus"
    parent_name = "products"
 
class ProductConfigurableField(SubResource):
    res_name = "configurablefields"
    parent_name = "products"
    
class ProductCustomField(SubResource):
    res_name = "customfields"
    parent_name = "products"
    
class ProductDiscountRule(SubResource):
    res_name = "discountrules"
    parent_name = "products"
    
class ProductImage(SubResource):
    res_name = "images"
    parent_name = "products"
    
class ProductRule(SubResource):
    res_name = "rules"
    parent_name = "products"
    
class ProductVideo(SubResource):
    res_name = "productvideos"
    parent_name = "products"
    
class ShippingMethod(SubResource):
github bigcommerce / bigcommerce-api-python / bigcommerce / subresource.py View on Github external
res_name = "discountrules"
    parent_name = "products"
    
class ProductImage(SubResource):
    res_name = "images"
    parent_name = "products"
    
class ProductRule(SubResource):
    res_name = "rules"
    parent_name = "products"
    
class ProductVideo(SubResource):
    res_name = "productvideos"
    parent_name = "products"
    
class ShippingMethod(SubResource):
    res_name = "methods"
    parent_name = "shipping"
github bigcommerce / bigcommerce-api-python / bigcommerce / subresource.py View on Github external
res_name = "states"
    parent_name = "countries"
    
class OptionValue(SubResource):
    res_name = "values"
    parent_name = "options"

class OrderShipment(SubResource):
    res_name = "shipments"
    parent_name = "orders"
    
class OrderShippingAddress(SubResource):
    res_name = "shippingaddresses"
    parent_name = "orders"
    
class ProductSKU(SubResource):
    res_name = "skus"
    parent_name = "products"
 
class ProductConfigurableField(SubResource):
    res_name = "configurablefields"
    parent_name = "products"
    
class ProductCustomField(SubResource):
    res_name = "customfields"
    parent_name = "products"
    
class ProductDiscountRule(SubResource):
    res_name = "discountrules"
    parent_name = "products"
    
class ProductImage(SubResource):
github bigcommerce / bigcommerce-api-python / bigcommerce / subresource.py View on Github external
body,
                                     **options)
        # commit changes locally
        self._replace_fields(new_fields)
    
    def delete(self, **options):
        """
        Deletes this resource from the store.
        Equivalent to GET /resource/subresource/sres_id
        """
        self.client.delete('/{}/{}.json'.format(self.parent_name, 
                                                self.res_name, 
                                                self.id), 
                           **options)
    
class CountryState(SubResource):
    res_name = "states"
    parent_name = "countries"
    
class OptionValue(SubResource):
    res_name = "values"
    parent_name = "options"

class OrderShipment(SubResource):
    res_name = "shipments"
    parent_name = "orders"
    
class OrderShippingAddress(SubResource):
    res_name = "shippingaddresses"
    parent_name = "orders"
    
class ProductSKU(SubResource):