@@ -87,6 +87,10 @@ class OrderInvoiceType(DjangoObjectType):
87
87
humanize_total_price = graphene .String ()
88
88
items = graphene .List (OrderInvoiceLineItemType )
89
89
total_price = graphene .String ()
90
+ total_tax = graphene .String ()
91
+ total_shipping_cost = graphene .String ()
92
+ total_price_without_tax = graphene .String ()
93
+ total_discounted_amount = graphene .String ()
90
94
91
95
def resolve_humanize_total_price (self , info ):
92
96
return self .humanize_total_price ()
@@ -97,6 +101,18 @@ def resolve_items(self, info):
97
101
def resolve_total_price (self , info ):
98
102
return self .humanize_total_price ()
99
103
104
+ def resolve_total_tax (self , info ):
105
+ return self .humanize_total_tax ()
106
+
107
+ def resolve_total_shipping_cost (self , info ):
108
+ return self .humanize_total_shipping_cost ()
109
+
110
+ def resolve_total_price_without_tax (self , info ):
111
+ return self .humanize_total_tax ()
112
+
113
+ def resolve_total_discounted_amount (self , info ):
114
+ return self .humanize_total_discounted_amount ()
115
+
100
116
class Meta :
101
117
model = Order
102
118
fields = (
@@ -106,10 +122,6 @@ class Meta:
106
122
'shipping_address' ,
107
123
'billing_address' ,
108
124
'created_at' ,
109
- 'total_price_without_tax' ,
110
- 'total_shipping_cost' ,
111
- 'total_discounted_amount' ,
112
- 'total_tax' ,
113
125
'customer_currency' ,
114
126
'currency_conversion_rate' ,
115
127
'authorize_status' ,
0 commit comments