stigg-api-client 0.3.0 → 0.429.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,1255 +0,0 @@
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
- }
214
- }
215
- }
216
- GRAPHQL
217
-
218
- SubscriptionFragment = <<~GRAPHQL
219
- fragment SubscriptionFragment on CustomerSubscription {
220
- id
221
- startDate
222
- endDate
223
- trialEndDate
224
- cancellationDate
225
- effectiveEndDate
226
- status
227
- refId
228
- currentBillingPeriodEnd
229
- additionalMetaData
230
- billingId
231
- billingLinkUrl
232
- resource {
233
- ...CustomerResourceFragment
234
- }
235
- experimentInfo {
236
- name
237
- groupType
238
- groupName
239
- id
240
- }
241
- prices {
242
- usageLimit
243
- price {
244
- ...PriceFragment
245
- }
246
- }
247
- totalPrice {
248
- ...TotalPriceFragment
249
- }
250
- pricingType
251
- plan {
252
- ...PlanFragment
253
- }
254
- addons {
255
- id
256
- quantity
257
- addon {
258
- ...AddonFragment
259
- }
260
- }
261
- scheduledUpdates {
262
- ...SubscriptionScheduledUpdateData
263
- }
264
- }
265
- GRAPHQL
266
-
267
- PromotionalEntitlementFragment = <<~GRAPHQL
268
- fragment PromotionalEntitlementFragment on PromotionalEntitlement {
269
- status
270
- usageLimit
271
- featureId
272
- hasUnlimitedUsage
273
- resetPeriod
274
- endDate
275
- isVisible
276
- feature {
277
- featureType
278
- meterType
279
- featureUnits
280
- featureUnitsPlural
281
- displayName
282
- description
283
- refId
284
- additionalMetaData
285
- }
286
- }
287
- GRAPHQL
288
-
289
- SlimCustomerFragment = <<~GRAPHQL
290
- fragment SlimCustomerFragment on Customer {
291
- id
292
- name
293
- email
294
- createdAt
295
- updatedAt
296
- refId
297
- billingId
298
- additionalMetaData
299
- }
300
- GRAPHQL
301
-
302
- CustomerFragment = <<~GRAPHQL
303
- fragment CustomerFragment on Customer {
304
- ...SlimCustomerFragment
305
- hasPaymentMethod
306
- defaultPaymentExpirationMonth
307
- defaultPaymentExpirationYear
308
- defaultPaymentMethodLast4Digits
309
- trialedPlans {
310
- productId
311
- productRefId
312
- planRefId
313
- planId
314
- }
315
- experimentInfo {
316
- groupType
317
- groupName
318
- id
319
- name
320
- }
321
- coupon {
322
- ...CouponFragment
323
- }
324
- eligibleForTrial {
325
- productId
326
- productRefId
327
- eligible
328
- }
329
- promotionalEntitlements {
330
- ...PromotionalEntitlementFragment
331
- }
332
- subscriptions {
333
- ...SubscriptionFragment
334
- }
335
- }
336
- GRAPHQL
337
-
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
480
- billingId
481
- displayName
482
- description
483
- additionalMetaData
484
- billingId
485
- entitlements {
486
- ...PaywallPackageEntitlementFragment
487
- }
488
- prices {
489
- ...PriceFragment
490
- }
491
- additionalMetaData
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
- }
517
- prices {
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
681
- price {
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
706
- }
707
- }
708
- addons {
709
- ...CustomerPortalSubscriptionAddon
710
- }
711
- scheduledUpdates {
712
- ...CustomerPortalSubscriptionScheduledUpdateData
713
- }
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
747
- }
748
- }
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
765
- }
766
- }
767
- GRAPHQL
768
-
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
795
- description
796
- displayName
797
- billingId
798
- additionalMetaData
799
- product {
800
- refId
801
- displayName
802
- description
803
- additionalMetaData
804
- }
805
- basePlan {
806
- refId
807
- displayName
808
- }
809
- entitlements {
810
- ...MockPaywallPackageEntitlementFragment
811
- }
812
- inheritedEntitlements {
813
- ...MockPaywallPackageEntitlementFragment
814
- }
815
- prices {
816
- ...MockPaywallPriceFragment
817
- }
818
- pricingType
819
- defaultTrialConfig {
820
- duration
821
- units
822
- }
823
- compatibleAddons {
824
- ...MockPaywallAddonFragment
825
- }
826
- }
827
- GRAPHQL
828
-
829
- MockPaywallPackageEntitlementFragment = <<~GRAPHQL
830
- fragment MockPaywallPackageEntitlementFragment on Entitlement {
831
- usageLimit
832
- hasUnlimitedUsage
833
- resetPeriod
834
- hiddenFromWidgets
835
- displayNameOverride
836
- feature {
837
- featureType
838
- meterType
839
- featureUnits
840
- featureUnitsPlural
841
- displayName
842
- description
843
- refId
844
- additionalMetaData
845
- }
846
- }
847
- GRAPHQL
848
-
849
- MockPaywallPriceFragment = <<~GRAPHQL
850
- fragment MockPaywallPriceFragment on PaywallPrice {
851
- billingModel
852
- billingPeriod
853
- billingId
854
- minUnitQuantity
855
- maxUnitQuantity
856
- billingCountryCode
857
- price {
858
- amount
859
- currency
860
- }
861
- feature {
862
- featureUnits
863
- featureUnitsPlural
864
- displayName
865
- }
866
- }
867
- GRAPHQL
868
-
869
- MockPaywallAddonFragment = <<~GRAPHQL
870
- fragment MockPaywallAddonFragment on PaywallAddon {
871
- refId
872
- displayName
873
- description
874
- additionalMetaData
875
- billingId
876
- entitlements {
877
- ...MockPaywallPackageEntitlementFragment
878
- }
879
- prices {
880
- ...MockPaywallPriceFragment
881
- }
882
- pricingType
883
- }
884
- GRAPHQL
885
-
886
- PaywallFragment = <<~GRAPHQL
887
- fragment PaywallFragment on Paywall {
888
- plans {
889
- ...PlanFragment
890
- }
891
- currency {
892
- ...PaywallCurrency
893
- }
894
- configuration {
895
- ...PaywallConfigurationFragment
896
- }
897
- customer {
898
- ...CustomerFragment
899
- }
900
- resource {
901
- ...CustomerResourceFragment
902
- }
903
- }
904
- GRAPHQL
905
- end
906
-
907
- module Mutation
908
- ProvisionCustomer = <<~GRAPHQL
909
- mutation ($input: ProvisionCustomerInput!) {
910
- provisionCustomer(input: $input) {
911
- customer {
912
- ...SlimCustomerFragment
913
- }
914
- subscriptionDecisionStrategy
915
- subscription {
916
- ...SlimSubscriptionFragment
917
- }
918
- }
919
- }
920
- #{Fragment::SlimCustomerFragment}
921
- #{Fragment::SlimSubscriptionFragment}
922
- #{Fragment::CustomerResourceFragment}
923
- #{Fragment::PriceFragment}
924
- #{Fragment::TotalPriceFragment}
925
- GRAPHQL
926
-
927
- ImportCustomer = <<~GRAPHQL
928
- mutation ($input: ImportCustomerInput!) {
929
- importCustomer: importOneCustomer(input: $input) {
930
- ...CustomerFragment
931
- }
932
- }
933
- #{Fragment::CustomerFragment}
934
- #{Fragment::SlimCustomerFragment}
935
- #{Fragment::CouponFragment}
936
- #{Fragment::PromotionalEntitlementFragment}
937
- #{Fragment::SubscriptionFragment}
938
- #{Fragment::CustomerResourceFragment}
939
- #{Fragment::PriceFragment}
940
- #{Fragment::TotalPriceFragment}
941
- #{Fragment::PlanFragment}
942
- #{Fragment::ProductFragment}
943
- #{Fragment::PackageEntitlementFragment}
944
- #{Fragment::AddonFragment}
945
- #{Fragment::SubscriptionScheduledUpdateData}
946
- GRAPHQL
947
-
948
- UpdateCustomer = <<~GRAPHQL
949
- mutation ($input: UpdateCustomerInput!) {
950
- updateCustomer: updateOneCustomer(input: $input) {
951
- ...CustomerFragment
952
- }
953
- }
954
- #{Fragment::CustomerFragment}
955
- #{Fragment::SlimCustomerFragment}
956
- #{Fragment::CouponFragment}
957
- #{Fragment::PromotionalEntitlementFragment}
958
- #{Fragment::SubscriptionFragment}
959
- #{Fragment::CustomerResourceFragment}
960
- #{Fragment::PriceFragment}
961
- #{Fragment::TotalPriceFragment}
962
- #{Fragment::PlanFragment}
963
- #{Fragment::ProductFragment}
964
- #{Fragment::PackageEntitlementFragment}
965
- #{Fragment::AddonFragment}
966
- #{Fragment::SubscriptionScheduledUpdateData}
967
- GRAPHQL
968
-
969
- ProvisionSubscription = <<~GRAPHQL
970
- mutation ($input: ProvisionSubscriptionInput!) {
971
- provisionSubscription: provisionSubscriptionV2(input: $input) {
972
- checkoutUrl
973
- status
974
- subscription {
975
- ...SlimSubscriptionFragment
976
- }
977
- }
978
- }
979
- #{Fragment::SlimSubscriptionFragment}
980
- #{Fragment::CustomerResourceFragment}
981
- #{Fragment::PriceFragment}
982
- #{Fragment::TotalPriceFragment}
983
- GRAPHQL
984
-
985
- UpdateSubscription = <<~GRAPHQL
986
- mutation ($input: UpdateSubscriptionInput!) {
987
- updateSubscription: updateOneSubscription(input: $input) {
988
- ...SlimSubscriptionFragment
989
- }
990
- }
991
- #{Fragment::SlimSubscriptionFragment}
992
- #{Fragment::CustomerResourceFragment}
993
- #{Fragment::PriceFragment}
994
- #{Fragment::TotalPriceFragment}
995
- GRAPHQL
996
-
997
- CancelSubscription = <<~GRAPHQL
998
- mutation ($input: SubscriptionCancellationInput!) {
999
- cancelSubscription(input: $input) {
1000
- ...SlimSubscriptionFragment
1001
- }
1002
- }
1003
- #{Fragment::SlimSubscriptionFragment}
1004
- #{Fragment::CustomerResourceFragment}
1005
- #{Fragment::PriceFragment}
1006
- #{Fragment::TotalPriceFragment}
1007
- GRAPHQL
1008
-
1009
- InitiateCheckout = <<~GRAPHQL
1010
- mutation ($input: InitiateCheckoutInput!) {
1011
- initiateCheckout(input: $input) {
1012
- checkoutUrl
1013
- checkoutBillingId
1014
- }
1015
- }
1016
- GRAPHQL
1017
-
1018
- EstimateSubscription = <<~GRAPHQL
1019
- mutation ($input: EstimateSubscriptionInput!) {
1020
- estimateSubscription(input: $input) {
1021
- ...SubscriptionPreviewFragment
1022
- }
1023
- }
1024
- #{Fragment::SubscriptionPreviewFragment}
1025
- GRAPHQL
1026
-
1027
- EstimateSubscriptionUpdate = <<~GRAPHQL
1028
- mutation ($input: EstimateSubscriptionUpdateInput!) {
1029
- estimateSubscriptionUpdate(input: $input) {
1030
- ...SubscriptionPreviewFragment
1031
- }
1032
- }
1033
- #{Fragment::SubscriptionPreviewFragment}
1034
- GRAPHQL
1035
-
1036
- CancelSubscriptionUpdates = <<~GRAPHQL
1037
- mutation ($input: SubscriptionUpdateScheduleCancellationInput!) {
1038
- cancelSchedule(input: $input)
1039
- }
1040
- GRAPHQL
1041
-
1042
- ReportUsage = <<~GRAPHQL
1043
- mutation ($input: UsageMeasurementCreateInput!) {
1044
- createUsageMeasurement(usageMeasurement: $input) {
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
1063
- }
1064
- }
1065
- #{Fragment::SlimSubscriptionFragment}
1066
- #{Fragment::CustomerResourceFragment}
1067
- #{Fragment::PriceFragment}
1068
- #{Fragment::TotalPriceFragment}
1069
- GRAPHQL
1070
- end
1071
-
1072
- module Query
1073
- GetCustomerById = <<~GRAPHQL
1074
- query ($input: GetCustomerByRefIdInput!) {
1075
- getCustomerByRefId(input: $input) {
1076
- ...CustomerFragment
1077
- }
1078
- }
1079
- #{Fragment::CustomerFragment}
1080
- #{Fragment::SlimCustomerFragment}
1081
- #{Fragment::CouponFragment}
1082
- #{Fragment::PromotionalEntitlementFragment}
1083
- #{Fragment::SubscriptionFragment}
1084
- #{Fragment::CustomerResourceFragment}
1085
- #{Fragment::PriceFragment}
1086
- #{Fragment::TotalPriceFragment}
1087
- #{Fragment::PlanFragment}
1088
- #{Fragment::ProductFragment}
1089
- #{Fragment::PackageEntitlementFragment}
1090
- #{Fragment::AddonFragment}
1091
- #{Fragment::SubscriptionScheduledUpdateData}
1092
- GRAPHQL
1093
-
1094
- GetCoupons = <<~GRAPHQL
1095
- query {
1096
- coupons(filter: { status: { eq: ACTIVE } }, paging: { first: 50 }) {
1097
- edges {
1098
- node {
1099
- ...CouponFragment
1100
- }
1101
- }
1102
- }
1103
- }
1104
- #{Fragment::CouponFragment}
1105
- GRAPHQL
1106
-
1107
- GetPaywall = <<~GRAPHQL
1108
- query ($input: GetPaywallInput!) {
1109
- paywall(input: $input) {
1110
- ...PaywallFragment
1111
- }
1112
- }
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}
1132
- GRAPHQL
1133
-
1134
- GetEntitlements = <<~GRAPHQL
1135
- query ($query: FetchEntitlementsQuery!) {
1136
- entitlements: cachedEntitlements(query: $query) {
1137
- ...EntitlementFragment
1138
- }
1139
- }
1140
- #{Fragment::EntitlementFragment}
1141
- #{Fragment::ResetPeriodConfigurationFragment}
1142
- #{Fragment::MonthlyResetPeriodConfigFragment}
1143
- #{Fragment::WeeklyResetPeriodConfigFragment}
1144
- #{Fragment::FeatureFragment}
1145
- GRAPHQL
1146
-
1147
- GetEntitlement = <<~GRAPHQL
1148
- query ($query: FetchEntitlementQuery!) {
1149
- entitlement(query: $query) {
1150
- ...EntitlementFragment
1151
- }
1152
- }
1153
- #{Fragment::EntitlementFragment}
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}
1253
- GRAPHQL
1254
- end
1255
- end