Skip to content

Commit

Permalink
Fix gitignore. Add d.ts files missing
Browse files Browse the repository at this point in the history
  • Loading branch information
armando-rodriguez-cko committed Nov 13, 2023
1 parent 76e1b70 commit 7e7d527
Show file tree
Hide file tree
Showing 7 changed files with 355 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,13 @@ node_modules
typings/
lib/*.js
lib/
test/*.js
*.map

.DS_Store
.vscode/*
/.vscode/

doc
out
.idea/*

dist
/dist/
27 changes: 27 additions & 0 deletions types/dist/api/payments-links/payments-links.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/**
* Class dealing with the /payment-links endpoint
*
* @export
* @class PaymentLinks
*/
export default class PaymentLinks {
constructor(config: any);
config: any;
/**
* Create a Payment Link and pass through all the payment information, like the amount, currency, country and reference.
*
* @memberof PaymentLinks
* @param {Object} body
* @return {Promise<Object>} A promise to the Payment Link response.
*/
create(body: any): Promise<any>;
/**
* Retrieve details about a specific Payment Link using its ID returned when the link was created. In the response, you will see the status of the Payment Link.
*
* @memberof PaymentLinks
* @param {string} id
* @return {Promise<Object>} A promise to the Payment Link response.
*/
get(id: string): Promise<any>;
}
//# sourceMappingURL=payments-links.d.ts.map
185 changes: 185 additions & 0 deletions types/dist/config.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,185 @@
export const SANDBOX_BASE_URL: "https://api.sandbox.checkout.com";
export const LIVE_BASE_URL: "https://api.checkout.com";
export const SANDBOX_ACCESS_URL: "https://access.sandbox.checkout.com/connect/token";
export const LIVE_ACCESS_URL: "https://access.checkout.com/connect/token";
export const PLATFORMS_FILES_LIVE_URL: "https://files.checkout.com/files";
export const PLATFORMS_FILES_SANDBOX_URL: "https://files.sandbox.checkout.com/files";
export const TRANSFERS_SANDBOX_URL: "https://transfers.sandbox.checkout.com/transfers";
export const TRANSFERS_LIVE_URL: "https://transfers.checkout.com/transfers";
export const BALANCES_SANDBOX_URL: "https://balances.sandbox.checkout.com/balances";
export const BALANCES_LIVE_URL: "https://balances.checkout.com/balances";
export const REQUEST_ID_HEADER: "cko-request-id";
export const API_VERSION_HEADER: "cko-version";
export const DEFAULT_TIMEOUT: 15000;
export const MBC_LIVE_SECRET_KEY_REGEX: RegExp;
export const NAS_LIVE_SECRET_KEY_REGEX: RegExp;
export const NAS_SANDBOX_SECRET_KEY_REGEX: RegExp;
export const NAS_LIVE_PUBLIC_KEY_REGEX: RegExp;
export const NAS_SANDBOX_PUBLIC_KEY_REGEX: RegExp;
export namespace PAYMENT_TYPES {
const regular: string;
const recurring: string;
const moto: string;
}
export namespace CURRENCIES {
const ALL: string;
const STN: string;
const EEK: string;
const BHD: string;
const SCR: string;
const DJF: string;
const EGP: string;
const MDL: string;
const MZN: string;
const BND: string;
const ZMK: string;
const SHP: string;
const LBP: string;
const AWG: string;
const JMD: string;
const KES: string;
const BYN: string;
const KHR: string;
const LAK: string;
const MVR: string;
const AOA: string;
const TJS: string;
const SVC: string;
const GNF: string;
const BRL: string;
const MOP: string;
const BOB: string;
const CDF: string;
const NAD: string;
const LYD: string;
const VUV: string;
const QAR: string;
const CLP: string;
const HRK: string;
const ISK: string;
const FKP: string;
const XCD: string;
const NOK: string;
const CUP: string;
const VND: string;
const PEN: string;
const KMF: string;
const LVL: string;
const MMK: string;
const TRY: string;
const VEF: string;
const AUD: string;
const TWD: string;
const PKR: string;
const SLL: string;
const BGN: string;
const LRD: string;
const LKR: string;
const XAF: string;
const JOD: string;
const ANG: string;
const BSD: string;
const CAD: string;
const GIP: string;
const MNT: string;
const LTL: string;
const BBD: string;
const CLF: string;
const BWP: string;
const COP: string;
const PHP: string;
const HUF: string;
const FJD: string;
const MWK: string;
const THB: string;
const XPF: string;
const RSD: string;
const SAR: string;
const UYU: string;
const BZD: string;
const SYP: string;
const GMD: string;
const SZL: string;
const SBD: string;
const ETB: string;
const CHF: string;
const MXN: string;
const ARS: string;
const GTQ: string;
const GHS: string;
const NIO: string;
const JPY: string;
const BDT: string;
const UZS: string;
const SOS: string;
const BTN: string;
const NZD: string;
const TZS: string;
const IQD: string;
const MGA: string;
const DZD: string;
const GYD: string;
const USD: string;
const KWD: string;
const CNY: string;
const PYG: string;
const SGD: string;
const KZT: string;
const PGK: string;
const AMD: string;
const GBP: string;
const AFN: string;
const CRC: string;
const XOF: string;
const YER: string;
const MRU: string;
const DKK: string;
const TOP: string;
const INR: string;
const SDG: string;
const DOP: string;
const ZWL: string;
const UGX: string;
const SEK: string;
const LSL: string;
const MYR: string;
const TMT: string;
const OMR: string;
const BMD: string;
const KRW: string;
const HKD: string;
const KGS: string;
const BAM: string;
const NGN: string;
const ILS: string;
const MUR: string;
const RON: string;
const TND: string;
const AED: string;
const PAB: string;
const NPR: string;
const TTD: string;
const RWF: string;
const HTG: string;
const IDR: string;
const EUR: string;
const KYD: string;
const IRR: string;
const KPW: string;
const MKD: string;
const SRD: string;
const HNL: string;
const AZN: string;
const ERN: string;
const CZK: string;
const CVE: string;
const BIF: string;
const MAD: string;
const RUB: string;
const UAH: string;
const WST: string;
const PLN: string;
const ZAR: string;
const GEL: string;
const ZMW: string;
}
128 changes: 128 additions & 0 deletions types/dist/services/errors.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
/**
* Error raised for pre-api value validation
*
* @export
* @class ApiTimeout
* @extends {Error}
*/
export class ApiTimeout extends Error {
constructor();
http_code: number;
}
/**
* AuthenticationError
*
* @export
* @class AuthenticationError
* @extends {Error}
*/
export class AuthenticationError extends Error {
constructor(message: any);
http_code: number;
}
/**
* ActionNotAllowed
*
* @export
* @class ActionNotAllowed
* @extends {Error}
*/
export class ActionNotAllowed extends Error {
http_code: number;
}
/**
* UrlAlreadyRegistered
*
* @export
* @class UrlAlreadyRegistered
* @extends {Error}
*/
export class UrlAlreadyRegistered extends Error {
http_code: number;
}
/**
* NotFoundError
*
* @export
* @class NotFoundError
* @extends {Error}
*/
export class NotFoundError extends Error {
http_code: number;
}
/**
* UnprocessableError
*
* @export
* @class UnprocessableError
* @extends {Error}
*/
/**
* ValidationError
*
* @export
* @class ValidationError
* @extends {Error}
*/
export class ErrorWithBody extends Error {
constructor(http_code: any, error: any, message: any);
name: any;
http_code: any;
body: any;
}
/**
* ValidationError
*
* @export
* @class ValidationError
* @extends {Error}
*/
export class ValidationError extends Error {
constructor(error: any, message?: string);
}
/**
* TooManyRequestsError
*
* @export
* @class TooManyRequestsError
* @extends {Error}
*/
export class TooManyRequestsError extends Error {
constructor(error: any, message?: string);
}
/**
* BadGateway
*
* @export
* @class BadGateway
* @extends {Error}
*/
export class BadGateway extends Error {
constructor();
http_code: number;
}
/**
* ApiError
*
* @export
* @class HttpError
* @extends {Error}
*/
export class ApiError extends Error {
constructor(http_code: any, message: any);
http_code: any;
body: any;
}
/**
* ValueError
*
* @export
* @class ValueError
* @extends {Error}
*/
export class ValueError extends Error {
constructor(message: any);
body: any;
}
export function determineError(err: any): Promise<ApiTimeout | AuthenticationError | ActionNotAllowed | UrlAlreadyRegistered | NotFoundError | ValidationError | TooManyRequestsError | BadGateway | ApiError>;
//# sourceMappingURL=errors.d.ts.map
7 changes: 7 additions & 0 deletions types/dist/services/http.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export function get(fetch: any, path: any, config: any, auth: any): Promise<any>;
export function post(fetch: any, path: any, config: any, auth: any, request: any, idempotencyKey: any): Promise<any>;
export function patch(fetch: any, path: any, config: any, auth: any, request: any): Promise<any>;
export function put(fetch: any, path: any, config: any, auth: any, request: any): Promise<any>;
export function _delete(fetch: any, path: any, config: any, auth: any): Promise<any>;
export function createAccessToken(config: any, fetch: any, body: any): Promise<any>;
export default createAccessToken;
1 change: 1 addition & 0 deletions types/dist/services/utils.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export function buildQueryParams(path: any, params: any): any;
5 changes: 5 additions & 0 deletions types/dist/services/validation.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export function validatePayment(request: any): void;
export function setSourceOrDestinationType(request: any): any;
export function setTokenType(request: any): any;
export function setSourceType(request: any): any;
export function setInstrumentType(request: any): any;

0 comments on commit 7e7d527

Please sign in to comment.