@cometh/checkout-sdk
Advanced tools
Comparing version 1.0.10 to 1.0.11
@@ -197,5 +197,6 @@ export declare const $LydiaSettings: { | ||
readonly price: { | ||
readonly description: "Price of the product"; | ||
readonly type: "number"; | ||
readonly example: 12.34; | ||
readonly description: "A positive integer representing how much to charge in the smallest currency.<br /> For example: <ul>\n <li>$12.34 would be <code>1234</code></li>\n <li>12.34 USDC (6 decimals) would be <code>12340000</code></li>\n <li>ETH amounts (18 decimals) would be stored in wei</li>\n</ul>"; | ||
readonly type: "string"; | ||
readonly pattern: "^[0-9]+$"; | ||
readonly example: "1234"; | ||
}; | ||
@@ -205,3 +206,3 @@ readonly currency: { | ||
readonly type: "string"; | ||
readonly enum: readonly ["EUR", "GBP"]; | ||
readonly enum: readonly ["EUR", "GBP", "USD", "INR"]; | ||
}; | ||
@@ -542,3 +543,4 @@ }; | ||
readonly type: "string"; | ||
readonly enum: readonly ["eur", "usd"]; | ||
readonly pattern: "^[a-z]{3}$"; | ||
readonly example: "eur"; | ||
}; | ||
@@ -545,0 +547,0 @@ }; |
@@ -200,5 +200,10 @@ // This file is auto-generated by @hey-api/openapi-ts | ||
price: { | ||
description: 'Price of the product', | ||
type: 'number', | ||
example: 12.34 | ||
description: `A positive integer representing how much to charge in the smallest currency.<br /> For example: <ul> | ||
<li>$12.34 would be <code>1234</code></li> | ||
<li>12.34 USDC (6 decimals) would be <code>12340000</code></li> | ||
<li>ETH amounts (18 decimals) would be stored in wei</li> | ||
</ul>`, | ||
type: 'string', | ||
pattern: '^[0-9]+$', | ||
example: '1234' | ||
}, | ||
@@ -208,3 +213,3 @@ currency: { | ||
type: 'string', | ||
enum: ['EUR', 'GBP'] | ||
enum: ['EUR', 'GBP', 'USD', 'INR'] | ||
} | ||
@@ -545,3 +550,4 @@ } | ||
type: 'string', | ||
enum: ['eur', 'usd'] | ||
pattern: '^[a-z]{3}$', | ||
example: 'eur' | ||
} | ||
@@ -548,0 +554,0 @@ } |
@@ -118,9 +118,13 @@ export type LydiaSettings = { | ||
/** | ||
* Price of the product | ||
* A positive integer representing how much to charge in the smallest currency.<br /> For example: <ul> | ||
* <li>$12.34 would be <code>1234</code></li> | ||
* <li>12.34 USDC (6 decimals) would be <code>12340000</code></li> | ||
* <li>ETH amounts (18 decimals) would be stored in wei</li> | ||
* </ul> | ||
*/ | ||
price: number; | ||
price: string; | ||
/** | ||
* Currency of product price | ||
*/ | ||
currency: 'EUR' | 'GBP'; | ||
currency: 'EUR' | 'GBP' | 'USD' | 'INR'; | ||
}; | ||
@@ -130,3 +134,3 @@ /** | ||
*/ | ||
export type currency = 'EUR' | 'GBP'; | ||
export type currency = 'EUR' | 'GBP' | 'USD' | 'INR'; | ||
/** | ||
@@ -138,2 +142,4 @@ * Currency of product price | ||
readonly GBP: "GBP"; | ||
readonly USD: "USD"; | ||
readonly INR: "INR"; | ||
}; | ||
@@ -312,3 +318,3 @@ /** | ||
*/ | ||
currency: 'eur' | 'usd'; | ||
currency: string; | ||
}; | ||
@@ -322,13 +328,2 @@ export type businessType = 'company' | 'government_entity' | 'individual' | 'non_profit'; | ||
}; | ||
/** | ||
* Currency | ||
*/ | ||
export type currency2 = 'eur' | 'usd'; | ||
/** | ||
* Currency | ||
*/ | ||
export declare const currency2: { | ||
readonly EUR: "eur"; | ||
readonly USD: "usd"; | ||
}; | ||
export type AdminWhitelistRequest = { | ||
@@ -335,0 +330,0 @@ /** |
@@ -19,3 +19,5 @@ // This file is auto-generated by @hey-api/openapi-ts | ||
EUR: 'EUR', | ||
GBP: 'GBP' | ||
GBP: 'GBP', | ||
USD: 'USD', | ||
INR: 'INR' | ||
}; | ||
@@ -44,9 +46,2 @@ /** | ||
/** | ||
* Currency | ||
*/ | ||
export const currency2 = { | ||
EUR: 'eur', | ||
USD: 'usd' | ||
}; | ||
/** | ||
* The status of the contract in the whitelist. | ||
@@ -53,0 +48,0 @@ */ |
{ | ||
"name": "@cometh/checkout-sdk", | ||
"version": "1.0.10", | ||
"version": "1.0.11", | ||
"description": "SDK to use Cometh Checkout API", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -213,5 +213,10 @@ // This file is auto-generated by @hey-api/openapi-ts | ||
price: { | ||
description: 'Price of the product', | ||
type: 'number', | ||
example: 12.34 | ||
description: `A positive integer representing how much to charge in the smallest currency.<br /> For example: <ul> | ||
<li>$12.34 would be <code>1234</code></li> | ||
<li>12.34 USDC (6 decimals) would be <code>12340000</code></li> | ||
<li>ETH amounts (18 decimals) would be stored in wei</li> | ||
</ul>`, | ||
type: 'string', | ||
pattern: '^[0-9]+$', | ||
example: '1234' | ||
}, | ||
@@ -221,3 +226,3 @@ currency: { | ||
type: 'string', | ||
enum: ['EUR', 'GBP'] | ||
enum: ['EUR', 'GBP', 'USD', 'INR'] | ||
} | ||
@@ -572,3 +577,4 @@ } | ||
type: 'string', | ||
enum: ['eur', 'usd'] | ||
pattern: '^[a-z]{3}$', | ||
example: 'eur' | ||
} | ||
@@ -575,0 +581,0 @@ } |
@@ -135,9 +135,13 @@ // This file is auto-generated by @hey-api/openapi-ts | ||
/** | ||
* Price of the product | ||
* A positive integer representing how much to charge in the smallest currency.<br /> For example: <ul> | ||
* <li>$12.34 would be <code>1234</code></li> | ||
* <li>12.34 USDC (6 decimals) would be <code>12340000</code></li> | ||
* <li>ETH amounts (18 decimals) would be stored in wei</li> | ||
* </ul> | ||
*/ | ||
price: number; | ||
price: string; | ||
/** | ||
* Currency of product price | ||
*/ | ||
currency: 'EUR' | 'GBP'; | ||
currency: 'EUR' | 'GBP' | 'USD' | 'INR'; | ||
}; | ||
@@ -148,3 +152,3 @@ | ||
*/ | ||
export type currency = 'EUR' | 'GBP'; | ||
export type currency = 'EUR' | 'GBP' | 'USD' | 'INR'; | ||
@@ -156,3 +160,5 @@ /** | ||
EUR: 'EUR', | ||
GBP: 'GBP' | ||
GBP: 'GBP', | ||
USD: 'USD', | ||
INR: 'INR' | ||
} as const; | ||
@@ -349,3 +355,3 @@ | ||
*/ | ||
currency: 'eur' | 'usd'; | ||
currency: string; | ||
}; | ||
@@ -362,15 +368,2 @@ | ||
/** | ||
* Currency | ||
*/ | ||
export type currency2 = 'eur' | 'usd'; | ||
/** | ||
* Currency | ||
*/ | ||
export const currency2 = { | ||
EUR: 'eur', | ||
USD: 'usd' | ||
} as const; | ||
export type AdminWhitelistRequest = { | ||
@@ -377,0 +370,0 @@ /** |
222045