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