Project

General

Profile

Specification » History » Version 4

chin-yeh, 09/05/2011 10:48 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 1 chin-yeh
h2. Table Schema
10
11
h3. VP_INTERFACE
12
13 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.
14 1 chin-yeh
15
<pre>
16
<code class="SQL">
17
create table vp_interface (
18
	id int not null generated always as identity,
19
	process_code varchar(30),
20
	trx_id varchar(30) not null,
21
	trx_type varchar(15),
22
	country_code varchar(10),
23
	member_id varchar(20),
24
	member_name varchar(100),
25 3 chin-yeh
	trx_date varchar(8),
26 1 chin-yeh
	reg_date varchar(8),
27
	expiry_date varchar(8),
28
	vp_amount decimal(10,2),
29
	invoice_amount decimal(10,2),
30
	status varchar(15),
31
	last_updated timestamp,
32
	error_code varchar(10),
33
	error_message varchar(255),
34
	primary key (id)
35
);
36
37
create unique index idx_vp_id_type on vp_interface(trx_id,trx_type);
38
create index idx_vp_status on vp_interface(status);
39
create index idx_vp_err_code on vp_interface(error_code);
40
</code>
41
</pre>