Skip to content

Commit dc34d83

Browse files
Adam Heinznmelehan
authored andcommitted
Adds active_promotions to account object (#335)
* Adds active_promotions to account object * Added 'promotion' to notification types * Fixed typo in account active_promotions description example * Updating description for active_promotions array objects * Jsager's suggestions
1 parent 27cce9e commit dc34d83

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

openapi.yaml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11314,6 +11314,57 @@ components:
1131411314
type: object
1131511315
description: Account object
1131611316
properties:
11317+
active_promotions:
11318+
type: array
11319+
items:
11320+
type: object
11321+
readOnly: true
11322+
description: |
11323+
A list of active promotions on your account. Promotions generally
11324+
offer a set amount of credit that can be used toward your Linode
11325+
services, and the promotion expires after a specified date. As well,
11326+
a monthly cap on the promotional offer is set.
11327+
11328+
Simply put, a promotion offers a certain amount of credit every
11329+
month, until either the expiration date is passed, or until the total
11330+
promotional credit is used, whichever comes first.
11331+
properties:
11332+
credit_monthly_cap:
11333+
type: string
11334+
description: >
11335+
The amount available to spend per month.
11336+
example: "10.00"
11337+
credit_remaining:
11338+
type: string
11339+
description: >
11340+
The total amount of credit left for this promotion.
11341+
example: "50.00"
11342+
description:
11343+
type: string
11344+
description: >
11345+
A detailed description of this promotion.
11346+
example: "Receive up to $10 off your services every month for 6 months! Unused credits will expire once this promotion period ends."
11347+
expire_dt:
11348+
type: string
11349+
description: >
11350+
When this promotion's credits expire.
11351+
example: '2018-01-31T23:59:59'
11352+
image_url:
11353+
type: string
11354+
description: >
11355+
The location of an image for this promotion.
11356+
example: "https://linode.com/10_a_month_promotion.svg"
11357+
summary:
11358+
type: string
11359+
description: >
11360+
Short details of this promotion.
11361+
example: "$10 off your Linode a month!"
11362+
this_month_credit_remaining:
11363+
type: string
11364+
description: >
11365+
The amount of credit left for this month for this promotion.
11366+
example: "10.00"
11367+
1131711368
active_since:
1131811369
type: string
1131911370
format: date-time
@@ -14940,6 +14991,7 @@ components:
1494014991
- ticket_abuse
1494114992
- notice
1494214993
- maintenance
14994+
- promotion
1494314995
readOnly: true
1494414996
description: The type of Notification this is.
1494514997
example: ticket_important

0 commit comments

Comments
 (0)