summaryrefslogtreecommitdiff
path: root/icclient/ord.h
blob: 638880a1ae14eec73264cd0030dc29bd509608d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef ICCLIENT_ORD_H
#define ICCLIENT_ORD_H

struct icclient_ord_item {
	struct icclient_product *product;
	unsigned int quantity;
};

struct icclient_ord_order {
	double subtotal;
	double shipping;
	double total_cost;
	size_t nitems;
	struct icclient_ord_item *items[];
};

#ifdef __cplusplus
extern "C" {
#endif

	void icclient_ord_init(struct icclient_ord_order *order);
	void icclient_ord_free(struct icclient_ord_order *order);

#ifdef __cplusplus
}
#endif

#endif // ICCLIENT_ORD_H