Initial commit
[yaz4j-moved-to-github.git] / dependencies / yaz-2.1.28 / include / yaz / zes-order.h
1 /** \file zes-order.h
2     \brief ASN.1 Module ESFormat-ItemOrder
3
4     Generated automatically by YAZ ASN.1 Compiler 0.4
5 */
6
7 #ifndef zes_order_H
8 #define zes_order_H
9
10 #include <yaz/odr.h>
11 #include <yaz/z-core.h>
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15
16 typedef struct Z_IORequest Z_IORequest;
17 YAZ_EXPORT int z_IORequest (ODR o, Z_IORequest **p, int opt, const char *name);
18
19 typedef struct Z_IOTaskPackage Z_IOTaskPackage;
20 YAZ_EXPORT int z_IOTaskPackage (ODR o, Z_IOTaskPackage **p, int opt, const char *name);
21
22 typedef struct Z_IOItemOrder Z_IOItemOrder;
23 YAZ_EXPORT int z_IOItemOrder (ODR o, Z_IOItemOrder **p, int opt, const char *name);
24
25 typedef struct Z_IOContact Z_IOContact;
26 YAZ_EXPORT int z_IOContact (ODR o, Z_IOContact **p, int opt, const char *name);
27
28 typedef struct Z_IOBilling Z_IOBilling;
29 YAZ_EXPORT int z_IOBilling (ODR o, Z_IOBilling **p, int opt, const char *name);
30
31 typedef struct Z_IOOriginPartToKeep Z_IOOriginPartToKeep;
32 YAZ_EXPORT int z_IOOriginPartToKeep (ODR o, Z_IOOriginPartToKeep **p, int opt, const char *name);
33
34 typedef struct Z_IOCreditCardInfo Z_IOCreditCardInfo;
35 YAZ_EXPORT int z_IOCreditCardInfo (ODR o, Z_IOCreditCardInfo **p, int opt, const char *name);
36
37 typedef struct Z_IOResultSetItem Z_IOResultSetItem;
38 YAZ_EXPORT int z_IOResultSetItem (ODR o, Z_IOResultSetItem **p, int opt, const char *name);
39
40 typedef struct Z_IOOriginPartNotToKeep Z_IOOriginPartNotToKeep;
41 YAZ_EXPORT int z_IOOriginPartNotToKeep (ODR o, Z_IOOriginPartNotToKeep **p, int opt, const char *name);
42
43 typedef struct Z_IOTargetPart Z_IOTargetPart;
44 YAZ_EXPORT int z_IOTargetPart (ODR o, Z_IOTargetPart **p, int opt, const char *name);
45 #ifdef __cplusplus
46 }
47 #endif
48 #ifdef __cplusplus
49 extern "C" {
50 #endif
51 struct Z_IORequest {
52         Z_IOOriginPartToKeep *toKeep; /* OPT */
53         Z_IOOriginPartNotToKeep *notToKeep;
54 };
55
56 struct Z_IOTaskPackage {
57         Z_IOOriginPartToKeep *originPart; /* OPT */
58         Z_IOTargetPart *targetPart;
59 };
60
61 struct Z_IOItemOrder {
62         int which;
63         union {
64                 Z_IORequest *esRequest;
65                 Z_IOTaskPackage *taskPackage;
66 #define Z_IOItemOrder_esRequest 1
67 #define Z_IOItemOrder_taskPackage 2
68         } u;
69 };
70
71 struct Z_IOContact {
72         Z_InternationalString *name; /* OPT */
73         Z_InternationalString *phone; /* OPT */
74         Z_InternationalString *email; /* OPT */
75 };
76
77 struct Z_IOBilling {
78         int which;
79         union {
80                 Odr_null *billInvoice;
81                 Odr_null *prepay;
82                 Odr_null *depositAccount;
83                 Z_IOCreditCardInfo *creditCard;
84                 Odr_null *cardInfoPreviouslySupplied;
85                 Odr_null *privateKnown;
86                 Z_External *privateNotKnown;
87 #define Z_IOBilling_billInvoice 1
88 #define Z_IOBilling_prepay 2
89 #define Z_IOBilling_depositAccount 3
90 #define Z_IOBilling_creditCard 4
91 #define Z_IOBilling_cardInfoPreviouslySupplied 5
92 #define Z_IOBilling_privateKnown 6
93 #define Z_IOBilling_privateNotKnown 7
94         } u;
95         Z_InternationalString *customerReference; /* OPT */
96         Z_InternationalString *customerPONumber; /* OPT */
97 };
98
99 struct Z_IOOriginPartToKeep {
100         Z_External *supplDescription; /* OPT */
101         Z_IOContact *contact; /* OPT */
102         Z_IOBilling *addlBilling; /* OPT */
103 };
104
105 struct Z_IOCreditCardInfo {
106         Z_InternationalString *nameOnCard;
107         Z_InternationalString *expirationDate;
108         Z_InternationalString *cardNumber;
109 };
110
111 struct Z_IOResultSetItem {
112         Z_InternationalString *resultSetId;
113         int *item;
114 };
115
116 struct Z_IOOriginPartNotToKeep {
117         Z_IOResultSetItem *resultSetItem; /* OPT */
118         Z_External *itemRequest; /* OPT */
119 };
120
121 struct Z_IOTargetPart {
122         Z_External *itemRequest; /* OPT */
123         Z_External *statusOrErrorReport; /* OPT */
124 #define Z_IOTargetPart_notReceived 1
125 #define Z_IOTargetPart_loanQueue 2
126 #define Z_IOTargetPart_forwarded 3
127 #define Z_IOTargetPart_unfilledCopyright 4
128 #define Z_IOTargetPart_filledCopyright 5
129         int *auxiliaryStatus; /* OPT */
130 };
131
132 #ifdef __cplusplus
133 }
134 #endif
135 #endif