@tripian/model 9.1.31 → 9.1.32

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.
@@ -0,0 +1,69 @@
1
+ export type ClientAddress = {
2
+ region: string;
3
+ longitude: number | null;
4
+ extended_address: string | null;
5
+ label: string;
6
+ locality: string;
7
+ street_address: string;
8
+ name: string;
9
+ primary: boolean;
10
+ primary_shipping_address: boolean;
11
+ primary_billing_address: boolean;
12
+ country_code: string;
13
+ id: string;
14
+ latitude: number | null;
15
+ postal_code: string;
16
+ po_box: boolean;
17
+ };
18
+ export type PhoneNumber = {
19
+ label: string;
20
+ extension: string | null;
21
+ number: string;
22
+ id: string;
23
+ country_code: string;
24
+ primary: boolean;
25
+ };
26
+ export type EmailAddress = {
27
+ address: string;
28
+ label: string;
29
+ id?: string;
30
+ primary: boolean;
31
+ };
32
+ export type Brokerage = {
33
+ url: string;
34
+ name: string;
35
+ id: string;
36
+ abbreviation: string;
37
+ };
38
+ export type Office = {
39
+ brokerage: Brokerage;
40
+ url: string;
41
+ name: string;
42
+ id: string;
43
+ pcc_code: string | null;
44
+ };
45
+ export type Client = {
46
+ id: string;
47
+ name: string;
48
+ notes: string;
49
+ office: Office;
50
+ affiliate_store: string | null;
51
+ company: string | null;
52
+ email_addresses: EmailAddress[];
53
+ phone_numbers: PhoneNumber[];
54
+ addresses: ClientAddress[];
55
+ primary_credit_card: string | null;
56
+ primary_shipping_address: ClientAddress;
57
+ primary_billing_address: ClientAddress;
58
+ primary_phone_number: PhoneNumber;
59
+ primary_email_address: EmailAddress;
60
+ tags: string[];
61
+ updated_at: string;
62
+ url: string;
63
+ balance: string;
64
+ pnr_id: string | null;
65
+ commission_junction_sid: string | null;
66
+ };
67
+ export type ClientsData = {
68
+ clients: Client[];
69
+ };
@@ -0,0 +1,6 @@
1
+ export type EmailAddress = {
2
+ address: string;
3
+ label: string;
4
+ id?: string;
5
+ primary: boolean;
6
+ };
@@ -0,0 +1,33 @@
1
+ export type PaymentRequest = {
2
+ address_id: number;
3
+ amount: number;
4
+ method: string;
5
+ type: 'credit_card';
6
+ token: string;
7
+ };
8
+ export type TicketGroupRequest = {
9
+ id: number;
10
+ price: number;
11
+ quantity: number;
12
+ wholesale_price: number;
13
+ };
14
+ export type OrderRequest = {
15
+ client_id: number;
16
+ created_by_ip_address: string;
17
+ delivery: {
18
+ address_id: string;
19
+ cost: number;
20
+ email_address_id: number;
21
+ phone_number_id: number;
22
+ type: string;
23
+ };
24
+ discount: number;
25
+ promo_code: string;
26
+ payments: PaymentRequest[];
27
+ reference?: string;
28
+ service_fee: number;
29
+ session_id: string;
30
+ tax: number;
31
+ tax_signature: string;
32
+ ticket_group: TicketGroupRequest;
33
+ };
@@ -0,0 +1,95 @@
1
+ export type OrdersResponse = {
2
+ orders: Order[];
3
+ current_page: number;
4
+ per_page: number;
5
+ total_entries: number;
6
+ };
7
+ export type Order = {
8
+ refunded: string;
9
+ hold_expires_at: string | null;
10
+ notes: string[];
11
+ reference: string | null;
12
+ invoice_number: string | null;
13
+ total: string;
14
+ fraud_check_status?: string;
15
+ items: OrderItem[];
16
+ placer: string | null;
17
+ buyer: BuyerSeller;
18
+ url: string;
19
+ shipments: string[];
20
+ balance: string;
21
+ shipping: string;
22
+ shipping_address: string | null;
23
+ child_orders: string[];
24
+ additional_expense: string;
25
+ seller: BuyerSeller;
26
+ po_number: string | null;
27
+ state: string;
28
+ instructions: string | null;
29
+ service_fee: string;
30
+ subtotal: string;
31
+ partner: boolean;
32
+ tax: string;
33
+ payments: any[];
34
+ billing_address: string | null;
35
+ id: string;
36
+ updated_at: string;
37
+ created_at: string;
38
+ hold_placed_at: string | null;
39
+ client: ClientItem;
40
+ };
41
+ export type OrderItem = {
42
+ eticket_delivery: string | null;
43
+ eticket_available: boolean;
44
+ price: string;
45
+ ticket_group: TicketGroupItem;
46
+ eticket_downloaded_at: string;
47
+ quantity: number;
48
+ id: string;
49
+ eticket_downloaded_by: string | null;
50
+ };
51
+ export type TicketGroupItem = {
52
+ remote_id: string;
53
+ office_id: number;
54
+ section: string;
55
+ row: string;
56
+ url: string;
57
+ wholesale_price: number;
58
+ external_notes: string;
59
+ seats: string[];
60
+ retail_price: string;
61
+ quantity: number | null;
62
+ event: Event;
63
+ id: string;
64
+ };
65
+ export type EventItem = {
66
+ occurs_at: string;
67
+ url: string;
68
+ name: string;
69
+ id: string;
70
+ venue: VenueItem;
71
+ };
72
+ export type VenueItem = {
73
+ address: string | null;
74
+ name: string;
75
+ id: string;
76
+ };
77
+ export type BuyerSeller = {
78
+ brokerage: BrokerageItem;
79
+ url: string;
80
+ name: string;
81
+ id: string;
82
+ };
83
+ export type BrokerageItem = {
84
+ url: string;
85
+ name: string;
86
+ id: string;
87
+ abbreviation: string;
88
+ };
89
+ export type ClientItem = {
90
+ phone_numbers: string[];
91
+ email_addresses: string[];
92
+ url: string;
93
+ name: string;
94
+ id: string;
95
+ };
@@ -3,6 +3,7 @@ export type TicketGroup = {
3
3
  available_quantity: number;
4
4
  discounted: boolean;
5
5
  eticket: boolean;
6
+ face_value_display?: number;
6
7
  featured: boolean;
7
8
  format: string;
8
9
  id: number;
@@ -1,11 +1,15 @@
1
1
  export * from './Address';
2
2
  export * from './CatalogGroup';
3
3
  export * from './Category';
4
+ export * from './ClientsCreateRequest';
5
+ export * from './ClientsData';
4
6
  export * from './Configuration';
5
7
  export * from './Event';
6
8
  export * from './EventDetail';
7
9
  export * from './EventsResponse';
8
10
  export * from './Meta';
11
+ export * from './OrderRequest';
12
+ export * from './OrdersResponse';
9
13
  export * from './ParentCategory';
10
14
  export * from './Performance';
11
15
  export * from './Performer';