Skip to content

Commit

Permalink
added buyer app response
Browse files Browse the repository at this point in the history
  • Loading branch information
NeerajK007 committed Sep 27, 2024
1 parent 10a6bc9 commit bcdf3bb
Show file tree
Hide file tree
Showing 6 changed files with 825 additions and 0 deletions.
163 changes: 163 additions & 0 deletions api-sample-response/confirm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
[
{
"context": {
"ttl": "PT10M",
"action": "confirm",
"timestamp": "2024-09-27T12:10:54.485Z",
"message_id": "6c7d14e5-84bb-489d-a539-2cfa7a8d39c9",
"transaction_id": "ead489b8-81de-49a4-baf6-8d8de7eabf38",
"domain": "Software Assurance",
"version": "1.1.0",
"bap_id": "bap.ossverse.com",
"bap_uri": "http://bap.ossverse.com",
"location": {
"country": {
"name": "India",
"code": "IND"
},
"city": {
"name": "Bengaluru",
"code": "std:080"
}
},
"bpp_id": "openfort-oasp.ossverse.com",
"bpp_uri": "http://openfort-oasp.ossverse.com"
},
"message": {
"context": {
"ttl": "PT10M",
"action": "confirm",
"timestamp": "2024-09-27T12:10:54.485Z",
"message_id": "6c7d14e5-84bb-489d-a539-2cfa7a8d39c9",
"transaction_id": "ead489b8-81de-49a4-baf6-8d8de7eabf38",
"domain": "Software Assurance",
"version": "1.1.0",
"bap_id": "bap.ossverse.com",
"bap_uri": "http://bap.ossverse.com",
"location": {
"country": {
"name": "India",
"code": "IND"
},
"city": {
"name": "Bengaluru",
"code": "std:080"
}
},
"bpp_id": "openfort-oasp.ossverse.com",
"bpp_uri": "http://openfort-oasp.ossverse.com"
},
"responses": [
{
"context": {
"domain": "Software Assurance",
"action": "on_confirm",
"core_version": "1.1.0",
"bpp_id": "openfort-oasp.ossverse.com",
"bpp_uri": "http://openfort-oasp.ossverse.com",
"country": "IND",
"city": "std:080",
"bap_id": "bap.ossverse.com",
"bap_uri": "http://bap.ossverse.com",
"transaction_id": "ead489b8-81de-49a4-baf6-8d8de7eabf38",
"message_id": "6c7d14e5-84bb-489d-a539-2cfa7a8d39c9",
"ttl": "PT10M",
"timestamp": "2024-09-27T12:11:05.404Z"
},
"message": {
"order": {
"id": "order-$2a$10$9P9PZmFwIerLIZJ6y7mShO4oeG6zcx2YDqr5iylD1jb0v39b5uuZ2",
"state": "Created",
"provider": {
"id": "ceae624e-be6a-4ec5-b483-b23b3a715aa5"
},
"items": [
{
"descriptor": {
"name": "beep"
},
"price": {
"currency": "INR",
"value": "11000"
},
"category_id": "OSS Project",
"quantity": {
"count": 1,
"measure": {
"unit": "Unit-count",
"value": 1
}
}
}
],
"billing": {
"tax_number": "22AAAAA0000A1Z5",
"phone": "0987654321",
"email": "[email protected]",
"created_at": "2024-09-27T12:10:55.177Z",
"updated_at": "2024-09-27T12:10:55.177Z"
},
"fulfillments": [],
"quote": {
"ttl": "P1D",
"price": {
"value": "11000",
"currency": "INR"
},
"breakup": [
{
"item": {
"price": {
"value": "11000",
"currency": "INR"
}
},
"price": {
"value": "11000",
"currency": "INR"
},
"title": "beep",
"@ondc/org/item_id": "e2b41750-a165-4a42-9255-f02966401783",
"@ondc/org/title_type": "item",
"@ondc/org/item_quantity": {
"count": 1
}
},
{
"price": {
"value": "0",
"currency": "INR"
},
"title": "Delivery charges",
"@ondc/org/item_id": "fullfillment_id_0",
"@ondc/org/title_type": "delivery"
}
]
},
"payment": {
"@ondc/org/settlement_details": [
{
"bank_name": "Bank of Springfield",
"branch_name": "Main Branch",
"settlement_type": "neft",
"beneficiary_name": "openfort",
"settlement_phase": "sale-amount",
"settlement_ifsc_code": "IFSC0001234",
"settlement_counterparty": "seller-app",
"settlement_bank_account_no": "1234567890"
}
],
"@ondc/org/buyer_app_finder_fee_type": "Percent",
"@ondc/org/buyer_app_finder_fee_amount": "3.0"
},
"created_at": "2024-09-27T12:10:55.177Z",
"updated_at": "2024-09-27T12:10:55.177Z",
"type": "DEFAULT",
"displayId": "142614"
}
}
}
]
}
}
]
162 changes: 162 additions & 0 deletions api-sample-response/init.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
[
{
"context": {
"ttl": "PT10M",
"action": "init",
"timestamp": "2024-09-27T12:08:36.887Z",
"message_id": "0fe65aa7-159c-46b7-ab11-3ef6abba97c7",
"transaction_id": "ead489b8-81de-49a4-baf6-8d8de7eabf38",
"domain": "Software Assurance",
"version": "1.1.0",
"bap_id": "bap.ossverse.com",
"bap_uri": "http://bap.ossverse.com",
"location": {
"country": {
"name": "India",
"code": "IND"
},
"city": {
"name": "Bengaluru",
"code": "std:080"
}
},
"bpp_id": "openfort-oasp.ossverse.com",
"bpp_uri": "http://openfort-oasp.ossverse.com"
},
"message": {
"catalogs": {
"context": {
"ttl": "PT10M",
"action": "init",
"timestamp": "2024-09-27T12:08:36.887Z",
"message_id": "0fe65aa7-159c-46b7-ab11-3ef6abba97c7",
"transaction_id": "ead489b8-81de-49a4-baf6-8d8de7eabf38",
"domain": "Software Assurance",
"version": "1.1.0",
"bap_id": "bap.ossverse.com",
"bap_uri": "http://bap.ossverse.com",
"location": {
"country": {
"name": "India",
"code": "IND"
},
"city": {
"name": "Bengaluru",
"code": "std:080"
}
},
"bpp_id": "openfort-oasp.ossverse.com",
"bpp_uri": "http://openfort-oasp.ossverse.com"
},
"responses": [
{
"context": {
"domain": "Software Assurance",
"action": "on_init",
"version": "1.1.0",
"bpp_id": "openfort-oasp.ossverse.com",
"bpp_uri": "http://openfort-oasp.ossverse.com",
"country": "IND",
"city": "std:080",
"location": {
"country": {
"name": "India",
"code": "IND"
},
"city": {
"name": "Bengaluru",
"code": "std:080"
}
},
"bap_id": "bap.ossverse.com",
"bap_uri": "http://bap.ossverse.com",
"transaction_id": "ead489b8-81de-49a4-baf6-8d8de7eabf38",
"message_id": "0fe65aa7-159c-46b7-ab11-3ef6abba97c7",
"ttl": "PT10M",
"timestamp": "2024-09-27T12:08:42.731Z"
},
"message": {
"order": {
"provider": {
"id": "ceae624e-be6a-4ec5-b483-b23b3a715aa5"
},
"provider_location": {},
"items": [
{
"id": "e2b41750-a165-4a42-9255-f02966401783"
}
],
"billing": {
"name": "Name",
"address": "address",
"state": {
"name": "Name"
},
"city": {
"name": "Name"
},
"email": "[email protected]",
"phone": "123456789"
},
"fulfillments": [],
"quote": {
"price": {
"value": "11000",
"currency": "INR"
},
"breakup": [
{
"@ondc/org/item_id": "e2b41750-a165-4a42-9255-f02966401783",
"@ondc/org/item_quantity": {
"count": 1
},
"title": "beep",
"@ondc/org/title_type": "item",
"price": {
"value": "11000",
"currency": "INR"
},
"item": {
"price": {
"value": "11000",
"currency": "INR"
}
}
},
{
"title": "Delivery charges",
"@ondc/org/title_type": "delivery",
"@ondc/org/item_id": "fullfillment_id_0",
"price": {
"currency": "INR",
"value": "0"
}
}
],
"ttl": "P1D"
},
"payment": {
"@ondc/org/buyer_app_finder_fee_type": "Percent",
"@ondc/org/buyer_app_finder_fee_amount": "3.0",
"@ondc/org/settlement_details": [
{
"settlement_counterparty": "seller-app",
"settlement_phase": "sale-amount",
"settlement_type": "neft",
"settlement_bank_account_no": "1234567890",
"settlement_ifsc_code": "IFSC0001234",
"beneficiary_name": "openfort",
"bank_name": "Bank of Springfield",
"branch_name": "Main Branch"
}
]
},
"type": "DEFAULT"
}
}
}
]
}
}
}
]
Loading

0 comments on commit bcdf3bb

Please sign in to comment.