diff --git a/src/generatedTypes/v1.2.0.ts b/src/generatedTypes/v1.2.0.ts index d7e7406..e19b407 100644 --- a/src/generatedTypes/v1.2.0.ts +++ b/src/generatedTypes/v1.2.0.ts @@ -47,9 +47,9 @@ export type UTMKeywordTerm = string; */ export type SlippageBips = number; /** - * Whether the given slippageBips used is originated from a Smart quote suggestion + * Whether the given slippageBips used is originated from a Smart slippage suggestion */ -export type SmartQuote = boolean; +export type SmartSlippage = boolean; /** * Indicator of the order class. */ @@ -134,7 +134,7 @@ export interface UTMCodes { } export interface Quote { slippageBips: SlippageBips; - smartQuote?: SmartQuote; + smartSlippage?: SmartSlippage; } export interface OrderClass { orderClass: OrderClass1; diff --git a/src/schemas/quote/v1.1.0.json b/src/schemas/quote/v1.1.0.json index 8d77890..160808b 100644 --- a/src/schemas/quote/v1.1.0.json +++ b/src/schemas/quote/v1.1.0.json @@ -13,9 +13,9 @@ "description": "Slippage tolerance that was applied to the order to get the limit price. Expressed in Basis Points (BPS). One basis point is equivalent to 0.01% (1/100th of a percent)", "$ref": "../definitions.json#/definitions/bps" }, - "smartQuote": { - "title": "Smart Quote", - "description": "Whether the given slippageBips used is originated from a Smart quote suggestion", + "smartSlippage": { + "title": "Smart Slippage", + "description": "Whether the given slippageBips used is originated from a Smart slippage suggestion", "type": "boolean", "default": false } diff --git a/test/schema.spec.ts b/test/schema.spec.ts index 2bff2f0..fd8b959 100644 --- a/test/schema.spec.ts +++ b/test/schema.spec.ts @@ -964,7 +964,7 @@ describe('Schema v1.2.0', () => { test('With quote metadata v1.1.0', () => { const validQuote = { slippageBips: 5, - smartQuote: true, + smartSlippage: true, } const validDocument = { @@ -977,7 +977,7 @@ describe('Schema v1.2.0', () => { expect(validator(validDocument)).toBe(true) }) - test('With valid metadata (without smartQuote)', () => { + test('With valid metadata (without smartSlippage)', () => { const quote = { slippageBips: 5, } @@ -995,7 +995,7 @@ describe('Schema v1.2.0', () => { test('With invalid quote metadata (invalid slippageBips)', () => { const invalidQuote = { slippageBips: 'invalid', - smartQuote: true, + smartSlippage: true, } const invalidDocument = {