services_pricepromo.xml
24.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/services.xsd">
<description>Product Component Services</description>
<vendor>OFBiz</vendor>
<version>1.0</version>
<!-- Product Price Services -->
<service name="calculateProductPrice" engine="java"
location="org.ofbiz.product.price.PriceServices" invoke="calculateProductPrice" auth="false" use-transaction="false">
<description>Calculate a Product's Price from ProductPriceRules</description>
<attribute name="product" type="org.ofbiz.entity.GenericValue" mode="IN" optional="false"/>
<attribute name="prodCatalogId" type="String" mode="IN" optional="true"/>
<attribute name="webSiteId" type="String" mode="IN" optional="true"/>
<attribute name="partyId" type="String" mode="IN" optional="true"/>
<attribute name="productStoreId" type="String" mode="IN" optional="true"/>
<attribute name="productStoreGroupId" type="String" mode="IN" optional="true"/>
<attribute name="agreementId" type="String" mode="IN" optional="true"/>
<attribute name="quantity" type="BigDecimal" mode="IN" optional="true"/>
<attribute name="amount" type="BigDecimal" mode="IN" optional="true"/>
<attribute name="currencyUomId" type="String" mode="IN" optional="true"/>
<attribute name="currencyUomIdTo" type="String" mode="IN" optional="true"/>
<attribute name="productPricePurposeId" type="String" mode="IN" optional="true"><!-- defaults to PURCHASE --></attribute>
<attribute name="termUomId" type="String" mode="IN" optional="true"><!-- if specified ProductPrice records will be filtered by this, ensures for purposes like recurring prices that only the recurring term desired is taken into consideration --></attribute>
<attribute name="autoUserLogin" type="org.ofbiz.entity.GenericValue" mode="IN" optional="true"/>
<attribute name="checkIncludeVat" type="String" mode="IN" optional="true"><!-- can be Y or N, defaults to N --></attribute>
<attribute name="findAllQuantityPrices" type="String" mode="IN" optional="true"><!-- can be Y or N, defaults to N; see the allQuantityPrices attribute for more details --></attribute>
<attribute name="surveyResponseId" type="String" mode="IN" optional="true"/>
<attribute name="customAttributes" type="Map" mode="IN" optional="true"/>
<attribute name="basePrice" type="BigDecimal" mode="OUT" optional="false"><!-- will only be different from price if there is a display price adjustment, for example: checkIncludeVat=Y and a VAT amount was found --></attribute>
<attribute name="price" type="BigDecimal" mode="OUT" optional="false"/>
<attribute name="listPrice" type="BigDecimal" mode="OUT" optional="true"/>
<attribute name="defaultPrice" type="BigDecimal" mode="OUT" optional="true"/>
<attribute name="competitivePrice" type="BigDecimal" mode="OUT" optional="true"/>
<attribute name="averageCost" type="BigDecimal" mode="OUT" optional="true"/>
<attribute name="promoPrice" type="BigDecimal" mode="OUT" optional="true"/>
<attribute name="specialPromoPrice" type="BigDecimal" mode="OUT" optional="true"><!-- used for the Product [Special Promo] Type ProductPromo Action --></attribute>
<attribute name="isSale" type="Boolean" mode="OUT" optional="false"/>
<attribute name="validPriceFound" type="Boolean" mode="OUT" optional="false"/>
<attribute name="currencyUsed" type="String" mode="OUT" optional="false"/>
<attribute name="orderItemPriceInfos" type="java.util.List" mode="OUT" optional="false"/>
<attribute name="allQuantityPrices" type="java.util.List" mode="OUT" optional="true">
<!-- Populated when findAllQuantityPrices is Y;
is a List of Map where each Map has all other return attributes normally created for a price calculation;
each Map in the List will also contain a field called "quantityProductPriceRule" with the GenericValue object representing the ProductPriceRule with the quantity condition that the List entry is based on
-->
</attribute>
<attribute name="optimizeForLargeRuleSet" type="String" mode="IN" optional="true"/>
</service>
<service name="createProductPriceRule" default-entity-name="ProductPriceRule" engine="simple"
location="component://product/script/org/ofbiz/product/price/PriceServices.xml" invoke="createProductPriceRule" auth="true">
<description>Create an ProductPriceRule</description>
<auto-attributes include="pk" mode="OUT" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
<override name="ruleName" optional="false"/>
</service>
<service name="updateProductPriceRule" default-entity-name="ProductPriceRule" engine="simple"
location="component://product/script/org/ofbiz/product/price/PriceServices.xml" invoke="updateProductPriceRule" auth="true">
<description>Update an ProductPriceRule</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<service name="deleteProductPriceRule" default-entity-name="ProductPriceRule" engine="simple"
location="component://product/script/org/ofbiz/product/price/PriceServices.xml" invoke="deleteProductPriceRule" auth="true">
<description>Delete an ProductPriceRule</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
</service>
<service name="createProductPriceCond" default-entity-name="ProductPriceCond" engine="simple"
location="component://product/script/org/ofbiz/product/price/PriceServices.xml" invoke="createProductPriceCond" auth="true">
<description>Create an ProductPriceCond</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
<attribute name="condValueInput" type="String" mode="IN" optional="true"></attribute>
<override name="productPriceCondSeqId" mode="OUT"/>
</service>
<service name="updateProductPriceCond" default-entity-name="ProductPriceCond" engine="simple"
location="component://product/script/org/ofbiz/product/price/PriceServices.xml" invoke="updateProductPriceCond" auth="true">
<description>Update an ProductPriceCond</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
<attribute name="condValueInput" type="String" mode="IN" optional="true"></attribute>
</service>
<service name="deleteProductPriceCond" default-entity-name="ProductPriceCond" engine="simple"
location="component://product/script/org/ofbiz/product/price/PriceServices.xml" invoke="deleteProductPriceCond" auth="true">
<description>Delete an ProductPriceCond</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
</service>
<service name="createProductPriceAction" default-entity-name="ProductPriceAction" engine="simple"
location="component://product/script/org/ofbiz/product/price/PriceServices.xml" invoke="createProductPriceAction" auth="true">
<description>Create an ProductPriceAction</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
<override name="productPriceActionSeqId" mode="OUT"/>
</service>
<service name="updateProductPriceAction" default-entity-name="ProductPriceAction" engine="simple"
location="component://product/script/org/ofbiz/product/price/PriceServices.xml" invoke="updateProductPriceAction" auth="true">
<description>Update an ProductPriceAction</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<service name="deleteProductPriceAction" default-entity-name="ProductPriceAction" engine="simple"
location="component://product/script/org/ofbiz/product/price/PriceServices.xml" invoke="deleteProductPriceAction" auth="true">
<description>Delete an ProductPriceAction</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
</service>
<!-- Product Promotion Services -->
<service name="createProductPromo" default-entity-name="ProductPromo" engine="simple"
location="component://product/script/org/ofbiz/product/promo/PromoServices.xml" invoke="createProductPromo" auth="true">
<description>Create a ProductPromo</description>
<auto-attributes include="pk" mode="OUT" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true">
<exclude field-name="createdDate"/>
<exclude field-name="createdByUserLogin"/>
<exclude field-name="lastModifiedDate"/>
<exclude field-name="lastModifiedByUserLogin"/>
</auto-attributes>
<override name="promoName" optional="false"/>
<override name="promoText" allow-html="safe"/>
</service>
<service name="updateProductPromo" default-entity-name="ProductPromo" engine="simple"
location="component://product/script/org/ofbiz/product/promo/PromoServices.xml" invoke="updateProductPromo" auth="true">
<description>Update a ProductPromo</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true">
<exclude field-name="createdDate"/>
<exclude field-name="createdByUserLogin"/>
<exclude field-name="lastModifiedDate"/>
<exclude field-name="lastModifiedByUserLogin"/>
</auto-attributes>
<override name="promoText" allow-html="safe"/>
</service>
<service name="deleteProductPromo" default-entity-name="ProductPromo" engine="simple"
location="component://product/script/org/ofbiz/product/promo/PromoServices.xml" invoke="deleteProductPromo" auth="true">
<description>Delete a ProductPromo</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
</service>
<service name="createProductPromoAction" default-entity-name="ProductPromoAction" engine="simple"
location="component://product/script/org/ofbiz/product/promo/PromoServices.xml" invoke="createProductPromoAction" auth="true">
<description>Create a ProductPromo</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
<override name="productPromoActionSeqId" mode="OUT"/>
<override name="productPromoActionEnumId" optional="false"/>
</service>
<service name="updateProductPromoAction" default-entity-name="ProductPromoAction" engine="simple"
location="component://product/script/org/ofbiz/product/promo/PromoServices.xml" invoke="updateProductPromoAction" auth="true">
<description>Update a ProductPromo</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<service name="deleteProductPromoAction" default-entity-name="ProductPromoAction" engine="simple"
location="component://product/script/org/ofbiz/product/promo/PromoServices.xml" invoke="deleteProductPromoAction" auth="true">
<description>Delete a ProductPromo</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
</service>
<service name="createProductPromoCategory" default-entity-name="ProductPromoCategory" engine="simple"
location="component://product/script/org/ofbiz/product/promo/PromoServices.xml" invoke="createProductPromoCategory" auth="true">
<description>Create a ProductPromoCategory</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<service name="updateProductPromoCategory" default-entity-name="ProductPromoCategory" engine="simple"
location="component://product/script/org/ofbiz/product/promo/PromoServices.xml" invoke="updateProductPromoCategory" auth="true">
<description>Update a ProductPromoCategory</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<service name="deleteProductPromoCategory" default-entity-name="ProductPromoCategory" engine="simple"
location="component://product/script/org/ofbiz/product/promo/PromoServices.xml" invoke="deleteProductPromoCategory" auth="true">
<description>Delete a ProductPromoCategory</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
</service>
<service name="createProductPromoCode" default-entity-name="ProductPromoCode" engine="simple"
location="component://product/script/org/ofbiz/product/promo/PromoServices.xml" invoke="createProductPromoCode" auth="true">
<description>Create a ProductPromoCode</description>
<auto-attributes include="pk" mode="INOUT" optional="true"/>
<auto-attributes include="nonpk" mode="IN" optional="true">
<exclude field-name="createdDate"/>
<exclude field-name="createdByUserLogin"/>
<exclude field-name="lastModifiedDate"/>
<exclude field-name="lastModifiedByUserLogin"/>
</auto-attributes>
</service>
<service name="updateProductPromoCode" default-entity-name="ProductPromoCode" engine="simple"
location="component://product/script/org/ofbiz/product/promo/PromoServices.xml" invoke="updateProductPromoCode" auth="true">
<description>Update a ProductPromoCode</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true">
<exclude field-name="createdDate"/>
<exclude field-name="createdByUserLogin"/>
<exclude field-name="lastModifiedDate"/>
<exclude field-name="lastModifiedByUserLogin"/>
</auto-attributes>
</service>
<service name="deleteProductPromoCode" default-entity-name="ProductPromoCode" engine="simple"
location="component://product/script/org/ofbiz/product/promo/PromoServices.xml" invoke="deleteProductPromoCode" auth="true">
<description>Delete a ProductPromoCode</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
</service>
<service name="createBulkProductPromoCode" engine="java"
location="org.ofbiz.product.promo.PromoServices" invoke="importPromoCodesFromFile" auth="true">
<description>Creates several ProductPromoCode from an uploaded list of promo codes (one code per line)</description>
<implements service="uploadFileInterface"/>
<auto-attributes mode="IN" entity-name="ProductPromoCode" include="nonpk" optional="true"/>
</service>
<service name="createProductPromoCodeEmail" default-entity-name="ProductPromoCodeEmail" engine="simple"
location="component://product/script/org/ofbiz/product/promo/PromoServices.xml" invoke="createProductPromoCodeEmail" auth="true">
<description>Create a ProductPromoCodeEmail</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<service name="deleteProductPromoCodeEmail" default-entity-name="ProductPromoCodeEmail" engine="simple"
location="component://product/script/org/ofbiz/product/promo/PromoServices.xml" invoke="deleteProductPromoCodeEmail" auth="true">
<description>Delete a ProductPromoCodeEmail</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
</service>
<service name="createBulkProductPromoCodeEmail" engine="java"
location="org.ofbiz.product.promo.PromoServices" invoke="importPromoCodeEmailsFromFile" auth="true">
<description>Create several ProductPromoCodeEmail from an uploaded list of emails (one address per line)</description>
<implements service="uploadFileInterface"/>
<attribute name="productPromoCodeId" type="String" mode="IN" optional="false"/>
</service>
<service name="createProductPromoCodeParty" default-entity-name="ProductPromoCodeParty" engine="simple"
location="component://product/script/org/ofbiz/product/promo/PromoServices.xml" invoke="createProductPromoCodeParty" auth="true">
<description>Create a ProductPromoCodeParty</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<service name="deleteProductPromoCodeParty" default-entity-name="ProductPromoCodeParty" engine="simple"
location="component://product/script/org/ofbiz/product/promo/PromoServices.xml" invoke="deleteProductPromoCodeParty" auth="true">
<description>Delete a ProductPromoCodeParty</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
</service>
<service name="createProductPromoCodeSet" default-entity-name="ProductPromoCode" engine="java"
location="org.ofbiz.product.promo.PromoServices" invoke="createProductPromoCodeSet" auth="true">
<description>Create a Product Promo Code Set</description>
<auto-attributes include="nonpk" mode="IN" optional="true">
<exclude field-name="createdDate"/>
<exclude field-name="createdByUserLogin"/>
<exclude field-name="lastModifiedDate"/>
<exclude field-name="lastModifiedByUserLogin"/>
</auto-attributes>
<attribute name="quantity" type="Long" mode="IN" optional="false"/>
<attribute name="codeLength" type="Integer" mode="IN" optional="true" default-value="8"/>
<attribute name="promoCodeLayout" type="String" mode="IN" optional="true" default-value="sequence"/>
</service>
<service name="createProductPromoCond" default-entity-name="ProductPromoCond" engine="simple"
location="component://product/script/org/ofbiz/product/promo/PromoServices.xml" invoke="createProductPromoCond" auth="true">
<description>Create a ProductPromo</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
<attribute name="carrierShipmentMethod" type="String" mode="IN" optional="true"/>
<override name="productPromoCondSeqId" mode="OUT"/>
</service>
<service name="updateProductPromoCond" default-entity-name="ProductPromoCond" engine="simple"
location="component://product/script/org/ofbiz/product/promo/PromoServices.xml" invoke="updateProductPromoCond" auth="true">
<description>Update a ProductPromo</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
<attribute name="carrierShipmentMethod" type="String" mode="IN" optional="true"/>
</service>
<service name="deleteProductPromoCond" default-entity-name="ProductPromoCond" engine="simple"
location="component://product/script/org/ofbiz/product/promo/PromoServices.xml" invoke="deleteProductPromoCond" auth="true">
<description>Delete a ProductPromo</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
</service>
<service name="createProductPromoProduct" default-entity-name="ProductPromoProduct" engine="simple"
location="component://product/script/org/ofbiz/product/promo/PromoServices.xml" invoke="createProductPromoProduct" auth="true">
<description>Create a ProductPromoProduct</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<service name="updateProductPromoProduct" default-entity-name="ProductPromoProduct" engine="simple"
location="component://product/script/org/ofbiz/product/promo/PromoServices.xml" invoke="updateProductPromoProduct" auth="true">
<description>Update a ProductPromoProduct</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<service name="deleteProductPromoProduct" default-entity-name="ProductPromoProduct" engine="simple"
location="component://product/script/org/ofbiz/product/promo/PromoServices.xml" invoke="deleteProductPromoProduct" auth="true">
<description>Delete a ProductPromoProduct</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
</service>
<service name="createProductPromoRule" default-entity-name="ProductPromoRule" engine="simple"
location="component://product/script/org/ofbiz/product/promo/PromoServices.xml" invoke="createProductPromoRule" auth="true">
<description>Create a ProductPromo</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="false"/>
<override name="productPromoRuleId" mode="OUT"/>
</service>
<service name="updateProductPromoRule" default-entity-name="ProductPromoRule" engine="simple"
location="component://product/script/org/ofbiz/product/promo/PromoServices.xml" invoke="updateProductPromoRule" auth="true">
<description>Update a ProductPromo</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="false"/>
</service>
<service name="deleteProductPromoRule" default-entity-name="ProductPromoRule" engine="simple"
location="component://product/script/org/ofbiz/product/promo/PromoServices.xml" invoke="deleteProductPromoRule" auth="true">
<description>Delete a ProductPromo</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
</service>
<service name="calculatePurchasePrice" engine="java"
location="org.ofbiz.product.price.PriceServices" invoke="calculatePurchasePrice" auth="false" use-transaction="false">
<description>Calculate a Product's Purchase Price</description>
<attribute name="product" type="org.ofbiz.entity.GenericValue" mode="IN" optional="false"/>
<attribute name="currencyUomId" type="String" mode="IN" optional="false"/>
<attribute name="partyId" type="String" mode="IN" optional="true"/>
<attribute name="quantity" type="BigDecimal" mode="IN" optional="true"/>
<attribute name="amount" type="BigDecimal" mode="IN" optional="true"/>
<attribute name="price" type="BigDecimal" mode="OUT" optional="false"/>
<attribute name="validPriceFound" type="Boolean" mode="OUT" optional="false"/>
<attribute name="orderItemPriceInfos" type="java.util.List" mode="OUT" optional="false"/>
</service>
<service name="getAssociatedPriceRulesConds" engine="simple" auth="false"
location="component://product/script/org/ofbiz/product/price/PriceServices.xml" invoke="getAssociatedPriceRulesConds">
<description>Set the Value options for selected Price Rule Condition Input</description>
<attribute name="inputParamEnumId" mode="IN" type="String"/>
<attribute name="productPriceRulesCondValues" mode="OUT" type="java.util.List" optional="true"/><!-- optional="true" because of quantity or other kind of fiels needing an input -->
</service>
</services>