Skip to content

Commit

Permalink
Update api.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielraeder committed Mar 29, 2024
1 parent e4ceb0d commit cec235a
Showing 1 changed file with 122 additions and 193 deletions.
315 changes: 122 additions & 193 deletions openAPI/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -296,199 +296,128 @@ paths:
schema:
"$ref": "#/definitions/internal.PaginatedResponse-events_Event"
examples:
Payment_Created:
summary: Payment_Created
value:
action: Created
data:
amount: '0.999849'
created_at: '2023-11-17T09:53:01.789836Z'
crypto_transaction:
chain_id: 137
hash: '0xbc356766c356af9a45e9b5e9e68670f969b64a6ca44074bb02016a6b943c4960'
currency: USDC
customer:
created_at: '2023-08-11T10:09:25.723Z'
deleted_at: null
email: chaoyan@gmail.com
id: 2TpmnpjFmjaERa3X6YKU3YpvC2d
metadata: {}
name: Test 2
org_id: 2Tpmnmh6GHJXumKN1oBy2u56Ima
phone: ''
reference: ''
updated_at: '2023-11-17T09:53:04.461Z'
wallet_address: '0x22CEB9a144754f8c211985FF631Db1515Ff1A5FD'
customer_id: 2TpmnpjFmjaERa3X6YKU3YpvC2d
id: 2YIYuda0iMboU6hELStkL9Ml2PI
invoice_id: ''
next_action: ''
org_id: 2Tpmnmh6GHJXumKN1oBy2u56Ima
parent_id: ''
payment_method: MerchantContract
scheduled_time: 0
status: Processing
updated_at: '2023-11-17T09:53:04.464750378Z'
id: 2YIYuda0iMboU6hELStkL9Ml2PI
timestamp: '2023-11-17T09:53:04.337Z'
type: Payment
Payment_Updated:
summary: Payment_Updated
value:
action: Updated
data:
amount: '0.999849'
created_at: '2023-11-17T09:53:01.789836Z'
crypto_transaction:
chain_id: 137
hash: '0xbc356766c356af9a45e9b5e9e68670f969b64a6ca44074bb02016a6b943c4960'
currency: USDC
customer:
created_at: '2023-08-11T10:09:25.723Z'
deleted_at: null
email: chaoyan@gmail.com
id: 2TpmnpjFmjaERa3X6YKU3YpvC2d
metadata: {}
name: Test 2
org_id: 2Tpmnmh6GHJXumKN1oBy2u56Ima
phone: ''
reference: ''
updated_at: '2023-11-17T09:53:11.484Z'
wallet_address: '0x22CEB9a144754f8c211985FF631Db1515Ff1A5FD'
customer_id: 2TpmnpjFmjaERa3X6YKU3YpvC2d
id: 2YIYuda0iMboU6hELStkL9Ml2PI
invoice_id: ''
next_action: ''
org_id: 2Tpmnmh6GHJXumKN1oBy2u56Ima
parent_id: ''
payment_method: MerchantContract
scheduled_time: 0
status: Succeeded
updated_at: '2023-11-17T09:53:11.486175283Z'
id: 2YIYuda0iMboU6hELStkL9Ml2PI
timestamp: '2023-11-17T09:53:11.107Z'
type: Payment
Plan_Created:
summary: Plan_Created
value:
action: Created
data:
available_quantity: 0
billing_scheme: FlatFee
created_at: '2023-11-17T09:54:45.388144Z'
created_by: 2TzGhPCAfFWLPBjtc6h52Aao2S6
currency: USD
deleted_at: null
enabled: true
id: 2YIZ7V8aOZ1Ry7ZLA2N1Pw8WNc0
metadata: {}
name: 'test sub 11 17 '
org_id: 2Tpmnmh6GHJXumKN1oBy2u56Ima
price: '1'
recurring_interval: Month
recurring_interval_count: 1
recurring_usage_type: Unknown
reference: ''
source: Lago
trial_period: ''
type: Recurring
updated_at: '2023-11-17T09:54:46.38219192Z'
url: https://app-test.boomfi.xyz/checkout/rX8nz1v5D4
id: 2YIZ7V8aOZ1Ry7ZLA2N1Pw8WNc0
timestamp: '2023-11-17T09:54:45.848Z'
type: Plan
Subscription_Canceled:
summary: Subscription_Canceled
value:
action: Canceled
data:
cancel_at_period_end: false
created_at: '2023-11-02T06:44:50.439483Z'
currency: ''
customer:
created_at: '2023-08-11T10:09:25.723Z'
deleted_at: null
email: chaoyan@gmail.com
id: 2TpmnpjFmjaERa3X6YKU3YpvC2d
metadata: {}
name: Test 2
org_id: 2Tpmnmh6GHJXumKN1oBy2u56Ima
phone: ''
reference: ''
updated_at: '2023-11-09T04:25:07.997Z'
wallet_address: '0x22CEB9a144754f8c211985FF631Db1515Ff1A5FD'
customer_id: 2TpmnpjFmjaERa3X6YKU3YpvC2d
id: 2Xc13wymUvQmw1PE51fMv4qRw7Z
metadata: {}
reference: test-sub-chargebee-USD-Weekly
source: Lago
status: Canceled
updated_at: '2023-11-09T04:25:07.999938331Z'
id: 2Xc13wymUvQmw1PE51fMv4qRw7Z
timestamp: '2023-11-09T04:25:07.921Z'
type: Subscription
Subscription_Created:
summary: Subscription_Created
value:
action: Created
data:
cancel_at_period_end: false
created_at: '2023-11-15T10:52:34.730094731Z'
currency: ''
customer:
created_at: '2023-08-11T10:09:25.723Z'
deleted_at: null
email: chaoyan@gmail.com
id: 2TpmnpjFmjaERa3X6YKU3YpvC2d
metadata: {}
name: Test 2
org_id: 2Tpmnmh6GHJXumKN1oBy2u56Ima
phone: ''
reference: ''
updated_at: '2023-11-15T10:52:34.827Z'
wallet_address: '0x22CEB9a144754f8c211985FF631Db1515Ff1A5FD'
customer_id: 2TpmnpjFmjaERa3X6YKU3YpvC2d
id: 2YD1tydYvyw8vVodm9nSEzCbCzE
metadata: {}
org_id: 2Tpmnmh6GHJXumKN1oBy2u56Ima
reference: test-sub-chargebee-USD-Weekly
source: Lago
status: Pending
updated_at: '2023-11-15T10:52:34.830645089Z'
id: 2YD1tydYvyw8vVodm9nSEzCbCzE
timestamp: '2023-11-15T10:52:34.728Z'
type: Subscription
Subscription_Updated:
summary: Subscription_Updated
value:
action: Updated
data:
cancel_at_period_end: false
created_at: '2023-11-02T06:44:50.439483Z'
currency: ''
customer:
created_at: '2023-08-11T10:09:25.723Z'
deleted_at: null
email: chao+test@boomfi.xyz
id: 2TpmnpjFmjaERa3X6YKU3YpvC2d
metadata: {}
name: Test 2
org_id: 2Tpmnmh6GHJXumKN1oBy2u56Ima
phone: ''
reference: ''
updated_at: '2023-11-02T08:24:46.786Z'
wallet_address: '0x22CEB9a144754f8c211985FF631Db1515Ff1A5FD'
customer_id: 2TpmnpjFmjaERa3X6YKU3YpvC2d
id: 2Xc13wymUvQmw1PE51fMv4qRw7Z
metadata: {}
reference: test-sub-chargebee-USD-Weekly
source: Lago
status: Active
updated_at: '2023-11-02T08:24:46.788991268Z'
id: 2Xc13wymUvQmw1PE51fMv4qRw7Z
timestamp: '2023-11-02T08:24:46.695Z'
type: Subscription

example1:
summary: Available events example
value: |
[
{
"type": "Payment",
"action": "Created",
"id": "2Tpmnpckx3zXIlOLPGk35xOdfxB",
"timestamp": "2023-08-11T10:09:25.57Z",
"data": {
"amount": "1.000308",
"created_at": "2023-08-11T10:09:23.742038Z",
"currency": "USDC",
"customer_id": "2TpmnpjFmjaERa3X6YKU3YpvC2d",
"id": "2Tpmnpckx3zXIlOLPGk35xOdfxB",
"invoice_id": "",
"next_action": "",
"payment_method": "Crypto",
"status": "Processing",
"updated_at": "2023-08-11T10:09:25.761828769Z"
}
},
{
"type": "Payment",
"action": "Updated",
"id": "2Tpmnpckx3zXIlOLPGk35xOdfxB",
"timestamp": "2023-08-11T10:09:26.308Z",
"data": {
"amount": "1.000308",
"created_at": "2023-08-11T10:09:23.742038Z",
"currency": "USDC",
"customer_id": "2TpmnpjFmjaERa3X6YKU3YpvC2d",
"id": "2Tpmnpckx3zXIlOLPGk35xOdfxB",
"invoice_id": "",
"next_action": "",
"payment_method": "Crypto",
"status": "Processing",
"updated_at": "2023-08-11T10:09:26.333077304Z"
}
},
{
"type": "Subscription",
"action": "Created",
"id": "2TzGhOAljp2nTpMIWQqO2yEq7zL",
"timestamp": "2023-08-14T18:43:33.478Z",
"data": {
"cancel_at_period_end": false,
"created_at": "2023-08-14T18:39:47.083452Z",
"currency": "",
"customer_id": "2TpmnpjFmjaERa3X6YKU3YpvC2d",
"id": "2TzGhOAljp2nTpMIWQqO2yEq7zL",
"metadata": {},
"reference": "",
"source": "Lago",
"status": "Cancelled",
"updated_at": "2023-08-14T18:43:33.510486984Z"
}
},
{
"type": "Subscription",
"action": "Updated",
"id": "2TzGhOAljp2nTpMIWQqO2yEq7zL",
"timestamp": "2023-08-14T18:43:39.833Z",
"data": {
"cancel_at_period_end": false,
"created_at": "2023-08-14T18:39:47.083452Z",
"currency": "",
"customer_id": "2TpmnpjFmjaERa3X6YKU3YpvC2d",
"id": "2TzGhOAljp2nTpMIWQqO2yEq7zL",
"metadata": {},
"reference": "",
"source": "Lago",
"status": "Cancelled",
"updated_at": "2023-08-14T18:43:39.856479218Z"
}
},
{
"type": "Subscription",
"action": "Canceled",
"id": "2TzmtQXZfRWsfpV69YK8bMCFDzi",
"timestamp": "2023-08-14T23:09:52.41Z",
"data": {
"cancel_at_period_end": false,
"created_at": "2023-08-14T23:08:29.284198Z",
"currency": "",
"customer_id": "2TpmnpjFmjaERa3X6YKU3YpvC2d",
"id": "2TzmtQXZfRWsfpV69YK8bMCFDzi",
"metadata": {},
"reference": "",
"source": "Lago",
"status": "Cancelled",
"updated_at": "2023-08-14T23:09:52.432514073Z"
}
},
{
"type": "Plan",
"action": "Created",
"id": "2U3jhiF0n0JazmSe1WTtBbX8oCK",
"timestamp": "2023-08-16T08:41:18.37Z",
"data": {
"available_quantity": 0,
"billing_scheme": "FlatFee",
"created_at": "2023-08-16T08:41:17.981962Z",
"created_by": "2TzGhPCAfFWLPBjtc6h52Aao2S6",
"currency": "USD",
"enabled": true,
"id": "2U3jhiF0n0JazmSe1WTtBbX8oCK",
"metadata": {},
"name": "test ccy gbp",
"org_id": "2Tpmnmh6GHJXumKN1oBy2u56Ima",
"price": "1",
"recurring_interval": "Unknown",
"recurring_interval_count": 1,
"recurring_usage_type": "Unknown",
"reference": "",
"source": "Lago",
"trial_period": "",
"type": "OneTime",
"updated_at": "2023-08-16T08:41:18.406389167Z"
}
}
]
"/v1/payments":
get:
security:
Expand Down

0 comments on commit cec235a

Please sign in to comment.