-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e40eef9
commit c70d9c0
Showing
7 changed files
with
152 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
export interface IssueRequest { | ||
context: Context; | ||
message: Message; | ||
} | ||
|
||
export interface Context { | ||
domain: string; | ||
country: string; | ||
city: string; | ||
action: string; | ||
core_version: string; | ||
bap_id: string; | ||
bap_uri: string; | ||
bpp_uri: string; | ||
transaction_id: string; | ||
message_id: string; | ||
timestamp: Date; | ||
bpp_id: string; | ||
ttl: string; | ||
} | ||
|
||
export interface Message { | ||
issue: Issue; | ||
} | ||
|
||
export interface Issue { | ||
id?: string; | ||
category: string; | ||
sub_category: string; | ||
complainant_info: ComplainantInfo; | ||
order_details: OrderDetails; | ||
description: Description; | ||
source: Source; | ||
expected_response_time: ExpectedResTime; | ||
expected_resolution_time: ExpectedResTime; | ||
status: string; | ||
issue_type: string; | ||
issue_actions: IssueActions; | ||
created_at: Date; | ||
updated_at: Date; | ||
} | ||
|
||
export interface ComplainantInfo { | ||
person: Person; | ||
contact: ComplainantInfoContact; | ||
} | ||
|
||
export interface ComplainantInfoContact { | ||
phone: string; | ||
} | ||
|
||
export interface Person { | ||
name: string; | ||
email?: string; | ||
} | ||
|
||
export interface Description { | ||
short_desc: string; | ||
long_desc: string; | ||
additional_desc: AdditionalDesc; | ||
images: any[]; | ||
} | ||
|
||
export interface AdditionalDesc { | ||
url: string; | ||
content_type: string; | ||
} | ||
|
||
export interface ExpectedResTime { | ||
duration?: string; | ||
} | ||
|
||
export interface IssueActions { | ||
complainant_actions?: ComplainantAction[]; | ||
respondent_actions?: any[]; | ||
} | ||
|
||
export interface ComplainantAction { | ||
complainant_action: string; | ||
remarks: string; | ||
updated_at: Date; | ||
updated_by: UpdatedBy; | ||
} | ||
|
||
export interface UpdatedBy { | ||
org: Org; | ||
contact: UpdatedByContact; | ||
person: Org; | ||
} | ||
|
||
export interface UpdatedByContact { | ||
phone: string; | ||
email?: string; | ||
} | ||
|
||
export interface Org { | ||
name: string; | ||
} | ||
|
||
export interface OrderDetails { | ||
id: string; | ||
state: string; | ||
items: Item[]; | ||
fulfillments: Fulfillment[]; | ||
provider_id: string; | ||
} | ||
|
||
export interface Fulfillment { | ||
id: string; | ||
state: string; | ||
} | ||
|
||
export interface Item { | ||
id: string; | ||
quantity: number; | ||
} | ||
|
||
export interface Source { | ||
network_participant_id?: string; | ||
issue_source_type: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters