Project

General

Profile

Specification » History » Version 5

chin-yeh, 09/05/2011 10:50 AM

1 1 chin-yeh
{{toc}}
2
3
h1. Specification
4
5 4 chin-yeh
h2. Transaction Code
6
7
!vp_transaction_code.jpg!
8
9 5 chin-yeh
h2. Error Code
10
11
!vp_error_code.jpg!
12
13 1 chin-yeh
h2. Table Schema
14
15
h3. VP_INTERFACE
16
17 2 chin-yeh
This table stores those events which are needed to submit to VP services. It can also be used to track the status of the submitted events.
18 1 chin-yeh
19
<pre>
20
<code class="SQL">
21
create table vp_interface (
22
	id int not null generated always as identity,
23
	process_code varchar(30),
24
	trx_id varchar(30) not null,
25
	trx_type varchar(15),
26
	country_code varchar(10),
27
	member_id varchar(20),
28
	member_name varchar(100),
29 3 chin-yeh
	trx_date varchar(8),
30 1 chin-yeh
	reg_date varchar(8),
31
	expiry_date varchar(8),
32
	vp_amount decimal(10,2),
33
	invoice_amount decimal(10,2),
34
	status varchar(15),
35
	last_updated timestamp,
36
	error_code varchar(10),
37
	error_message varchar(255),
38
	primary key (id)
39
);
40
41
create unique index idx_vp_id_type on vp_interface(trx_id,trx_type);
42
create index idx_vp_status on vp_interface(status);
43
create index idx_vp_err_code on vp_interface(error_code);
44
</code>
45
</pre>