|
4 | 4 | from commercetools.services.carts import CartService |
5 | 5 | from commercetools.services.categories import CategoryService |
6 | 6 | from commercetools.services.channels import ChannelService |
7 | | -from commercetools.services.custom_object import CustomObjectService |
| 7 | +from commercetools.services.custom_objects import CustomObjectService |
8 | 8 | from commercetools.services.customer_groups import CustomerGroupService |
9 | 9 | from commercetools.services.customers import CustomerService |
10 | 10 | from commercetools.services.discount_codes import DiscountCodeService |
11 | 11 | from commercetools.services.extensions import ExtensionService |
12 | 12 | from commercetools.services.graphqls import GraphqlService |
13 | 13 | from commercetools.services.in_stores import In_StoreService |
14 | | -from commercetools.services.inventory_entries import InventoryEntryService |
| 14 | +from commercetools.services.inventory import InventoryEntryService |
15 | 15 | from commercetools.services.login import LoginService |
16 | 16 | from commercetools.services.me import MeService |
17 | 17 | from commercetools.services.messages import MessageService |
|
21 | 21 | from commercetools.services.product_projections import ProductProjectionService |
22 | 22 | from commercetools.services.product_types import ProductTypeService |
23 | 23 | from commercetools.services.products import ProductService |
| 24 | +from commercetools.services.project import ProjectService |
24 | 25 | from commercetools.services.reviews import ReviewService |
25 | 26 | from commercetools.services.shipping_methods import ShippingMethodService |
26 | 27 | from commercetools.services.shopping_lists import ShoppingListService |
|
32 | 33 | from commercetools.services.zones import ZoneService |
33 | 34 |
|
34 | 35 |
|
35 | | -class ServiceMixin: |
36 | | - category: CategoryService |
| 36 | +class ServicesMixin: |
| 37 | + api_client: ApiClientService |
37 | 38 | cart: CartService |
38 | 39 | cart_discount: CartDiscountService |
| 40 | + category: CategoryService |
39 | 41 | channel: ChannelService |
| 42 | + custom_object: CustomObjectService |
40 | 43 | customer: CustomerService |
41 | 44 | customer_group: CustomerGroupService |
42 | | - custom_object: CustomObjectService |
43 | 45 | discount_code: DiscountCodeService |
| 46 | + extension: ExtensionService |
44 | 47 | graphql: GraphqlService |
| 48 | + in_store: In_StoreService |
45 | 49 | inventory_entry: InventoryEntryService |
46 | 50 | login: LoginService |
| 51 | + me: MeService |
47 | 52 | message: MessageService |
48 | 53 | order: OrderService |
49 | 54 | payment: PaymentService |
50 | 55 | product: ProductService |
51 | 56 | product_discount: ProductDiscountService |
52 | 57 | product_projection: ProductProjectionService |
53 | 58 | product_type: ProductTypeService |
| 59 | + project: ProjectService |
54 | 60 | review: ReviewService |
55 | 61 | shipping_method: ShippingMethodService |
56 | 62 | shopping_list: ShoppingListService |
57 | 63 | state: StateService |
| 64 | + store: StoreService |
58 | 65 | subscription: SubscriptionService |
59 | 66 | tax_category: TaxCategoryService |
60 | 67 | type: TypeService |
61 | 68 | zone: ZoneService |
62 | | - me: MeService |
63 | | - extension: ExtensionService |
64 | | - api_client: ApiClientService |
65 | | - store: StoreService |
66 | | - in_store: In_StoreService |
67 | 69 |
|
68 | 70 | def register_services(self): |
69 | | - self.category = CategoryService(self) |
70 | | - self.cart = CartService(self) |
71 | | - self.cart_discount = CartDiscountService(self) |
72 | | - self.channel = ChannelService(self) |
73 | | - self.customer = CustomerService(self) |
74 | | - self.customer_group = CustomerGroupService(self) |
75 | | - self.custom_object = CustomObjectService(self) |
76 | | - self.discount_code = DiscountCodeService(self) |
77 | | - self.graphql = GraphqlService(self) |
78 | | - self.inventory_entry = InventoryEntryService(self) |
| 71 | + self.api_clients = ApiClientService(self) |
| 72 | + self.carts = CartService(self) |
| 73 | + self.cart_discounts = CartDiscountService(self) |
| 74 | + self.categories = CategoryService(self) |
| 75 | + self.channels = ChannelService(self) |
| 76 | + self.custom_objects = CustomObjectService(self) |
| 77 | + self.customers = CustomerService(self) |
| 78 | + self.customer_groups = CustomerGroupService(self) |
| 79 | + self.discount_codes = DiscountCodeService(self) |
| 80 | + self.extensions = ExtensionService(self) |
| 81 | + self.graphqls = GraphqlService(self) |
| 82 | + self.in_stores = In_StoreService(self) |
| 83 | + self.inventory = InventoryEntryService(self) |
79 | 84 | self.login = LoginService(self) |
80 | | - self.message = MessageService(self) |
81 | | - self.order = OrderService(self) |
82 | | - self.payment = PaymentService(self) |
83 | | - self.product = ProductService(self) |
84 | | - self.product_discount = ProductDiscountService(self) |
85 | | - self.product_projection = ProductProjectionService(self) |
86 | | - self.product_type = ProductTypeService(self) |
87 | | - self.review = ReviewService(self) |
88 | | - self.shipping_method = ShippingMethodService(self) |
89 | | - self.shopping_list = ShoppingListService(self) |
90 | | - self.state = StateService(self) |
91 | | - self.subscription = SubscriptionService(self) |
92 | | - self.tax_category = TaxCategoryService(self) |
93 | | - self.type = TypeService(self) |
94 | | - self.zone = ZoneService(self) |
95 | 85 | self.me = MeService(self) |
96 | | - self.extension = ExtensionService(self) |
97 | | - self.api_client = ApiClientService(self) |
98 | | - self.store = StoreService(self) |
99 | | - self.in_store = In_StoreService(self) |
| 86 | + self.messages = MessageService(self) |
| 87 | + self.orders = OrderService(self) |
| 88 | + self.payments = PaymentService(self) |
| 89 | + self.products = ProductService(self) |
| 90 | + self.product_discounts = ProductDiscountService(self) |
| 91 | + self.product_projections = ProductProjectionService(self) |
| 92 | + self.product_types = ProductTypeService(self) |
| 93 | + self.project = ProjectService(self) |
| 94 | + self.reviews = ReviewService(self) |
| 95 | + self.shipping_methods = ShippingMethodService(self) |
| 96 | + self.shopping_lists = ShoppingListService(self) |
| 97 | + self.states = StateService(self) |
| 98 | + self.stores = StoreService(self) |
| 99 | + self.subscriptions = SubscriptionService(self) |
| 100 | + self.tax_categories = TaxCategoryService(self) |
| 101 | + self.types = TypeService(self) |
| 102 | + self.zones = ZoneService(self) |
0 commit comments