@jagota/interfaces 1.1.4 → 1.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jagota/interfaces",
3
- "version": "1.1.4",
3
+ "version": "1.1.6",
4
4
  "description": "Interfaces for the Jagota Brothers project",
5
5
  "main": "src/index.ts",
6
6
  "scripts": {
package/src/index.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export {
2
2
  IProspect, IProspectMini, IProspectListItem,
3
- IRegistrationAddress, IBillingAddress, IPaymentAddress
3
+ IAddress
4
4
  } from './interfaces/prospect.interface';
5
5
  export { ICodeName } from './interfaces/codeName.interface';
6
6
  export { IContact, IContactMini } from './interfaces/contact.interface';
@@ -16,7 +16,7 @@ export interface IProspectListItem extends IProspectMini {
16
16
  seq: number;
17
17
  }
18
18
 
19
- export interface IProspect extends IProspectMini, IRegistrationAddress, IBillingAddress, IPaymentAddress {
19
+ export interface IProspect extends IProspectMini {
20
20
  reg_number: string;
21
21
  shopTypeCode: string;
22
22
  socialMediaType: string;
@@ -35,66 +35,30 @@ export interface IProspect extends IProspectMini, IRegistrationAddress, IBilling
35
35
  credit_day: number;
36
36
  credit_limit: number;
37
37
 
38
+ registration_addess: IAddress;
39
+ billing_addess: IAddress;
40
+ payment_addess: IAddress;
41
+
38
42
  contacts: IContact[];
39
43
  miniContacts: IContactMini[];
40
44
  }
41
45
 
42
- export interface IRegistrationAddress {
43
- custCode: string;
44
- reg_country: string;
45
- reg_province: string;
46
- reg_amphur: string;
47
- reg_tumbol: string;
48
- reg_postal_code: string;
49
- reg_region: string;
50
- reg_building_no: string;
51
- reg_building_name: string;
52
- reg_soi: string;
53
- reg_road: string;
54
- reg_contact_person: string;
55
- reg_mobile: string;
56
- reg_tel: string;
57
- reg_fax: string;
58
- reg_latitude: string;
59
- reg_longitute: string;
60
- }
61
-
62
- export interface IBillingAddress {
63
- custCode: string;
64
- bill_country: string;
65
- bill_province: string;
66
- bill_amphur: string;
67
- bill_tumbol: string;
68
- bill_postal_code: string;
69
- bill_billion: string;
70
- bill_building_no: string;
71
- bill_building_name: string;
72
- bill_soi: string;
73
- bill_road: string;
74
- bill_contact_person: string;
75
- bill_mobile: string;
76
- bill_tel: string;
77
- bill_fax: string;
78
- bill_latitude: string;
79
- bill_longitute: string;
80
- }
81
-
82
- export interface IPaymentAddress {
46
+ export interface IAddress {
83
47
  custCode: string;
84
- payment_country: string;
85
- payment_province: string;
86
- payment_amphur: string;
87
- payment_tumbol: string;
88
- payment_postal_code: string;
89
- payment_paymention: string;
90
- payment_building_no: string;
91
- payment_building_name: string;
92
- payment_soi: string;
93
- payment_road: string;
94
- payment_contact_person: string;
95
- payment_mobile: string;
96
- payment_tel: string;
97
- payment_fax: string;
98
- payment_latitude: string;
99
- payment_longitute: string;
48
+ country: string;
49
+ province: string;
50
+ amphur: string;
51
+ tumbol: string;
52
+ postal_code: string;
53
+ region: string;
54
+ building_no: string;
55
+ building_name: string;
56
+ soi: string;
57
+ road: string;
58
+ contact_person: string;
59
+ mobile: string;
60
+ tel: string;
61
+ fax: string;
62
+ latitude: string;
63
+ longitute: string;
100
64
  }