reach-api-sdk 1.0.184 → 1.0.185

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reach-api-sdk",
3
- "version": "1.0.184",
3
+ "version": "1.0.185",
4
4
  "description": "sdk for reach api",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -57175,7 +57175,7 @@ paths:
57175
57175
  patch:
57176
57176
  tags:
57177
57177
  - PublicLeasing
57178
- summary: Refreshes a lease and updates any changes />.
57178
+ summary: Refreshes a lease and updates any changes.
57179
57179
  operationId: Refresh
57180
57180
  parameters:
57181
57181
  - name: x_tenant_subdomain
@@ -57241,6 +57241,76 @@ paths:
57241
57241
  text/json:
57242
57242
  schema:
57243
57243
  $ref: '#/components/schemas/ValidationResultModel'
57244
+ '/api/public/leases/{orderId}/apply-discount-code':
57245
+ post:
57246
+ tags:
57247
+ - PublicLeasing
57248
+ summary: Applys a discount code and refreshes the lease.
57249
+ operationId: ApplyDiscountCode
57250
+ parameters:
57251
+ - name: x_tenant_subdomain
57252
+ in: header
57253
+ description: The tenants subdomain.
57254
+ schema:
57255
+ type: string
57256
+ - name: orderId
57257
+ in: path
57258
+ description: The order Id.
57259
+ required: true
57260
+ schema:
57261
+ type: string
57262
+ format: uuid
57263
+ requestBody:
57264
+ description: The discountcode model.
57265
+ content:
57266
+ application/json:
57267
+ schema:
57268
+ $ref: '#/components/schemas/OrderApplyDiscountCode'
57269
+ text/json:
57270
+ schema:
57271
+ $ref: '#/components/schemas/OrderApplyDiscountCode'
57272
+ application/*+json:
57273
+ schema:
57274
+ $ref: '#/components/schemas/OrderApplyDiscountCode'
57275
+ responses:
57276
+ '200':
57277
+ description: OK
57278
+ '400':
57279
+ description: Bad Request
57280
+ content:
57281
+ text/plain:
57282
+ schema:
57283
+ $ref: '#/components/schemas/ReachError'
57284
+ application/json:
57285
+ schema:
57286
+ $ref: '#/components/schemas/ReachError'
57287
+ text/json:
57288
+ schema:
57289
+ $ref: '#/components/schemas/ReachError'
57290
+ '500':
57291
+ description: Internal Server Error
57292
+ content:
57293
+ text/plain:
57294
+ schema:
57295
+ $ref: '#/components/schemas/ReachError'
57296
+ application/json:
57297
+ schema:
57298
+ $ref: '#/components/schemas/ReachError'
57299
+ text/json:
57300
+ schema:
57301
+ $ref: '#/components/schemas/ReachError'
57302
+ '422':
57303
+ description: Unprocessable Content
57304
+ content:
57305
+ text/plain:
57306
+ schema:
57307
+ $ref: '#/components/schemas/ValidationResultModel'
57308
+ application/json:
57309
+ schema:
57310
+ $ref: '#/components/schemas/ValidationResultModel'
57311
+ text/json:
57312
+ schema:
57313
+ $ref: '#/components/schemas/ValidationResultModel'
57244
57314
  '/api/public/leases/{orderId}/convert-to-order':
57245
57315
  patch:
57246
57316
  tags:
@@ -126002,6 +126072,27 @@ components:
126002
126072
  $ref: '#/components/schemas/CustomerCancellationOption'
126003
126073
  additionalProperties: false
126004
126074
  description: Represents an organisation within the Reach application.
126075
+ OrderApplyDiscountCode:
126076
+ required:
126077
+ - discountCode
126078
+ - id
126079
+ - tenantId
126080
+ type: object
126081
+ properties:
126082
+ tenantId:
126083
+ type: string
126084
+ description: Gets or sets the tenant Id.
126085
+ format: uuid
126086
+ id:
126087
+ type: string
126088
+ description: Gets or sets the Id.
126089
+ format: uuid
126090
+ discountCode:
126091
+ minLength: 1
126092
+ type: string
126093
+ description: Gets or sets the discount code (only used for discount codes).
126094
+ additionalProperties: false
126095
+ description: Apply discount code model.
126005
126096
  OrderDeal:
126006
126097
  required:
126007
126098
  - dateCreated