Skip to content

Commit c35c853

Browse files
committed
feat: enable enums to be open for xero_bankfeeds.yaml
BREAKING CHANGE: open enums
1 parent 2e1f41b commit c35c853

1 file changed

Lines changed: 55 additions & 28 deletions

File tree

xero_bankfeeds.yaml

Lines changed: 55 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -558,20 +558,25 @@ components:
558558
example: 079a88ea-276d-41fb-a1f1-366ef3e22921
559559
description: Xero identifier for a bank account in Xero. Must be included if AccountNumber is not specified.
560560
accountType:
561-
enum:
562-
- BANK
563-
- CREDITCARD
561+
anyOf:
562+
- enum:
563+
- BANK
564+
- CREDITCARD
565+
type: string
566+
- type: string
564567
example: BANK
565568
description: High level bank account type - BANK CREDITCARD BANK encompasses all bank account types other than credit cards.
566569
currency:
567570
$ref: '#/components/schemas/CurrencyCode'
568571
country:
569572
$ref: '#/components/schemas/CountryCode'
570573
status:
571-
type: string
572-
enum:
573-
- PENDING
574-
- REJECTED
574+
anyOf:
575+
- type: string
576+
enum:
577+
- PENDING
578+
- REJECTED
579+
- type: string
575580
example: REJECTED
576581
description: the current status of the feed connection
577582
error:
@@ -620,10 +625,13 @@ components:
620625
example: 87cb0dc8-fa32-409c-b622-19f8de8dcc83
621626
description: The Xero generated feed connection Id that identifies the Xero Bank Account Container into which the statement should be delivered. This is obtained by calling GET FeedConnections.
622627
status:
623-
enum:
624-
- PENDING
625-
- REJECTED
626-
- DELIVERED
628+
anyOf:
629+
- enum:
630+
- PENDING
631+
- REJECTED
632+
- DELIVERED
633+
type: string
634+
- type: string
627635
example: PENDING
628636
description: Current status of statements
629637
startDate:
@@ -741,21 +749,23 @@ components:
741749
description: Human readable detailed error description.
742750
example: The application has not been configured to use these API endpoints.
743751
type:
744-
type: string
752+
anyOf:
753+
- type: string
754+
enum:
755+
- invalid-request
756+
- invalid-application
757+
- invalid-feed-connection
758+
- duplicate-statement
759+
- invalid-end-balance
760+
- invalid-start-and-end-date
761+
- invalid-start-date
762+
- internal-error
763+
- feed-already-connected-in-current-organisation
764+
- invalid-end-date
765+
- statement-not-found
766+
- feed-connected-in-different-organisation
767+
- type: string
745768
description: Identifies the type of error.
746-
enum:
747-
- invalid-request
748-
- invalid-application
749-
- invalid-feed-connection
750-
- duplicate-statement
751-
- invalid-end-balance
752-
- invalid-start-and-end-date
753-
- invalid-start-date
754-
- internal-error
755-
- feed-already-connected-in-current-organisation
756-
- invalid-end-date
757-
- statement-not-found
758-
- feed-connected-in-different-organisation
759769
- feed-already-connected-in-different-organisation
760770
- bank-feed-not-found
761771
- invalid-country-specified
@@ -766,13 +776,18 @@ components:
766776
- account-not-valid
767777
- feed-not-found-or-already-deleted
768778
example: invalid-application
769-
CreditDebitIndicator:
779+
CreditDebitIndicatorClosed:
770780
type: string
771781
description: If the statement balances are credit or debit, the CreditDebitIndicator should be specified from the perspective of the Customer.
772782
enum:
773783
- CREDIT
774784
- DEBIT
775-
CurrencyCode:
785+
CreditDebitIndicator:
786+
description: If the statement balances are credit or debit, the CreditDebitIndicator should be specified from the perspective of the Customer.
787+
anyOf:
788+
- $ref: '#/components/schemas/CreditDebitIndicatorClosed'
789+
- type: string
790+
CurrencyCodeClosed:
776791
description: 3 letter alpha code for the ISO-4217 currency code, e.g. USD, AUD.
777792
example: AUD
778793
type: string
@@ -940,7 +955,13 @@ components:
940955
- ZMW
941956
- ZMK
942957
- ZWD
943-
CountryCode:
958+
CurrencyCode:
959+
description: 3 letter alpha code for the ISO-4217 currency code, e.g. USD, AUD.
960+
anyOf:
961+
- $ref: '#/components/schemas/CurrencyCodeClosed'
962+
- type: string
963+
example: AUD
964+
CountryCodeClosed:
944965
type: string
945966
example: GB
946967
description: ISO-3166 alpha-2 country code, e.g. US, AU This element is required only when the Application supports multi-region. Talk to your Partner Manager to confirm if this is the case.
@@ -1185,3 +1206,9 @@ components:
11851206
- ZA
11861207
- ZM
11871208
- ZW
1209+
CountryCode:
1210+
description: ISO-3166 alpha-2 country code, e.g. US, AU This element is required only when the Application supports multi-region. Talk to your Partner Manager to confirm if this is the case.
1211+
anyOf:
1212+
- $ref: '#/components/schemas/CountryCodeClosed'
1213+
- type: string
1214+
example: GB

0 commit comments

Comments
 (0)