You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: openapi/components/schemas/StorefrontSubscription.yaml
+4-76
Original file line number
Diff line number
Diff line change
@@ -161,82 +161,13 @@ properties:
161
161
Plans without trial prices are free trials.
162
162
type: boolean
163
163
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
235
164
endTime:
236
165
description: |-
237
166
Time and date when the trial ends.
238
167
If a trial is enabled on this subscription, a value must be provided.
239
-
type: string
168
+
type:
169
+
- 'string'
170
+
- 'null'
240
171
format: date-time
241
172
isTrialOnly:
242
173
description: |-
@@ -254,10 +185,7 @@ properties:
254
185
To use multiple plans in one subscription,
255
186
all plans must have the same billing period,
256
187
this property enables the customer to subscribe to different plans.
0 commit comments