@salesforce/lds-adapters-industries-loyalty-engine 0.1.0-dev1
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.
- package/LICENSE.txt +82 -0
- package/dist/es/es2018/industries-loyalty-engine.js +4193 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/adapters/createProgramProcessRule.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/adapters/executeRealtimeLoyaltyEngine.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/adapters/getJournalExplainabilityInfo.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/adapters/getProgramProcessRule.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/adapters/updateProgramProcessRule.d.ts +19 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +5 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +8 -0
- package/dist/es/es2018/types/src/generated/resources/deleteConnectLoyaltyProgramsProcessesByProcessNameAndProgramName.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/resources/deleteConnectLoyaltyProgramsProcessesRuleByProcessNameAndProgramNameAndRuleName.d.ts +13 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectLoyaltyProgramProcessTransactionJournalsByJournalId.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectLoyaltyProgramsProcessesByProcessNameAndProgramName.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectLoyaltyProgramsProcessesRuleByProcessNameAndProgramNameAndRuleName.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/resources/patchConnectLoyaltyProgramsProcessesByProcessNameAndProgramName.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/resources/patchConnectLoyaltyProgramsProcessesRuleByProcessNameAndProgramNameAndRuleName.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectBatchLoyaltyProgramsByProgramName.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectRealtimeLoyaltyProgramsByProgramName.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/resources/putConnectLoyaltyProgramsProcessesByProcessNameAndProgramName.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/resources/putConnectLoyaltyProgramsProcessesRuleByProcessNameAndProgramNameAndRuleName.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/types/ActionOutputRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/CreditPointsActionOutputRepresentation.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/DebitPointsActionOutputRepresentation.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/ExpressionRepresentation.d.ts +41 -0
- package/dist/es/es2018/types/src/generated/types/ExpressionValueRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/FormulaInputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/FormulaOutputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/FormulaSyntaxValidationInputRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/FormulaSyntaxValidationOutputRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/IssueVoucherActionOutputRepresentation.d.ts +50 -0
- package/dist/es/es2018/types/src/generated/types/LoyaltyEngineBatchOutputRepresentation.d.ts +44 -0
- package/dist/es/es2018/types/src/generated/types/LoyaltyEngineInputMapRepresentation.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/LoyaltyEngineInputRepresentation.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/LoyaltyEngineRealtimeOutputRepresentation.d.ts +52 -0
- package/dist/es/es2018/types/src/generated/types/LoyaltyEngineRunSettingsRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/LoyaltyExplainabilityOutputRepresentation.d.ts +36 -0
- package/dist/es/es2018/types/src/generated/types/LoyaltyProcessInput.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/LoyaltyProgramProcessRuleActionParameterRepresentation.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/LoyaltyProgramProcessRuleActionRepresentation.d.ts +39 -0
- package/dist/es/es2018/types/src/generated/types/LoyaltyProgramProcessRuleConditionFilterCriteriaRepresentation.d.ts +44 -0
- package/dist/es/es2018/types/src/generated/types/LoyaltyProgramProcessRuleConditionGroupRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/LoyaltyProgramProcessRuleConditionRepresentation.d.ts +39 -0
- package/dist/es/es2018/types/src/generated/types/LoyaltyProgramProcessRuleRepresentation.d.ts +58 -0
- package/dist/es/es2018/types/src/generated/types/LoyaltyProgramProcessRuleStepRepresentation.d.ts +40 -0
- package/dist/es/es2018/types/src/generated/types/MemberCurrencyChangeOutputRepresentation.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/MemberCurrencyChangeRepresentation.d.ts +40 -0
- package/dist/es/es2018/types/src/generated/types/MemberCurrencyRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/MemberPointsBalanceChangeRepresentation.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/MemberPointsBalanceRepresentation.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/PointsSummaryRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/ProcessResultRepresentation.d.ts +33 -0
- package/dist/es/es2018/types/src/generated/types/ProcessRuleActionInputRepresentation.d.ts +43 -0
- package/dist/es/es2018/types/src/generated/types/ProcessRuleActionParameterInputRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/ProcessRuleActionParameterRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/ProcessRuleActionRepresentation.d.ts +44 -0
- package/dist/es/es2018/types/src/generated/types/ProcessRuleConditionFilterCriteriaInputRepresentation.d.ts +40 -0
- package/dist/es/es2018/types/src/generated/types/ProcessRuleConditionFilterCriteriaRepresentation.d.ts +40 -0
- package/dist/es/es2018/types/src/generated/types/ProcessRuleConditionInputRepresentation.d.ts +40 -0
- package/dist/es/es2018/types/src/generated/types/ProcessRuleConditionRepresentation.d.ts +41 -0
- package/dist/es/es2018/types/src/generated/types/ProcessRuleDetailRepresentation.d.ts +77 -0
- package/dist/es/es2018/types/src/generated/types/ProcessRuleErrorRepresentation.d.ts +40 -0
- package/dist/es/es2018/types/src/generated/types/ProcessRuleInputRepresentation.d.ts +56 -0
- package/dist/es/es2018/types/src/generated/types/ProcessRuleStatusRepresentation.d.ts +48 -0
- package/dist/es/es2018/types/src/generated/types/ProcessRuleStepMappingInputRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/ProcessRuleStepMappingRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/ProgramProcessRule.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/SummaryRepresentation.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/TransactionJournalOutputRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/TransactionJournalRepresentation.d.ts +39 -0
- package/dist/es/es2018/types/src/generated/types/TransactionJournalResultRepresentation.d.ts +35 -0
- package/dist/es/es2018/types/src/generated/types/UpdateCumulativeUsageActionOutputRepresentation.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/VoucherOutputRepresentation.d.ts +52 -0
- package/dist/es/es2018/types/src/generated/types/VoucherResultRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
- package/package.json +74 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +4255 -0
- package/src/raml/api.raml +1332 -0
- package/src/raml/luvio.raml +56 -0
|
@@ -0,0 +1,1332 @@
|
|
|
1
|
+
#%RAML 1.0
|
|
2
|
+
securedBy:
|
|
3
|
+
- OAuth2
|
|
4
|
+
title: Salesforce Connect API
|
|
5
|
+
version: '56.0'
|
|
6
|
+
mediaType: application/json
|
|
7
|
+
protocols:
|
|
8
|
+
- https
|
|
9
|
+
baseUri: /services/data/v66.0
|
|
10
|
+
securitySchemes:
|
|
11
|
+
OAuth2:
|
|
12
|
+
type: OAuth 2.0
|
|
13
|
+
settings:
|
|
14
|
+
authorizationUri: https://example.com/oauth/authorize
|
|
15
|
+
accessTokenUri: ''
|
|
16
|
+
authorizationGrants:
|
|
17
|
+
- implicit
|
|
18
|
+
annotationTypes:
|
|
19
|
+
oas-readOnly:
|
|
20
|
+
type: boolean
|
|
21
|
+
allowedTargets: TypeDeclaration
|
|
22
|
+
oas-collectionFormat:
|
|
23
|
+
type: string
|
|
24
|
+
oas-body-name:
|
|
25
|
+
type: string
|
|
26
|
+
allowedTargets: TypeDeclaration
|
|
27
|
+
types:
|
|
28
|
+
ActionOutputRepresentation:
|
|
29
|
+
description: Action Output
|
|
30
|
+
type: object
|
|
31
|
+
discriminator: actionType
|
|
32
|
+
properties:
|
|
33
|
+
actionType:
|
|
34
|
+
description: Action Type.
|
|
35
|
+
type: string
|
|
36
|
+
enum:
|
|
37
|
+
- AssignParameterValues
|
|
38
|
+
- CreditPoints
|
|
39
|
+
- DebitPoints
|
|
40
|
+
- GetMemberAttributesValues
|
|
41
|
+
- GetMemberPointBalance
|
|
42
|
+
- GetMemberTier
|
|
43
|
+
- GetOutputsFromDecisionTable
|
|
44
|
+
- IncreaseUsageForCumulativePromotion
|
|
45
|
+
- IssueVoucher
|
|
46
|
+
- RunFlow
|
|
47
|
+
- UpdateCurrentValueForMemberAttribute
|
|
48
|
+
- UpdateUsageForCumulativePromotion
|
|
49
|
+
promotionId:
|
|
50
|
+
description: Promotion Id.
|
|
51
|
+
type: string
|
|
52
|
+
stepName:
|
|
53
|
+
description: Step Name.
|
|
54
|
+
type: string
|
|
55
|
+
CreditPointsActionOutputRepresentation:
|
|
56
|
+
description: Credit Points Action Output
|
|
57
|
+
type: ActionOutputRepresentation
|
|
58
|
+
properties:
|
|
59
|
+
changeInEscrowPointsBalance:
|
|
60
|
+
description: The change in the escrow points balance of the loyalty program
|
|
61
|
+
member associated with the transaction journal.
|
|
62
|
+
format: double
|
|
63
|
+
type: number
|
|
64
|
+
changeInPointsBalance:
|
|
65
|
+
description: The change in the points balance of the loyalty program member
|
|
66
|
+
associated with the transaction journal.
|
|
67
|
+
format: double
|
|
68
|
+
type: number
|
|
69
|
+
escrowPointsCreditDate:
|
|
70
|
+
description: Escrow Points Credit Date.
|
|
71
|
+
type: string
|
|
72
|
+
loyaltyProgramCurrencyName:
|
|
73
|
+
description: The name of the loyalty program currency for which points have
|
|
74
|
+
been debited from or credited to the loyalty program member associated with
|
|
75
|
+
the transaction journal.
|
|
76
|
+
type: string
|
|
77
|
+
DebitPointsActionOutputRepresentation:
|
|
78
|
+
description: Debit Points Action Output
|
|
79
|
+
type: ActionOutputRepresentation
|
|
80
|
+
properties:
|
|
81
|
+
changeInPointsBalance:
|
|
82
|
+
description: The change in the points balance of the loyalty program member
|
|
83
|
+
associated with the transaction journal.
|
|
84
|
+
format: double
|
|
85
|
+
type: number
|
|
86
|
+
loyaltyProgramCurrencyName:
|
|
87
|
+
description: The name of the loyalty program currency for which points have
|
|
88
|
+
been debited from or credited to the loyalty program member associated with
|
|
89
|
+
the transaction journal.
|
|
90
|
+
type: string
|
|
91
|
+
ExpressionRepresentation:
|
|
92
|
+
description: Wrapper for Expression.
|
|
93
|
+
type: object
|
|
94
|
+
properties:
|
|
95
|
+
expression:
|
|
96
|
+
description: Expression.
|
|
97
|
+
type: string
|
|
98
|
+
expressionValue:
|
|
99
|
+
description: expression Value
|
|
100
|
+
type: ExpressionValueRepresentation
|
|
101
|
+
parameterValues:
|
|
102
|
+
description: List of parameter values provided for an expression.
|
|
103
|
+
type: object
|
|
104
|
+
properties:
|
|
105
|
+
//:
|
|
106
|
+
type: ExpressionValueRepresentation
|
|
107
|
+
resolvedExpression:
|
|
108
|
+
description: The resolved fields and values of an expression.
|
|
109
|
+
type: string
|
|
110
|
+
ExpressionValueRepresentation:
|
|
111
|
+
description: Wrapper for Expression Value.
|
|
112
|
+
type: object
|
|
113
|
+
properties:
|
|
114
|
+
dataType:
|
|
115
|
+
description: DataType of expression.
|
|
116
|
+
type: string
|
|
117
|
+
enum:
|
|
118
|
+
- Boolean
|
|
119
|
+
- Date
|
|
120
|
+
- DateTime
|
|
121
|
+
- Number
|
|
122
|
+
- Sobject
|
|
123
|
+
- Text
|
|
124
|
+
value:
|
|
125
|
+
description: Value of Expression.
|
|
126
|
+
type: object
|
|
127
|
+
FormulaInputRepresentation:
|
|
128
|
+
description: Formula Input Representation
|
|
129
|
+
type: object
|
|
130
|
+
properties:
|
|
131
|
+
dataType:
|
|
132
|
+
description: required dataType of the expression
|
|
133
|
+
type: string
|
|
134
|
+
expression:
|
|
135
|
+
description: expression to validate
|
|
136
|
+
type: string
|
|
137
|
+
FormulaOutputRepresentation:
|
|
138
|
+
description: Formula Validation POST Response representation
|
|
139
|
+
type: object
|
|
140
|
+
properties:
|
|
141
|
+
errorMessage:
|
|
142
|
+
description: Represents the Error Message. Message stating the reason for
|
|
143
|
+
error, if any.
|
|
144
|
+
type: string | nil
|
|
145
|
+
isValid:
|
|
146
|
+
description: Returns TRUE or FALSE. Indicates whether the formula is valid
|
|
147
|
+
(true) or invalid (false).
|
|
148
|
+
type: boolean
|
|
149
|
+
FormulaSyntaxValidationInputRepresentation:
|
|
150
|
+
description: Formula Syntax Validation Input Representation
|
|
151
|
+
type: object
|
|
152
|
+
properties:
|
|
153
|
+
formulas:
|
|
154
|
+
description: List of expressions to validate
|
|
155
|
+
type: array
|
|
156
|
+
items:
|
|
157
|
+
type: object
|
|
158
|
+
FormulaSyntaxValidationOutputRepresentation:
|
|
159
|
+
description: Formula Syntax Validation POST Response representation
|
|
160
|
+
type: object
|
|
161
|
+
properties:
|
|
162
|
+
validationResponse:
|
|
163
|
+
description: Represents the validation response for the list of formulas.
|
|
164
|
+
type: array
|
|
165
|
+
items:
|
|
166
|
+
type: FormulaOutputRepresentation
|
|
167
|
+
IssueVoucherActionOutputRepresentation:
|
|
168
|
+
description: IssueVoucher Action Output
|
|
169
|
+
type: ActionOutputRepresentation
|
|
170
|
+
properties:
|
|
171
|
+
discountPercent:
|
|
172
|
+
description: Discount Percent
|
|
173
|
+
type: integer
|
|
174
|
+
effectiveDate:
|
|
175
|
+
description: Effective Date.
|
|
176
|
+
type: string
|
|
177
|
+
expiryDate:
|
|
178
|
+
description: Expiry Date.
|
|
179
|
+
type: string
|
|
180
|
+
faceValue:
|
|
181
|
+
description: Face Value.
|
|
182
|
+
format: double
|
|
183
|
+
type: number
|
|
184
|
+
productId:
|
|
185
|
+
description: Product Id.
|
|
186
|
+
type: string
|
|
187
|
+
voucherCode:
|
|
188
|
+
description: Voucher Code.
|
|
189
|
+
type: string
|
|
190
|
+
voucherDefinitionName:
|
|
191
|
+
description: Voucher Definition Name.
|
|
192
|
+
type: string
|
|
193
|
+
voucherId:
|
|
194
|
+
description: Voucher Id.
|
|
195
|
+
type: string
|
|
196
|
+
LoyaltyEngineBatchOutputRepresentation:
|
|
197
|
+
description: Wrapper for the Payload map
|
|
198
|
+
type: object
|
|
199
|
+
properties:
|
|
200
|
+
message:
|
|
201
|
+
description: Represents the Error Message. Message stating the reason for
|
|
202
|
+
error, if any.
|
|
203
|
+
type: string
|
|
204
|
+
status:
|
|
205
|
+
description: Returns TRUE or FALSE. Indicates whether the request succeeded
|
|
206
|
+
(true) or failed (false).
|
|
207
|
+
type: boolean
|
|
208
|
+
transactionJournalIds:
|
|
209
|
+
description: The IDs of the transaction journals that were created.
|
|
210
|
+
type: array
|
|
211
|
+
items:
|
|
212
|
+
type: string
|
|
213
|
+
LoyaltyEngineInputMapRepresentation:
|
|
214
|
+
description: Details of new Transaction Journal records that must be created.
|
|
215
|
+
type: object
|
|
216
|
+
properties:
|
|
217
|
+
processInput:
|
|
218
|
+
description: Details of new Transaction Journal records that must be created.
|
|
219
|
+
type: object
|
|
220
|
+
properties:
|
|
221
|
+
//:
|
|
222
|
+
type: object
|
|
223
|
+
LoyaltyEngineInputRepresentation:
|
|
224
|
+
description: Loyalty Engine Input Representation
|
|
225
|
+
type: object
|
|
226
|
+
properties:
|
|
227
|
+
runSetting:
|
|
228
|
+
description: Setting to simulate or explain the way in which the transaction
|
|
229
|
+
journals are processed by the loyalty program processes.
|
|
230
|
+
type: LoyaltyEngineRunSettingsRepresentation # TODO
|
|
231
|
+
transactionJournals:
|
|
232
|
+
description: Details of new Transaction Journal records that must be created.
|
|
233
|
+
type: array
|
|
234
|
+
items:
|
|
235
|
+
type: object
|
|
236
|
+
LoyaltyEngineRealtimeOutputRepresentation:
|
|
237
|
+
description: Wrapper for the Payload map
|
|
238
|
+
type: object
|
|
239
|
+
properties:
|
|
240
|
+
message:
|
|
241
|
+
description: Represents the Error Message. Message stating the reason for
|
|
242
|
+
error, if any.
|
|
243
|
+
type: string | nil
|
|
244
|
+
processResult:
|
|
245
|
+
description: List of the records created and updated.
|
|
246
|
+
type: ProcessResultRepresentation | nil
|
|
247
|
+
programName:
|
|
248
|
+
description: Program Names
|
|
249
|
+
type: string
|
|
250
|
+
simulationResults:
|
|
251
|
+
description: The results of the simulation.
|
|
252
|
+
type: TransactionJournalOutputRepresentation | nil
|
|
253
|
+
status:
|
|
254
|
+
description: Returns TRUE or FALSE. Indicates whether the request succeeded
|
|
255
|
+
(true) or failed (false).
|
|
256
|
+
type: boolean
|
|
257
|
+
LoyaltyEngineRunSettingsRepresentation:
|
|
258
|
+
description: LoyaltyEngine Run Settings Representation
|
|
259
|
+
type: object
|
|
260
|
+
properties:
|
|
261
|
+
isSimulation:
|
|
262
|
+
description: The mode of executing the transaction journals.
|
|
263
|
+
type: boolean
|
|
264
|
+
LoyaltyExplainabilityOutputRepresentation:
|
|
265
|
+
description: Wrapper for the explainability information
|
|
266
|
+
type: object
|
|
267
|
+
properties:
|
|
268
|
+
message:
|
|
269
|
+
description: Represents the Error Message. Message stating the reason for
|
|
270
|
+
error, if any.
|
|
271
|
+
type: string | nil
|
|
272
|
+
status:
|
|
273
|
+
description: Returns TRUE or FALSE. Indicates whether the request succeeded
|
|
274
|
+
(true) or failed (false).
|
|
275
|
+
type: boolean
|
|
276
|
+
transactionJournalResult:
|
|
277
|
+
description: The explainabilityInformation for the TJ.
|
|
278
|
+
type: TransactionJournalRepresentation | nil
|
|
279
|
+
# TODO: Hand Rolled 'LoyaltyProcessInput' W-9311618
|
|
280
|
+
LoyaltyProcessInput:
|
|
281
|
+
description: A wrapper around the LoyaltyEngineInputRepresentation
|
|
282
|
+
type: object
|
|
283
|
+
properties:
|
|
284
|
+
loyaltyProcessInput:
|
|
285
|
+
description: The Oas Body Name for request body representation
|
|
286
|
+
type: LoyaltyEngineInputRepresentation
|
|
287
|
+
LoyaltyProgramProcessRuleActionParameterRepresentation:
|
|
288
|
+
description: Loyalty Program Process Rule Action Parameter Representation
|
|
289
|
+
type: object
|
|
290
|
+
properties:
|
|
291
|
+
name:
|
|
292
|
+
description: rule action parameter name
|
|
293
|
+
type: string
|
|
294
|
+
operator:
|
|
295
|
+
description: rule action operator
|
|
296
|
+
type: string | nil
|
|
297
|
+
enum:
|
|
298
|
+
- Equals
|
|
299
|
+
sequenceNumber:
|
|
300
|
+
description: rule action sequence number
|
|
301
|
+
type: integer | nil
|
|
302
|
+
value:
|
|
303
|
+
description: rule action parameter value
|
|
304
|
+
type: ExpressionRepresentation | nil
|
|
305
|
+
LoyaltyProgramProcessRuleActionRepresentation:
|
|
306
|
+
description: Loyalty Program Process Rule Action Representation
|
|
307
|
+
type: LoyaltyProgramProcessRuleStepRepresentation
|
|
308
|
+
properties:
|
|
309
|
+
actionParameters:
|
|
310
|
+
description: rule action parameters
|
|
311
|
+
type: array
|
|
312
|
+
items:
|
|
313
|
+
type: LoyaltyProgramProcessRuleActionParameterRepresentation
|
|
314
|
+
actionType:
|
|
315
|
+
description: rule action type
|
|
316
|
+
type: string
|
|
317
|
+
enum:
|
|
318
|
+
- AssignParameterValues
|
|
319
|
+
- CreditPoints
|
|
320
|
+
- DebitPoints
|
|
321
|
+
- GetMemberAttributesValues
|
|
322
|
+
- GetMemberPointBalance
|
|
323
|
+
- GetMemberTier
|
|
324
|
+
- GetOutputsFromDecisionTable
|
|
325
|
+
- IncreaseUsageForCumulativePromotion
|
|
326
|
+
- IssueVoucher
|
|
327
|
+
- RunFlow
|
|
328
|
+
- UpdateCurrentValueForMemberAttribute
|
|
329
|
+
- UpdateUsageForCumulativePromotion
|
|
330
|
+
decisionTableName:
|
|
331
|
+
description: rule action's associated decision table
|
|
332
|
+
type: string | nil
|
|
333
|
+
flowDefinitionName:
|
|
334
|
+
description: rule action's associated flow definition
|
|
335
|
+
type: string | nil
|
|
336
|
+
LoyaltyProgramProcessRuleConditionFilterCriteriaRepresentation:
|
|
337
|
+
description: Loyalty Program Process Rule Condition Filter Criteria Representation
|
|
338
|
+
type: object
|
|
339
|
+
properties:
|
|
340
|
+
filterCriteriaResult:
|
|
341
|
+
description: Result
|
|
342
|
+
type: boolean
|
|
343
|
+
operator:
|
|
344
|
+
description: rule condition filter criteria operator
|
|
345
|
+
type: string
|
|
346
|
+
enum:
|
|
347
|
+
- Contains
|
|
348
|
+
- DoesNotContain
|
|
349
|
+
- Equals
|
|
350
|
+
- GreaterThan
|
|
351
|
+
- GreaterThanOrEquals
|
|
352
|
+
- IsNotNull
|
|
353
|
+
- IsNull
|
|
354
|
+
- LessThan
|
|
355
|
+
- LessThanOrEquals
|
|
356
|
+
- NotEquals
|
|
357
|
+
sequence:
|
|
358
|
+
description: rule condition filter criteria sequence
|
|
359
|
+
type: integer
|
|
360
|
+
sourceFieldName:
|
|
361
|
+
description: rule condition filter criteria source field name
|
|
362
|
+
type: ExpressionRepresentation
|
|
363
|
+
value:
|
|
364
|
+
description: rule condition filter criteria value
|
|
365
|
+
type: ExpressionRepresentation | nil
|
|
366
|
+
valueType:
|
|
367
|
+
description: rule condition filter criteria value type
|
|
368
|
+
type: string
|
|
369
|
+
enum:
|
|
370
|
+
- FixedValue
|
|
371
|
+
- Formula
|
|
372
|
+
- Lookup
|
|
373
|
+
- Parameter
|
|
374
|
+
LoyaltyProgramProcessRuleConditionGroupRepresentation:
|
|
375
|
+
description: Loyalty Program Process Rule Condition Group Representation
|
|
376
|
+
type: LoyaltyProgramProcessRuleStepRepresentation
|
|
377
|
+
properties:
|
|
378
|
+
childSteps:
|
|
379
|
+
description: The child steps of a condition or a condition group.
|
|
380
|
+
type: array
|
|
381
|
+
items:
|
|
382
|
+
type: LoyaltyProgramProcessRuleStepRepresentation
|
|
383
|
+
LoyaltyProgramProcessRuleConditionRepresentation:
|
|
384
|
+
description: Loyalty Program Process Rule Condition Representation
|
|
385
|
+
type: LoyaltyProgramProcessRuleStepRepresentation
|
|
386
|
+
properties:
|
|
387
|
+
childSteps:
|
|
388
|
+
description: The child steps of a condition or a condition group.
|
|
389
|
+
type: array
|
|
390
|
+
items:
|
|
391
|
+
type: LoyaltyProgramProcessRuleStepRepresentation
|
|
392
|
+
filterCondition:
|
|
393
|
+
description: rule condition's filter condition
|
|
394
|
+
type: string | nil
|
|
395
|
+
filterCriteria:
|
|
396
|
+
description: The filter criteria of a condition.
|
|
397
|
+
type: array
|
|
398
|
+
items:
|
|
399
|
+
type: LoyaltyProgramProcessRuleConditionFilterCriteriaRepresentation
|
|
400
|
+
isConditionMet:
|
|
401
|
+
description: Indicates whether the transaction journal meets this condition.
|
|
402
|
+
type: boolean
|
|
403
|
+
LoyaltyProgramProcessRuleRepresentation:
|
|
404
|
+
description: Wrapper for LoyaltyProgramProcessRule.
|
|
405
|
+
type: object
|
|
406
|
+
properties:
|
|
407
|
+
actionResultSummary:
|
|
408
|
+
description: The result provided by each action that has processed the transaction
|
|
409
|
+
journal.
|
|
410
|
+
type: array
|
|
411
|
+
items:
|
|
412
|
+
# TODO: Hand Rolled
|
|
413
|
+
type: ActionOutputRepresentation | DebitPointsActionOutputRepresentation | CreditPointsActionOutputRepresentation | IssueVoucherActionOutputRepresentation | UpdateCumulativeUsageActionOutputRepresentation
|
|
414
|
+
errorMessage:
|
|
415
|
+
description: Error Message
|
|
416
|
+
type: string
|
|
417
|
+
required: false # TODO
|
|
418
|
+
executionStatus:
|
|
419
|
+
description: Execution Status
|
|
420
|
+
type: string
|
|
421
|
+
enum:
|
|
422
|
+
- CriteriaNotMet
|
|
423
|
+
- Failed
|
|
424
|
+
- Success
|
|
425
|
+
executionSummary:
|
|
426
|
+
description: LoyaltyProgramProcessRule Summary
|
|
427
|
+
type: SummaryRepresentation
|
|
428
|
+
previousRuleName:
|
|
429
|
+
description: The name of the loyalty program process rule that has processed
|
|
430
|
+
the transaction journal before the current loyalty program process rule.
|
|
431
|
+
type: string
|
|
432
|
+
required: false # TODO: Hand Rolled
|
|
433
|
+
processRuleName:
|
|
434
|
+
description: The name of loyalty program process rule that has processed the
|
|
435
|
+
transaction journal.
|
|
436
|
+
type: string
|
|
437
|
+
promotionName:
|
|
438
|
+
description: The Promotion rule Name.
|
|
439
|
+
type: string
|
|
440
|
+
required: false # TODO: Hand Rolled
|
|
441
|
+
ruleSteps:
|
|
442
|
+
description: Rule Steps
|
|
443
|
+
type: array
|
|
444
|
+
items:
|
|
445
|
+
# TODO: Hand Rolled
|
|
446
|
+
type: LoyaltyProgramProcessRuleStepRepresentation | LoyaltyProgramProcessRuleActionRepresentation | LoyaltyProgramProcessRuleConditionGroupRepresentation | LoyaltyProgramProcessRuleConditionRepresentation
|
|
447
|
+
LoyaltyProgramProcessRuleStepRepresentation:
|
|
448
|
+
description: LoyaltyProgramProcessRule Step
|
|
449
|
+
type: object
|
|
450
|
+
discriminator: stepType
|
|
451
|
+
properties:
|
|
452
|
+
errorMessage:
|
|
453
|
+
description: Error Message
|
|
454
|
+
type: string | nil # TODO: Hand Rolled
|
|
455
|
+
required: false # TODO: Hand Rolled
|
|
456
|
+
sequenceNumber:
|
|
457
|
+
description: Sequence
|
|
458
|
+
type: integer
|
|
459
|
+
required: false # TODO: Hand Rolled
|
|
460
|
+
status:
|
|
461
|
+
description: Execution Status
|
|
462
|
+
type: string
|
|
463
|
+
enum:
|
|
464
|
+
- CriteriaNotMet
|
|
465
|
+
- Failed
|
|
466
|
+
- Success
|
|
467
|
+
stepName:
|
|
468
|
+
description: rule condition name
|
|
469
|
+
type: string
|
|
470
|
+
stepType:
|
|
471
|
+
description: StepType
|
|
472
|
+
type: string
|
|
473
|
+
enum:
|
|
474
|
+
- Action
|
|
475
|
+
- Condition
|
|
476
|
+
- ConditionGroup
|
|
477
|
+
- DefaultPath
|
|
478
|
+
MemberCurrencyChangeOutputRepresentation:
|
|
479
|
+
description: Wrapper for changes in member currencies.
|
|
480
|
+
type: object
|
|
481
|
+
properties:
|
|
482
|
+
changeInPointsBasedOnPromotion:
|
|
483
|
+
description: Details of the points that have been credited to or debited from
|
|
484
|
+
the member's points balance and escrow points balance for a member currency
|
|
485
|
+
based on a promotion that's awarded to the member.
|
|
486
|
+
type: array
|
|
487
|
+
items:
|
|
488
|
+
type: MemberCurrencyChangeRepresentation
|
|
489
|
+
changeInPointsBasedOnTransaction:
|
|
490
|
+
description: Details of the points that have been credited to or debited from
|
|
491
|
+
the member's points balance and escrow points balance for a member currency
|
|
492
|
+
based on the Transaction Journal record.
|
|
493
|
+
type: array
|
|
494
|
+
items:
|
|
495
|
+
type: MemberCurrencyChangeRepresentation
|
|
496
|
+
MemberCurrencyChangeRepresentation:
|
|
497
|
+
description: Wrapper for the member currency change.
|
|
498
|
+
type: object
|
|
499
|
+
properties:
|
|
500
|
+
changeInEscrowPointsBalance:
|
|
501
|
+
description: Change in escrow points balance.
|
|
502
|
+
format: double
|
|
503
|
+
type: number
|
|
504
|
+
changeInPointsBalance:
|
|
505
|
+
description: Change in Points balance.
|
|
506
|
+
format: double
|
|
507
|
+
type: number
|
|
508
|
+
currencyName:
|
|
509
|
+
description: The name of the member currency.
|
|
510
|
+
type: string
|
|
511
|
+
currencyType:
|
|
512
|
+
description: The type of member currency.
|
|
513
|
+
type: string
|
|
514
|
+
enum:
|
|
515
|
+
- NonQualifying
|
|
516
|
+
- Qualifying
|
|
517
|
+
promotionId:
|
|
518
|
+
description: ID of the promotion for which the member has been credited points.
|
|
519
|
+
type: string
|
|
520
|
+
MemberCurrencyRepresentation:
|
|
521
|
+
description: Wrapper for the member currency.
|
|
522
|
+
type: object
|
|
523
|
+
properties:
|
|
524
|
+
currencyName:
|
|
525
|
+
description: The name of the member currency.
|
|
526
|
+
type: string
|
|
527
|
+
currencyType:
|
|
528
|
+
description: The type of member currency.
|
|
529
|
+
type: string
|
|
530
|
+
enum:
|
|
531
|
+
- NonQualifying
|
|
532
|
+
- Qualifying
|
|
533
|
+
escrowPointsBalance:
|
|
534
|
+
description: Number of points the member has in escrow for a currency.
|
|
535
|
+
format: double
|
|
536
|
+
type: number
|
|
537
|
+
pointsBalance:
|
|
538
|
+
description: The member's points balance for a currency.
|
|
539
|
+
format: double
|
|
540
|
+
type: number
|
|
541
|
+
MemberPointsBalanceChangeRepresentation:
|
|
542
|
+
description: Wrapper for member currencies change.
|
|
543
|
+
type: object
|
|
544
|
+
properties:
|
|
545
|
+
changeInMemberCurrencies:
|
|
546
|
+
description: List of points balance changes for the member's currencies based
|
|
547
|
+
on the transaction journal and promotions.
|
|
548
|
+
type: array
|
|
549
|
+
items:
|
|
550
|
+
type: MemberCurrencyChangeRepresentation
|
|
551
|
+
memberShipNumber:
|
|
552
|
+
description: The membership number of the loyalty program member who is associated
|
|
553
|
+
with the transaction journal that's created.
|
|
554
|
+
type: string
|
|
555
|
+
MemberPointsBalanceRepresentation:
|
|
556
|
+
description: Wrapper for member currencies.
|
|
557
|
+
type: object
|
|
558
|
+
properties:
|
|
559
|
+
memberCurrencies:
|
|
560
|
+
description: List of currencies associated with the loyalty program member.
|
|
561
|
+
type: array
|
|
562
|
+
items:
|
|
563
|
+
type: MemberCurrencyRepresentation
|
|
564
|
+
memberShipNumber:
|
|
565
|
+
description: The membership number of the loyalty program member who is associated
|
|
566
|
+
with the transaction journal that's created.
|
|
567
|
+
type: string
|
|
568
|
+
PointsSummaryRepresentation:
|
|
569
|
+
description: Points Summary
|
|
570
|
+
type: object
|
|
571
|
+
properties:
|
|
572
|
+
changeInEscrowPointsBalance:
|
|
573
|
+
description: The change in the escrow points balance of the loyalty program
|
|
574
|
+
member associated with the transaction journal.
|
|
575
|
+
format: double
|
|
576
|
+
type: number
|
|
577
|
+
changeInPointsBalance:
|
|
578
|
+
description: Point Balance.
|
|
579
|
+
format: double
|
|
580
|
+
type: number
|
|
581
|
+
loyaltyProgramCurrencyName:
|
|
582
|
+
description: The name of the loyalty program currency for which points have
|
|
583
|
+
been debited from or credited to the loyalty program member associated with
|
|
584
|
+
the transaction journal.
|
|
585
|
+
type: string
|
|
586
|
+
loyaltyProgramCurrencyType:
|
|
587
|
+
description: The type of member currency.
|
|
588
|
+
type: string
|
|
589
|
+
enum:
|
|
590
|
+
- NonQualifying
|
|
591
|
+
- Qualifying
|
|
592
|
+
ProcessResultRepresentation:
|
|
593
|
+
description: Wrapper for the Realtime execution Process Result
|
|
594
|
+
type: object
|
|
595
|
+
properties:
|
|
596
|
+
memberPointsBalance:
|
|
597
|
+
description: List of member currencies for which points balance have changed
|
|
598
|
+
based on the Transaction Journal records that are created.
|
|
599
|
+
type: array
|
|
600
|
+
items:
|
|
601
|
+
type: MemberPointsBalanceRepresentation
|
|
602
|
+
transactionJournalResult:
|
|
603
|
+
description: Details of the Transaction Journal records that have been created.
|
|
604
|
+
type: array
|
|
605
|
+
items:
|
|
606
|
+
type: TransactionJournalResultRepresentation
|
|
607
|
+
ProcessRuleActionInputRepresentation:
|
|
608
|
+
description: Loyalty Engine Rule Action Input Representation
|
|
609
|
+
type: object
|
|
610
|
+
properties:
|
|
611
|
+
actionParameters:
|
|
612
|
+
description: rule action parameters
|
|
613
|
+
type: array
|
|
614
|
+
items:
|
|
615
|
+
type: object
|
|
616
|
+
actionType:
|
|
617
|
+
description: rule action type
|
|
618
|
+
type: string
|
|
619
|
+
enum:
|
|
620
|
+
- AssignParameterValues
|
|
621
|
+
- CreditPoints
|
|
622
|
+
- DebitPoints
|
|
623
|
+
- GetMemberAttributesValues
|
|
624
|
+
- GetMemberPointBalance
|
|
625
|
+
- GetMemberTier
|
|
626
|
+
- GetOutputsFromDecisionTable
|
|
627
|
+
- IncreaseUsageForCumulativePromotion
|
|
628
|
+
- IssueVoucher
|
|
629
|
+
- RunFlow
|
|
630
|
+
- UpdateCurrentValueForMemberAttribute
|
|
631
|
+
- UpdateUsageForCumulativePromotion
|
|
632
|
+
decisionTable:
|
|
633
|
+
description: rule action's associated decision table
|
|
634
|
+
type: string
|
|
635
|
+
decisionTableDatasetLink:
|
|
636
|
+
description: rule action's associated decision table dataset link
|
|
637
|
+
type: string
|
|
638
|
+
flowDefinition:
|
|
639
|
+
description: rule action's associated flow definition
|
|
640
|
+
type: string
|
|
641
|
+
name:
|
|
642
|
+
description: rule condition name
|
|
643
|
+
type: string
|
|
644
|
+
ProcessRuleActionParameterInputRepresentation:
|
|
645
|
+
description: Loyalty Engine Rule Action Parameter Input Representation
|
|
646
|
+
type: object
|
|
647
|
+
properties:
|
|
648
|
+
name:
|
|
649
|
+
description: action parameter name
|
|
650
|
+
type: string
|
|
651
|
+
operator:
|
|
652
|
+
description: action parameter value
|
|
653
|
+
type: string
|
|
654
|
+
enum:
|
|
655
|
+
- Equals
|
|
656
|
+
sequenceNumber:
|
|
657
|
+
description: action parameter value
|
|
658
|
+
type: integer
|
|
659
|
+
value:
|
|
660
|
+
description: action parameter value
|
|
661
|
+
type: string
|
|
662
|
+
ProcessRuleActionParameterRepresentation:
|
|
663
|
+
description: Loyalty Engine Rule Action Parameter Representation
|
|
664
|
+
type: object
|
|
665
|
+
properties:
|
|
666
|
+
name:
|
|
667
|
+
description: rule action parameter name
|
|
668
|
+
type: string
|
|
669
|
+
operator:
|
|
670
|
+
description: rule action operator
|
|
671
|
+
type: string | nil
|
|
672
|
+
required: false # TODO: Hand Rolled
|
|
673
|
+
enum:
|
|
674
|
+
- Equals
|
|
675
|
+
sequenceNumber:
|
|
676
|
+
description: rule action sequence number
|
|
677
|
+
type: integer | nil
|
|
678
|
+
required: false # TODO: Hand Rolled
|
|
679
|
+
value:
|
|
680
|
+
description: rule action parameter value
|
|
681
|
+
type: string | nil
|
|
682
|
+
ProcessRuleActionRepresentation:
|
|
683
|
+
description: Loyalty Engine Rule Action Representation
|
|
684
|
+
type: object
|
|
685
|
+
properties:
|
|
686
|
+
actionParameters:
|
|
687
|
+
description: rule action parameters
|
|
688
|
+
type: array
|
|
689
|
+
items:
|
|
690
|
+
type: ProcessRuleActionParameterRepresentation
|
|
691
|
+
actionType:
|
|
692
|
+
description: rule action type
|
|
693
|
+
type: string
|
|
694
|
+
enum:
|
|
695
|
+
- AssignParameterValues
|
|
696
|
+
- CreditPoints
|
|
697
|
+
- DebitPoints
|
|
698
|
+
- GetMemberAttributesValues
|
|
699
|
+
- GetMemberPointBalance
|
|
700
|
+
- GetMemberTier
|
|
701
|
+
- GetOutputsFromDecisionTable
|
|
702
|
+
- IncreaseUsageForCumulativePromotion
|
|
703
|
+
- IssueVoucher
|
|
704
|
+
- RunFlow
|
|
705
|
+
- UpdateCurrentValueForMemberAttribute
|
|
706
|
+
- UpdateUsageForCumulativePromotion
|
|
707
|
+
decisionTable:
|
|
708
|
+
description: rule action's associated decision table
|
|
709
|
+
type: string | nil
|
|
710
|
+
decisionTableDatasetLink:
|
|
711
|
+
description: rule action's associated decision table dataset link
|
|
712
|
+
type: string | nil
|
|
713
|
+
flowDefinition:
|
|
714
|
+
description: rule action's associated flow definition
|
|
715
|
+
type: string | nil
|
|
716
|
+
name:
|
|
717
|
+
description: rule action name
|
|
718
|
+
type: string
|
|
719
|
+
ProcessRuleConditionFilterCriteriaInputRepresentation:
|
|
720
|
+
description: Loyalty Engine Rule Condition Filter Criteria Input Representation
|
|
721
|
+
type: object
|
|
722
|
+
properties:
|
|
723
|
+
operator:
|
|
724
|
+
description: rule condition filter criteria operator
|
|
725
|
+
type: string
|
|
726
|
+
enum:
|
|
727
|
+
- Contains
|
|
728
|
+
- DoesNotContain
|
|
729
|
+
- Equals
|
|
730
|
+
- GreaterThan
|
|
731
|
+
- GreaterThanOrEquals
|
|
732
|
+
- IsNotNull
|
|
733
|
+
- IsNull
|
|
734
|
+
- LessThan
|
|
735
|
+
- LessThanOrEquals
|
|
736
|
+
- NotEquals
|
|
737
|
+
sequence:
|
|
738
|
+
description: rule condition filter criteria sequence
|
|
739
|
+
type: integer
|
|
740
|
+
sourceFieldName:
|
|
741
|
+
description: rule condition filter criteria source field name
|
|
742
|
+
type: string
|
|
743
|
+
value:
|
|
744
|
+
description: rule condition filter criteria value
|
|
745
|
+
type: string
|
|
746
|
+
valueType:
|
|
747
|
+
description: rule condition filter criteria value type
|
|
748
|
+
type: string
|
|
749
|
+
enum:
|
|
750
|
+
- FixedValue
|
|
751
|
+
- Formula
|
|
752
|
+
- Lookup
|
|
753
|
+
- Parameter
|
|
754
|
+
ProcessRuleConditionFilterCriteriaRepresentation:
|
|
755
|
+
description: Loyalty Engine Rule Condition Filter Criteria Representation
|
|
756
|
+
type: object
|
|
757
|
+
properties:
|
|
758
|
+
operator:
|
|
759
|
+
description: rule condition filter criteria operator
|
|
760
|
+
type: string
|
|
761
|
+
enum:
|
|
762
|
+
- Contains
|
|
763
|
+
- DoesNotContain
|
|
764
|
+
- Equals
|
|
765
|
+
- GreaterThan
|
|
766
|
+
- GreaterThanOrEquals
|
|
767
|
+
- IsNotNull
|
|
768
|
+
- IsNull
|
|
769
|
+
- LessThan
|
|
770
|
+
- LessThanOrEquals
|
|
771
|
+
- NotEquals
|
|
772
|
+
sequence:
|
|
773
|
+
description: rule condition filter criteria sequence
|
|
774
|
+
type: integer
|
|
775
|
+
sourceFieldName:
|
|
776
|
+
description: rule condition filter criteria source field name
|
|
777
|
+
type: string
|
|
778
|
+
value:
|
|
779
|
+
description: rule condition filter criteria value
|
|
780
|
+
type: string | nil
|
|
781
|
+
valueType:
|
|
782
|
+
description: rule condition filter criteria value type
|
|
783
|
+
type: string
|
|
784
|
+
enum:
|
|
785
|
+
- FixedValue
|
|
786
|
+
- Formula
|
|
787
|
+
- Lookup
|
|
788
|
+
- Parameter
|
|
789
|
+
ProcessRuleConditionInputRepresentation:
|
|
790
|
+
description: Loyalty Engine Rule Condition Input Representation
|
|
791
|
+
type: object
|
|
792
|
+
properties:
|
|
793
|
+
conditionType:
|
|
794
|
+
description: condition type
|
|
795
|
+
type: string
|
|
796
|
+
enum:
|
|
797
|
+
- Condition
|
|
798
|
+
- ConditionGroup
|
|
799
|
+
- DefaultPath
|
|
800
|
+
criteria:
|
|
801
|
+
description: rule condition filter criteria
|
|
802
|
+
type: array
|
|
803
|
+
items:
|
|
804
|
+
type: object
|
|
805
|
+
filterCondition:
|
|
806
|
+
description: rule condition filter condition
|
|
807
|
+
type: string
|
|
808
|
+
filterExpression:
|
|
809
|
+
description: rule condition filter expression
|
|
810
|
+
type: string
|
|
811
|
+
name:
|
|
812
|
+
description: rule condition name
|
|
813
|
+
type: string
|
|
814
|
+
ProcessRuleConditionRepresentation:
|
|
815
|
+
description: Loyalty Engine Rule Condition Representation
|
|
816
|
+
type: object
|
|
817
|
+
properties:
|
|
818
|
+
conditionType:
|
|
819
|
+
description: rule condition type
|
|
820
|
+
type: string
|
|
821
|
+
enum:
|
|
822
|
+
- Condition
|
|
823
|
+
- ConditionGroup
|
|
824
|
+
- DefaultPath
|
|
825
|
+
criteria:
|
|
826
|
+
description: rule condition filter criteria
|
|
827
|
+
type: array
|
|
828
|
+
items:
|
|
829
|
+
type: ProcessRuleConditionFilterCriteriaRepresentation
|
|
830
|
+
filterCondition:
|
|
831
|
+
description: rule condition's filter condition
|
|
832
|
+
type: string | nil
|
|
833
|
+
filterExpression:
|
|
834
|
+
description: rule condition's filter expression
|
|
835
|
+
type: string | nil
|
|
836
|
+
name:
|
|
837
|
+
description: rule condition name
|
|
838
|
+
type: string
|
|
839
|
+
ProcessRuleDetailRepresentation:
|
|
840
|
+
description: Loyalty Engine Rule GET Response Representation
|
|
841
|
+
type: object
|
|
842
|
+
properties:
|
|
843
|
+
actions:
|
|
844
|
+
description: rule actions
|
|
845
|
+
type: array
|
|
846
|
+
items:
|
|
847
|
+
type: ProcessRuleActionRepresentation
|
|
848
|
+
conditions:
|
|
849
|
+
description: rule conditions
|
|
850
|
+
type: array
|
|
851
|
+
items:
|
|
852
|
+
type: ProcessRuleConditionRepresentation
|
|
853
|
+
description:
|
|
854
|
+
description: Description
|
|
855
|
+
type: string | nil
|
|
856
|
+
endDate:
|
|
857
|
+
description: EndDate
|
|
858
|
+
type: string | nil
|
|
859
|
+
name:
|
|
860
|
+
description: Rule Name
|
|
861
|
+
type: string
|
|
862
|
+
nextRuleId:
|
|
863
|
+
description: Next Rule Id
|
|
864
|
+
type: string | nil
|
|
865
|
+
nextRuleName:
|
|
866
|
+
description: Next Rule Name
|
|
867
|
+
type: string | nil
|
|
868
|
+
previousRuleId:
|
|
869
|
+
description: Previous Rule Id
|
|
870
|
+
type: string | nil
|
|
871
|
+
previousRuleName:
|
|
872
|
+
description: Previous Rule Name
|
|
873
|
+
type: string | nil
|
|
874
|
+
processId:
|
|
875
|
+
description: Process Id
|
|
876
|
+
type: string | nil
|
|
877
|
+
processName:
|
|
878
|
+
description: Process Name
|
|
879
|
+
type: string | nil
|
|
880
|
+
promotionId:
|
|
881
|
+
description: Promotion Id
|
|
882
|
+
type: string | nil
|
|
883
|
+
promotionName:
|
|
884
|
+
description: Promotion Name
|
|
885
|
+
type: string | nil
|
|
886
|
+
startDate:
|
|
887
|
+
description: Start Date
|
|
888
|
+
type: string
|
|
889
|
+
status:
|
|
890
|
+
description: Status
|
|
891
|
+
type: string
|
|
892
|
+
enum:
|
|
893
|
+
- Active
|
|
894
|
+
- Draft
|
|
895
|
+
- Inactive
|
|
896
|
+
stepMappings:
|
|
897
|
+
description: rule step mappings
|
|
898
|
+
type: array
|
|
899
|
+
items:
|
|
900
|
+
type: ProcessRuleStepMappingRepresentation
|
|
901
|
+
ProcessRuleErrorRepresentation:
|
|
902
|
+
description: Loyalty Engine Rule POST Response Representation
|
|
903
|
+
type: object
|
|
904
|
+
properties:
|
|
905
|
+
criteriaSequence:
|
|
906
|
+
description: criteria sequence
|
|
907
|
+
type: integer | nil # TODO: Hand Rolled
|
|
908
|
+
error:
|
|
909
|
+
description: error message
|
|
910
|
+
type: string
|
|
911
|
+
fieldName:
|
|
912
|
+
description: field name
|
|
913
|
+
type: string | nil
|
|
914
|
+
resource:
|
|
915
|
+
description: rule resource type
|
|
916
|
+
type: string
|
|
917
|
+
enum:
|
|
918
|
+
- ProcessRule
|
|
919
|
+
- ProcessRuleAction
|
|
920
|
+
- ProcessRuleActionParameter
|
|
921
|
+
- ProcessRuleCondition
|
|
922
|
+
- ProcessRuleConditionFilterCriteria
|
|
923
|
+
- ProcessRuleStep
|
|
924
|
+
- ProcessRuleStepMapping
|
|
925
|
+
stepName:
|
|
926
|
+
description: associated step name
|
|
927
|
+
type: string | nil
|
|
928
|
+
ProcessRuleInputRepresentation:
|
|
929
|
+
description: Loyalty Engine Rule Input Representation
|
|
930
|
+
type: object
|
|
931
|
+
properties:
|
|
932
|
+
actions:
|
|
933
|
+
description: rule actions
|
|
934
|
+
type: array
|
|
935
|
+
items:
|
|
936
|
+
type: object
|
|
937
|
+
conditions:
|
|
938
|
+
description: rule conditions
|
|
939
|
+
type: array
|
|
940
|
+
items:
|
|
941
|
+
type: object
|
|
942
|
+
description:
|
|
943
|
+
description: Description
|
|
944
|
+
type: string
|
|
945
|
+
endDate:
|
|
946
|
+
description: EndDate
|
|
947
|
+
type: string | nil
|
|
948
|
+
required: false # TODO: Hand Rolled
|
|
949
|
+
name:
|
|
950
|
+
description: Rule Name
|
|
951
|
+
type: string
|
|
952
|
+
previousRuleId:
|
|
953
|
+
description: Previous Rule Id
|
|
954
|
+
type: string
|
|
955
|
+
promotionId:
|
|
956
|
+
description: Promotion Id
|
|
957
|
+
type: string
|
|
958
|
+
required: false # TODO: Hand Rolled
|
|
959
|
+
startDate:
|
|
960
|
+
description: Start Date
|
|
961
|
+
type: string
|
|
962
|
+
status:
|
|
963
|
+
description: Status
|
|
964
|
+
type: string
|
|
965
|
+
enum:
|
|
966
|
+
- Active
|
|
967
|
+
- Draft
|
|
968
|
+
- Inactive
|
|
969
|
+
stepMappings:
|
|
970
|
+
description: rule step mappings
|
|
971
|
+
type: array
|
|
972
|
+
items:
|
|
973
|
+
type: object
|
|
974
|
+
ProcessRuleStatusRepresentation:
|
|
975
|
+
description: Loyalty Engine Rule POST Response Representation
|
|
976
|
+
type: object
|
|
977
|
+
properties:
|
|
978
|
+
errors:
|
|
979
|
+
description: validation errors if found
|
|
980
|
+
type: array
|
|
981
|
+
items:
|
|
982
|
+
type: ProcessRuleErrorRepresentation
|
|
983
|
+
message:
|
|
984
|
+
description: general success/error message
|
|
985
|
+
type: string | nil
|
|
986
|
+
ruleId:
|
|
987
|
+
description: program process rule id
|
|
988
|
+
type: string | nil
|
|
989
|
+
status:
|
|
990
|
+
description: request response status
|
|
991
|
+
type: string | nil
|
|
992
|
+
enum:
|
|
993
|
+
- Failed
|
|
994
|
+
- Success
|
|
995
|
+
ProcessRuleStepMappingInputRepresentation:
|
|
996
|
+
description: Loyalty Engine Rule Step Mapping Input Representation
|
|
997
|
+
type: object
|
|
998
|
+
properties:
|
|
999
|
+
associatedStep:
|
|
1000
|
+
description: associate step name
|
|
1001
|
+
type: string
|
|
1002
|
+
parentStep:
|
|
1003
|
+
description: parent step name
|
|
1004
|
+
type: string
|
|
1005
|
+
sequence:
|
|
1006
|
+
description: step sequence number
|
|
1007
|
+
type: integer
|
|
1008
|
+
ProcessRuleStepMappingRepresentation:
|
|
1009
|
+
description: Loyalty Engine Rule Step Mapping Representation
|
|
1010
|
+
type: object
|
|
1011
|
+
properties:
|
|
1012
|
+
associatedStep:
|
|
1013
|
+
description: associated step name
|
|
1014
|
+
type: string
|
|
1015
|
+
parentStep:
|
|
1016
|
+
description: parent step name
|
|
1017
|
+
type: string | nil
|
|
1018
|
+
sequence:
|
|
1019
|
+
description: step sequence number
|
|
1020
|
+
type: integer
|
|
1021
|
+
# TODO Hand Rolled 'ProgramProcessRule' W-9311618
|
|
1022
|
+
ProgramProcessRule:
|
|
1023
|
+
description: A wrapper around the ProcessRuleInputRepresentation
|
|
1024
|
+
type: object
|
|
1025
|
+
properties:
|
|
1026
|
+
programProcessRule:
|
|
1027
|
+
description: The Oas Body Name for request body representation
|
|
1028
|
+
type: ProcessRuleInputRepresentation
|
|
1029
|
+
SummaryRepresentation:
|
|
1030
|
+
description: Process or Rule Summary
|
|
1031
|
+
type: object
|
|
1032
|
+
properties:
|
|
1033
|
+
pointsSummary:
|
|
1034
|
+
description: Point Summary.
|
|
1035
|
+
type: array
|
|
1036
|
+
items:
|
|
1037
|
+
type: PointsSummaryRepresentation
|
|
1038
|
+
vouchersIssuedCount:
|
|
1039
|
+
description: The number of vouchers that have been issued to the loyalty program
|
|
1040
|
+
member associated with the transaction journal..
|
|
1041
|
+
type: integer
|
|
1042
|
+
TransactionJournalOutputRepresentation:
|
|
1043
|
+
description: Wrapper for the Transaction Journal Simulation Result
|
|
1044
|
+
type: object
|
|
1045
|
+
properties:
|
|
1046
|
+
transactionJournals:
|
|
1047
|
+
description: Details of the Transaction Journal records that have been created.
|
|
1048
|
+
type: array
|
|
1049
|
+
items:
|
|
1050
|
+
type: TransactionJournalRepresentation
|
|
1051
|
+
TransactionJournalRepresentation:
|
|
1052
|
+
description: Wrapper for the Transaction Journal
|
|
1053
|
+
type: object
|
|
1054
|
+
properties:
|
|
1055
|
+
executionSummary:
|
|
1056
|
+
description: The summary of how loyalty program process rules have processed
|
|
1057
|
+
transaction journal.
|
|
1058
|
+
type: SummaryRepresentation
|
|
1059
|
+
processId:
|
|
1060
|
+
description: The ID of the loyalty program process that has processed the
|
|
1061
|
+
transaction journal.
|
|
1062
|
+
type: string
|
|
1063
|
+
processName:
|
|
1064
|
+
description: The name of the loyalty program process that has processed the
|
|
1065
|
+
transaction journal.
|
|
1066
|
+
type: string
|
|
1067
|
+
processRules:
|
|
1068
|
+
description: List of loyalty program process rules that have processed the
|
|
1069
|
+
transaction journal.
|
|
1070
|
+
type: array
|
|
1071
|
+
items:
|
|
1072
|
+
type: LoyaltyProgramProcessRuleRepresentation
|
|
1073
|
+
TransactionJournalResultRepresentation:
|
|
1074
|
+
description: Wrapper for the Transaction Journal Result
|
|
1075
|
+
type: object
|
|
1076
|
+
properties:
|
|
1077
|
+
changeInMemberPoints:
|
|
1078
|
+
description: Details of points that have been credited to or debited from
|
|
1079
|
+
member's points balance and escrow points balance for all the currencies
|
|
1080
|
+
associated with the member.
|
|
1081
|
+
type: array
|
|
1082
|
+
items:
|
|
1083
|
+
type: MemberPointsBalanceChangeRepresentation
|
|
1084
|
+
id:
|
|
1085
|
+
description: Details of the Transaction Journal records that have been created.
|
|
1086
|
+
type: string
|
|
1087
|
+
voucherResult:
|
|
1088
|
+
description: List of the vouchers that have been issued or redeemed.
|
|
1089
|
+
type: VoucherResultRepresentation
|
|
1090
|
+
UpdateCumulativeUsageActionOutputRepresentation:
|
|
1091
|
+
description: Update Cumulative Usage Action Output
|
|
1092
|
+
type: ActionOutputRepresentation
|
|
1093
|
+
properties:
|
|
1094
|
+
promotion:
|
|
1095
|
+
description: The name of promotion for which the member's cumulative usage
|
|
1096
|
+
is updated or reset.
|
|
1097
|
+
type: string
|
|
1098
|
+
updatedCumulativePromotionUsage:
|
|
1099
|
+
description: The updated value of the loyalty program member's usage towards
|
|
1100
|
+
the cumulative promotion.
|
|
1101
|
+
type: integer
|
|
1102
|
+
VoucherOutputRepresentation:
|
|
1103
|
+
description: Wrapper for the Vouchers
|
|
1104
|
+
type: object
|
|
1105
|
+
properties:
|
|
1106
|
+
discountPercent:
|
|
1107
|
+
description: Discount Percent.
|
|
1108
|
+
type: integer
|
|
1109
|
+
effectiveDate:
|
|
1110
|
+
description: Effective Date.
|
|
1111
|
+
type: string
|
|
1112
|
+
expirationDate:
|
|
1113
|
+
description: Expiration Date.
|
|
1114
|
+
type: string
|
|
1115
|
+
faceValue:
|
|
1116
|
+
description: Face Value.
|
|
1117
|
+
format: double
|
|
1118
|
+
type: number
|
|
1119
|
+
productId:
|
|
1120
|
+
description: Id of the product in the Voucher issued.
|
|
1121
|
+
type: string
|
|
1122
|
+
promotionId:
|
|
1123
|
+
description: ID of the promotion for which the member has been issued Vouchers.
|
|
1124
|
+
type: string
|
|
1125
|
+
voucherCode:
|
|
1126
|
+
description: Voucher Code.
|
|
1127
|
+
type: string
|
|
1128
|
+
voucherDefinitionName:
|
|
1129
|
+
description: Voucher Definition Name.
|
|
1130
|
+
type: string
|
|
1131
|
+
voucherId:
|
|
1132
|
+
description: ID of the Voucher issued.
|
|
1133
|
+
type: string
|
|
1134
|
+
VoucherResultRepresentation:
|
|
1135
|
+
description: Wrapper for the Vouchers Result
|
|
1136
|
+
type: object
|
|
1137
|
+
properties:
|
|
1138
|
+
vouchersIssued:
|
|
1139
|
+
description: List of the vouchers that are issued to the associated loyalty
|
|
1140
|
+
program member. This output is provided when the process contains an Issue
|
|
1141
|
+
Voucher action.
|
|
1142
|
+
type: array
|
|
1143
|
+
items:
|
|
1144
|
+
type: VoucherOutputRepresentation
|
|
1145
|
+
/connect:
|
|
1146
|
+
/batch/loyalty/programs/{programName}:
|
|
1147
|
+
post:
|
|
1148
|
+
description: Http post method that executes the process for the given program
|
|
1149
|
+
and the process
|
|
1150
|
+
responses:
|
|
1151
|
+
'200':
|
|
1152
|
+
description: Success
|
|
1153
|
+
body:
|
|
1154
|
+
application/json:
|
|
1155
|
+
type: LoyaltyEngineBatchOutputRepresentation
|
|
1156
|
+
body:
|
|
1157
|
+
application/json:
|
|
1158
|
+
type: LoyaltyEngineInputRepresentation
|
|
1159
|
+
# TODO: Hand-rolled W-8334626 due to issue #22 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAxyxIv)
|
|
1160
|
+
# required: false
|
|
1161
|
+
(oas-body-name): loyaltyProcessInput
|
|
1162
|
+
uriParameters:
|
|
1163
|
+
programName:
|
|
1164
|
+
type: string
|
|
1165
|
+
required: true
|
|
1166
|
+
# TODO: Hand-rolled
|
|
1167
|
+
# /formula/loyalty/process/{processId}:
|
|
1168
|
+
# post:
|
|
1169
|
+
# description: http post method for Formula Syntax validation for given processId
|
|
1170
|
+
# responses:
|
|
1171
|
+
# '200':
|
|
1172
|
+
# description: Success
|
|
1173
|
+
# body:
|
|
1174
|
+
# application/json:
|
|
1175
|
+
# type: FormulaSyntaxValidationOutputRepresentation
|
|
1176
|
+
# body:
|
|
1177
|
+
# application/json:
|
|
1178
|
+
# type: FormulaSyntaxValidationInputRepresentation
|
|
1179
|
+
# # TODO: Hand-rolled W-8334626 due to issue #22 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAxyxIv)
|
|
1180
|
+
# # required: false
|
|
1181
|
+
# (oas-body-name): formulas
|
|
1182
|
+
# uriParameters:
|
|
1183
|
+
# processId:
|
|
1184
|
+
# type: string
|
|
1185
|
+
# required: true
|
|
1186
|
+
/loyalty:
|
|
1187
|
+
/program-process/transaction-journals/{journalId}:
|
|
1188
|
+
get:
|
|
1189
|
+
description: http get method for Loyalty Engine Rule for given process and
|
|
1190
|
+
program
|
|
1191
|
+
responses:
|
|
1192
|
+
'200':
|
|
1193
|
+
description: Success
|
|
1194
|
+
body:
|
|
1195
|
+
application/json:
|
|
1196
|
+
type: LoyaltyExplainabilityOutputRepresentation
|
|
1197
|
+
uriParameters:
|
|
1198
|
+
journalId:
|
|
1199
|
+
type: string
|
|
1200
|
+
required: true
|
|
1201
|
+
/programs/{programName}/processes/{processName}:
|
|
1202
|
+
delete:
|
|
1203
|
+
description: http post method that upsert Loyalty Engine Rule for given process
|
|
1204
|
+
and program
|
|
1205
|
+
responses:
|
|
1206
|
+
'200':
|
|
1207
|
+
description: Success
|
|
1208
|
+
get:
|
|
1209
|
+
description: http get method for Loyalty Engine Rule for given process and program
|
|
1210
|
+
responses:
|
|
1211
|
+
'200':
|
|
1212
|
+
description: Success
|
|
1213
|
+
body:
|
|
1214
|
+
application/json:
|
|
1215
|
+
type: ProcessRuleDetailRepresentation
|
|
1216
|
+
patch:
|
|
1217
|
+
description: http post method that upsert Loyalty Engine Rule for given process
|
|
1218
|
+
and program
|
|
1219
|
+
responses:
|
|
1220
|
+
'200':
|
|
1221
|
+
description: Success
|
|
1222
|
+
body:
|
|
1223
|
+
application/json:
|
|
1224
|
+
type: ProcessRuleStatusRepresentation
|
|
1225
|
+
body:
|
|
1226
|
+
application/json:
|
|
1227
|
+
# TODO: Hand rolled 'type' to provide a wrapper that uses the oas-body-name due to issue #28 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAxyxIv)
|
|
1228
|
+
type: ProgramProcessRule
|
|
1229
|
+
# TODO: Hand-rolled W-8334626 due to issue #22 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAxyxIv)
|
|
1230
|
+
#required: false
|
|
1231
|
+
(oas-body-name): programProcessRule
|
|
1232
|
+
put:
|
|
1233
|
+
description: http post method that upsert Loyalty Engine Rule for given process
|
|
1234
|
+
and program
|
|
1235
|
+
responses:
|
|
1236
|
+
'200':
|
|
1237
|
+
description: Success
|
|
1238
|
+
body:
|
|
1239
|
+
application/json:
|
|
1240
|
+
type: ProcessRuleStatusRepresentation
|
|
1241
|
+
body:
|
|
1242
|
+
application/json:
|
|
1243
|
+
# TODO: Hand rolled 'type' to provide a wrapper that uses the oas-body-name due to issue #28 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAxyxIv)
|
|
1244
|
+
type: ProgramProcessRule
|
|
1245
|
+
# TODO: Hand-rolled W-8334626 due to issue #22 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAxyxIv)
|
|
1246
|
+
#required: false
|
|
1247
|
+
(oas-body-name): programProcessRule
|
|
1248
|
+
uriParameters:
|
|
1249
|
+
processName:
|
|
1250
|
+
type: string
|
|
1251
|
+
required: true
|
|
1252
|
+
programName:
|
|
1253
|
+
type: string
|
|
1254
|
+
required: true
|
|
1255
|
+
/programs/{programName}/processes/{processName}/rule/{ruleName}:
|
|
1256
|
+
delete:
|
|
1257
|
+
description: http post method that upsert Loyalty Engine Rule for given process
|
|
1258
|
+
and program
|
|
1259
|
+
responses:
|
|
1260
|
+
'200':
|
|
1261
|
+
description: Success
|
|
1262
|
+
get:
|
|
1263
|
+
description: http get method for Loyalty Engine Rule for given process and program
|
|
1264
|
+
responses:
|
|
1265
|
+
'200':
|
|
1266
|
+
description: Success
|
|
1267
|
+
body:
|
|
1268
|
+
application/json:
|
|
1269
|
+
type: ProcessRuleDetailRepresentation
|
|
1270
|
+
patch:
|
|
1271
|
+
description: http post method that upsert Loyalty Engine Rule for given process
|
|
1272
|
+
and program
|
|
1273
|
+
responses:
|
|
1274
|
+
'200':
|
|
1275
|
+
description: Success
|
|
1276
|
+
body:
|
|
1277
|
+
application/json:
|
|
1278
|
+
type: ProcessRuleStatusRepresentation
|
|
1279
|
+
body:
|
|
1280
|
+
application/json:
|
|
1281
|
+
# TODO: Hand rolled 'type' to provide a wrapper that uses the oas-body-name due to issue #28 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAxyxIv)
|
|
1282
|
+
type: ProgramProcessRule
|
|
1283
|
+
# TODO: Hand-rolled W-8334626 due to issue #22 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAxyxIv)
|
|
1284
|
+
#required: false
|
|
1285
|
+
(oas-body-name): programProcessRule
|
|
1286
|
+
put:
|
|
1287
|
+
description: http post method that upsert Loyalty Engine Rule for given process
|
|
1288
|
+
and program
|
|
1289
|
+
responses:
|
|
1290
|
+
'200':
|
|
1291
|
+
description: Success
|
|
1292
|
+
body:
|
|
1293
|
+
application/json:
|
|
1294
|
+
type: ProcessRuleStatusRepresentation
|
|
1295
|
+
body:
|
|
1296
|
+
application/json:
|
|
1297
|
+
# TODO: Hand rolled 'type' to provide a wrapper that uses the oas-body-name due to issue #28 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAxyxIv)
|
|
1298
|
+
type: ProgramProcessRule
|
|
1299
|
+
# TODO: Hand-rolled W-8334626 due to issue #22 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAxyxIv)
|
|
1300
|
+
#required: false
|
|
1301
|
+
(oas-body-name): programProcessRule
|
|
1302
|
+
uriParameters:
|
|
1303
|
+
processName:
|
|
1304
|
+
type: string
|
|
1305
|
+
required: true
|
|
1306
|
+
programName:
|
|
1307
|
+
type: string
|
|
1308
|
+
required: true
|
|
1309
|
+
ruleName:
|
|
1310
|
+
type: string
|
|
1311
|
+
required: true
|
|
1312
|
+
/realtime/loyalty/programs/{programName}:
|
|
1313
|
+
post:
|
|
1314
|
+
description: Http post method that executes the process for the given program
|
|
1315
|
+
and the process
|
|
1316
|
+
responses:
|
|
1317
|
+
'200':
|
|
1318
|
+
description: Success
|
|
1319
|
+
body:
|
|
1320
|
+
application/json:
|
|
1321
|
+
type: LoyaltyEngineRealtimeOutputRepresentation
|
|
1322
|
+
body:
|
|
1323
|
+
application/json:
|
|
1324
|
+
# TODO: Hand rolled 'type' to provide a wrapper that uses the oas-body-name due to issue #28 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAxyxIv)
|
|
1325
|
+
type: LoyaltyProcessInput
|
|
1326
|
+
# TODO: Hand-rolled W-8334626 due to issue #22 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAxyxIv)
|
|
1327
|
+
# required: false
|
|
1328
|
+
(oas-body-name): loyaltyProcessInput
|
|
1329
|
+
uriParameters:
|
|
1330
|
+
programName:
|
|
1331
|
+
type: string
|
|
1332
|
+
required: true
|