Skip to content

Commit

Permalink
fix: sync SDK to OpenAPI doc v1.7.1 (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
circle-github-action-bot authored Mar 8, 2023
1 parent 8e12992 commit 3b8ec55
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 35 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.7.0
1.7.1
32 changes: 5 additions & 27 deletions sdk.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
}
],
"info": {
"version": "1.7.0",
"version": "1.7.1",
"title": "All Circle APIs",
"description": "Circle's General, Core Functionality, Payments, Payouts, Accounts, and Crypto Payments APIs bundled into one OpenAPI Specification."
},
Expand Down Expand Up @@ -4032,16 +4032,7 @@
{
"$ref": "#/components/schemas/FiatRefund"
}
],
"discriminator": {
"propertyName": "type",
"mapping": {
"Fiat Payment": "#/components/schemas/FiatPayment",
"Crypto Payment": "#/components/schemas/CryptoPayment",
"Fiat Cancel": "#/components/schemas/FiatCancel",
"Fiat Refund": "#/components/schemas/FiatRefund"
}
}
]
}
}
}
Expand Down Expand Up @@ -4374,14 +4365,7 @@
{
"$ref": "#/components/schemas/CryptoPayment"
}
],
"discriminator": {
"propertyName": "type",
"mapping": {
"Fiat Payment": "#/components/schemas/FiatPaymentPolymorphic",
"Crypto Payment": "#/components/schemas/CryptoPayment"
}
}
]
}
}
},
Expand Down Expand Up @@ -12823,10 +12807,7 @@
{
"$ref": "#/components/schemas/TransferSourceBlockchainLocation"
}
],
"discriminator": {
"propertyName": "type"
}
]
},
"TransferDestinationBlockchainLocation": {
"description": "A destination blockchain address.",
Expand Down Expand Up @@ -12881,10 +12862,7 @@
{
"$ref": "#/components/schemas/TransferDestinationWalletLocation"
}
],
"discriminator": {
"propertyName": "type"
}
]
},
"Fee": {
"type": "object",
Expand Down
4 changes: 1 addition & 3 deletions src/generated/models/get-payment-response-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,4 @@ import { SourceResponse } from "./source-response";
* @type GetPaymentResponseData
* @export
*/
export type GetPaymentResponseData =
| ({ type: "Crypto Payment" } & CryptoPayment)
| ({ type: "Fiat Payment" } & FiatPaymentPolymorphic);
export type GetPaymentResponseData = CryptoPayment | FiatPaymentPolymorphic;
8 changes: 4 additions & 4 deletions src/generated/models/list-payments-response-data-inner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ import { SourceResponse } from "./source-response";
* @export
*/
export type ListPaymentsResponseDataInner =
| ({ type: "Crypto Payment" } & CryptoPayment)
| ({ type: "Fiat Cancel" } & FiatCancel)
| ({ type: "Fiat Payment" } & FiatPayment)
| ({ type: "Fiat Refund" } & FiatRefund);
| CryptoPayment
| FiatCancel
| FiatPayment
| FiatRefund;

0 comments on commit 3b8ec55

Please sign in to comment.