Skip to content
This repository was archived by the owner on Oct 24, 2023. It is now read-only.

Commit 74fe559

Browse files
author
Jens Schulze
committed
Merge branch 'release/v1.0.0-RC4'
2 parents 791ccfb + a1cd471 commit 74fe559

File tree

64 files changed

+2363
-79
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+2363
-79
lines changed

CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
<a name="1.0.0-RC4"></a>
2+
# [1.0.0-RC4](https://github.com/sphereio/commercetools-php-sdk/compare/v1.0.0-RC3...v1.0.0-RC4) (2015-10-05)
3+
4+
5+
### Bug Fixes
6+
7+
* **Cart:** fix addCustomLineItem update action ([b2d704f](https://github.com/sphereio/commercetools-php-sdk/commit/b2d704f)), closes [#154](https://github.com/sphereio/commercetools-php-sdk/issues/154)
8+
* **CustomTypes:** update to breaking changes of the API ([5e23104](https://github.com/sphereio/commercetools-php-sdk/commit/5e23104))
9+
* **Product:** fix type for remove price action ([c0a5ccc](https://github.com/sphereio/commercetools-php-sdk/commit/c0a5ccc)), closes [#153](https://github.com/sphereio/commercetools-php-sdk/issues/153)
10+
11+
### Features
12+
13+
* **Order:** add state to order ([3a6cc3d](https://github.com/sphereio/commercetools-php-sdk/commit/3a6cc3d))
14+
* **Payment:** add payment messages ([b9308c1](https://github.com/sphereio/commercetools-php-sdk/commit/b9308c1))
15+
* **Payment:** add payment requests and models ([c720eed](https://github.com/sphereio/commercetools-php-sdk/commit/c720eed))
16+
* **Product:** add state to product ([95437d8](https://github.com/sphereio/commercetools-php-sdk/commit/95437d8))
17+
* **ProductSearch:** add fuzzy flag to product search request ([0ed8dc8](https://github.com/sphereio/commercetools-php-sdk/commit/0ed8dc8))
18+
* **Review:** add state to review ([8278313](https://github.com/sphereio/commercetools-php-sdk/commit/8278313))
19+
20+
21+
### BREAKING CHANGES
22+
23+
* update actions for changing the order of custom fields have been changed
24+
25+
126
<a name="1.0.0-RC3"></a>
227
# [1.0.0-RC3](https://github.com/sphereio/commercetools-php-sdk/compare/v1.0.0-RC2...v1.0.0-RC3) (2015-09-10)
328

Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
Feature: I want to create a new product discount
2+
Background:
3+
Given i have a "payment" draft with values
4+
"""
5+
{
6+
"customer": {
7+
"typeId": "customer",
8+
"id": "customer-1"
9+
},
10+
"externalId": "123456",
11+
"interfaceId": "PSP-Interface-Identifier",
12+
"amountPlanned": {
13+
"currencyCode": "EUR",
14+
"centAmount": 1000
15+
},
16+
"amountAuthorized": {
17+
"currencyCode": "EUR",
18+
"centAmount": 1000
19+
},
20+
"authorizedUntil": "2015-01-15T12:00",
21+
"amountPaid": {
22+
"currencyCode": "EUR",
23+
"centAmount": 1000
24+
},
25+
"amountRefunded": {
26+
"currencyCode": "EUR",
27+
"centAmount": 1000
28+
},
29+
"paymentMethodInfo": {
30+
"paymentInterface": "Interface name",
31+
"method": "CreditCard",
32+
"name": {
33+
"en": "Credit Card"
34+
}
35+
},
36+
"custom": {
37+
"typeKey": "paymentType",
38+
"fields": {
39+
"key": "value"
40+
}
41+
},
42+
"paymentStatus": {
43+
"interfaceCode": "authorized",
44+
"interfaceText": "Payment is authorized",
45+
"state": {
46+
"typeId": "state",
47+
"id": "state-1"
48+
},
49+
"transaction": [
50+
{
51+
"timestamp": "2015-01-15T12:00",
52+
"type": "AUTHORIZATION",
53+
"amount": {
54+
"currencyCode": "EUR",
55+
"centAmount": 1000
56+
},
57+
"interactionId": "123456"
58+
}
59+
]
60+
},
61+
"interfaceInteraction": [
62+
{
63+
"typeId": "type-id-1234",
64+
"fields": {
65+
"key": "value"
66+
}
67+
}
68+
]
69+
}
70+
"""
71+
72+
Scenario: create a product discount
73+
When i want to create a "payment"
74+
Then the path should be "payments"
75+
And the method should be "POST"
76+
And the request should be
77+
"""
78+
{
79+
"customer": {
80+
"typeId": "customer",
81+
"id": "customer-1"
82+
},
83+
"externalId": "123456",
84+
"interfaceId": "PSP-Interface-Identifier",
85+
"amountPlanned": {
86+
"currencyCode": "EUR",
87+
"centAmount": 1000
88+
},
89+
"amountAuthorized": {
90+
"currencyCode": "EUR",
91+
"centAmount": 1000
92+
},
93+
"authorizedUntil": "2015-01-15T12:00:00+00:00",
94+
"amountPaid": {
95+
"currencyCode": "EUR",
96+
"centAmount": 1000
97+
},
98+
"amountRefunded": {
99+
"currencyCode": "EUR",
100+
"centAmount": 1000
101+
},
102+
"paymentMethodInfo": {
103+
"paymentInterface": "Interface name",
104+
"method": "CreditCard",
105+
"name": {
106+
"en": "Credit Card"
107+
}
108+
},
109+
"custom": {
110+
"typeKey": "paymentType",
111+
"fields": {
112+
"key": "value"
113+
}
114+
},
115+
"paymentStatus": {
116+
"interfaceCode": "authorized",
117+
"interfaceText": "Payment is authorized",
118+
"state": {
119+
"typeId": "state",
120+
"id": "state-1"
121+
},
122+
"transaction": [
123+
{
124+
"timestamp": "2015-01-15T12:00",
125+
"type": "AUTHORIZATION",
126+
"amount": {
127+
"currencyCode": "EUR",
128+
"centAmount": 1000
129+
},
130+
"interactionId": "123456"
131+
}
132+
]
133+
},
134+
"interfaceInteraction": [
135+
{
136+
"typeId": "type-id-1234",
137+
"fields": {
138+
"key": "value"
139+
}
140+
}
141+
]
142+
}
143+
"""
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Feature: I want to delete a product discount
2+
Scenario: Delete product discount
3+
Given a "payment" is identified by "id" and version 1
4+
And i want to delete a "payment"
5+
Then the path should be "payments/id?version=1"
6+
And the method should be "DELETE"
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
Feature: I want to query payments
2+
Scenario: Fetch a payment by id
3+
Given a "payment" is identified by "id"
4+
Given i want to fetch a "payment"
5+
Then the path should be "payments/id"
6+
And the method should be "GET"
7+
8+
Scenario: Query customers with filter applied
9+
Given i want to query "payments"
10+
And filter them with criteria 'name="Peter"'
11+
Then the path should be "payments?where=name%3D%22Peter%22"
12+
And the method should be "GET"
13+
14+
Scenario: Query customers with filter applied
15+
Given i want to query "payments"
16+
And filter them with criteria 'name="Peter"'
17+
Then the path should be "payments?where=name%3D%22Peter%22"
18+
And the method should be "GET"
19+
20+
Scenario: Query customers with limit
21+
Given i want to query "payments"
22+
And limit the result to "10"
23+
Then the path should be "payments?limit=10"
24+
And the method should be "GET"
25+
26+
Scenario: Query customers with offset
27+
Given i want to query "payments"
28+
And offset the result with "10"
29+
Then the path should be "payments?offset=10"
30+
And the method should be "GET"
31+
32+
Scenario: Query customers sorted
33+
Given i want to query "payments"
34+
And sort them by "name"
35+
Then the path should be "payments?sort=name"
36+
And the method should be "GET"
37+
38+
Scenario: Query parameters should be sorted
39+
Given i want to query "payments"
40+
And sort them by "name"
41+
And offset the result with "10"
42+
Then the path should be "payments?offset=10&sort=name"
43+
And the method should be "GET"

0 commit comments

Comments
 (0)