Skip to content

Commit

Permalink
Some fixes on pagination, nullable fields, and other misc (#5)
Browse files Browse the repository at this point in the history
* Some fixes on pagination, nullable fields, and other misc

- New card payment type
- new pan account number type
- new ref number types
- add back documents to payment order req (with description for using diff content type)
- nullable receiving_account on payment order
- fix pagination for transactions

* update once more
  • Loading branch information
gilbertfu authored Jul 21, 2022
1 parent 7e17939 commit 97cacd6
Showing 1 changed file with 63 additions and 4 deletions.
67 changes: 63 additions & 4 deletions openapi/mt_openapi_spec_v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ paths:
- au_becs
- bacs
- book
- card
- check
- eft
- interac
Expand Down Expand Up @@ -979,6 +980,7 @@ paths:
- au_becs
- bacs
- book
- card
- check
- eft
- interac
Expand Down Expand Up @@ -1042,6 +1044,12 @@ paths:
application/json:
schema:
"$ref": "#/components/schemas/internal_account"
'404':
description: not found
content:
application/json:
schema:
"$ref": "#/components/schemas/error_message"
'422':
description: unsuccessful
content:
Expand Down Expand Up @@ -1231,6 +1239,12 @@ paths:
description: The ID of the line item.
required: true
responses:
'422':
description: unsuccessful
content:
application/json:
schema:
"$ref": "#/components/schemas/error_message"
'200':
description: successful
content:
Expand Down Expand Up @@ -1406,6 +1420,7 @@ paths:
- au_becs
- bacs
- book
- card
- check
- eft
- interac
Expand Down Expand Up @@ -1807,11 +1822,11 @@ paths:
security:
- basic_auth: []
parameters:
- name: page
- name: after_cursor
in: query
required: false
schema:
type: integer
type: string
- name: per_page
in: query
required: false
Expand Down Expand Up @@ -1885,6 +1900,18 @@ paths:
responses:
'200':
description: successful
headers:
X-After-Cursor:
schema:
type: string
nullable: true
description: The cursor for the next page. Including this in a call
as `after_cursor` will return the next page.
X-Per-Page:
schema:
type: integer
nullable: true
description: The current `per_page`.
content:
application/json:
schema:
Expand Down Expand Up @@ -2055,6 +2082,7 @@ components:
- iban
- clabe
- wallet_address
- pan
- other
description: Supports iban and clabe, otherwise other if the bank account
number is in a generic format.
Expand Down Expand Up @@ -2453,6 +2481,7 @@ components:
- iban
- clabe
- wallet_address
- pan
- other
required:
- account_number
Expand Down Expand Up @@ -2482,6 +2511,7 @@ components:
- au_becs
- bacs
- book
- card
- check
- eft
- interac
Expand Down Expand Up @@ -2800,7 +2830,7 @@ components:
documentable_type:
type: string
enum:
- compliance/case
- case
- counterparty
- expected_payment
- external_account
Expand Down Expand Up @@ -2945,6 +2975,7 @@ components:
- au_becs
- bacs
- book
- card
- check
- eft
- interac
Expand Down Expand Up @@ -3064,6 +3095,7 @@ components:
- au_becs
- bacs
- book
- card
- check
- eft
- interac
Expand Down Expand Up @@ -3162,6 +3194,7 @@ components:
- au_becs
- bacs
- book
- card
- check
- eft
- interac
Expand Down Expand Up @@ -3359,6 +3392,7 @@ components:
- iban
- clabe
- wallet_address
- pan
- other
required:
- account_number
Expand Down Expand Up @@ -3388,6 +3422,7 @@ components:
- au_becs
- bacs
- book
- card
- check
- eft
- interac
Expand Down Expand Up @@ -3479,6 +3514,7 @@ components:
- au_becs
- bacs
- book
- card
- check
- eft
- interac
Expand Down Expand Up @@ -3992,6 +4028,7 @@ components:
- au_becs
- bacs
- book
- card
- check
- eft
- interac
Expand Down Expand Up @@ -4258,6 +4295,7 @@ components:
minProperties: 16
- "$ref": "#/components/schemas/internal_account"
description: The receiving account. Can be an `external_account` or `internal_account`.
nullable: true
deprecated: true
receiving_account_type:
type: string
Expand Down Expand Up @@ -4320,6 +4358,7 @@ components:
- au_becs
- bacs
- book
- card
- check
- eft
- interac
Expand Down Expand Up @@ -4540,6 +4579,7 @@ components:
- iban
- clabe
- wallet_address
- pan
- other
required:
- account_number
Expand Down Expand Up @@ -4569,6 +4609,7 @@ components:
- au_becs
- bacs
- book
- card
- check
- eft
- interac
Expand Down Expand Up @@ -4624,6 +4665,13 @@ components:
type: boolean
description: A flag that determines whether a payment order should go through
transaction monitoring.
documents:
type: array
items:
"$ref": "#/components/schemas/document_create_request"
description: An array of documents to be attached to the payment order.
Note that if you attach documents, the request's content type must be
`multipart/form-data`.
required:
- type
- amount
Expand All @@ -4639,6 +4687,7 @@ components:
- au_becs
- bacs
- book
- card
- check
- eft
- interac
Expand Down Expand Up @@ -4894,6 +4943,7 @@ components:
- iban
- clabe
- wallet_address
- pan
- other
required:
- account_number
Expand Down Expand Up @@ -4923,6 +4973,7 @@ components:
- au_becs
- bacs
- book
- card
- check
- eft
- interac
Expand Down Expand Up @@ -5016,7 +5067,9 @@ components:
- goldman_sachs_unique_payment_id
- jpmc_ccn
- jpmc_end_to_end_id
- jpmc_firm_root_id
- jpmc_p3_id
- jpmc_payment_information_id
- lob_check_id
- other
- partial_swift_mir
Expand All @@ -5043,6 +5096,7 @@ components:
properties:
ping:
type: string
example: pong
required:
- ping
return:
Expand Down Expand Up @@ -5325,6 +5379,7 @@ components:
- au_becs
- bacs
- book
- card
- check
- eft
- interac
Expand Down Expand Up @@ -5370,6 +5425,7 @@ components:
- au_becs
- bacs
- book
- card
- check
- eft
- interac
Expand All @@ -5379,12 +5435,13 @@ components:
- sepa
- signet
- wire
maxItems: 13
maxItems: 14
example:
- ach
- au_becs
- bacs
- book
- card
- check
- eft
- interac
Expand Down Expand Up @@ -5456,6 +5513,7 @@ components:
- cleartouch
- cross_river
- currencycloud
- dc_bank
- dwolla
- goldman_sachs
- iso20022
Expand Down Expand Up @@ -5529,6 +5587,7 @@ components:
- au_becs
- bacs
- book
- card
- check
- eft
- interac
Expand Down

0 comments on commit 97cacd6

Please sign in to comment.