stigg-api-client 0.457.0 → 0.459.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/stigg/generated/operations.rb +1286 -0
- data/lib/stigg/generated/schema.json +64399 -0
- data/lib/stigg/version.rb +1 -1
- data/stigg-api-client.gemspec +2 -2
- metadata +4 -5
- data/scripts/generate-operations.mjs +0 -99
- data/scripts/generate.sh +0 -17
- data/scripts/publish.sh +0 -31
@@ -0,0 +1,1286 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Stigg
|
4
|
+
module Fragment
|
5
|
+
CouponFragment = <<~GRAPHQL
|
6
|
+
fragment CouponFragment on Coupon {
|
7
|
+
id
|
8
|
+
discountValue
|
9
|
+
type
|
10
|
+
additionalMetaData
|
11
|
+
refId
|
12
|
+
name
|
13
|
+
description
|
14
|
+
createdAt
|
15
|
+
updatedAt
|
16
|
+
billingId
|
17
|
+
billingLinkUrl
|
18
|
+
type
|
19
|
+
status
|
20
|
+
syncStates {
|
21
|
+
vendorIdentifier
|
22
|
+
status
|
23
|
+
}
|
24
|
+
customers {
|
25
|
+
id
|
26
|
+
}
|
27
|
+
}
|
28
|
+
GRAPHQL
|
29
|
+
|
30
|
+
PriceFragment = <<~GRAPHQL
|
31
|
+
fragment PriceFragment on Price {
|
32
|
+
billingModel
|
33
|
+
billingPeriod
|
34
|
+
billingId
|
35
|
+
minUnitQuantity
|
36
|
+
maxUnitQuantity
|
37
|
+
billingCountryCode
|
38
|
+
price {
|
39
|
+
amount
|
40
|
+
currency
|
41
|
+
}
|
42
|
+
feature {
|
43
|
+
featureUnits
|
44
|
+
featureUnitsPlural
|
45
|
+
displayName
|
46
|
+
description
|
47
|
+
}
|
48
|
+
}
|
49
|
+
GRAPHQL
|
50
|
+
|
51
|
+
TotalPriceFragment = <<~GRAPHQL
|
52
|
+
fragment TotalPriceFragment on CustomerSubscriptionTotalPrice {
|
53
|
+
subTotal {
|
54
|
+
amount
|
55
|
+
currency
|
56
|
+
}
|
57
|
+
total {
|
58
|
+
amount
|
59
|
+
currency
|
60
|
+
}
|
61
|
+
}
|
62
|
+
GRAPHQL
|
63
|
+
|
64
|
+
PackageEntitlementFragment = <<~GRAPHQL
|
65
|
+
fragment PackageEntitlementFragment on PackageEntitlement {
|
66
|
+
usageLimit
|
67
|
+
hasUnlimitedUsage
|
68
|
+
featureId
|
69
|
+
resetPeriod
|
70
|
+
hiddenFromWidgets
|
71
|
+
isCustom
|
72
|
+
displayNameOverride
|
73
|
+
feature {
|
74
|
+
featureType
|
75
|
+
meterType
|
76
|
+
featureUnits
|
77
|
+
featureUnitsPlural
|
78
|
+
displayName
|
79
|
+
description
|
80
|
+
refId
|
81
|
+
additionalMetaData
|
82
|
+
}
|
83
|
+
}
|
84
|
+
GRAPHQL
|
85
|
+
|
86
|
+
AddonFragment = <<~GRAPHQL
|
87
|
+
fragment AddonFragment on Addon {
|
88
|
+
id
|
89
|
+
refId
|
90
|
+
billingId
|
91
|
+
displayName
|
92
|
+
description
|
93
|
+
additionalMetaData
|
94
|
+
entitlements {
|
95
|
+
...PackageEntitlementFragment
|
96
|
+
}
|
97
|
+
prices {
|
98
|
+
...PriceFragment
|
99
|
+
}
|
100
|
+
pricingType
|
101
|
+
}
|
102
|
+
GRAPHQL
|
103
|
+
|
104
|
+
PlanFragment = <<~GRAPHQL
|
105
|
+
fragment PlanFragment on Plan {
|
106
|
+
id
|
107
|
+
refId
|
108
|
+
displayName
|
109
|
+
description
|
110
|
+
billingId
|
111
|
+
additionalMetaData
|
112
|
+
product {
|
113
|
+
...ProductFragment
|
114
|
+
}
|
115
|
+
basePlan {
|
116
|
+
refId
|
117
|
+
displayName
|
118
|
+
}
|
119
|
+
entitlements {
|
120
|
+
...PackageEntitlementFragment
|
121
|
+
}
|
122
|
+
inheritedEntitlements {
|
123
|
+
...PackageEntitlementFragment
|
124
|
+
}
|
125
|
+
compatibleAddons {
|
126
|
+
...AddonFragment
|
127
|
+
}
|
128
|
+
prices {
|
129
|
+
...PriceFragment
|
130
|
+
}
|
131
|
+
pricingType
|
132
|
+
defaultTrialConfig {
|
133
|
+
duration
|
134
|
+
units
|
135
|
+
}
|
136
|
+
}
|
137
|
+
GRAPHQL
|
138
|
+
|
139
|
+
CustomerResourceFragment = <<~GRAPHQL
|
140
|
+
fragment CustomerResourceFragment on CustomerResource {
|
141
|
+
resourceId
|
142
|
+
}
|
143
|
+
GRAPHQL
|
144
|
+
|
145
|
+
SlimSubscriptionFragment = <<~GRAPHQL
|
146
|
+
fragment SlimSubscriptionFragment on CustomerSubscription {
|
147
|
+
id
|
148
|
+
refId
|
149
|
+
status
|
150
|
+
additionalMetaData
|
151
|
+
billingId
|
152
|
+
billingLinkUrl
|
153
|
+
effectiveEndDate
|
154
|
+
currentBillingPeriodEnd
|
155
|
+
pricingType
|
156
|
+
resource {
|
157
|
+
...CustomerResourceFragment
|
158
|
+
}
|
159
|
+
experimentInfo {
|
160
|
+
name
|
161
|
+
id
|
162
|
+
groupName
|
163
|
+
groupType
|
164
|
+
}
|
165
|
+
prices {
|
166
|
+
usageLimit
|
167
|
+
price {
|
168
|
+
...PriceFragment
|
169
|
+
}
|
170
|
+
}
|
171
|
+
totalPrice {
|
172
|
+
...TotalPriceFragment
|
173
|
+
}
|
174
|
+
plan {
|
175
|
+
id
|
176
|
+
refId
|
177
|
+
}
|
178
|
+
addons {
|
179
|
+
quantity
|
180
|
+
addon {
|
181
|
+
id
|
182
|
+
refId
|
183
|
+
}
|
184
|
+
}
|
185
|
+
customer {
|
186
|
+
id
|
187
|
+
refId
|
188
|
+
}
|
189
|
+
}
|
190
|
+
GRAPHQL
|
191
|
+
|
192
|
+
SubscriptionScheduledUpdateData = <<~GRAPHQL
|
193
|
+
fragment SubscriptionScheduledUpdateData on SubscriptionScheduledUpdate {
|
194
|
+
subscriptionScheduleType
|
195
|
+
scheduleStatus
|
196
|
+
scheduledExecutionTime
|
197
|
+
targetPackage {
|
198
|
+
id
|
199
|
+
refId
|
200
|
+
displayName
|
201
|
+
}
|
202
|
+
scheduleVariables {
|
203
|
+
... on DowngradeChangeVariables {
|
204
|
+
addonRefIds
|
205
|
+
billingPeriod
|
206
|
+
downgradePlanRefId
|
207
|
+
}
|
208
|
+
... on BillingPeriodChangeVariables {
|
209
|
+
billingPeriod
|
210
|
+
}
|
211
|
+
... on UnitAmountChangeVariables {
|
212
|
+
newUnitAmount
|
213
|
+
featureId
|
214
|
+
}
|
215
|
+
}
|
216
|
+
}
|
217
|
+
GRAPHQL
|
218
|
+
|
219
|
+
SubscriptionFragment = <<~GRAPHQL
|
220
|
+
fragment SubscriptionFragment on CustomerSubscription {
|
221
|
+
id
|
222
|
+
startDate
|
223
|
+
endDate
|
224
|
+
trialEndDate
|
225
|
+
cancellationDate
|
226
|
+
effectiveEndDate
|
227
|
+
status
|
228
|
+
refId
|
229
|
+
currentBillingPeriodEnd
|
230
|
+
additionalMetaData
|
231
|
+
billingId
|
232
|
+
billingLinkUrl
|
233
|
+
resource {
|
234
|
+
...CustomerResourceFragment
|
235
|
+
}
|
236
|
+
experimentInfo {
|
237
|
+
name
|
238
|
+
groupType
|
239
|
+
groupName
|
240
|
+
id
|
241
|
+
}
|
242
|
+
prices {
|
243
|
+
usageLimit
|
244
|
+
price {
|
245
|
+
...PriceFragment
|
246
|
+
}
|
247
|
+
}
|
248
|
+
totalPrice {
|
249
|
+
...TotalPriceFragment
|
250
|
+
}
|
251
|
+
pricingType
|
252
|
+
plan {
|
253
|
+
...PlanFragment
|
254
|
+
}
|
255
|
+
addons {
|
256
|
+
id
|
257
|
+
quantity
|
258
|
+
addon {
|
259
|
+
...AddonFragment
|
260
|
+
}
|
261
|
+
}
|
262
|
+
scheduledUpdates {
|
263
|
+
...SubscriptionScheduledUpdateData
|
264
|
+
}
|
265
|
+
}
|
266
|
+
GRAPHQL
|
267
|
+
|
268
|
+
PromotionalEntitlementFragment = <<~GRAPHQL
|
269
|
+
fragment PromotionalEntitlementFragment on PromotionalEntitlement {
|
270
|
+
status
|
271
|
+
usageLimit
|
272
|
+
featureId
|
273
|
+
hasUnlimitedUsage
|
274
|
+
resetPeriod
|
275
|
+
endDate
|
276
|
+
isVisible
|
277
|
+
feature {
|
278
|
+
featureType
|
279
|
+
meterType
|
280
|
+
featureUnits
|
281
|
+
featureUnitsPlural
|
282
|
+
displayName
|
283
|
+
description
|
284
|
+
refId
|
285
|
+
additionalMetaData
|
286
|
+
}
|
287
|
+
}
|
288
|
+
GRAPHQL
|
289
|
+
|
290
|
+
SlimCustomerFragment = <<~GRAPHQL
|
291
|
+
fragment SlimCustomerFragment on Customer {
|
292
|
+
id
|
293
|
+
name
|
294
|
+
email
|
295
|
+
createdAt
|
296
|
+
updatedAt
|
297
|
+
refId
|
298
|
+
billingId
|
299
|
+
additionalMetaData
|
300
|
+
}
|
301
|
+
GRAPHQL
|
302
|
+
|
303
|
+
CustomerFragment = <<~GRAPHQL
|
304
|
+
fragment CustomerFragment on Customer {
|
305
|
+
...SlimCustomerFragment
|
306
|
+
hasPaymentMethod
|
307
|
+
hasActiveSubscription
|
308
|
+
defaultPaymentExpirationMonth
|
309
|
+
defaultPaymentExpirationYear
|
310
|
+
defaultPaymentMethodLast4Digits
|
311
|
+
trialedPlans {
|
312
|
+
productId
|
313
|
+
productRefId
|
314
|
+
planRefId
|
315
|
+
planId
|
316
|
+
}
|
317
|
+
experimentInfo {
|
318
|
+
groupType
|
319
|
+
groupName
|
320
|
+
id
|
321
|
+
name
|
322
|
+
}
|
323
|
+
coupon {
|
324
|
+
...CouponFragment
|
325
|
+
}
|
326
|
+
eligibleForTrial {
|
327
|
+
productId
|
328
|
+
productRefId
|
329
|
+
eligible
|
330
|
+
}
|
331
|
+
promotionalEntitlements {
|
332
|
+
...PromotionalEntitlementFragment
|
333
|
+
}
|
334
|
+
}
|
335
|
+
GRAPHQL
|
336
|
+
|
337
|
+
CustomerWithSubscriptionsFragment = <<~GRAPHQL
|
338
|
+
fragment CustomerWithSubscriptionsFragment on Customer {
|
339
|
+
...CustomerFragment
|
340
|
+
subscriptions {
|
341
|
+
...SubscriptionFragment
|
342
|
+
}
|
343
|
+
}
|
344
|
+
GRAPHQL
|
345
|
+
|
346
|
+
SubscriptionPreviewFragment = <<~GRAPHQL
|
347
|
+
fragment SubscriptionPreviewFragment on SubscriptionPreview {
|
348
|
+
subTotal {
|
349
|
+
amount
|
350
|
+
currency
|
351
|
+
}
|
352
|
+
totalExcludingTax {
|
353
|
+
amount
|
354
|
+
currency
|
355
|
+
}
|
356
|
+
total {
|
357
|
+
amount
|
358
|
+
currency
|
359
|
+
}
|
360
|
+
taxDetails {
|
361
|
+
displayName
|
362
|
+
percentage
|
363
|
+
inclusive
|
364
|
+
}
|
365
|
+
tax {
|
366
|
+
amount
|
367
|
+
currency
|
368
|
+
}
|
369
|
+
billingPeriodRange {
|
370
|
+
start
|
371
|
+
end
|
372
|
+
}
|
373
|
+
discount {
|
374
|
+
type
|
375
|
+
value
|
376
|
+
durationType
|
377
|
+
durationInMonths
|
378
|
+
}
|
379
|
+
subscription {
|
380
|
+
subTotal {
|
381
|
+
amount
|
382
|
+
currency
|
383
|
+
}
|
384
|
+
totalExcludingTax {
|
385
|
+
amount
|
386
|
+
currency
|
387
|
+
}
|
388
|
+
total {
|
389
|
+
amount
|
390
|
+
currency
|
391
|
+
}
|
392
|
+
tax {
|
393
|
+
amount
|
394
|
+
currency
|
395
|
+
}
|
396
|
+
}
|
397
|
+
proration {
|
398
|
+
prorationDate
|
399
|
+
credit {
|
400
|
+
amount
|
401
|
+
currency
|
402
|
+
}
|
403
|
+
debit {
|
404
|
+
amount
|
405
|
+
currency
|
406
|
+
}
|
407
|
+
netAmount {
|
408
|
+
amount
|
409
|
+
currency
|
410
|
+
}
|
411
|
+
}
|
412
|
+
}
|
413
|
+
GRAPHQL
|
414
|
+
|
415
|
+
FeatureFragment = <<~GRAPHQL
|
416
|
+
fragment FeatureFragment on EntitlementFeature {
|
417
|
+
featureType
|
418
|
+
meterType
|
419
|
+
featureUnits
|
420
|
+
featureUnitsPlural
|
421
|
+
description
|
422
|
+
displayName
|
423
|
+
refId
|
424
|
+
}
|
425
|
+
GRAPHQL
|
426
|
+
|
427
|
+
ResetPeriodConfigurationFragment = <<~GRAPHQL
|
428
|
+
fragment ResetPeriodConfigurationFragment on ResetPeriodConfiguration {
|
429
|
+
__typename
|
430
|
+
... on MonthlyResetPeriodConfig {
|
431
|
+
monthlyAccordingTo
|
432
|
+
}
|
433
|
+
... on WeeklyResetPeriodConfig {
|
434
|
+
weeklyAccordingTo
|
435
|
+
}
|
436
|
+
}
|
437
|
+
GRAPHQL
|
438
|
+
|
439
|
+
UsageUpdatedFragment = <<~GRAPHQL
|
440
|
+
fragment UsageUpdatedFragment on UsageMeasurementUpdated {
|
441
|
+
customerId
|
442
|
+
resourceId
|
443
|
+
featureId
|
444
|
+
currentUsage
|
445
|
+
nextResetDate
|
446
|
+
}
|
447
|
+
GRAPHQL
|
448
|
+
|
449
|
+
EntitlementFragment = <<~GRAPHQL
|
450
|
+
fragment EntitlementFragment on Entitlement {
|
451
|
+
isGranted
|
452
|
+
accessDeniedReason
|
453
|
+
customerId
|
454
|
+
resourceId
|
455
|
+
usageLimit
|
456
|
+
hasUnlimitedUsage
|
457
|
+
currentUsage
|
458
|
+
requestedUsage
|
459
|
+
entitlementUpdatedAt
|
460
|
+
usageUpdatedAt
|
461
|
+
nextResetDate
|
462
|
+
resetPeriod
|
463
|
+
resetPeriodConfiguration {
|
464
|
+
...ResetPeriodConfigurationFragment
|
465
|
+
}
|
466
|
+
feature {
|
467
|
+
...FeatureFragment
|
468
|
+
}
|
469
|
+
}
|
470
|
+
GRAPHQL
|
471
|
+
|
472
|
+
PaywallPackageEntitlementFragment = <<~GRAPHQL
|
473
|
+
fragment PaywallPackageEntitlementFragment on PackageEntitlement {
|
474
|
+
usageLimit
|
475
|
+
hasUnlimitedUsage
|
476
|
+
featureId
|
477
|
+
resetPeriod
|
478
|
+
hiddenFromWidgets
|
479
|
+
displayNameOverride
|
480
|
+
feature {
|
481
|
+
featureType
|
482
|
+
meterType
|
483
|
+
featureUnits
|
484
|
+
featureUnitsPlural
|
485
|
+
displayName
|
486
|
+
description
|
487
|
+
refId
|
488
|
+
additionalMetaData
|
489
|
+
}
|
490
|
+
}
|
491
|
+
GRAPHQL
|
492
|
+
|
493
|
+
PaywallAddonFragment = <<~GRAPHQL
|
494
|
+
fragment PaywallAddonFragment on Addon {
|
495
|
+
id
|
496
|
+
refId
|
497
|
+
billingId
|
498
|
+
displayName
|
499
|
+
description
|
500
|
+
additionalMetaData
|
501
|
+
billingId
|
502
|
+
entitlements {
|
503
|
+
...PaywallPackageEntitlementFragment
|
504
|
+
}
|
505
|
+
prices {
|
506
|
+
...PriceFragment
|
507
|
+
}
|
508
|
+
additionalMetaData
|
509
|
+
pricingType
|
510
|
+
}
|
511
|
+
GRAPHQL
|
512
|
+
|
513
|
+
PaywallPlanFragment = <<~GRAPHQL
|
514
|
+
fragment PaywallPlanFragment on Plan {
|
515
|
+
id
|
516
|
+
refId
|
517
|
+
description
|
518
|
+
displayName
|
519
|
+
billingId
|
520
|
+
product {
|
521
|
+
...ProductFragment
|
522
|
+
}
|
523
|
+
basePlan {
|
524
|
+
refId
|
525
|
+
displayName
|
526
|
+
}
|
527
|
+
entitlements {
|
528
|
+
...PaywallPackageEntitlementFragment
|
529
|
+
}
|
530
|
+
additionalMetaData
|
531
|
+
inheritedEntitlements {
|
532
|
+
...PaywallPackageEntitlementFragment
|
533
|
+
}
|
534
|
+
prices {
|
535
|
+
...PriceFragment
|
536
|
+
}
|
537
|
+
pricingType
|
538
|
+
defaultTrialConfig {
|
539
|
+
duration
|
540
|
+
units
|
541
|
+
}
|
542
|
+
compatibleAddons {
|
543
|
+
...PaywallAddonFragment
|
544
|
+
}
|
545
|
+
}
|
546
|
+
GRAPHQL
|
547
|
+
|
548
|
+
TypographyConfigurationFragment = <<~GRAPHQL
|
549
|
+
fragment TypographyConfigurationFragment on TypographyConfiguration {
|
550
|
+
fontFamily
|
551
|
+
h1 {
|
552
|
+
...FontVariantFragment
|
553
|
+
}
|
554
|
+
h2 {
|
555
|
+
...FontVariantFragment
|
556
|
+
}
|
557
|
+
h3 {
|
558
|
+
...FontVariantFragment
|
559
|
+
}
|
560
|
+
body {
|
561
|
+
...FontVariantFragment
|
562
|
+
}
|
563
|
+
}
|
564
|
+
GRAPHQL
|
565
|
+
|
566
|
+
FontVariantFragment = <<~GRAPHQL
|
567
|
+
fragment FontVariantFragment on FontVariant {
|
568
|
+
fontSize
|
569
|
+
fontWeight
|
570
|
+
}
|
571
|
+
GRAPHQL
|
572
|
+
|
573
|
+
LayoutConfigurationFragment = <<~GRAPHQL
|
574
|
+
fragment LayoutConfigurationFragment on PaywallLayoutConfiguration {
|
575
|
+
alignment
|
576
|
+
planWidth
|
577
|
+
planMargin
|
578
|
+
planPadding
|
579
|
+
}
|
580
|
+
GRAPHQL
|
581
|
+
|
582
|
+
PaywallConfigurationFragment = <<~GRAPHQL
|
583
|
+
fragment PaywallConfigurationFragment on PaywallConfiguration {
|
584
|
+
palette {
|
585
|
+
primary
|
586
|
+
textColor
|
587
|
+
backgroundColor
|
588
|
+
borderColor
|
589
|
+
currentPlanBackground
|
590
|
+
}
|
591
|
+
typography {
|
592
|
+
...TypographyConfigurationFragment
|
593
|
+
}
|
594
|
+
layout {
|
595
|
+
...LayoutConfigurationFragment
|
596
|
+
}
|
597
|
+
customCss
|
598
|
+
}
|
599
|
+
GRAPHQL
|
600
|
+
|
601
|
+
PaywallCurrency = <<~GRAPHQL
|
602
|
+
fragment PaywallCurrency on PaywallCurrency {
|
603
|
+
code
|
604
|
+
symbol
|
605
|
+
}
|
606
|
+
GRAPHQL
|
607
|
+
|
608
|
+
ProductFragment = <<~GRAPHQL
|
609
|
+
fragment ProductFragment on Product {
|
610
|
+
refId
|
611
|
+
displayName
|
612
|
+
description
|
613
|
+
additionalMetaData
|
614
|
+
productSettings {
|
615
|
+
downgradePlan {
|
616
|
+
refId
|
617
|
+
displayName
|
618
|
+
}
|
619
|
+
}
|
620
|
+
}
|
621
|
+
GRAPHQL
|
622
|
+
|
623
|
+
EntitlementsUpdatedPayload = <<~GRAPHQL
|
624
|
+
fragment EntitlementsUpdatedPayload on EntitlementsUpdated {
|
625
|
+
customerId
|
626
|
+
resourceId
|
627
|
+
entitlements {
|
628
|
+
...EntitlementFragment
|
629
|
+
}
|
630
|
+
}
|
631
|
+
GRAPHQL
|
632
|
+
|
633
|
+
EntitlementUsageUpdated = <<~GRAPHQL
|
634
|
+
fragment EntitlementUsageUpdated on UsageUpdated {
|
635
|
+
usage {
|
636
|
+
...UsageUpdatedFragment
|
637
|
+
}
|
638
|
+
entitlement {
|
639
|
+
...EntitlementFragment
|
640
|
+
}
|
641
|
+
}
|
642
|
+
GRAPHQL
|
643
|
+
|
644
|
+
CustomerPortalFragment = <<~GRAPHQL
|
645
|
+
fragment CustomerPortalFragment on CustomerPortal {
|
646
|
+
subscriptions {
|
647
|
+
...CustomerPortalSubscriptionFragment
|
648
|
+
}
|
649
|
+
entitlements {
|
650
|
+
...CustomerPortalEntitlement
|
651
|
+
}
|
652
|
+
promotionalEntitlements {
|
653
|
+
...CustomerPortalPromotionalEntitlement
|
654
|
+
}
|
655
|
+
billingInformation {
|
656
|
+
...CustomerPortalBillingInformation
|
657
|
+
}
|
658
|
+
showWatermark
|
659
|
+
billingPortalUrl
|
660
|
+
canUpgradeSubscription
|
661
|
+
configuration {
|
662
|
+
...CustomerPortalConfigurationFragment
|
663
|
+
}
|
664
|
+
resource {
|
665
|
+
...CustomerResourceFragment
|
666
|
+
}
|
667
|
+
}
|
668
|
+
GRAPHQL
|
669
|
+
|
670
|
+
CustomerPortalConfigurationFragment = <<~GRAPHQL
|
671
|
+
fragment CustomerPortalConfigurationFragment on CustomerPortalConfiguration {
|
672
|
+
palette {
|
673
|
+
primary
|
674
|
+
textColor
|
675
|
+
backgroundColor
|
676
|
+
borderColor
|
677
|
+
currentPlanBackground
|
678
|
+
iconsColor
|
679
|
+
paywallBackgroundColor
|
680
|
+
}
|
681
|
+
typography {
|
682
|
+
...TypographyConfigurationFragment
|
683
|
+
}
|
684
|
+
customCss
|
685
|
+
}
|
686
|
+
GRAPHQL
|
687
|
+
|
688
|
+
CustomerPortalSubscriptionFragment = <<~GRAPHQL
|
689
|
+
fragment CustomerPortalSubscriptionFragment on CustomerPortalSubscription {
|
690
|
+
subscriptionId
|
691
|
+
planName
|
692
|
+
pricing {
|
693
|
+
unitQuantity
|
694
|
+
billingPeriod
|
695
|
+
billingModel
|
696
|
+
pricingType
|
697
|
+
usageBasedEstimatedBill
|
698
|
+
price {
|
699
|
+
amount
|
700
|
+
currency
|
701
|
+
}
|
702
|
+
feature {
|
703
|
+
featureUnits
|
704
|
+
featureUnitsPlural
|
705
|
+
displayName
|
706
|
+
}
|
707
|
+
}
|
708
|
+
status
|
709
|
+
trialRemainingDays
|
710
|
+
billingPeriodRange {
|
711
|
+
start
|
712
|
+
end
|
713
|
+
}
|
714
|
+
totalPrice {
|
715
|
+
subTotal {
|
716
|
+
amount
|
717
|
+
}
|
718
|
+
total {
|
719
|
+
amount
|
720
|
+
}
|
721
|
+
addonsTotal {
|
722
|
+
amount
|
723
|
+
}
|
724
|
+
}
|
725
|
+
addons {
|
726
|
+
...CustomerPortalSubscriptionAddon
|
727
|
+
}
|
728
|
+
scheduledUpdates {
|
729
|
+
...CustomerPortalSubscriptionScheduledUpdateData
|
730
|
+
}
|
731
|
+
}
|
732
|
+
GRAPHQL
|
733
|
+
|
734
|
+
CustomerPortalSubscriptionAddon = <<~GRAPHQL
|
735
|
+
fragment CustomerPortalSubscriptionAddon on CustomerPortalAddon {
|
736
|
+
addonId
|
737
|
+
description
|
738
|
+
displayName
|
739
|
+
quantity
|
740
|
+
}
|
741
|
+
GRAPHQL
|
742
|
+
|
743
|
+
CustomerPortalSubscriptionScheduledUpdateData = <<~GRAPHQL
|
744
|
+
fragment CustomerPortalSubscriptionScheduledUpdateData on SubscriptionScheduledUpdate {
|
745
|
+
subscriptionScheduleType
|
746
|
+
scheduleStatus
|
747
|
+
scheduledExecutionTime
|
748
|
+
targetPackage {
|
749
|
+
id
|
750
|
+
refId
|
751
|
+
displayName
|
752
|
+
}
|
753
|
+
scheduleVariables {
|
754
|
+
... on DowngradeChangeVariables {
|
755
|
+
addonRefIds
|
756
|
+
billingPeriod
|
757
|
+
downgradePlanRefId
|
758
|
+
}
|
759
|
+
... on BillingPeriodChangeVariables {
|
760
|
+
billingPeriod
|
761
|
+
}
|
762
|
+
... on UnitAmountChangeVariables {
|
763
|
+
newUnitAmount
|
764
|
+
featureId
|
765
|
+
}
|
766
|
+
}
|
767
|
+
}
|
768
|
+
GRAPHQL
|
769
|
+
|
770
|
+
CustomerPortalEntitlement = <<~GRAPHQL
|
771
|
+
fragment CustomerPortalEntitlement on Entitlement {
|
772
|
+
isGranted
|
773
|
+
usageLimit
|
774
|
+
currentUsage
|
775
|
+
hasUnlimitedUsage
|
776
|
+
nextResetDate
|
777
|
+
resetPeriod
|
778
|
+
resetPeriodConfiguration {
|
779
|
+
...ResetPeriodConfigurationFragment
|
780
|
+
}
|
781
|
+
feature {
|
782
|
+
...FeatureFragment
|
783
|
+
}
|
784
|
+
}
|
785
|
+
GRAPHQL
|
786
|
+
|
787
|
+
CustomerPortalPromotionalEntitlement = <<~GRAPHQL
|
788
|
+
fragment CustomerPortalPromotionalEntitlement on CustomerPortalPromotionalEntitlement {
|
789
|
+
displayName
|
790
|
+
hasUnlimitedUsage
|
791
|
+
usageLimit
|
792
|
+
period
|
793
|
+
startDate
|
794
|
+
endDate
|
795
|
+
}
|
796
|
+
GRAPHQL
|
797
|
+
|
798
|
+
CustomerPortalBillingInformation = <<~GRAPHQL
|
799
|
+
fragment CustomerPortalBillingInformation on CustomerPortalBillingInformation {
|
800
|
+
email
|
801
|
+
name
|
802
|
+
defaultPaymentMethodLast4Digits
|
803
|
+
defaultPaymentMethodId
|
804
|
+
defaultPaymentMethodLast4Digits
|
805
|
+
defaultPaymentExpirationMonth
|
806
|
+
defaultPaymentExpirationYear
|
807
|
+
}
|
808
|
+
GRAPHQL
|
809
|
+
|
810
|
+
MockPaywallPlanFragment = <<~GRAPHQL
|
811
|
+
fragment MockPaywallPlanFragment on PaywallPlan {
|
812
|
+
refId
|
813
|
+
description
|
814
|
+
displayName
|
815
|
+
billingId
|
816
|
+
additionalMetaData
|
817
|
+
product {
|
818
|
+
refId
|
819
|
+
displayName
|
820
|
+
description
|
821
|
+
additionalMetaData
|
822
|
+
}
|
823
|
+
basePlan {
|
824
|
+
refId
|
825
|
+
displayName
|
826
|
+
}
|
827
|
+
entitlements {
|
828
|
+
...MockPaywallPackageEntitlementFragment
|
829
|
+
}
|
830
|
+
inheritedEntitlements {
|
831
|
+
...MockPaywallPackageEntitlementFragment
|
832
|
+
}
|
833
|
+
prices {
|
834
|
+
...MockPaywallPriceFragment
|
835
|
+
}
|
836
|
+
pricingType
|
837
|
+
defaultTrialConfig {
|
838
|
+
duration
|
839
|
+
units
|
840
|
+
}
|
841
|
+
compatibleAddons {
|
842
|
+
...MockPaywallAddonFragment
|
843
|
+
}
|
844
|
+
}
|
845
|
+
GRAPHQL
|
846
|
+
|
847
|
+
MockPaywallPackageEntitlementFragment = <<~GRAPHQL
|
848
|
+
fragment MockPaywallPackageEntitlementFragment on Entitlement {
|
849
|
+
usageLimit
|
850
|
+
hasUnlimitedUsage
|
851
|
+
resetPeriod
|
852
|
+
hiddenFromWidgets
|
853
|
+
displayNameOverride
|
854
|
+
feature {
|
855
|
+
featureType
|
856
|
+
meterType
|
857
|
+
featureUnits
|
858
|
+
featureUnitsPlural
|
859
|
+
displayName
|
860
|
+
description
|
861
|
+
refId
|
862
|
+
additionalMetaData
|
863
|
+
}
|
864
|
+
}
|
865
|
+
GRAPHQL
|
866
|
+
|
867
|
+
MockPaywallPriceFragment = <<~GRAPHQL
|
868
|
+
fragment MockPaywallPriceFragment on PaywallPrice {
|
869
|
+
billingModel
|
870
|
+
billingPeriod
|
871
|
+
billingId
|
872
|
+
minUnitQuantity
|
873
|
+
maxUnitQuantity
|
874
|
+
billingCountryCode
|
875
|
+
price {
|
876
|
+
amount
|
877
|
+
currency
|
878
|
+
}
|
879
|
+
feature {
|
880
|
+
featureUnits
|
881
|
+
featureUnitsPlural
|
882
|
+
displayName
|
883
|
+
}
|
884
|
+
}
|
885
|
+
GRAPHQL
|
886
|
+
|
887
|
+
MockPaywallAddonFragment = <<~GRAPHQL
|
888
|
+
fragment MockPaywallAddonFragment on PaywallAddon {
|
889
|
+
refId
|
890
|
+
displayName
|
891
|
+
description
|
892
|
+
additionalMetaData
|
893
|
+
billingId
|
894
|
+
entitlements {
|
895
|
+
...MockPaywallPackageEntitlementFragment
|
896
|
+
}
|
897
|
+
prices {
|
898
|
+
...MockPaywallPriceFragment
|
899
|
+
}
|
900
|
+
pricingType
|
901
|
+
}
|
902
|
+
GRAPHQL
|
903
|
+
|
904
|
+
PaywallFragment = <<~GRAPHQL
|
905
|
+
fragment PaywallFragment on Paywall {
|
906
|
+
plans {
|
907
|
+
...PlanFragment
|
908
|
+
}
|
909
|
+
currency {
|
910
|
+
...PaywallCurrency
|
911
|
+
}
|
912
|
+
configuration {
|
913
|
+
...PaywallConfigurationFragment
|
914
|
+
}
|
915
|
+
customer {
|
916
|
+
...CustomerFragment
|
917
|
+
}
|
918
|
+
activeSubscriptions {
|
919
|
+
...SubscriptionFragment
|
920
|
+
}
|
921
|
+
resource {
|
922
|
+
...CustomerResourceFragment
|
923
|
+
}
|
924
|
+
}
|
925
|
+
GRAPHQL
|
926
|
+
end
|
927
|
+
|
928
|
+
module Mutation
|
929
|
+
ProvisionCustomer = <<~GRAPHQL
|
930
|
+
mutation ($input: ProvisionCustomerInput!) {
|
931
|
+
provisionCustomer(input: $input) {
|
932
|
+
customer {
|
933
|
+
...SlimCustomerFragment
|
934
|
+
}
|
935
|
+
subscriptionDecisionStrategy
|
936
|
+
subscription {
|
937
|
+
...SlimSubscriptionFragment
|
938
|
+
}
|
939
|
+
}
|
940
|
+
}
|
941
|
+
#{Fragment::SlimCustomerFragment}
|
942
|
+
#{Fragment::SlimSubscriptionFragment}
|
943
|
+
#{Fragment::CustomerResourceFragment}
|
944
|
+
#{Fragment::PriceFragment}
|
945
|
+
#{Fragment::TotalPriceFragment}
|
946
|
+
GRAPHQL
|
947
|
+
|
948
|
+
ImportCustomerBulk = <<~GRAPHQL
|
949
|
+
mutation ($input: ImportCustomerBulk!) {
|
950
|
+
importCustomersBulk(input: $input)
|
951
|
+
}
|
952
|
+
GRAPHQL
|
953
|
+
|
954
|
+
ImportCustomer = <<~GRAPHQL
|
955
|
+
mutation ($input: ImportCustomerInput!) {
|
956
|
+
importCustomer: importOneCustomer(input: $input) {
|
957
|
+
...SlimCustomerFragment
|
958
|
+
}
|
959
|
+
}
|
960
|
+
#{Fragment::SlimCustomerFragment}
|
961
|
+
GRAPHQL
|
962
|
+
|
963
|
+
UpdateCustomer = <<~GRAPHQL
|
964
|
+
mutation ($input: UpdateCustomerInput!) {
|
965
|
+
updateCustomer: updateOneCustomer(input: $input) {
|
966
|
+
...SlimCustomerFragment
|
967
|
+
}
|
968
|
+
}
|
969
|
+
#{Fragment::SlimCustomerFragment}
|
970
|
+
GRAPHQL
|
971
|
+
|
972
|
+
ProvisionSubscription = <<~GRAPHQL
|
973
|
+
mutation ($input: ProvisionSubscriptionInput!) {
|
974
|
+
provisionSubscription: provisionSubscriptionV2(input: $input) {
|
975
|
+
checkoutUrl
|
976
|
+
status
|
977
|
+
subscription {
|
978
|
+
...SlimSubscriptionFragment
|
979
|
+
}
|
980
|
+
}
|
981
|
+
}
|
982
|
+
#{Fragment::SlimSubscriptionFragment}
|
983
|
+
#{Fragment::CustomerResourceFragment}
|
984
|
+
#{Fragment::PriceFragment}
|
985
|
+
#{Fragment::TotalPriceFragment}
|
986
|
+
GRAPHQL
|
987
|
+
|
988
|
+
ImportSubscriptionsBulk = <<~GRAPHQL
|
989
|
+
mutation ($input: ImportSubscriptionsBulk!) {
|
990
|
+
importSubscriptionsBulk(input: $input)
|
991
|
+
}
|
992
|
+
GRAPHQL
|
993
|
+
|
994
|
+
UpdateSubscription = <<~GRAPHQL
|
995
|
+
mutation ($input: UpdateSubscriptionInput!) {
|
996
|
+
updateSubscription: updateOneSubscription(input: $input) {
|
997
|
+
...SlimSubscriptionFragment
|
998
|
+
}
|
999
|
+
}
|
1000
|
+
#{Fragment::SlimSubscriptionFragment}
|
1001
|
+
#{Fragment::CustomerResourceFragment}
|
1002
|
+
#{Fragment::PriceFragment}
|
1003
|
+
#{Fragment::TotalPriceFragment}
|
1004
|
+
GRAPHQL
|
1005
|
+
|
1006
|
+
CancelSubscription = <<~GRAPHQL
|
1007
|
+
mutation ($input: SubscriptionCancellationInput!) {
|
1008
|
+
cancelSubscription(input: $input) {
|
1009
|
+
...SlimSubscriptionFragment
|
1010
|
+
}
|
1011
|
+
}
|
1012
|
+
#{Fragment::SlimSubscriptionFragment}
|
1013
|
+
#{Fragment::CustomerResourceFragment}
|
1014
|
+
#{Fragment::PriceFragment}
|
1015
|
+
#{Fragment::TotalPriceFragment}
|
1016
|
+
GRAPHQL
|
1017
|
+
|
1018
|
+
InitiateCheckout = <<~GRAPHQL
|
1019
|
+
mutation ($input: InitiateCheckoutInput!) {
|
1020
|
+
initiateCheckout(input: $input) {
|
1021
|
+
checkoutUrl
|
1022
|
+
checkoutBillingId
|
1023
|
+
}
|
1024
|
+
}
|
1025
|
+
GRAPHQL
|
1026
|
+
|
1027
|
+
EstimateSubscription = <<~GRAPHQL
|
1028
|
+
mutation ($input: EstimateSubscriptionInput!) {
|
1029
|
+
estimateSubscription(input: $input) {
|
1030
|
+
...SubscriptionPreviewFragment
|
1031
|
+
}
|
1032
|
+
}
|
1033
|
+
#{Fragment::SubscriptionPreviewFragment}
|
1034
|
+
GRAPHQL
|
1035
|
+
|
1036
|
+
EstimateSubscriptionUpdate = <<~GRAPHQL
|
1037
|
+
mutation ($input: EstimateSubscriptionUpdateInput!) {
|
1038
|
+
estimateSubscriptionUpdate(input: $input) {
|
1039
|
+
...SubscriptionPreviewFragment
|
1040
|
+
}
|
1041
|
+
}
|
1042
|
+
#{Fragment::SubscriptionPreviewFragment}
|
1043
|
+
GRAPHQL
|
1044
|
+
|
1045
|
+
CancelSubscriptionUpdates = <<~GRAPHQL
|
1046
|
+
mutation (
|
1047
|
+
$input: SubscriptionUpdateScheduleCancellationInput!
|
1048
|
+
) {
|
1049
|
+
cancelSchedule(input: $input)
|
1050
|
+
}
|
1051
|
+
GRAPHQL
|
1052
|
+
|
1053
|
+
ReportUsage = <<~GRAPHQL
|
1054
|
+
mutation ($input: UsageMeasurementCreateInput!) {
|
1055
|
+
createUsageMeasurement(usageMeasurement: $input) {
|
1056
|
+
id
|
1057
|
+
currentUsage
|
1058
|
+
nextResetDate
|
1059
|
+
timestamp
|
1060
|
+
}
|
1061
|
+
}
|
1062
|
+
GRAPHQL
|
1063
|
+
|
1064
|
+
ReportEntitlementCheckRequested = <<~GRAPHQL
|
1065
|
+
mutation (
|
1066
|
+
$entitlementCheckRequested: EntitlementCheckRequested!
|
1067
|
+
) {
|
1068
|
+
reportEntitlementCheckRequested(
|
1069
|
+
entitlementCheckRequested: $entitlementCheckRequested
|
1070
|
+
)
|
1071
|
+
}
|
1072
|
+
GRAPHQL
|
1073
|
+
|
1074
|
+
CreateSubscription = <<~GRAPHQL
|
1075
|
+
mutation ($input: SubscriptionInput!) {
|
1076
|
+
createSubscription(subscription: $input) {
|
1077
|
+
...SlimSubscriptionFragment
|
1078
|
+
}
|
1079
|
+
}
|
1080
|
+
#{Fragment::SlimSubscriptionFragment}
|
1081
|
+
#{Fragment::CustomerResourceFragment}
|
1082
|
+
#{Fragment::PriceFragment}
|
1083
|
+
#{Fragment::TotalPriceFragment}
|
1084
|
+
GRAPHQL
|
1085
|
+
|
1086
|
+
MigrateSubscriptionToLatest = <<~GRAPHQL
|
1087
|
+
mutation ($input: SubscriptionMigrationInput!) {
|
1088
|
+
migrateSubscriptionToLatest(input: $input) {
|
1089
|
+
subscriptionId
|
1090
|
+
}
|
1091
|
+
}
|
1092
|
+
GRAPHQL
|
1093
|
+
end
|
1094
|
+
|
1095
|
+
module Query
|
1096
|
+
GetCustomerById = <<~GRAPHQL
|
1097
|
+
query ($input: GetCustomerByRefIdInput!) {
|
1098
|
+
getCustomerByRefId(input: $input) {
|
1099
|
+
...CustomerWithSubscriptionsFragment
|
1100
|
+
}
|
1101
|
+
}
|
1102
|
+
#{Fragment::CustomerWithSubscriptionsFragment}
|
1103
|
+
#{Fragment::CustomerFragment}
|
1104
|
+
#{Fragment::SlimCustomerFragment}
|
1105
|
+
#{Fragment::CouponFragment}
|
1106
|
+
#{Fragment::PromotionalEntitlementFragment}
|
1107
|
+
#{Fragment::SubscriptionFragment}
|
1108
|
+
#{Fragment::CustomerResourceFragment}
|
1109
|
+
#{Fragment::PriceFragment}
|
1110
|
+
#{Fragment::TotalPriceFragment}
|
1111
|
+
#{Fragment::PlanFragment}
|
1112
|
+
#{Fragment::ProductFragment}
|
1113
|
+
#{Fragment::PackageEntitlementFragment}
|
1114
|
+
#{Fragment::AddonFragment}
|
1115
|
+
#{Fragment::SubscriptionScheduledUpdateData}
|
1116
|
+
GRAPHQL
|
1117
|
+
|
1118
|
+
GetActiveSubscriptions = <<~GRAPHQL
|
1119
|
+
query ($input: GetActiveSubscriptionsInput!) {
|
1120
|
+
getActiveSubscriptions(input: $input) {
|
1121
|
+
...SubscriptionFragment
|
1122
|
+
}
|
1123
|
+
}
|
1124
|
+
#{Fragment::SubscriptionFragment}
|
1125
|
+
#{Fragment::CustomerResourceFragment}
|
1126
|
+
#{Fragment::PriceFragment}
|
1127
|
+
#{Fragment::TotalPriceFragment}
|
1128
|
+
#{Fragment::PlanFragment}
|
1129
|
+
#{Fragment::ProductFragment}
|
1130
|
+
#{Fragment::PackageEntitlementFragment}
|
1131
|
+
#{Fragment::AddonFragment}
|
1132
|
+
#{Fragment::SubscriptionScheduledUpdateData}
|
1133
|
+
GRAPHQL
|
1134
|
+
|
1135
|
+
GetCoupons = <<~GRAPHQL
|
1136
|
+
query {
|
1137
|
+
coupons(filter: { status: { eq: ACTIVE } }, paging: { first: 50 }) {
|
1138
|
+
edges {
|
1139
|
+
node {
|
1140
|
+
...CouponFragment
|
1141
|
+
}
|
1142
|
+
}
|
1143
|
+
}
|
1144
|
+
}
|
1145
|
+
#{Fragment::CouponFragment}
|
1146
|
+
GRAPHQL
|
1147
|
+
|
1148
|
+
GetPaywall = <<~GRAPHQL
|
1149
|
+
query ($input: GetPaywallInput!) {
|
1150
|
+
paywall(input: $input) {
|
1151
|
+
...PaywallFragment
|
1152
|
+
}
|
1153
|
+
}
|
1154
|
+
#{Fragment::PaywallFragment}
|
1155
|
+
#{Fragment::PlanFragment}
|
1156
|
+
#{Fragment::ProductFragment}
|
1157
|
+
#{Fragment::PackageEntitlementFragment}
|
1158
|
+
#{Fragment::AddonFragment}
|
1159
|
+
#{Fragment::PriceFragment}
|
1160
|
+
#{Fragment::PaywallCurrency}
|
1161
|
+
#{Fragment::PaywallConfigurationFragment}
|
1162
|
+
#{Fragment::TypographyConfigurationFragment}
|
1163
|
+
#{Fragment::FontVariantFragment}
|
1164
|
+
#{Fragment::LayoutConfigurationFragment}
|
1165
|
+
#{Fragment::CustomerFragment}
|
1166
|
+
#{Fragment::SlimCustomerFragment}
|
1167
|
+
#{Fragment::CouponFragment}
|
1168
|
+
#{Fragment::PromotionalEntitlementFragment}
|
1169
|
+
#{Fragment::SubscriptionFragment}
|
1170
|
+
#{Fragment::CustomerResourceFragment}
|
1171
|
+
#{Fragment::TotalPriceFragment}
|
1172
|
+
#{Fragment::SubscriptionScheduledUpdateData}
|
1173
|
+
GRAPHQL
|
1174
|
+
|
1175
|
+
GetEntitlements = <<~GRAPHQL
|
1176
|
+
query ($query: FetchEntitlementsQuery!) {
|
1177
|
+
entitlements: cachedEntitlements(query: $query) {
|
1178
|
+
...EntitlementFragment
|
1179
|
+
}
|
1180
|
+
}
|
1181
|
+
#{Fragment::EntitlementFragment}
|
1182
|
+
#{Fragment::ResetPeriodConfigurationFragment}
|
1183
|
+
#{Fragment::FeatureFragment}
|
1184
|
+
GRAPHQL
|
1185
|
+
|
1186
|
+
GetEntitlement = <<~GRAPHQL
|
1187
|
+
query ($query: FetchEntitlementQuery!) {
|
1188
|
+
entitlement(query: $query) {
|
1189
|
+
...EntitlementFragment
|
1190
|
+
}
|
1191
|
+
}
|
1192
|
+
#{Fragment::EntitlementFragment}
|
1193
|
+
#{Fragment::ResetPeriodConfigurationFragment}
|
1194
|
+
#{Fragment::FeatureFragment}
|
1195
|
+
GRAPHQL
|
1196
|
+
|
1197
|
+
GetProducts = <<~GRAPHQL
|
1198
|
+
query {
|
1199
|
+
products(paging: { first: 50 }) {
|
1200
|
+
edges {
|
1201
|
+
node {
|
1202
|
+
...ProductFragment
|
1203
|
+
}
|
1204
|
+
}
|
1205
|
+
}
|
1206
|
+
}
|
1207
|
+
#{Fragment::ProductFragment}
|
1208
|
+
GRAPHQL
|
1209
|
+
|
1210
|
+
GetSdkConfiguration = <<~GRAPHQL
|
1211
|
+
query {
|
1212
|
+
sdkConfiguration {
|
1213
|
+
sentryDsn
|
1214
|
+
isWidgetWatermarkEnabled
|
1215
|
+
}
|
1216
|
+
}
|
1217
|
+
GRAPHQL
|
1218
|
+
|
1219
|
+
GetCustomerPortalByRefId = <<~GRAPHQL
|
1220
|
+
query ($input: CustomerPortalInput!) {
|
1221
|
+
customerPortal(input: $input) {
|
1222
|
+
...CustomerPortalFragment
|
1223
|
+
}
|
1224
|
+
}
|
1225
|
+
#{Fragment::CustomerPortalFragment}
|
1226
|
+
#{Fragment::CustomerPortalSubscriptionFragment}
|
1227
|
+
#{Fragment::CustomerPortalSubscriptionAddon}
|
1228
|
+
#{Fragment::CustomerPortalSubscriptionScheduledUpdateData}
|
1229
|
+
#{Fragment::CustomerPortalEntitlement}
|
1230
|
+
#{Fragment::ResetPeriodConfigurationFragment}
|
1231
|
+
#{Fragment::FeatureFragment}
|
1232
|
+
#{Fragment::CustomerPortalPromotionalEntitlement}
|
1233
|
+
#{Fragment::CustomerPortalBillingInformation}
|
1234
|
+
#{Fragment::CustomerPortalConfigurationFragment}
|
1235
|
+
#{Fragment::TypographyConfigurationFragment}
|
1236
|
+
#{Fragment::FontVariantFragment}
|
1237
|
+
#{Fragment::CustomerResourceFragment}
|
1238
|
+
GRAPHQL
|
1239
|
+
|
1240
|
+
GetMockPaywall = <<~GRAPHQL
|
1241
|
+
query ($input: GetPaywallInput!) {
|
1242
|
+
mockPaywall(input: $input) {
|
1243
|
+
plans {
|
1244
|
+
...MockPaywallPlanFragment
|
1245
|
+
}
|
1246
|
+
configuration {
|
1247
|
+
...PaywallConfigurationFragment
|
1248
|
+
}
|
1249
|
+
}
|
1250
|
+
}
|
1251
|
+
#{Fragment::MockPaywallPlanFragment}
|
1252
|
+
#{Fragment::MockPaywallPackageEntitlementFragment}
|
1253
|
+
#{Fragment::MockPaywallPriceFragment}
|
1254
|
+
#{Fragment::MockPaywallAddonFragment}
|
1255
|
+
#{Fragment::PaywallConfigurationFragment}
|
1256
|
+
#{Fragment::TypographyConfigurationFragment}
|
1257
|
+
#{Fragment::FontVariantFragment}
|
1258
|
+
#{Fragment::LayoutConfigurationFragment}
|
1259
|
+
GRAPHQL
|
1260
|
+
|
1261
|
+
EntitlementsUpdated = <<~GRAPHQL
|
1262
|
+
subscription {
|
1263
|
+
entitlementsUpdated {
|
1264
|
+
...EntitlementsUpdatedPayload
|
1265
|
+
}
|
1266
|
+
}
|
1267
|
+
#{Fragment::EntitlementsUpdatedPayload}
|
1268
|
+
#{Fragment::EntitlementFragment}
|
1269
|
+
#{Fragment::ResetPeriodConfigurationFragment}
|
1270
|
+
#{Fragment::FeatureFragment}
|
1271
|
+
GRAPHQL
|
1272
|
+
|
1273
|
+
UsageUpdated = <<~GRAPHQL
|
1274
|
+
subscription {
|
1275
|
+
usageUpdated {
|
1276
|
+
...EntitlementUsageUpdated
|
1277
|
+
}
|
1278
|
+
}
|
1279
|
+
#{Fragment::EntitlementUsageUpdated}
|
1280
|
+
#{Fragment::UsageUpdatedFragment}
|
1281
|
+
#{Fragment::EntitlementFragment}
|
1282
|
+
#{Fragment::ResetPeriodConfigurationFragment}
|
1283
|
+
#{Fragment::FeatureFragment}
|
1284
|
+
GRAPHQL
|
1285
|
+
end
|
1286
|
+
end
|