Skip to content

Commit

Permalink
Updated API from documentation release
Browse files Browse the repository at this point in the history
  • Loading branch information
ct-sdks[bot] committed Oct 7, 2024
1 parent 4d99474 commit b3909d6
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 13 deletions.
3 changes: 2 additions & 1 deletion api-specs/api/api.raml
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,11 @@ resourceTypes:
body:
application/json:
type: ProjectUpdate
example: !include /examples/project-update.example.json
responses:
200:
body:
example: !include examples/project.example.json
example: !include examples/project-update-response.example.json
type: Project
/as-associate: !include resources/as-associate.raml
/associate-roles: !include resources/associate-roles.raml
Expand Down
15 changes: 15 additions & 0 deletions api-specs/api/examples/project-update-response.example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"version": 2,
"key": "test-project",
"name": "Some project name",
"countries": ["DE", "US"],
"currencies": ["EUR", "USD"],
"languages": ["en"],
"createdAt": "2019-08-01T15:14:34.325Z",
"messages": {
"enabled": false
},
"carts": {
"countryTaxRateFallbackEnabled": false
}
}
9 changes: 9 additions & 0 deletions api-specs/api/examples/project-update.example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"version": 1,
"actions": [
{
"action": "changeCurrencies",
"currencies": ["EUR", "USD"]
}
]
}
16 changes: 4 additions & 12 deletions api-specs/api/examples/project.example.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,10 @@
"version": 1,
"key": "test-project",
"name": "Some project name",
"countries": [
"DE",
"US"
],
"currencies": [
"EUR"
],
"languages": [
"en"
],
"createdAt": "2013-11-01T15:14:34.325Z",
"trialUntil": "2013-11-01T15:14:34.325Z",
"countries": ["DE", "US"],
"currencies": ["EUR"],
"languages": ["en"],
"createdAt": "2019-08-01T15:14:34.325Z",
"messages": {
"enabled": false
},
Expand Down

0 comments on commit b3909d6

Please sign in to comment.