Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: sync SDK to OpenAPI doc v1.4.0 #58

Merged
merged 1 commit into from
Jan 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
431 changes: 334 additions & 97 deletions sdk.json

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions src/generated/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ models/checkout-session-money.ts
models/checkout-session-status.ts
models/checkout-session.ts
models/conflict.ts
models/continuous-payment-intent-creation-request.ts
models/continuous-payment-intent.ts
models/create-ach-account-response.ts
models/create-address-book-recipient-response.ts
models/create-business-deposit-address-response.ts
Expand All @@ -95,6 +97,8 @@ models/create-checkout-session-response.ts
models/create-crypto-refund-response.ts
models/create-mock-ach-account-response.ts
models/create-mock-chargeback-response.ts
models/create-payment-intent-request.ts
models/create-payment-intent-response-data.ts
models/create-payment-intent-response.ts
models/create-payment-response.ts
models/create-payment-token-response.ts
Expand Down Expand Up @@ -146,6 +150,7 @@ models/fiat-payout-destination.ts
models/fiat-payout.ts
models/fiat-refund.ts
models/final-adjustments.ts
models/forbidden.ts
models/generate-address-request.ts
models/generate-address-response.ts
models/get-ach-account-response.ts
Expand Down Expand Up @@ -197,6 +202,7 @@ models/list-business-wire-accounts-response.ts
models/list-cards-response.ts
models/list-channels-response.ts
models/list-chargebacks-response.ts
models/list-payment-intents-response-data-inner.ts
models/list-payment-intents-response.ts
models/list-payments-response-data-inner.ts
models/list-payments-response.ts
Expand Down Expand Up @@ -232,8 +238,6 @@ models/payment-creation-request.ts
models/payment-error-code.ts
models/payment-info-cancel.ts
models/payment-info-payment-and-refund.ts
models/payment-intent-amount-paid.ts
models/payment-intent-amount-refunded.ts
models/payment-intent-creation-request.ts
models/payment-intent-fees.ts
models/payment-intent.ts
Expand Down
38 changes: 20 additions & 18 deletions src/generated/apis/crypto-payment-intents-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,23 @@ import { BadRequest } from "../models";
// @ts-ignore
import { CreateCryptoRefundResponse } from "../models";
// @ts-ignore
import { CreatePaymentIntentRequest } from "../models";
// @ts-ignore
import { CreatePaymentIntentResponse } from "../models";
// @ts-ignore
import { CryptoRefundCreationRequest } from "../models";
// @ts-ignore
import { ExpirePaymentIntentResponse } from "../models";
// @ts-ignore
import { Forbidden } from "../models";
// @ts-ignore
import { GetPaymentIntentResponse } from "../models";
// @ts-ignore
import { ListPaymentIntentsResponse } from "../models";
// @ts-ignore
import { NotAuthorized } from "../models";
// @ts-ignore
import { NotFound } from "../models";
// @ts-ignore
import { PaymentIntentCreationRequest } from "../models";
/**
* CryptoPaymentIntentsApi - axios parameter creator
* @export
Expand All @@ -60,14 +62,14 @@ export const CryptoPaymentIntentsApiAxiosParamCreator = function (
) {
return {
/**
*
* Create a transient or continuous payment intent
* @summary Create a payment intent
* @param {PaymentIntentCreationRequest} [paymentIntentCreationRequest]
* @param {CreatePaymentIntentRequest} [createPaymentIntentRequest]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createPaymentIntent: async (
paymentIntentCreationRequest?: PaymentIntentCreationRequest,
createPaymentIntentRequest?: CreatePaymentIntentRequest,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/v1/paymentIntents`;
Expand Down Expand Up @@ -101,7 +103,7 @@ export const CryptoPaymentIntentsApiAxiosParamCreator = function (
...options.headers
};
localVarRequestOptions.data = serializeDataIfNeeded(
paymentIntentCreationRequest,
createPaymentIntentRequest,
localVarRequestOptions,
configuration
);
Expand Down Expand Up @@ -380,14 +382,14 @@ export const CryptoPaymentIntentsApiFp = function (
CryptoPaymentIntentsApiAxiosParamCreator(configuration);
return {
/**
*
* Create a transient or continuous payment intent
* @summary Create a payment intent
* @param {PaymentIntentCreationRequest} [paymentIntentCreationRequest]
* @param {CreatePaymentIntentRequest} [createPaymentIntentRequest]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async createPaymentIntent(
paymentIntentCreationRequest?: PaymentIntentCreationRequest,
createPaymentIntentRequest?: CreatePaymentIntentRequest,
options?: AxiosRequestConfig
): Promise<
(
Expand All @@ -397,7 +399,7 @@ export const CryptoPaymentIntentsApiFp = function (
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.createPaymentIntent(
paymentIntentCreationRequest,
createPaymentIntentRequest,
options
);
return createRequestFunction(
Expand Down Expand Up @@ -551,18 +553,18 @@ export const CryptoPaymentIntentsApiFactory = function (
const localVarFp = CryptoPaymentIntentsApiFp(configuration);
return {
/**
*
* Create a transient or continuous payment intent
* @summary Create a payment intent
* @param {PaymentIntentCreationRequest} [paymentIntentCreationRequest]
* @param {CreatePaymentIntentRequest} [createPaymentIntentRequest]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createPaymentIntent(
paymentIntentCreationRequest?: PaymentIntentCreationRequest,
createPaymentIntentRequest?: CreatePaymentIntentRequest,
options?: any
): AxiosPromise<CreatePaymentIntentResponse> {
return localVarFp
.createPaymentIntent(paymentIntentCreationRequest, options)
.createPaymentIntent(createPaymentIntentRequest, options)
.then((request) => request(axios, basePath));
},
/**
Expand Down Expand Up @@ -661,19 +663,19 @@ export const CryptoPaymentIntentsApiFactory = function (
*/
export class CryptoPaymentIntentsApi extends BaseAPI {
/**
*
* Create a transient or continuous payment intent
* @summary Create a payment intent
* @param {PaymentIntentCreationRequest} [paymentIntentCreationRequest]
* @param {CreatePaymentIntentRequest} [createPaymentIntentRequest]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof CryptoPaymentIntentsApi
*/
public createPaymentIntent(
paymentIntentCreationRequest?: PaymentIntentCreationRequest,
createPaymentIntentRequest?: CreatePaymentIntentRequest,
options?: AxiosRequestConfig
) {
return CryptoPaymentIntentsApiFp(this.configuration)
.createPaymentIntent(paymentIntentCreationRequest, options)
.createPaymentIntent(createPaymentIntentRequest, options)
.then((request) => request(this.axios, this.basePath));
}

Expand Down
32 changes: 16 additions & 16 deletions src/generated/apis/sepaapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const SEPAApiAxiosParamCreator = function (
return {
/**
*
* @summary Create a SEPA bank account (BETA)
* @summary Create a SEPA bank account
* @param {SepaCreationRequest} [sepaCreationRequest]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
Expand Down Expand Up @@ -107,7 +107,7 @@ export const SEPAApiAxiosParamCreator = function (
},
/**
*
* @summary Get a SEPA bank account (BETA)
* @summary Get a SEPA bank account
* @param {string} id Universally unique identifier (UUID v4) of a resource.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
Expand Down Expand Up @@ -156,8 +156,8 @@ export const SEPAApiAxiosParamCreator = function (
};
},
/**
* Get the SEPA transfer instructions into the Circle bank account given your bank account id (BETA).
* @summary Get SEPA instructions (BETA)
* Get the SEPA transfer instructions into the Circle bank account given your bank account id.
* @summary Get SEPA instructions
* @param {string} id Universally unique identifier (UUID v4) of a resource.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
Expand Down Expand Up @@ -217,7 +217,7 @@ export const SEPAApiFp = function (configuration?: Configuration) {
return {
/**
*
* @summary Create a SEPA bank account (BETA)
* @summary Create a SEPA bank account
* @param {SepaCreationRequest} [sepaCreationRequest]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
Expand Down Expand Up @@ -245,7 +245,7 @@ export const SEPAApiFp = function (configuration?: Configuration) {
},
/**
*
* @summary Get a SEPA bank account (BETA)
* @summary Get a SEPA bank account
* @param {string} id Universally unique identifier (UUID v4) of a resource.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
Expand All @@ -271,8 +271,8 @@ export const SEPAApiFp = function (configuration?: Configuration) {
);
},
/**
* Get the SEPA transfer instructions into the Circle bank account given your bank account id (BETA).
* @summary Get SEPA instructions (BETA)
* Get the SEPA transfer instructions into the Circle bank account given your bank account id.
* @summary Get SEPA instructions
* @param {string} id Universally unique identifier (UUID v4) of a resource.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
Expand Down Expand Up @@ -311,7 +311,7 @@ export const SEPAApiFactory = function (
return {
/**
*
* @summary Create a SEPA bank account (BETA)
* @summary Create a SEPA bank account
* @param {SepaCreationRequest} [sepaCreationRequest]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
Expand All @@ -326,7 +326,7 @@ export const SEPAApiFactory = function (
},
/**
*
* @summary Get a SEPA bank account (BETA)
* @summary Get a SEPA bank account
* @param {string} id Universally unique identifier (UUID v4) of a resource.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
Expand All @@ -340,8 +340,8 @@ export const SEPAApiFactory = function (
.then((request) => request(axios, basePath));
},
/**
* Get the SEPA transfer instructions into the Circle bank account given your bank account id (BETA).
* @summary Get SEPA instructions (BETA)
* Get the SEPA transfer instructions into the Circle bank account given your bank account id.
* @summary Get SEPA instructions
* @param {string} id Universally unique identifier (UUID v4) of a resource.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
Expand All @@ -366,7 +366,7 @@ export const SEPAApiFactory = function (
export class SEPAApi extends BaseAPI {
/**
*
* @summary Create a SEPA bank account (BETA)
* @summary Create a SEPA bank account
* @param {SepaCreationRequest} [sepaCreationRequest]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
Expand All @@ -383,7 +383,7 @@ export class SEPAApi extends BaseAPI {

/**
*
* @summary Get a SEPA bank account (BETA)
* @summary Get a SEPA bank account
* @param {string} id Universally unique identifier (UUID v4) of a resource.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
Expand All @@ -396,8 +396,8 @@ export class SEPAApi extends BaseAPI {
}

/**
* Get the SEPA transfer instructions into the Circle bank account given your bank account id (BETA).
* @summary Get SEPA instructions (BETA)
* Get the SEPA transfer instructions into the Circle bank account given your bank account id.
* @summary Get SEPA instructions
* @param {string} id Universally unique identifier (UUID v4) of a resource.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
Expand Down
72 changes: 72 additions & 0 deletions src/generated/models/continuous-payment-intent-creation-request.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
/* tslint:disable */
/* eslint-disable */
/**
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/

// May contain unused imports in some cases
// @ts-ignore
import { PaymentMethodBlockchain } from "./payment-method-blockchain";

/**
*
* @export
* @interface ContinuousPaymentIntentCreationRequest
*/
export interface ContinuousPaymentIntentCreationRequest {
/**
* Universally unique identifier (UUID v4) idempotency key. This key is utilized to ensure exactly-once execution of mutating requests.
* @type {string}
* @memberof ContinuousPaymentIntentCreationRequest
*/
idempotencyKey: string;
/**
* Desired currency for the payment
* @type {string}
* @memberof ContinuousPaymentIntentCreationRequest
*/
currency: ContinuousPaymentIntentCreationRequestCurrencyEnum;
/**
* Desired currency for the payments to settle in.
* @type {string}
* @memberof ContinuousPaymentIntentCreationRequest
*/
settlementCurrency: ContinuousPaymentIntentCreationRequestSettlementCurrencyEnum;
/**
*
* @type {Array<PaymentMethodBlockchain>}
* @memberof ContinuousPaymentIntentCreationRequest
*/
paymentMethods: Array<PaymentMethodBlockchain>;
/**
*
* @type {string}
* @memberof ContinuousPaymentIntentCreationRequest
*/
type?: ContinuousPaymentIntentCreationRequestTypeEnum;
}

export const ContinuousPaymentIntentCreationRequestCurrencyEnum = {
Usd: "USD",
Btc: "BTC",
Eth: "ETH"
} as const;

export type ContinuousPaymentIntentCreationRequestCurrencyEnum =
typeof ContinuousPaymentIntentCreationRequestCurrencyEnum[keyof typeof ContinuousPaymentIntentCreationRequestCurrencyEnum];
export const ContinuousPaymentIntentCreationRequestSettlementCurrencyEnum = {
Usd: "USD",
Btc: "BTC",
Eth: "ETH"
} as const;

export type ContinuousPaymentIntentCreationRequestSettlementCurrencyEnum =
typeof ContinuousPaymentIntentCreationRequestSettlementCurrencyEnum[keyof typeof ContinuousPaymentIntentCreationRequestSettlementCurrencyEnum];
export const ContinuousPaymentIntentCreationRequestTypeEnum = {
Continuous: "continuous"
} as const;

export type ContinuousPaymentIntentCreationRequestTypeEnum =
typeof ContinuousPaymentIntentCreationRequestTypeEnum[keyof typeof ContinuousPaymentIntentCreationRequestTypeEnum];
Loading