@salesforce/lds-adapters-revenue-place-order 1.298.0 → 1.299.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -114,6 +114,13 @@ function validate$2(obj, path = 'PlaceOrderInputRepresentation') {
114
114
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
115
115
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
116
116
  }
117
+ if (obj.catalogRatesPref !== undefined) {
118
+ const obj_catalogRatesPref = obj.catalogRatesPref;
119
+ const path_catalogRatesPref = path + '.catalogRatesPref';
120
+ if (typeof obj_catalogRatesPref !== 'string') {
121
+ return new TypeError('Expected "string" but received "' + typeof obj_catalogRatesPref + '" (at "' + path_catalogRatesPref + '")');
122
+ }
123
+ }
117
124
  if (obj.configurationInput !== undefined) {
118
125
  const obj_configurationInput = obj.configurationInput;
119
126
  const path_configurationInput = path + '.configurationInput';
@@ -1,6 +1,6 @@
1
1
  import { ConfiguratorOptionsInputRepresentation as ConfiguratorOptionsInputRepresentation_ConfiguratorOptionsInputRepresentation } from './ConfiguratorOptionsInputRepresentation';
2
2
  import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
3
- export declare const VERSION = "4dfa3a3c6ebf40557cfab63b63832a41";
3
+ export declare const VERSION = "ec4f22cf797e83e32253f34a2341922f";
4
4
  export declare function validate(obj: any, path?: string): TypeError | null;
5
5
  export declare const RepresentationType: string;
6
6
  export declare function normalize(input: PlaceOrderInputRepresentation, existing: PlaceOrderInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): PlaceOrderInputRepresentationNormalized;
@@ -15,6 +15,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
15
15
  * (none)
16
16
  */
17
17
  export interface PlaceOrderInputRepresentationNormalized {
18
+ /** Catalog Rates Preference for this place order process. */
19
+ catalogRatesPref?: string;
18
20
  /** Configuration input to control the call to config API */
19
21
  configurationInput?: string;
20
22
  configurationOptions?: ConfiguratorOptionsInputRepresentation_ConfiguratorOptionsInputRepresentation;
@@ -30,6 +32,7 @@ export interface PlaceOrderInputRepresentationNormalized {
30
32
  * (none)
31
33
  */
32
34
  export interface PlaceOrderInputRepresentation {
35
+ catalogRatesPref?: string;
33
36
  configurationInput?: string;
34
37
  configurationOptions?: ConfiguratorOptionsInputRepresentation_ConfiguratorOptionsInputRepresentation;
35
38
  graph: {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-revenue-place-order",
3
- "version": "1.298.0",
3
+ "version": "1.299.0",
4
4
  "description": "Place Order Connect API ",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "dist/es/es2018/revenue-place-order.js",
@@ -41,12 +41,12 @@
41
41
  "test:unit": "jest"
42
42
  },
43
43
  "dependencies": {
44
- "@salesforce/lds-bindings": "^1.298.0",
44
+ "@salesforce/lds-bindings": "^1.299.0",
45
45
  "raml2html": "^7.8.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@salesforce/lds-compiler-plugins": "^1.298.0",
49
- "@salesforce/lds-karma": "^1.298.0"
48
+ "@salesforce/lds-compiler-plugins": "^1.299.0",
49
+ "@salesforce/lds-karma": "^1.299.0"
50
50
  },
51
51
  "nx": {
52
52
  "targets": {
package/sfdc/index.js CHANGED
@@ -123,6 +123,13 @@ function validate$2(obj, path = 'PlaceOrderInputRepresentation') {
123
123
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
124
124
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
125
125
  }
126
+ if (obj.catalogRatesPref !== undefined) {
127
+ const obj_catalogRatesPref = obj.catalogRatesPref;
128
+ const path_catalogRatesPref = path + '.catalogRatesPref';
129
+ if (typeof obj_catalogRatesPref !== 'string') {
130
+ return new TypeError('Expected "string" but received "' + typeof obj_catalogRatesPref + '" (at "' + path_catalogRatesPref + '")');
131
+ }
132
+ }
126
133
  if (obj.configurationInput !== undefined) {
127
134
  const obj_configurationInput = obj.configurationInput;
128
135
  const path_configurationInput = path + '.configurationInput';
@@ -389,4 +396,4 @@ withDefaultLuvio((luvio) => {
389
396
  });
390
397
 
391
398
  export { placeOrder };
392
- // version: 1.298.0-6f15dc1ec
399
+ // version: 1.299.0-161c48605a
package/src/raml/api.raml CHANGED
@@ -58,6 +58,13 @@ types:
58
58
  description: Configuration options to specify which config API functionality to opt in/out of
59
59
  type: ConfiguratorOptionsInputRepresentation
60
60
  required: false # TODO hand rolled. W-9275477
61
+ catalogRatesPref:
62
+ description: Catalog Rates Preference for this place order process.
63
+ type: string
64
+ enum:
65
+ - Fetch
66
+ - Skip
67
+ required: false # TODO hand rolled. W-9275477
61
68
  PlaceOrderErrorResponseRepresentation:
62
69
  description: Place Order Error response representation
63
70
  type: object
@@ -24,6 +24,7 @@ types:
24
24
  "inputRequest":
25
25
  {
26
26
  "pricingPref": "Force",
27
+ "catalogRatesPref": "Fetch",
27
28
  "configurationInput": "RunAndAllowErrors",
28
29
  "configuratorOptions":
29
30
  {
@@ -73,6 +74,10 @@ types:
73
74
  {
74
75
  "pricingPref": "Skip"
75
76
  }
77
+ - |
78
+ {
79
+ "catalogRatesPref": "skip"
80
+ }
76
81
  - |
77
82
  {
78
83
  "configurationInput": "Skip"