@funkit/api-base
Advanced tools
Comparing version 1.1.2 to 1.2.0
# @funkit/api-base | ||
## 1.2.0 | ||
### Minor Changes | ||
- 54b7db3: add fee breakdown API and refund state | ||
## 1.1.2 | ||
@@ -4,0 +10,0 @@ |
import { Address } from 'viem'; | ||
import { CheckoutDeactivateParams, CheckoutHistoryItem, CheckoutInitParams, CheckoutQuoteParams, CheckoutQuoteResponse, CheckoutTransferSponsorshipParams, CheckoutTransferSponsorshipResponse, RiskAssessmentParams, RiskAssessmentResponse } from './types'; | ||
import { CheckoutDeactivateParams, CheckoutHistoryItem, CheckoutInitParams, CheckoutQuoteParams, CheckoutQuoteResponse, CheckoutTransferDataParams, CheckoutTransferDataResponse, CheckoutTransferSponsorshipParams, CheckoutTransferSponsorshipResponse, RiskAssessmentParams, RiskAssessmentResponse } from './types'; | ||
/** | ||
@@ -77,1 +77,2 @@ * Gets a checkout quote (estimation). | ||
export declare function getRiskAssessmentForAddress({ address, apiKey, }: RiskAssessmentParams): Promise<RiskAssessmentResponse>; | ||
export declare function getCheckoutTransferData(_: CheckoutTransferDataParams): Promise<CheckoutTransferDataResponse>; |
@@ -37,2 +37,4 @@ /**===============* | ||
estCheckoutTimeMs: number; | ||
estMarketMakerGasUsd: number; | ||
lpFeePercentage: number; | ||
}; | ||
@@ -98,2 +100,3 @@ export type CheckoutQuoteResponse = CheckoutApiQuoteResponse & { | ||
clientMetadata: object; | ||
refundState?: 'REFUNDED' | 'PROCEEDED'; | ||
}; | ||
@@ -162,4 +165,5 @@ /**===============================* | ||
}; | ||
export type FunAddress = Address | `dydx${string}`; | ||
export type RiskAssessmentResponse = { | ||
address: Address | `dydx${string}`; | ||
address: FunAddress; | ||
risk: RiskValues; | ||
@@ -175,2 +179,10 @@ riskReason: string | null; | ||
}; | ||
export type CheckoutTransferDataParams = { | ||
userId?: string; | ||
recipientAddress: FunAddress; | ||
apiKey: string; | ||
}; | ||
export type CheckoutTransferDataResponse = { | ||
depositAddress: Address; | ||
}; | ||
export {}; |
@@ -1,4 +0,4 @@ | ||
import { GetMoonpayBuyQuoteForCreditCardRequest, GetMoonpayOffRampUrlRequest, GetMoonpayOnRampUrlRequest, GetMoonpayUrlSignatureRequest, MoonpayCurrency } from './types'; | ||
import { GetMoonpayBuyQuoteForCreditCardRequest, GetMoonpayBuyQuoteForCreditCardResponse, GetMoonpayOffRampUrlRequest, GetMoonpayOnRampUrlRequest, GetMoonpayUrlSignatureRequest, MoonpayCurrency } from './types'; | ||
export declare function getMoonpayUrlSignature({ url, isSandbox, apiKey, }: GetMoonpayUrlSignatureRequest): Promise<string>; | ||
export declare function getMoonpayBuyQuoteForCreditCard({ currencyCode, baseCurrencyCode, quoteCurrencyAmount, baseCurrencyAmount, extraFeePercentage, areFeesIncluded, apiKey, }: GetMoonpayBuyQuoteForCreditCardRequest): Promise<any>; | ||
export declare function getMoonpayBuyQuoteForCreditCard({ currencyCode, baseCurrencyCode, quoteCurrencyAmount, baseCurrencyAmount, extraFeePercentage, areFeesIncluded, apiKey, }: GetMoonpayBuyQuoteForCreditCardRequest): Promise<GetMoonpayBuyQuoteForCreditCardResponse>; | ||
/**======================= | ||
@@ -5,0 +5,0 @@ * POTENTIAL DEPRECATION |
@@ -48,1 +48,25 @@ export interface GetMoonpayUrlSignatureRequest { | ||
} | ||
export interface GetMoonpayBuyQuoteForCreditCardResponse { | ||
accountId: string; | ||
baseCurrencyAmount: number; | ||
baseCurrencyCode: string; | ||
quoteCurrencyCode: string; | ||
quoteCurrencyPrice: number; | ||
quoteCurrencyAmount: number; | ||
paymentMethod: 'credit_debit_card'; | ||
extraFeeAmount: number; | ||
feeAmount: number; | ||
networkFeeAmount: number; | ||
totalAmount: number; | ||
feeAmountDiscount: null; | ||
feeDiscountType: null; | ||
feeRuleId: string; | ||
extraFeePercentage: number; | ||
extraFeeAmountDiscount: null; | ||
networkFeeAmountNonRefundable: boolean; | ||
externalId: null; | ||
provider: string; | ||
quoteType: string; | ||
feeTierDiscount: null; | ||
errors?: unknown; | ||
} |
{ | ||
"name": "@funkit/api-base", | ||
"version": "1.1.2", | ||
"version": "1.2.0", | ||
"description": "Base API for Funkit", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
219057
2654
4
1
2