• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

chift-oneapi / chift-python-sdk / 6237040820

19 Sep 2023 02:31PM UTC coverage: 99.338%. Remained the same
6237040820

push

github-actions

tdetry
[0.1.13] invoicing: use model with pdf

1 of 1 new or added line in 1 file covered. (100.0%)

2700 of 2718 relevant lines covered (99.34%)

0.99 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/chift/models/consumers/commerce/__init__.py
1
from typing import ClassVar
1✔
2

3
from chift.api.mixins import PaginationMixin, ReadMixin
1✔
4
from chift.openapi.models import CommerceCustomer as CommerceCustomerModel
1✔
5
from chift.openapi.models import CommerceLocation as CommerceLocationModel
1✔
6
from chift.openapi.models import CommerceOrder as CommerceOrderModel
1✔
7
from chift.openapi.models import CommerceProduct as CommerceProductModel
1✔
8
from chift.openapi.models import CommerceVariant as CommerceVariantModel
1✔
9

10

11
class CommerceRouter:
1✔
12
    def __init__(self, consumer_id, connection_id):
1✔
13
        self.Customer = Customer(consumer_id, connection_id)
1✔
14
        self.Product = Product(consumer_id, connection_id)
1✔
15
        self.Location = Location(consumer_id, connection_id)
1✔
16
        self.Order = Order(consumer_id, connection_id)
1✔
17
        self.Variant = Variant(consumer_id, connection_id)
1✔
18

19

20
class Customer(
1✔
21
    ReadMixin[CommerceCustomerModel],
22
    PaginationMixin[CommerceCustomerModel],
23
):
24
    chift_vertical: ClassVar = "commerce"
1✔
25
    chift_model: ClassVar = "customers"
1✔
26
    model = CommerceCustomerModel
1✔
27

28

29
class Product(
1✔
30
    ReadMixin[CommerceProductModel],
31
    PaginationMixin[CommerceProductModel],
32
):
33
    chift_vertical: ClassVar = "commerce"
1✔
34
    chift_model: ClassVar = "products"
1✔
35
    model = CommerceProductModel
1✔
36

37

38
class Variant(
1✔
39
    ReadMixin[CommerceVariantModel],
40
    PaginationMixin[CommerceVariantModel],
41
):
42
    chift_vertical: ClassVar = "commerce"
1✔
43
    chift_model: ClassVar = "variants"
1✔
44
    model = CommerceVariantModel
1✔
45

46

47
class Location(
1✔
48
    PaginationMixin[CommerceLocationModel],
49
):
50
    chift_vertical: ClassVar = "commerce"
1✔
51
    chift_model: ClassVar = "locations"
1✔
52
    model = CommerceLocationModel
1✔
53

54

55
class Order(
1✔
56
    ReadMixin[CommerceOrderModel],
57
    PaginationMixin[CommerceOrderModel],
58
):
59
    chift_vertical: ClassVar = "commerce"
1✔
60
    chift_model: ClassVar = "orders"
1✔
61
    model = CommerceOrderModel
1✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc