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

Updates to irfan #36

Open
wants to merge 1 commit into
base: irfan-branch
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
3 changes: 2 additions & 1 deletion react-page/src/oas_spec/experiment/base.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
{
"name": "Xfers Direct",
"tags": [
"Direct Payment Methods"
"Direct Payment Methods VA",
"Direct Payment Methods UQ"
]
},
{
Expand Down
1 change: 1 addition & 0 deletions react-page/src/oas_spec/experiment/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const combined = Object.assign(
require("./base.json"),
{
tags: require("./tags.json"),
paths: Object.assign(
require("./paths/payments/queries.json"),
require("./paths/payments/cancel.json"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"/v3/direct_payment/unique_amount_bank_transfers": {
"post": {
"tags": [
"Direct Payment Methods"
"Direct Payment Methods UQ"
],
"summary": "Unique Amount Bank Transfer",
"summary": "Direct Payment Methods UQ",
"description": "@irfan",
"security": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"/v3/direct_payment/virtual_account_bank_transfers": {
"post": {
"tags": [
"Direct Payment Methods"
"Direct Payment Methods VA"
],
"summary": "Virtual Account Bank Transfer",
"summary": "Direct Payment Methods VA",
"description": "@irfan",
"security": [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
{
"/v3/direct_payment/unique_amount_bank_transfers": {
"post": {
"tags": [
"Dynamic VA Bank Transfer"
],
"summary": "Dynamic VA Transfer",
"description": "@irfan",
"security": [
{
"X-XFERS-APP-API-KEY": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"allOf": [
{
"$ref": "#/base_class/payment/schemas/RequestBody"
},
{
"properties": {
"payment_collector": {
"properties": {
"bank_code": {
"description": "Bank code",
"type": "string",
"enum": [
"BSS",
"BRI",
"BNI"
],
"example": "BSS"
}
},
"required": [
"bank_code"
]
}
}
}
]
}
}
}
},
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"$ref": "#/base_class/payment/schemas/UniqueAmountBankTransfer"
}
}
}
},
"4XX": {
"$ref": "#/components/responses/v3Error:4XX"
}
},
"callbacks": {
"payment_received": {
"$settings.payment.payment_recieved_callback_url": {
"post": {
"summary": "Callback when received payment",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"allOf": [
{
"$ref": "#/base_class/payment/schemas/UniqueAmountBankTransfer"
},
{
"properties": {
"status": {
"type": "string",
"example": "completed"
}
}
}
]
}
}
}
},
"responses": {
"200": {
"description": "Your server returns this code if it accepts the callback"
}
}
}
}
},
"payment_expired": {
"$settings.payment.payment_recieved_callback_url": {
"post": {
"summary": "Callback when payment is expired",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"allOf": [
{
"$ref": "#/base_class/payment/schemas/UniqueAmountBankTransfer"
},
{
"properties": {
"status": {
"type": "string",
"example": "expired"
}
}
}
]
}
}
}
},
"responses": {
"200": {
"description": "Your server returns this code if it accepts the callback"
}
}
}
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
{
"/v3/direct_payment/virtual_account_bank_transfers": {
"post": {
"tags": [
"Fixed VA Bank Transfer"
],
"summary": "Fixed Virtual Account Bank Transfer",
"description": "@irfan",
"security": [
{
"X-XFERS-APP-API-KEY": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"allOf": [
{
"$ref": "#/base_class/payment/schemas/RequestBody"
},
{
"properties": {
"payment_collector": {
"properties": {
"bank_code": {
"description": "Bank code",
"type": "string",
"enum": [
"BSS",
"BRI",
"BNI"
],
"example": "BSS"
}
},
"required": [
"bank_code"
]
}
}
}
]
}
}
}
},
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"$ref": "#/base_class/payment/schemas/VirtualAccountBankTransfer"
}
}
}
},
"4XX": {
"$ref": "#/components/responses/v3Error:4XX"
}
},
"callbacks": {
"payment_received": {
"$settings.payment.payment_recieved_callback_url": {
"post": {
"summary": "Callback when received payment",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"allOf": [
{
"$ref": "#/base_class/payment/schemas/VirtualAccountBankTransfer"
},
{
"properties": {
"status": {
"type": "string",
"example": "completed"
}
}
}
]
}
}
}
},
"responses": {
"200": {
"description": "Your server returns this code if it accepts the callback"
}
}
}
}
},
"payment_expired": {
"$settings.payment.payment_recieved_callback_url": {
"post": {
"summary": "Callback when payment is expired",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"allOf": [
{
"$ref": "#/base_class/payment/schemas/VirtualAccountBankTransfer"
},
{
"properties": {
"status": {
"type": "string",
"example": "expired"
}
}
}
]
}
}
}
},
"responses": {
"200": {
"description": "Your server returns this code if it accepts the callback"
}
}
}
}
}
}
}
}
}
Loading