diff --git a/openapi.yml b/openapi.yml index d151ebf..deea0cf 100644 --- a/openapi.yml +++ b/openapi.yml @@ -4287,12 +4287,7 @@ paths: href: type: string amount: - type: object - properties: - amount: - type: string - currency: - type: string + $ref: '#/components/schemas/TransferAmount' clearing: type: object properties: @@ -6423,10 +6418,10 @@ paths: properties: currency: type: string - example: '12.34' + example: USD value: type: string - example: USD + example: '12.34' responses: '201': description: create @@ -6926,10 +6921,10 @@ paths: properties: currency: type: string - example: '15.00' + example: USD value: type: string - example: USD + example: '15.00' responses: '201': description: created @@ -9632,34 +9627,6 @@ components: type: object additionalProperties: $ref: '#/components/schemas/HalLink' - Address: - title: Address - type: object - required: - - address1 - - city - - country - - postalCode - - state - properties: - address1: - type: string - example: 462 Main Street - address2: - type: string - example: Suite 124 - city: - type: string - example: Des Moines - postalCode: - type: string - example: '50309' - state: - type: string - example: IA - country: - type: string - example: US Account: title: Account type: object @@ -9673,37 +9640,13 @@ components: example: 2e21f010-3023-4891-aced-ed726d7cd5e1 name: type: string - example: Self Employed - authorizedRep: - type: string - example: Jane Doe + example: Jane Doe's Business timezoneOffset: - type: integer + type: number example: -6 - email: - type: string - example: janedoe@mail.com - phone: - type: string - example: '5555552368' - address: - $ref: '#/components/schemas/Address' - verificationStatus: - type: string - example: Verified - ownershipStatus: - type: string - example: Exempt - ownershipCertificationStatus: - type: string - example: Exempt type: type: string example: Commercial - created: - type: string - format: date-time - example: '2021-10-25T00:39:38.283Z' NotFoundError: title: NotFoundError description: Error response schema for 404 NotFound diff --git a/specs/resources/labels/createLabelReallocation.yml b/specs/resources/labels/createLabelReallocation.yml index 893b2c7..4a21ee7 100644 --- a/specs/resources/labels/createLabelReallocation.yml +++ b/specs/resources/labels/createLabelReallocation.yml @@ -144,10 +144,10 @@ post: properties: currency: type: string - example: '15.00' + example: 'USD' value: type: string - example: USD + example: '15.00' responses: '201': description: created diff --git a/specs/resources/labels/createListCustomerLabels.yml b/specs/resources/labels/createListCustomerLabels.yml index 1f0ea20..0075e42 100644 --- a/specs/resources/labels/createListCustomerLabels.yml +++ b/specs/resources/labels/createListCustomerLabels.yml @@ -202,10 +202,10 @@ post: properties: currency: type: string - example: '12.34' + example: 'USD' value: type: string - example: USD + example: '12.34' responses: '201': description: create diff --git a/specs/resources/transfers/initiateTransfer.yml b/specs/resources/transfers/initiateTransfer.yml index d86cb77..148186c 100644 --- a/specs/resources/transfers/initiateTransfer.yml +++ b/specs/resources/transfers/initiateTransfer.yml @@ -364,12 +364,7 @@ post: href: type: string amount: - type: object - properties: - amount: - type: string - currency: - type: string + $ref: '../../schemas/common.yml#/components/schemas/TransferAmount' clearing: type: object properties: diff --git a/specs/schemas/accounts/Account.yml b/specs/schemas/accounts/Account.yml index e4f3cc4..82c65b5 100644 --- a/specs/schemas/accounts/Account.yml +++ b/specs/schemas/accounts/Account.yml @@ -11,34 +11,10 @@ Account: example: 2e21f010-3023-4891-aced-ed726d7cd5e1 name: type: string - example: Self Employed - authorizedRep: - type: string - example: Jane Doe + example: Jane Doe's Business timezoneOffset: - type: integer - example: -6 - email: - type: string - example: janedoe@mail.com - phone: - type: string - example: '5555552368' - address: - $ref: '../common.yml#/components/schemas/Address' - verificationStatus: - type: string - example: Verified - ownershipStatus: - type: string - example: Exempt - ownershipCertificationStatus: - type: string - example: Exempt + type: number + example: -6.0 type: type: string example: Commercial - created: - type: string - format: date-time - example: '2021-10-25T00:39:38.283Z'