How to use the bigcommerce.resource.ResourceSet 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 / resource.py View on Github external
class Options(ResourceSet):
    res_name = "options"
    resource_class = Option

class OptionSet(ParentResource):
    res_name = "optionsets"
    
class OptionSets(ResourceSet):
    res_name = "optionsets"
    resource_class = OptionSet

class Order(ParentResource):
    res_name = "orders"
    
class Orders(ResourceSet):
    res_name = "orders"
    resource_class = Order

class Product(ParentResource):
    res_name = "products"
 
class Products(ResourceSet):
    res_name = "products"
    resource_class = Product
    
class Redirect(Resource):
    res_name = "redirects"
    
class Redirects(ResourceSet):
    res_name = "redirects"
    resource_class = Redirect
github bigcommerce / bigcommerce-api-python / bigcommerce / resource.py View on Github external
class OptionSets(ResourceSet):
    res_name = "optionsets"
    resource_class = OptionSet

class Order(ParentResource):
    res_name = "orders"
    
class Orders(ResourceSet):
    res_name = "orders"
    resource_class = Order

class Product(ParentResource):
    res_name = "products"
 
class Products(ResourceSet):
    res_name = "products"
    resource_class = Product
    
class Redirect(Resource):
    res_name = "redirects"
    
class Redirects(ResourceSet):
    res_name = "redirects"
    resource_class = Redirect
    
class Shipping(ParentResource):
    """Only GET"""
    res_name = "shipping"
github bigcommerce / bigcommerce-api-python / bigcommerce / resource.py View on Github external
class Countries(ResourceSet):
    res_name = "countries"
    resource_class = Country

class Customer(ParentResource):
    res_name = "customers"
    
class Customers(ResourceSet):
    res_name = "customers"
    resource_class = Customer
    
class Option(ParentResource):
    res_name = "options"
    
class Options(ResourceSet):
    res_name = "options"
    resource_class = Option

class OptionSet(ParentResource):
    res_name = "optionsets"
    
class OptionSets(ResourceSet):
    res_name = "optionsets"
    resource_class = OptionSet

class Order(ParentResource):
    res_name = "orders"
    
class Orders(ResourceSet):
    res_name = "orders"
    resource_class = Order
github bigcommerce / bigcommerce-api-python / bigcommerce / resource.py View on Github external
class Brands(ResourceSet):
    res_name = "brands"
    resource_class = Brand

class Category(Resource):
    res_name = "categories"
    
class Categories(ResourceSet):
    res_name = "categories"
    resource_class = Category
    
class OrderStatus(Resource):
    res_name = "orderstatuses"
    
class OrderStatuses(ResourceSet):
    res_name = "orderstatuses"
    resource_class = OrderStatus

class CustomerGroup(Resource):
    res_name = "customer_groups"
    
class CustomerGroups(ResourceSet):
    res_name = "customer_groups"
    resource_class = CustomerGroup

class Coupon(Resource):
    res_name = "coupons"
    
class Coupons(ResourceSet):
    res_name = "coupons"
    resource_class = Coupon
github bigcommerce / bigcommerce-api-python / bigcommerce / resource.py View on Github external
body = json.dumps(body)
        new_fields = self.client.put('/{}/{}/{}/{}.json'.format(self.res_name, 
                                                                self.id, 
                                                                sres.res_name, 
                                                                sres.id), 
                                     body,
                                     **options)
        # commit changes locally
        sres._replace_fields(new_fields)

# Resources and ResourceSets

class Brand(Resource):
    res_name = "brands"
    
class Brands(ResourceSet):
    res_name = "brands"
    resource_class = Brand

class Category(Resource):
    res_name = "categories"
    
class Categories(ResourceSet):
    res_name = "categories"
    resource_class = Category
    
class OrderStatus(Resource):
    res_name = "orderstatuses"
    
class OrderStatuses(ResourceSet):
    res_name = "orderstatuses"
    resource_class = OrderStatus
github bigcommerce / bigcommerce-api-python / bigcommerce / resource.py View on Github external
class Stores(ResourceSet):
    """Only supports GET /store.json, according to documentation."""
    res_name = "store"
    resource_class = Store

class Country(ParentResource):
    res_name = "countries"
        
class Countries(ResourceSet):
    res_name = "countries"
    resource_class = Country

class Customer(ParentResource):
    res_name = "customers"
    
class Customers(ResourceSet):
    res_name = "customers"
    resource_class = Customer
    
class Option(ParentResource):
    res_name = "options"
    
class Options(ResourceSet):
    res_name = "options"
    resource_class = Option

class OptionSet(ParentResource):
    res_name = "optionsets"
    
class OptionSets(ResourceSet):
    res_name = "optionsets"
    resource_class = OptionSet
github bigcommerce / bigcommerce-api-python / bigcommerce / resource.py View on Github external
class Orders(ResourceSet):
    res_name = "orders"
    resource_class = Order

class Product(ParentResource):
    res_name = "products"
 
class Products(ResourceSet):
    res_name = "products"
    resource_class = Product
    
class Redirect(Resource):
    res_name = "redirects"
    
class Redirects(ResourceSet):
    res_name = "redirects"
    resource_class = Redirect
    
class Shipping(ParentResource):
    """Only GET"""
    res_name = "shipping"
github bigcommerce / bigcommerce-api-python / bigcommerce / resource.py View on Github external
class Coupons(ResourceSet):
    res_name = "coupons"
    resource_class = Coupon

class Store(Resource):
    res_name = "store"
    
class Stores(ResourceSet):
    """Only supports GET /store.json, according to documentation."""
    res_name = "store"
    resource_class = Store

class Country(ParentResource):
    res_name = "countries"
        
class Countries(ResourceSet):
    res_name = "countries"
    resource_class = Country

class Customer(ParentResource):
    res_name = "customers"
    
class Customers(ResourceSet):
    res_name = "customers"
    resource_class = Customer
    
class Option(ParentResource):
    res_name = "options"
    
class Options(ResourceSet):
    res_name = "options"
    resource_class = Option
github bigcommerce / bigcommerce-api-python / bigcommerce / resource.py View on Github external
class Categories(ResourceSet):
    res_name = "categories"
    resource_class = Category
    
class OrderStatus(Resource):
    res_name = "orderstatuses"
    
class OrderStatuses(ResourceSet):
    res_name = "orderstatuses"
    resource_class = OrderStatus

class CustomerGroup(Resource):
    res_name = "customer_groups"
    
class CustomerGroups(ResourceSet):
    res_name = "customer_groups"
    resource_class = CustomerGroup

class Coupon(Resource):
    res_name = "coupons"
    
class Coupons(ResourceSet):
    res_name = "coupons"
    resource_class = Coupon

class Store(Resource):
    res_name = "store"
    
class Stores(ResourceSet):
    """Only supports GET /store.json, according to documentation."""
    res_name = "store"
github bigcommerce / bigcommerce-api-python / bigcommerce / resource.py View on Github external
class CustomerGroups(ResourceSet):
    res_name = "customer_groups"
    resource_class = CustomerGroup

class Coupon(Resource):
    res_name = "coupons"
    
class Coupons(ResourceSet):
    res_name = "coupons"
    resource_class = Coupon

class Store(Resource):
    res_name = "store"
    
class Stores(ResourceSet):
    """Only supports GET /store.json, according to documentation."""
    res_name = "store"
    resource_class = Store

class Country(ParentResource):
    res_name = "countries"
        
class Countries(ResourceSet):
    res_name = "countries"
    resource_class = Country

class Customer(ParentResource):
    res_name = "customers"
    
class Customers(ResourceSet):
    res_name = "customers"