From 3b8ec556ee4a2e813fb8fa37a59bc8c917f21565 Mon Sep 17 00:00:00 2001 From: circle-github-action-bot Date: Wed, 8 Mar 2023 11:50:01 -0500 Subject: [PATCH] fix: sync SDK to OpenAPI doc v1.7.1 (#66) --- OPENAPI_VERSION | 2 +- sdk.json | 32 +++---------------- .../models/get-payment-response-data.ts | 4 +-- .../list-payments-response-data-inner.ts | 8 ++--- 4 files changed, 11 insertions(+), 35 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index bd8bf88..943f9cb 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -1.7.0 +1.7.1 diff --git a/sdk.json b/sdk.json index dfdf78b..3f354ce 100644 --- a/sdk.json +++ b/sdk.json @@ -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." }, @@ -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" - } - } + ] } } } @@ -4374,14 +4365,7 @@ { "$ref": "#/components/schemas/CryptoPayment" } - ], - "discriminator": { - "propertyName": "type", - "mapping": { - "Fiat Payment": "#/components/schemas/FiatPaymentPolymorphic", - "Crypto Payment": "#/components/schemas/CryptoPayment" - } - } + ] } } }, @@ -12823,10 +12807,7 @@ { "$ref": "#/components/schemas/TransferSourceBlockchainLocation" } - ], - "discriminator": { - "propertyName": "type" - } + ] }, "TransferDestinationBlockchainLocation": { "description": "A destination blockchain address.", @@ -12881,10 +12862,7 @@ { "$ref": "#/components/schemas/TransferDestinationWalletLocation" } - ], - "discriminator": { - "propertyName": "type" - } + ] }, "Fee": { "type": "object", diff --git a/src/generated/models/get-payment-response-data.ts b/src/generated/models/get-payment-response-data.ts index 06c7c50..35f1f07 100644 --- a/src/generated/models/get-payment-response-data.ts +++ b/src/generated/models/get-payment-response-data.ts @@ -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; diff --git a/src/generated/models/list-payments-response-data-inner.ts b/src/generated/models/list-payments-response-data-inner.ts index 194e0e8..df341b9 100644 --- a/src/generated/models/list-payments-response-data-inner.ts +++ b/src/generated/models/list-payments-response-data-inner.ts @@ -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;