Skip to content

Commit

Permalink
feat: update resources to schema v6.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pviti committed Jul 23, 2024
1 parent 99ab361 commit 8213e4f
Show file tree
Hide file tree
Showing 17 changed files with 1,116 additions and 391 deletions.
359 changes: 334 additions & 25 deletions gen/openapi.json

Large diffs are not rendered by default.

61 changes: 34 additions & 27 deletions gen/resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -753,19 +753,19 @@
},
"api_version": {
"type": "integer",
"desc": "The checkout API version, supported range is from 66 to 68, default is 68.",
"required": "optional, default is 68",
"default": 68,
"desc": "The checkout API version, supported range is from 66 to 71, default is 71.",
"required": "optional, default is 71",
"default": 71,
"creatable": true,
"updatable": true,
"fetchable": false,
"filterable": false,
"sortable": false,
"example": "68"
"example": "71"
},
"async_api": {
"type": "boolean",
"desc": "Indicates if the gateway will leverage on the Adyen notification webhooks.",
"desc": "Indicates if the gateway will leverage on the Adyen notification webhooks, using latest API version.",
"required": "optional, default is 'false'",
"default": false,
"creatable": true,
Expand All @@ -790,6 +790,7 @@
"webhook_endpoint_secret": {
"type": "string",
"desc": "The gateway webhook endpoint secret, generated by Adyen customer area.",
"required": "required, if async_api is truthy",
"creatable": true,
"updatable": true,
"fetchable": true,
Expand Down Expand Up @@ -1622,7 +1623,7 @@
"_forward": {
"type": "boolean",
"trigger": true,
"desc": "Send this attribute if you want to forwrad a stuck transaction to succeeded and update associated order states accordingly.",
"desc": "Send this attribute if you want to forward a stuck transaction to succeeded and update associated order states accordingly.",
"creatable": false,
"updatable": true,
"fetchable": false,
Expand Down Expand Up @@ -3411,7 +3412,7 @@
"fetchable": true,
"filterable": true,
"sortable": false,
"example": "Black Men T-shirt (XL) with Black Cap and Socks, all with White Logo"
"example": "Men's Black T-shirt (XL) with Black Cap and Socks, all with White Logo"
},
"currency_code": {
"type": "string",
Expand Down Expand Up @@ -4370,7 +4371,7 @@
"_forward": {
"type": "boolean",
"trigger": true,
"desc": "Send this attribute if you want to forwrad a stuck transaction to succeeded and update associated order states accordingly.",
"desc": "Send this attribute if you want to forward a stuck transaction to succeeded and update associated order states accordingly.",
"creatable": false,
"updatable": true,
"fetchable": false,
Expand Down Expand Up @@ -4643,30 +4644,35 @@
"deprecated": false,
"actions": [
"list",
"retrieve"
"retrieve",
"create",
"update",
"delete"
],
"examples": {},
"filter_scopes": [],
"fields": {
"name": {
"type": "string",
"desc": "The carrier account internal name.",
"creatable": false,
"updatable": false,
"required": "required",
"creatable": true,
"updatable": true,
"fetchable": true,
"filterable": true,
"sortable": false,
"example": "UPS"
"sortable": true,
"example": "Accurate"
},
"easypost_type": {
"type": "string",
"desc": "The Easypost service carrier type.",
"creatable": false,
"updatable": false,
"required": "required",
"creatable": true,
"updatable": true,
"fetchable": true,
"filterable": true,
"sortable": false,
"example": "UPS"
"example": "AccurateAccount"
},
"easypost_id": {
"type": "string",
Expand All @@ -4681,12 +4687,13 @@
"credentials": {
"type": "object",
"desc": "The Easypost carrier accounts credentials fields.",
"creatable": false,
"updatable": false,
"fetchable": false,
"required": "required",
"creatable": true,
"updatable": true,
"fetchable": true,
"filterable": false,
"sortable": false,
"example": "{ api_key: \"xxxx-yyyy-zzzz\", password: \"secret\" }"
"example": "{ username: \"xxxx\", password: \"secret\" }"
},
"id": {
"format": "id",
Expand Down Expand Up @@ -14265,7 +14272,7 @@
"fetchable": true,
"filterable": true,
"sortable": true,
"example": "Black Men T-shirt with White Logo (XL)"
"example": "Men's Black T-shirt with White Logo (XL)"
},
"image_url": {
"type": "string",
Expand Down Expand Up @@ -20918,7 +20925,7 @@
"fetchable": true,
"filterable": false,
"sortable": false,
"example": "Black Men T-shirt with White Logo (XL)"
"example": "Men's Black T-shirt with White Logo (XL)"
},
"image_url": {
"type": "string",
Expand Down Expand Up @@ -24977,7 +24984,7 @@
"_forward": {
"type": "boolean",
"trigger": true,
"desc": "Send this attribute if you want to forwrad a stuck transaction to succeeded and update associated order states accordingly.",
"desc": "Send this attribute if you want to forward a stuck transaction to succeeded and update associated order states accordingly.",
"creatable": false,
"updatable": true,
"fetchable": false,
Expand Down Expand Up @@ -26053,7 +26060,7 @@
"fetchable": true,
"filterable": false,
"sortable": false,
"example": "Black Men T-shirt with White Logo (XL)"
"example": "Men's Black T-shirt with White Logo (XL)"
},
"image_url": {
"type": "string",
Expand Down Expand Up @@ -28951,7 +28958,7 @@
"fetchable": true,
"filterable": true,
"sortable": true,
"example": "Black Men T-shirt with White Logo (XL)"
"example": "Men's Black T-shirt with White Logo (XL)"
},
"description": {
"type": "string",
Expand Down Expand Up @@ -33341,7 +33348,7 @@
"_forward": {
"type": "boolean",
"trigger": true,
"desc": "Send this attribute if you want to forwrad a stuck transaction to succeeded and update associated order states accordingly.",
"desc": "Send this attribute if you want to forward a stuck transaction to succeeded and update associated order states accordingly.",
"creatable": false,
"updatable": true,
"fetchable": false,
Expand Down Expand Up @@ -33833,7 +33840,7 @@
"_forward": {
"type": "boolean",
"trigger": true,
"desc": "Send this attribute if you want to forwrad a stuck transaction to succeeded and update associated order states accordingly.",
"desc": "Send this attribute if you want to forward a stuck transaction to succeeded and update associated order states accordingly.",
"creatable": false,
"updatable": true,
"fetchable": false,
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,17 @@
"@semantic-release/git": "^10.0.1",
"@types/debug": "^4.1.12",
"@types/jest": "^29.5.12",
"@types/node": "^20.14.10",
"@types/node": "^20.14.11",
"dotenv": "^16.4.5",
"eslint": "^8.57.0",
"jest": "^29.7.0",
"json-typescript": "^1.1.2",
"jsonapi-typescript": "^0.1.3",
"lodash.isequal": "^4.5.0",
"semantic-release": "^23.1.1",
"tsup": "^8.1.0",
"tsup": "^8.2.2",
"tsx": "^4.16.2",
"typescript": "^5.5.3"
"typescript": "^5.5.4"
},
"repository": "github:commercelayer/commercelayer-sdk",
"bugs": "https://github.com/commercelayer/commercelayer-sdk/issues",
Expand Down
Loading

0 comments on commit 8213e4f

Please sign in to comment.