Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seller UI #11

Open
wants to merge 17 commits into
base: attribute_validation
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
.env
node_modules
node_modules
.buyer.FIS.env
.seller.mob.env
.seller.FIS.env
.buyer.mob.env
logs
97 changes: 90 additions & 7 deletions configs/BAP/index.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,100 @@
flows:
- summary: Metro - Station Code Based Flow
id: metro-flow-1
domain: ONDC:TRV11
- summary: Personal Loan [2.0.0]
id: personal-loan-flow-1
domain: ONDC:FIS12
shouldDispaly: true
sessionData:
version: "2.0.0"
collectedBy: BAP
paymentCollectedBy: BPP
bankAccountNumber: "123456789"
virtualPaymentAddress: "adasd@okiciic"
bankCode: "fj3jf9ij3f02"
protocol:
$ref: ./metro-flow-1/protocolMapping.yaml#/protocol
$ref: ./personal-loan-flow-1/protocolMapping.yaml#/protocol
calls:
$ref: ./metro-flow-1/calls.yaml#/calls
schema:
$ref: ../schema/TRV/index.yaml
$ref: ./personal-loan-flow-1/calls.yaml#/calls


- summary: Missed-EMI Payment
id: invoice-loan-missed-emi-flow-1
shouldDispaly: false
protocol:
$ref: ./invoice-loan-missed-emi-flow-1/protocolMapping.yaml#/protocol
calls:
$ref: ./invoice-loan-missed-emi-flow-1/calls.yaml#/calls

- summary: Invoice Based Loans
id: invoice-loan-flow-1
domain: ONDC:FIS12
shouldDispaly: true
sessionData:
loanCategaory: INVOICE_BASED_LOAN
version: "2.1.0"
collectedBy: BAP
paymentCollectedBy: BPP
bankAccountNumber: "123456789"
virtualPaymentAddress: "adasd@okiciic"
bankCode: "fj3jf9ij3f2"
paymentTagsSearch:
BUYER_FINDER_FEES:
BUYER_FINDER_FEES_TYPE: percent-annualized
BUYER_FINDER_FEES_PERCENTAGE: "1"
SETTLEMENT_TERMS:
DELAY_INTEREST: 2.5
STATIC_TERMS: "https://bap.credit.becknprotocol.io/personal-banking/loans/personal-loan"
OFFLINE_CONTRACT: "true"
protocol:
$ref: ./invoice-loan-flow-1/protocolMapping.yaml#/protocol
calls:
$ref: ./invoice-loan-flow-1/calls.yaml#/calls

- summary: Invoice Based Loans Seller
ui: true
id: invoice-loan-seller-flow-1
createSessionAtBuyer: true
domain: ONDC:FIS12
shouldDispaly: true
sessionData:
loanCategaory: INVOICE_BASED_LOAN
version: "2.1.0"
collectedBy: BAP
paymentCollectedBy: BPP
bankAccountNumber: "123456789"
virtualPaymentAddress: "adasd@okiciic"
bankCode: "fj3jf9ij3f02"
paymentTagsSearch:
BUYER_FINDER_FEES:
BUYER_FINDER_FEES_TYPE: percent-annualized
BUYER_FINDER_FEES_PERCENTAGE: "1"
SETTLEMENT_TERMS:
DELAY_INTEREST: 2.5
STATIC_TERMS: "https://bap.credit.becknprotocol.io/personal-banking/loans/personal-loan"
OFFLINE_CONTRACT: "true"
protocol:
$ref: ./invoice-loan-seller-flow-1/protocolMapping.yaml#/protocol
calls:
$ref: ./invoice-loan-seller-flow-1/calls.yaml#/calls


flow_selector:
search:
default:
config_id: "default-flow"
metro:
condition:
operation:
type: AND
input:
value:
- operation:
type: EQUAL
title: Check search message code
input:
value:
- operation:
type: READ
input:
value: "req_body.message.intent.category.descriptor.code"
- INVOICE_BASED_LOAN
config_id: "invoice-loan-seller-flow-1"
86 changes: 86 additions & 0 deletions configs/BAP/invoice-loan-flow-1/calls.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
calls:
# multi configs are removed ex only single search will be there
- config: "search"
mode: "ASYNC"
callback:
config: "on_search"
endpoint: "mapper/ondc"
mode: "ASYNC"
unsolicitedEndpoint: "mapper/unsolicited"
- config: "search_1"
mode: "ASYNC"
callback:
config: "on_search_1"
endpoint: "mapper/ondc"
mode: "ASYNC"
unsolicitedEndpoint: "mapper/unsolicited"
- config: "search_2"
mode: "ASYNC"
callback:
config: "on_search_2"
endpoint: "mapper/ondc"
mode: "ASYNC"
unsolicitedEndpoint: "mapper/unsolicited"
- config: "select"
mode: "SYNC"
callback:
config: "on_select"
endpoint: "mapper/ondc"
mode: "SYNC"
unsolicitedEndpoint: "mapper/unsolicited"
- config: "select_1"
mode: "ASYNC"
callback:
config: "on_select_1"
endpoint: "mapper/ondc"
mode: "ASYNC"
unsolicitedEndpoint: "mapper/unsolicited"
- config: "init"
mode: "SYNC"
callback:
config: "on_init"
endpoint: "mapper/ondc"
mode: "SYNC"
unsolicitedEndpoint: "mapper/unsolicited"
- config: "init_2"
mode: "SYNC"
callback:
config: "on_init_2"
endpoint: "mapper/ondc"
mode: "SYNC"
unsolicitedEndpoint: "mapper/unsolicited"
- config: "init_3"
mode: "SYNC"
callback:
config: "on_init_3"
endpoint: "mapper/ondc"
mode: "SYNC"
unsolicitedEndpoint: "mapper/unsolicited"
- config: "init_1"
mode: "SYNC"
callback:
config: "on_init_1"
endpoint: "mapper/ondc"
mode: "SYNC"
unsolicitedEndpoint: "mapper/unsolicited"
- config: "confirm"
mode: "SYNC"
callback:
config: "on_confirm"
endpoint: "mapper/ondc"
mode: "SYNC"
unsolicitedEndpoint: "mapper/unsolicited"
- config: "status"
mode: "SYNC"
callback:
config: "on_status"
endpoint: "mapper/ondc"
mode: "SYNC"
unsolicitedEndpoint: "mapper/unsolicited"
- config: "update"
mode: "SYNC"
callback:
config: "on_update"
endpoint: "mapper/ondc"
mode: "SYNC"
unsolicitedEndpoint: "mapper/unsolicited"
Loading