Skip to content

Commit 5638f62

Browse files
Update API definitions
1 parent e487d26 commit 5638f62

File tree

7 files changed

+12
-92
lines changed

7 files changed

+12
-92
lines changed

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ Rebilly uses the following lint rules:
124124
- [rule/info-description](https://redocly.com/docs/cli/rules/custom-rules/) (custom rules)
125125
- [rule/description-capitalization](https://redocly.com/docs/cli/rules/custom-rules/) (custom rules)
126126
- [rule/description-punctuation](https://redocly.com/docs/cli/rules/custom-rules/) (custom rules)
127-
- [rule/no-anthropmorphic-possessives](https://redocly.com/docs/cli/rules/custom-rules/) (custom rules)
127+
- [rule/no-anthropomorphic-possessives](https://redocly.com/docs/cli/rules/custom-rules/) (custom rules)
128128
- [rule/no-past-future](https://redocly.com/docs/cli/rules/custom-rules/) (custom rules)
129129
- [rule/no-description-start-with-the-a-an](https://redocly.com/docs/cli/rules/custom-rules/) (custom rules)
130130

openapi/components/schemas/OneTimeSale.yaml

-2
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ properties:
153153
notes:
154154
description: Notes for the customer displayed on the order invoice.
155155
type: string
156-
157156
revision:
158157
description: |-
159158
Number of times the order data has been modified.
@@ -163,7 +162,6 @@ properties:
163162
type: integer
164163
readOnly: true
165164
riskMetadata:
166-
example: null
167165
description: |-
168166
Risk metadata.
169167
If this value is `null`, this field uses risk metadata that is captured when creating the payment token.

openapi/components/schemas/StorefrontSubscription.yaml

+4-76
Original file line numberDiff line numberDiff line change
@@ -161,82 +161,13 @@ properties:
161161
Plans without trial prices are free trials.
162162
type: boolean
163163
readOnly: true
164-
trial:
165-
type: object
166-
description: |-
167-
Trial details.
168-
To use plan defaults do not send the `trial` key, or send a `null` value.
169-
properties:
170-
enabled:
171-
description: |-
172-
Specifies if there is a trial for this subscription.
173-
Plans without trial prices are free trials.
174-
type: boolean
175-
endTime:
176-
description: |-
177-
Time and date when the trial ends.
178-
If a trial is enabled on this subscription, a value must be provided.
179-
type: string
180-
format: date-time
181-
isTrialOnly:
182-
description: |-
183-
Specifies if a subscription ends after a trial period.
184-
If this value is `true`, recurring settings are ignored.
185-
type: boolean
186-
default: false
187-
invoiceTimeShift:
188-
description: |-
189-
Shifts issue time and due time of invoices for this subscription.
190-
191-
This setting overrides plan settings.
192-
To use plan settings, set this value to `null`.
193-
194-
To use multiple plans in one subscription,
195-
all plans must have the same billing period,
196-
this property enables the customer to subscribe to different plans.
197-
example: null
198-
oneOf:
199-
- $ref: ./InvoiceTimeShift.yaml
200-
- type: 'null'
201-
recurringInterval:
202-
type:
203-
- 'object'
204-
- 'null'
205-
description: |-
206-
Recurring interval to override plan settings.
207-
To use plan settings, set this value to `null`.
208-
209-
To use multiple plans in one subscription,
210-
all plans must have the same same recurring period length,
211-
this property enables the customer to subscribe to different plans.
212-
example: null
213-
properties:
214-
periodAnchorInstruction:
215-
$ref: ./ServicePeriodAnchorInstruction.yaml
216-
autopay:
217-
description: |-
218-
Specifies if payment attempts are made automatically.
219-
If autopay is enabled, the payment is retrieved from the customer on the renewal date using the payment instrument that is set at `paymentInstrumentId`,
220-
or the default payment instrument on the subscription.
221-
type: boolean
222-
default: true
223-
startTime:
224-
description: |-
225-
Date and time when the subscription starts.
226-
If this value is `null`, the current time is used.
227-
This value cannot be more than one service period in the past.
228-
type:
229-
- 'string'
230-
- 'null'
231-
x-sortable: true
232-
x-basic: true
233-
example: null
234-
format: date-time
235164
endTime:
236165
description: |-
237166
Time and date when the trial ends.
238167
If a trial is enabled on this subscription, a value must be provided.
239-
type: string
168+
type:
169+
- 'string'
170+
- 'null'
240171
format: date-time
241172
isTrialOnly:
242173
description: |-
@@ -254,10 +185,7 @@ properties:
254185
To use multiple plans in one subscription,
255186
all plans must have the same billing period,
256187
this property enables the customer to subscribe to different plans.
257-
example: null
258-
oneOf:
259-
- $ref: ./InvoiceTimeShift.yaml
260-
- type: 'null'
188+
$ref: ./InvoiceTimeShift.yaml
261189
recurringInterval:
262190
type:
263191
- 'object'

openapi/components/schemas/Subscription.yaml

+3-9
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,7 @@ properties:
128128
To use multiple plans in one subscription,
129129
all plans must have the same billing period,
130130
this property enables the customer to subscribe to different plans.
131-
example: null
132-
oneOf:
133-
- $ref: ./InvoiceTimeShift.yaml
134-
- type: 'null'
131+
$ref: ./InvoiceTimeShift.yaml
135132
recurringInterval:
136133
type:
137134
- 'object'
@@ -444,15 +441,12 @@ properties:
444441
type: integer
445442
readOnly: true
446443
riskMetadata:
447-
type:
448-
- 'object'
449-
- 'null'
450-
example: null
451444
description: |-
452445
Risk metadata.
453446
If this value is `null`, this field uses risk metadata that is captured when creating the payment token.
454-
allOf:
447+
oneOf:
455448
- $ref: ./RiskMetadata.yaml
449+
- type: 'null'
456450
billingPortalToken:
457451
description: |-
458452
Customer JWT to access billing portal. This field is presented only if billing portal exists.

openapi/components/schemas/SubscriptionChange.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,6 @@ properties:
115115
description: |-
116116
Specifies if the subscription order must ignore the recurring settings of items in the order.
117117
This field is only applicable if the subscription is trial-only and the `keepTrial` value is `true`.
118-
For more information, see [Trial-only subscription](https://www.rebilly.com/docs/dev-docs/subscriptions#trial-only-subscription)
118+
For more information, see [Trial-only subscription](https://www.rebilly.com/docs/dev-docs/subscriptions#trial-only-subscription).
119119
type: boolean
120120
default: false

openapi/components/schemas/Website.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ properties:
109109
type:
110110
- 'boolean'
111111
- 'null'
112-
description: Specifies whether the hosted payment form will display 0 amount line items in the summary.
112+
description: Specifies whether the hosted payment form displays 0 amount line items in the summary.
113113
default: false
114114
logoId:
115115
type:

redocly.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -385,14 +385,14 @@ rules:
385385
type: any
386386
property: description
387387
assertions:
388-
pattern: /^([A-Z]|#+ [A-Z]|dLocal|ecoPayz|eMerchantPay|ePay|eZeeWallet|ezyEFT|iCanPay|iCheque|iDebit|loonie|vegaaH)/
388+
pattern: /^([A-Z]|#+ [A-Z]|dLocal|ecoPayz|eMerchantPay|ePay|eZeeWallet|ezyEFT|iCanPay|iCheque|iDebit|loonie|vegaaH|gate2way)/
389389
rule/description-punctuation:
390390
subject:
391391
type: any
392392
property: description
393393
assertions:
394394
pattern: /(\.\n?|server)$/
395-
rule/no-anthropmorphic-possessives:
395+
rule/no-anthropomorphic-possessives:
396396
subject:
397397
type: any
398398
property: description

0 commit comments

Comments
 (0)