|
9 | 9 |
|
10 | 10 | <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
11 | 11 | xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/DataGenerator/etc/dataOperation.xsd">
|
12 |
| - <operation name="CreateCoupon" dataType="coupon" type="create" auth="/rest/V1/integration/admin/token" url="/rest/V1/coupons" method="POST"> |
| 12 | + <operation name="CreateCoupon" dataType="coupon" type="create" auth="adminOauth" url="/rest/V1/coupons" method="POST"> |
13 | 13 | <header param="Content-Type">application/json</header>
|
14 |
| - <jsonObject key="coupon" dataType="coupon"> |
15 |
| - <entry key="rule_id" required="true">integer</entry> |
16 |
| - <entry key="times_used" required="true">integer</entry> |
17 |
| - <entry key="is_primary" required="true">boolean</entry> |
18 |
| - <entry key="code">string</entry> |
19 |
| - <entry key="usage_limit">integer</entry> |
20 |
| - <entry key="usage_per_customer">integer</entry> |
21 |
| - <entry key="expiration_date">string</entry> |
22 |
| - <entry key="created_at">string</entry> |
23 |
| - <entry key="type">integer</entry> |
24 |
| - <entry key="extension_attributes">empty_extension_attribute</entry> |
25 |
| - </jsonObject> |
| 14 | + <object key="coupon" dataType="coupon"> |
| 15 | + <field key="rule_id" required="true">integer</field> |
| 16 | + <field key="times_used" required="true">integer</field> |
| 17 | + <field key="is_primary" required="true">boolean</field> |
| 18 | + <field key="code">string</field> |
| 19 | + <field key="usage_limit">integer</field> |
| 20 | + <field key="usage_per_customer">integer</field> |
| 21 | + <field key="expiration_date">string</field> |
| 22 | + <field key="created_at">string</field> |
| 23 | + <field key="type">integer</field> |
| 24 | + <field key="extension_attributes">empty_extension_attribute</field> |
| 25 | + </object> |
26 | 26 | </operation>
|
27 | 27 |
|
28 |
| - <operation name="DeleteCoupon" dataType="coupon" type="delete" auth="/rest/V1/integration/admin/token" url="/rest/V1/coupons" method="DELETE"> |
| 28 | + <operation name="DeleteCoupon" dataType="coupon" type="delete" auth="adminOauth" url="/rest/V1/coupons" method="DELETE"> |
29 | 29 | <header param="Content-Type">application/json</header>
|
30 | 30 | <param key="couponId" type="path">{coupon_id}</param>
|
31 | 31 | </operation>
|
|
0 commit comments