Skip to content

Commit

Permalink
feat: update resources to schema v7.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
pviti committed Oct 23, 2024
1 parent b56903e commit c529f27
Show file tree
Hide file tree
Showing 12 changed files with 869 additions and 771 deletions.
26 changes: 18 additions & 8 deletions gen/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"openapi": "3.1.0",
"info": {
"title": "Commerce Layer API",
"version": "7.3.0",
"version": "7.3.1",
"contact": {
"name": "API Support",
"url": "https://commercelayer.io",
Expand Down Expand Up @@ -36086,6 +36086,12 @@
"description": "Send this attribute if you want to create a void for this authorization.",
"example": true,
"nullable": false
},
"_cancel": {
"type": "boolean",
"description": "Send this attribute if you want to void a succeeded authorization of a pending order (which is left unpaid).",
"example": true,
"nullable": false
}
}
},
Expand Down Expand Up @@ -42900,6 +42906,12 @@
"type": "integer",
"description": "Send this attribute as a value in cents if you want to overwrite the amount to be refunded.",
"example": 500
},
"_cancel": {
"type": "boolean",
"description": "Send this attribute if you want to refund a succeeded capture of a pending order (which is left unpaid).",
"example": true,
"nullable": false
}
}
},
Expand Down Expand Up @@ -71021,13 +71033,13 @@
"type": "string",
"description": "The activation date/time of this link.",
"example": "2018-01-01T12:00:00.000Z",
"nullable": false
"nullable": true
},
"expires_at": {
"type": "string",
"description": "The expiration date/time of this link (must be after starts_at).",
"example": "2018-01-02T12:00:00.000Z",
"nullable": false
"nullable": true
},
"active": {
"type": "boolean",
Expand Down Expand Up @@ -71287,9 +71299,7 @@
"required": [
"name",
"client_id",
"scope",
"starts_at",
"expires_at"
"scope"
]
},
"relationships": {
Expand Down Expand Up @@ -71393,13 +71403,13 @@
"type": "string",
"description": "The activation date/time of this link.",
"example": "2018-01-01T12:00:00.000Z",
"nullable": false
"nullable": true
},
"expires_at": {
"type": "string",
"description": "The expiration date/time of this link (must be after starts_at).",
"example": "2018-01-02T12:00:00.000Z",
"nullable": false
"nullable": true
},
"domain": {
"type": "string",
Expand Down
26 changes: 24 additions & 2 deletions gen/resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -1878,6 +1878,17 @@
"sortable": false,
"monetizable": true,
"example": "€15,00"
},
"_cancel": {
"type": "boolean",
"trigger": true,
"desc": "Send this attribute if you want to void a succeeded authorization of a pending order (which is left unpaid).",
"creatable": false,
"updatable": true,
"fetchable": false,
"filterable": false,
"sortable": false,
"example": "true"
}
},
"relationships": {
Expand Down Expand Up @@ -4543,6 +4554,17 @@
"sortable": false,
"monetizable": true,
"example": "€10,00"
},
"_cancel": {
"type": "boolean",
"trigger": true,
"desc": "Send this attribute if you want to refund a succeeded capture of a pending order (which is left unpaid).",
"creatable": false,
"updatable": true,
"fetchable": false,
"filterable": false,
"sortable": false,
"example": "true"
}
},
"relationships": {
Expand Down Expand Up @@ -15463,7 +15485,7 @@
"starts_at": {
"type": "datetime",
"desc": "The activation date/time of this link.",
"required": "required",
"required": "optional, default to current time",
"creatable": true,
"updatable": true,
"fetchable": true,
Expand All @@ -15474,7 +15496,7 @@
"expires_at": {
"type": "datetime",
"desc": "The expiration date/time of this link (must be after starts_at).",
"required": "required",
"required": "optional, default to one month since current time",
"creatable": true,
"updatable": true,
"fetchable": true,
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@
"node": ">=20"
},
"devDependencies": {
"@babel/preset-env": "^7.25.8",
"@babel/preset-typescript": "^7.25.7",
"@babel/preset-env": "^7.25.9",
"@babel/preset-typescript": "^7.25.9",
"@commercelayer/eslint-config-ts": "1.4.5",
"@commercelayer/js-auth": "^6.6.2",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@types/debug": "^4.1.12",
"@types/jest": "^29.5.13",
"@types/node": "^22.7.8",
"@types/jest": "^29.5.14",
"@types/node": "^22.7.9",
"dotenv": "^16.4.5",
"eslint": "^8.57.1",
"jest": "^29.7.0",
Expand Down
Loading

0 comments on commit c529f27

Please sign in to comment.