Project

General

Profile

Specification » History » Version 8

Soh Keong, 05/29/2024 11:04 AM

1 1 Soh Keong
{{toc}}
2
3
h1. Specification
4
5
h1. Programming Guide
6
7
h2. Jar version 
8
9
|_. version |_. Description                                |
10
| 1.0       | Init                                         |
11
12
h2. Jar File Download
13
14
"Jar":
15
"Properties":
16
17
h3. Classes
18
19
* *my.aisino.einvoice.bean* 
20
* *my.aisino.einvoice.bean.transaction* 
21
* *my.aisino.einvoice.constant* 
22
* *my.aisino.einvoice.service* 
23
* *my.aisino.einvoice.util* 
24
25
h3. properties file
26
27
* *service.properties*
28
29
# *merchant.id*       -
30
31
h2. Aisino Service
32
33
<pre>
34
my.aisino.einvoice.service.TransactionService service = new my.aisino.einvoice.service.TransactionService();
35
</pre>
36
37 8 Soh Keong
h3. submitEInvoice
38 1 Soh Keong
39
<pre>
40 7 Soh Keong
InvoiceSubmissionResponseBean responseBean = service.submitEInvoice(Connection conn, InvoiceSubmissionRequestBean bean);
41 1 Soh Keong
</pre>
42
43
# *conn*           - Database connection.
44
# *bean*           - Object.
45
> * *orderId*
46
> * *orderDate* 
47
> * *orderTime* 
48
> * *orderTypeCode* 
49
> * *currencyCode* 
50
> * *totalExcludingTax* 
51
> * *totalIncludingTax* 
52
> * *totalPayableAmount* 
53
54
> * *buyerBean* 
55 6 Soh Keong
> ** *address* 
56
> *** *country* 
57
> *** *state* 
58
> *** *city* 
59
> *** *address1* 
60
> *** *address2* 
61
> *** *address3* 
62
> ** *contactNumber* 
63
> ** *name* 
64
> ** *registrationList*
65 8 Soh Keong
> *** *brn*      (Optional)
66
> *** *tin*      (Optional)
67
> *** *nric*     (Optional)
68
> *** *passport* (Optional)
69
> *** *army*     (Optional)
70
> *** *sst*      (Optional)
71 2 Soh Keong
72
> * *productList*
73 6 Soh Keong
> ** *productName*
74
> ** *productCode*
75
> ** *measurement*
76 8 Soh Keong
> ** *quantity*  (Optional) 
77 6 Soh Keong
> ** *totalExcludingTax*
78
> ** *unitPrice*
79
> ** *subtotal*
80
> ** *classificationList*
81
> *** *code*
82
> *** *group*
83
> ** *taxTotalBean*
84
> *** *totalTaxAmount*
85
> *** *taxSubTotalList*
86
> **** *taxType*
87 8 Soh Keong
> **** *percent*          (Optional)
88
> **** *perUnitAmount*    (Optional)
89
> **** *baseUnitMeasure*  (Optional)
90
> **** *netAmount*        (Optional)
91 6 Soh Keong
> **** *tax*
92 3 Soh Keong
93
> * *taxTotalBean*
94 6 Soh Keong
> ** *totalTaxAmount*
95
> ** *taxSubTotalList*
96
> *** *taxType*
97
> *** *percent*
98
> *** *perUnitAmount*
99
> *** *baseUnitMeasure*
100
> *** *netAmount*
101
> *** *tax*
102 1 Soh Keong
103
  3. *responseBean*
104
105
> * *submissionUid*
106
> * *acceptedDocumentList*
107
> ** *orderId*
108
> ** *uuid*
109
> * *rejectedDocumentList*
110
> ** *orderId*
111
> ** *errorList*
112
> *** *code*
113 4 Soh Keong
> *** *message*
114 8 Soh Keong
115
116
h3. queryInvoice
117
118
<pre>
119
InvoiceInquiryResponseBean responseBean = service.queryInvoice(Connection conn, InvoiceInquiryRequestBean bean);
120
</pre>
121
122
# *conn*           - Database connection.
123
# *bean*           - Object.
124
> * *orderId*