stigg-api-client 0.442.1__py3-none-any.whl → 0.444.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of stigg-api-client might be problematic. Click here for more details.

@@ -0,0 +1,1098 @@
1
+ import sgqlc.types
2
+ import sgqlc.operation
3
+ from . import schema
4
+
5
+ _schema = schema
6
+ _schema_root = _schema.schema
7
+
8
+ __all__ = ('Operations',)
9
+
10
+
11
+ def fragment_coupon_fragment():
12
+ _frag = sgqlc.operation.Fragment(_schema.Coupon, 'CouponFragment')
13
+ _frag.id()
14
+ _frag.discount_value()
15
+ _frag.type()
16
+ _frag.additional_meta_data()
17
+ _frag.ref_id()
18
+ _frag.name()
19
+ _frag.description()
20
+ _frag.created_at()
21
+ _frag.updated_at()
22
+ _frag.billing_id()
23
+ _frag.billing_link_url()
24
+ _frag.type()
25
+ _frag.status()
26
+ _frag_sync_states = _frag.sync_states()
27
+ _frag_sync_states.vendor_identifier()
28
+ _frag_sync_states.status()
29
+ _frag_customers = _frag.customers()
30
+ _frag_customers.id()
31
+ return _frag
32
+
33
+
34
+ def fragment_price_fragment():
35
+ _frag = sgqlc.operation.Fragment(_schema.Price, 'PriceFragment')
36
+ _frag.billing_model()
37
+ _frag.billing_period()
38
+ _frag.billing_id()
39
+ _frag.min_unit_quantity()
40
+ _frag.max_unit_quantity()
41
+ _frag.billing_country_code()
42
+ _frag_price = _frag.price()
43
+ _frag_price.amount()
44
+ _frag_price.currency()
45
+ _frag_feature = _frag.feature()
46
+ _frag_feature.feature_units()
47
+ _frag_feature.feature_units_plural()
48
+ _frag_feature.display_name()
49
+ _frag_feature.description()
50
+ return _frag
51
+
52
+
53
+ def fragment_total_price_fragment():
54
+ _frag = sgqlc.operation.Fragment(_schema.CustomerSubscriptionTotalPrice, 'TotalPriceFragment')
55
+ _frag_sub_total = _frag.sub_total()
56
+ _frag_sub_total.amount()
57
+ _frag_sub_total.currency()
58
+ _frag_total = _frag.total()
59
+ _frag_total.amount()
60
+ _frag_total.currency()
61
+ return _frag
62
+
63
+
64
+ def fragment_package_entitlement_fragment():
65
+ _frag = sgqlc.operation.Fragment(_schema.PackageEntitlement, 'PackageEntitlementFragment')
66
+ _frag.usage_limit()
67
+ _frag.has_unlimited_usage()
68
+ _frag.feature_id()
69
+ _frag.reset_period()
70
+ _frag.hidden_from_widgets()
71
+ _frag.is_custom()
72
+ _frag.display_name_override()
73
+ _frag_feature = _frag.feature()
74
+ _frag_feature.feature_type()
75
+ _frag_feature.meter_type()
76
+ _frag_feature.feature_units()
77
+ _frag_feature.feature_units_plural()
78
+ _frag_feature.display_name()
79
+ _frag_feature.description()
80
+ _frag_feature.ref_id()
81
+ _frag_feature.additional_meta_data()
82
+ return _frag
83
+
84
+
85
+ def fragment_addon_fragment():
86
+ _frag = sgqlc.operation.Fragment(_schema.Addon, 'AddonFragment')
87
+ _frag.id()
88
+ _frag.ref_id()
89
+ _frag.billing_id()
90
+ _frag.display_name()
91
+ _frag.description()
92
+ _frag.additional_meta_data()
93
+ _frag_entitlements = _frag.entitlements()
94
+ _frag_entitlements.__fragment__(fragment_package_entitlement_fragment())
95
+ _frag_prices = _frag.prices()
96
+ _frag_prices.__fragment__(fragment_price_fragment())
97
+ _frag.pricing_type()
98
+ return _frag
99
+
100
+
101
+ def fragment_plan_fragment():
102
+ _frag = sgqlc.operation.Fragment(_schema.Plan, 'PlanFragment')
103
+ _frag.id()
104
+ _frag.ref_id()
105
+ _frag.display_name()
106
+ _frag.description()
107
+ _frag.billing_id()
108
+ _frag.additional_meta_data()
109
+ _frag_product = _frag.product()
110
+ _frag_product.__fragment__(fragment_product_fragment())
111
+ _frag_base_plan = _frag.base_plan()
112
+ _frag_base_plan.ref_id()
113
+ _frag_base_plan.display_name()
114
+ _frag_entitlements = _frag.entitlements()
115
+ _frag_entitlements.__fragment__(fragment_package_entitlement_fragment())
116
+ _frag_inherited_entitlements = _frag.inherited_entitlements()
117
+ _frag_inherited_entitlements.__fragment__(fragment_package_entitlement_fragment())
118
+ _frag_compatible_addons = _frag.compatible_addons()
119
+ _frag_compatible_addons.__fragment__(fragment_addon_fragment())
120
+ _frag_prices = _frag.prices()
121
+ _frag_prices.__fragment__(fragment_price_fragment())
122
+ _frag.pricing_type()
123
+ _frag_default_trial_config = _frag.default_trial_config()
124
+ _frag_default_trial_config.duration()
125
+ _frag_default_trial_config.units()
126
+ return _frag
127
+
128
+
129
+ def fragment_customer_resource_fragment():
130
+ _frag = sgqlc.operation.Fragment(_schema.CustomerResource, 'CustomerResourceFragment')
131
+ _frag.resource_id()
132
+ return _frag
133
+
134
+
135
+ def fragment_slim_subscription_fragment():
136
+ _frag = sgqlc.operation.Fragment(_schema.CustomerSubscription, 'SlimSubscriptionFragment')
137
+ _frag.id()
138
+ _frag.ref_id()
139
+ _frag.status()
140
+ _frag.additional_meta_data()
141
+ _frag.billing_id()
142
+ _frag.billing_link_url()
143
+ _frag.effective_end_date()
144
+ _frag.current_billing_period_end()
145
+ _frag.pricing_type()
146
+ _frag_resource = _frag.resource()
147
+ _frag_resource.__fragment__(fragment_customer_resource_fragment())
148
+ _frag_experiment_info = _frag.experiment_info()
149
+ _frag_experiment_info.name()
150
+ _frag_experiment_info.id()
151
+ _frag_experiment_info.group_name()
152
+ _frag_experiment_info.group_type()
153
+ _frag_prices = _frag.prices()
154
+ _frag_prices.usage_limit()
155
+ _frag_prices_price = _frag_prices.price()
156
+ _frag_prices_price.__fragment__(fragment_price_fragment())
157
+ _frag_total_price = _frag.total_price()
158
+ _frag_total_price.__fragment__(fragment_total_price_fragment())
159
+ _frag_plan = _frag.plan()
160
+ _frag_plan.id()
161
+ _frag_plan.ref_id()
162
+ _frag_addons = _frag.addons()
163
+ _frag_addons.quantity()
164
+ _frag_addons_addon = _frag_addons.addon()
165
+ _frag_addons_addon.id()
166
+ _frag_addons_addon.ref_id()
167
+ _frag_customer = _frag.customer()
168
+ _frag_customer.id()
169
+ _frag_customer.ref_id()
170
+ return _frag
171
+
172
+
173
+ def fragment_subscription_scheduled_update_data():
174
+ _frag = sgqlc.operation.Fragment(_schema.SubscriptionScheduledUpdate, 'SubscriptionScheduledUpdateData')
175
+ _frag.subscription_schedule_type()
176
+ _frag.schedule_status()
177
+ _frag.scheduled_execution_time()
178
+ _frag_target_package = _frag.target_package()
179
+ _frag_target_package.id()
180
+ _frag_target_package.ref_id()
181
+ _frag_target_package.display_name()
182
+ _frag_schedule_variables = _frag.schedule_variables()
183
+ _frag_schedule_variables__as__DowngradeChangeVariables = _frag_schedule_variables.__as__(_schema.DowngradeChangeVariables)
184
+ _frag_schedule_variables__as__DowngradeChangeVariables.addon_ref_ids()
185
+ _frag_schedule_variables__as__DowngradeChangeVariables.billing_period()
186
+ _frag_schedule_variables__as__DowngradeChangeVariables.downgrade_plan_ref_id()
187
+ _frag_schedule_variables__as__BillingPeriodChangeVariables = _frag_schedule_variables.__as__(_schema.BillingPeriodChangeVariables)
188
+ _frag_schedule_variables__as__BillingPeriodChangeVariables.billing_period()
189
+ _frag_schedule_variables__as__UnitAmountChangeVariables = _frag_schedule_variables.__as__(_schema.UnitAmountChangeVariables)
190
+ _frag_schedule_variables__as__UnitAmountChangeVariables.new_unit_amount()
191
+ return _frag
192
+
193
+
194
+ def fragment_subscription_fragment():
195
+ _frag = sgqlc.operation.Fragment(_schema.CustomerSubscription, 'SubscriptionFragment')
196
+ _frag.id()
197
+ _frag.start_date()
198
+ _frag.end_date()
199
+ _frag.trial_end_date()
200
+ _frag.cancellation_date()
201
+ _frag.effective_end_date()
202
+ _frag.status()
203
+ _frag.ref_id()
204
+ _frag.current_billing_period_end()
205
+ _frag.additional_meta_data()
206
+ _frag.billing_id()
207
+ _frag.billing_link_url()
208
+ _frag_resource = _frag.resource()
209
+ _frag_resource.__fragment__(fragment_customer_resource_fragment())
210
+ _frag_experiment_info = _frag.experiment_info()
211
+ _frag_experiment_info.name()
212
+ _frag_experiment_info.group_type()
213
+ _frag_experiment_info.group_name()
214
+ _frag_experiment_info.id()
215
+ _frag_prices = _frag.prices()
216
+ _frag_prices.usage_limit()
217
+ _frag_prices_price = _frag_prices.price()
218
+ _frag_prices_price.__fragment__(fragment_price_fragment())
219
+ _frag_total_price = _frag.total_price()
220
+ _frag_total_price.__fragment__(fragment_total_price_fragment())
221
+ _frag.pricing_type()
222
+ _frag_plan = _frag.plan()
223
+ _frag_plan.__fragment__(fragment_plan_fragment())
224
+ _frag_addons = _frag.addons()
225
+ _frag_addons.id()
226
+ _frag_addons.quantity()
227
+ _frag_addons_addon = _frag_addons.addon()
228
+ _frag_addons_addon.__fragment__(fragment_addon_fragment())
229
+ _frag_scheduled_updates = _frag.scheduled_updates()
230
+ _frag_scheduled_updates.__fragment__(fragment_subscription_scheduled_update_data())
231
+ return _frag
232
+
233
+
234
+ def fragment_promotional_entitlement_fragment():
235
+ _frag = sgqlc.operation.Fragment(_schema.PromotionalEntitlement, 'PromotionalEntitlementFragment')
236
+ _frag.status()
237
+ _frag.usage_limit()
238
+ _frag.feature_id()
239
+ _frag.has_unlimited_usage()
240
+ _frag.reset_period()
241
+ _frag.end_date()
242
+ _frag.is_visible()
243
+ _frag_feature = _frag.feature()
244
+ _frag_feature.feature_type()
245
+ _frag_feature.meter_type()
246
+ _frag_feature.feature_units()
247
+ _frag_feature.feature_units_plural()
248
+ _frag_feature.display_name()
249
+ _frag_feature.description()
250
+ _frag_feature.ref_id()
251
+ _frag_feature.additional_meta_data()
252
+ return _frag
253
+
254
+
255
+ def fragment_slim_customer_fragment():
256
+ _frag = sgqlc.operation.Fragment(_schema.Customer, 'SlimCustomerFragment')
257
+ _frag.id()
258
+ _frag.name()
259
+ _frag.email()
260
+ _frag.created_at()
261
+ _frag.updated_at()
262
+ _frag.ref_id()
263
+ _frag.billing_id()
264
+ _frag.additional_meta_data()
265
+ return _frag
266
+
267
+
268
+ def fragment_customer_fragment():
269
+ _frag = sgqlc.operation.Fragment(_schema.Customer, 'CustomerFragment')
270
+ _frag.__fragment__(fragment_slim_customer_fragment())
271
+ _frag.has_payment_method()
272
+ _frag.has_active_subscription()
273
+ _frag.default_payment_expiration_month()
274
+ _frag.default_payment_expiration_year()
275
+ _frag.default_payment_method_last4_digits()
276
+ _frag_trialed_plans = _frag.trialed_plans()
277
+ _frag_trialed_plans.product_id()
278
+ _frag_trialed_plans.product_ref_id()
279
+ _frag_trialed_plans.plan_ref_id()
280
+ _frag_trialed_plans.plan_id()
281
+ _frag_experiment_info = _frag.experiment_info()
282
+ _frag_experiment_info.group_type()
283
+ _frag_experiment_info.group_name()
284
+ _frag_experiment_info.id()
285
+ _frag_experiment_info.name()
286
+ _frag_coupon = _frag.coupon()
287
+ _frag_coupon.__fragment__(fragment_coupon_fragment())
288
+ _frag_eligible_for_trial = _frag.eligible_for_trial()
289
+ _frag_eligible_for_trial.product_id()
290
+ _frag_eligible_for_trial.product_ref_id()
291
+ _frag_eligible_for_trial.eligible()
292
+ _frag_promotional_entitlements = _frag.promotional_entitlements()
293
+ _frag_promotional_entitlements.__fragment__(fragment_promotional_entitlement_fragment())
294
+ return _frag
295
+
296
+
297
+ def fragment_customer_with_subscriptions_fragment():
298
+ _frag = sgqlc.operation.Fragment(_schema.Customer, 'CustomerWithSubscriptionsFragment')
299
+ _frag.__fragment__(fragment_customer_fragment())
300
+ _frag_subscriptions = _frag.subscriptions()
301
+ _frag_subscriptions.__fragment__(fragment_subscription_fragment())
302
+ return _frag
303
+
304
+
305
+ def fragment_subscription_preview_fragment():
306
+ _frag = sgqlc.operation.Fragment(_schema.SubscriptionPreview, 'SubscriptionPreviewFragment')
307
+ _frag_sub_total = _frag.sub_total()
308
+ _frag_sub_total.amount()
309
+ _frag_sub_total.currency()
310
+ _frag_total_excluding_tax = _frag.total_excluding_tax()
311
+ _frag_total_excluding_tax.amount()
312
+ _frag_total_excluding_tax.currency()
313
+ _frag_total = _frag.total()
314
+ _frag_total.amount()
315
+ _frag_total.currency()
316
+ _frag_tax_details = _frag.tax_details()
317
+ _frag_tax_details.display_name()
318
+ _frag_tax_details.percentage()
319
+ _frag_tax_details.inclusive()
320
+ _frag_tax = _frag.tax()
321
+ _frag_tax.amount()
322
+ _frag_tax.currency()
323
+ _frag_billing_period_range = _frag.billing_period_range()
324
+ _frag_billing_period_range.start()
325
+ _frag_billing_period_range.end()
326
+ _frag_discount = _frag.discount()
327
+ _frag_discount.type()
328
+ _frag_discount.value()
329
+ _frag_discount.duration_type()
330
+ _frag_discount.duration_in_months()
331
+ _frag_subscription = _frag.subscription()
332
+ _frag_subscription_sub_total = _frag_subscription.sub_total()
333
+ _frag_subscription_sub_total.amount()
334
+ _frag_subscription_sub_total.currency()
335
+ _frag_subscription_total_excluding_tax = _frag_subscription.total_excluding_tax()
336
+ _frag_subscription_total_excluding_tax.amount()
337
+ _frag_subscription_total_excluding_tax.currency()
338
+ _frag_subscription_total = _frag_subscription.total()
339
+ _frag_subscription_total.amount()
340
+ _frag_subscription_total.currency()
341
+ _frag_subscription_tax = _frag_subscription.tax()
342
+ _frag_subscription_tax.amount()
343
+ _frag_subscription_tax.currency()
344
+ _frag_proration = _frag.proration()
345
+ _frag_proration.proration_date()
346
+ _frag_proration_credit = _frag_proration.credit()
347
+ _frag_proration_credit.amount()
348
+ _frag_proration_credit.currency()
349
+ _frag_proration_debit = _frag_proration.debit()
350
+ _frag_proration_debit.amount()
351
+ _frag_proration_debit.currency()
352
+ _frag_proration_net_amount = _frag_proration.net_amount()
353
+ _frag_proration_net_amount.amount()
354
+ _frag_proration_net_amount.currency()
355
+ return _frag
356
+
357
+
358
+ def fragment_feature_fragment():
359
+ _frag = sgqlc.operation.Fragment(_schema.EntitlementFeature, 'FeatureFragment')
360
+ _frag.feature_type()
361
+ _frag.meter_type()
362
+ _frag.feature_units()
363
+ _frag.feature_units_plural()
364
+ _frag.description()
365
+ _frag.display_name()
366
+ _frag.ref_id()
367
+ return _frag
368
+
369
+
370
+ def fragment_reset_period_configuration_fragment():
371
+ _frag = sgqlc.operation.Fragment(_schema.ResetPeriodConfiguration, 'ResetPeriodConfigurationFragment')
372
+ _frag.__typename__()
373
+ _frag__as__MonthlyResetPeriodConfig = _frag.__as__(_schema.MonthlyResetPeriodConfig)
374
+ _frag__as__MonthlyResetPeriodConfig.monthly_according_to()
375
+ _frag__as__WeeklyResetPeriodConfig = _frag.__as__(_schema.WeeklyResetPeriodConfig)
376
+ _frag__as__WeeklyResetPeriodConfig.weekly_according_to()
377
+ return _frag
378
+
379
+
380
+ def fragment_usage_updated_fragment():
381
+ _frag = sgqlc.operation.Fragment(_schema.UsageMeasurementUpdated, 'UsageUpdatedFragment')
382
+ _frag.customer_id()
383
+ _frag.resource_id()
384
+ _frag.feature_id()
385
+ _frag.current_usage()
386
+ _frag.next_reset_date()
387
+ return _frag
388
+
389
+
390
+ def fragment_entitlement_fragment():
391
+ _frag = sgqlc.operation.Fragment(_schema.Entitlement, 'EntitlementFragment')
392
+ _frag.is_granted()
393
+ _frag.access_denied_reason()
394
+ _frag.customer_id()
395
+ _frag.resource_id()
396
+ _frag.usage_limit()
397
+ _frag.has_unlimited_usage()
398
+ _frag.current_usage()
399
+ _frag.requested_usage()
400
+ _frag.entitlement_updated_at()
401
+ _frag.usage_updated_at()
402
+ _frag.next_reset_date()
403
+ _frag.reset_period()
404
+ _frag_reset_period_configuration = _frag.reset_period_configuration()
405
+ _frag_reset_period_configuration.__fragment__(fragment_reset_period_configuration_fragment())
406
+ _frag_feature = _frag.feature()
407
+ _frag_feature.__fragment__(fragment_feature_fragment())
408
+ return _frag
409
+
410
+
411
+ def fragment_paywall_package_entitlement_fragment():
412
+ _frag = sgqlc.operation.Fragment(_schema.PackageEntitlement, 'PaywallPackageEntitlementFragment')
413
+ _frag.usage_limit()
414
+ _frag.has_unlimited_usage()
415
+ _frag.feature_id()
416
+ _frag.reset_period()
417
+ _frag.hidden_from_widgets()
418
+ _frag.display_name_override()
419
+ _frag_feature = _frag.feature()
420
+ _frag_feature.feature_type()
421
+ _frag_feature.meter_type()
422
+ _frag_feature.feature_units()
423
+ _frag_feature.feature_units_plural()
424
+ _frag_feature.display_name()
425
+ _frag_feature.description()
426
+ _frag_feature.ref_id()
427
+ _frag_feature.additional_meta_data()
428
+ return _frag
429
+
430
+
431
+ def fragment_paywall_addon_fragment():
432
+ _frag = sgqlc.operation.Fragment(_schema.Addon, 'PaywallAddonFragment')
433
+ _frag.id()
434
+ _frag.ref_id()
435
+ _frag.billing_id()
436
+ _frag.display_name()
437
+ _frag.description()
438
+ _frag.additional_meta_data()
439
+ _frag.billing_id()
440
+ _frag_entitlements = _frag.entitlements()
441
+ _frag_entitlements.__fragment__(fragment_paywall_package_entitlement_fragment())
442
+ _frag_prices = _frag.prices()
443
+ _frag_prices.__fragment__(fragment_price_fragment())
444
+ _frag.additional_meta_data()
445
+ _frag.pricing_type()
446
+ return _frag
447
+
448
+
449
+ def fragment_paywall_plan_fragment():
450
+ _frag = sgqlc.operation.Fragment(_schema.Plan, 'PaywallPlanFragment')
451
+ _frag.id()
452
+ _frag.ref_id()
453
+ _frag.description()
454
+ _frag.display_name()
455
+ _frag.billing_id()
456
+ _frag_product = _frag.product()
457
+ _frag_product.__fragment__(fragment_product_fragment())
458
+ _frag_base_plan = _frag.base_plan()
459
+ _frag_base_plan.ref_id()
460
+ _frag_base_plan.display_name()
461
+ _frag_entitlements = _frag.entitlements()
462
+ _frag_entitlements.__fragment__(fragment_paywall_package_entitlement_fragment())
463
+ _frag.additional_meta_data()
464
+ _frag_inherited_entitlements = _frag.inherited_entitlements()
465
+ _frag_inherited_entitlements.__fragment__(fragment_paywall_package_entitlement_fragment())
466
+ _frag_prices = _frag.prices()
467
+ _frag_prices.__fragment__(fragment_price_fragment())
468
+ _frag.pricing_type()
469
+ _frag_default_trial_config = _frag.default_trial_config()
470
+ _frag_default_trial_config.duration()
471
+ _frag_default_trial_config.units()
472
+ _frag_compatible_addons = _frag.compatible_addons()
473
+ _frag_compatible_addons.__fragment__(fragment_paywall_addon_fragment())
474
+ return _frag
475
+
476
+
477
+ def fragment_typography_configuration_fragment():
478
+ _frag = sgqlc.operation.Fragment(_schema.TypographyConfiguration, 'TypographyConfigurationFragment')
479
+ _frag.font_family()
480
+ _frag_h1 = _frag.h1()
481
+ _frag_h1.__fragment__(fragment_font_variant_fragment())
482
+ _frag_h2 = _frag.h2()
483
+ _frag_h2.__fragment__(fragment_font_variant_fragment())
484
+ _frag_h3 = _frag.h3()
485
+ _frag_h3.__fragment__(fragment_font_variant_fragment())
486
+ _frag_body = _frag.body()
487
+ _frag_body.__fragment__(fragment_font_variant_fragment())
488
+ return _frag
489
+
490
+
491
+ def fragment_font_variant_fragment():
492
+ _frag = sgqlc.operation.Fragment(_schema.FontVariant, 'FontVariantFragment')
493
+ _frag.font_size()
494
+ _frag.font_weight()
495
+ return _frag
496
+
497
+
498
+ def fragment_layout_configuration_fragment():
499
+ _frag = sgqlc.operation.Fragment(_schema.PaywallLayoutConfiguration, 'LayoutConfigurationFragment')
500
+ _frag.alignment()
501
+ _frag.plan_width()
502
+ _frag.plan_margin()
503
+ _frag.plan_padding()
504
+ return _frag
505
+
506
+
507
+ def fragment_paywall_configuration_fragment():
508
+ _frag = sgqlc.operation.Fragment(_schema.PaywallConfiguration, 'PaywallConfigurationFragment')
509
+ _frag_palette = _frag.palette()
510
+ _frag_palette.primary()
511
+ _frag_palette.text_color()
512
+ _frag_palette.background_color()
513
+ _frag_palette.border_color()
514
+ _frag_palette.current_plan_background()
515
+ _frag_typography = _frag.typography()
516
+ _frag_typography.__fragment__(fragment_typography_configuration_fragment())
517
+ _frag_layout = _frag.layout()
518
+ _frag_layout.__fragment__(fragment_layout_configuration_fragment())
519
+ _frag.custom_css()
520
+ return _frag
521
+
522
+
523
+ def fragment_paywall_currency():
524
+ _frag = sgqlc.operation.Fragment(_schema.PaywallCurrency, 'PaywallCurrency')
525
+ _frag.code()
526
+ _frag.symbol()
527
+ return _frag
528
+
529
+
530
+ def fragment_product_fragment():
531
+ _frag = sgqlc.operation.Fragment(_schema.Product, 'ProductFragment')
532
+ _frag.ref_id()
533
+ _frag.display_name()
534
+ _frag.description()
535
+ _frag.additional_meta_data()
536
+ _frag_product_settings = _frag.product_settings()
537
+ _frag_product_settings_downgrade_plan = _frag_product_settings.downgrade_plan()
538
+ _frag_product_settings_downgrade_plan.ref_id()
539
+ _frag_product_settings_downgrade_plan.display_name()
540
+ return _frag
541
+
542
+
543
+ def fragment_entitlements_updated_payload():
544
+ _frag = sgqlc.operation.Fragment(_schema.EntitlementsUpdated, 'EntitlementsUpdatedPayload')
545
+ _frag.customer_id()
546
+ _frag.resource_id()
547
+ _frag_entitlements = _frag.entitlements()
548
+ _frag_entitlements.__fragment__(fragment_entitlement_fragment())
549
+ return _frag
550
+
551
+
552
+ def fragment_entitlement_usage_updated():
553
+ _frag = sgqlc.operation.Fragment(_schema.UsageUpdated, 'EntitlementUsageUpdated')
554
+ _frag_usage = _frag.usage()
555
+ _frag_usage.__fragment__(fragment_usage_updated_fragment())
556
+ _frag_entitlement = _frag.entitlement()
557
+ _frag_entitlement.__fragment__(fragment_entitlement_fragment())
558
+ return _frag
559
+
560
+
561
+ def fragment_customer_portal_fragment():
562
+ _frag = sgqlc.operation.Fragment(_schema.CustomerPortal, 'CustomerPortalFragment')
563
+ _frag_subscriptions = _frag.subscriptions()
564
+ _frag_subscriptions.__fragment__(fragment_customer_portal_subscription_fragment())
565
+ _frag_entitlements = _frag.entitlements()
566
+ _frag_entitlements.__fragment__(fragment_customer_portal_entitlement())
567
+ _frag_promotional_entitlements = _frag.promotional_entitlements()
568
+ _frag_promotional_entitlements.__fragment__(fragment_customer_portal_promotional_entitlement())
569
+ _frag_billing_information = _frag.billing_information()
570
+ _frag_billing_information.__fragment__(fragment_customer_portal_billing_information())
571
+ _frag.show_watermark()
572
+ _frag.billing_portal_url()
573
+ _frag.can_upgrade_subscription()
574
+ _frag_configuration = _frag.configuration()
575
+ _frag_configuration.__fragment__(fragment_customer_portal_configuration_fragment())
576
+ _frag_resource = _frag.resource()
577
+ _frag_resource.__fragment__(fragment_customer_resource_fragment())
578
+ return _frag
579
+
580
+
581
+ def fragment_customer_portal_configuration_fragment():
582
+ _frag = sgqlc.operation.Fragment(_schema.CustomerPortalConfiguration, 'CustomerPortalConfigurationFragment')
583
+ _frag_palette = _frag.palette()
584
+ _frag_palette.primary()
585
+ _frag_palette.text_color()
586
+ _frag_palette.background_color()
587
+ _frag_palette.border_color()
588
+ _frag_palette.current_plan_background()
589
+ _frag_palette.icons_color()
590
+ _frag_palette.paywall_background_color()
591
+ _frag_typography = _frag.typography()
592
+ _frag_typography.__fragment__(fragment_typography_configuration_fragment())
593
+ _frag.custom_css()
594
+ return _frag
595
+
596
+
597
+ def fragment_customer_portal_subscription_fragment():
598
+ _frag = sgqlc.operation.Fragment(_schema.CustomerPortalSubscription, 'CustomerPortalSubscriptionFragment')
599
+ _frag.subscription_id()
600
+ _frag.plan_name()
601
+ _frag_pricing = _frag.pricing()
602
+ _frag_pricing.unit_quantity()
603
+ _frag_pricing.billing_period()
604
+ _frag_pricing.billing_model()
605
+ _frag_pricing.pricing_type()
606
+ _frag_pricing.usage_based_estimated_bill()
607
+ _frag_pricing_price = _frag_pricing.price()
608
+ _frag_pricing_price.amount()
609
+ _frag_pricing_price.currency()
610
+ _frag_pricing_feature = _frag_pricing.feature()
611
+ _frag_pricing_feature.feature_units()
612
+ _frag_pricing_feature.feature_units_plural()
613
+ _frag_pricing_feature.display_name()
614
+ _frag.status()
615
+ _frag.trial_remaining_days()
616
+ _frag_billing_period_range = _frag.billing_period_range()
617
+ _frag_billing_period_range.start()
618
+ _frag_billing_period_range.end()
619
+ _frag_total_price = _frag.total_price()
620
+ _frag_total_price_sub_total = _frag_total_price.sub_total()
621
+ _frag_total_price_sub_total.amount()
622
+ _frag_total_price_total = _frag_total_price.total()
623
+ _frag_total_price_total.amount()
624
+ _frag_total_price_addons_total = _frag_total_price.addons_total()
625
+ _frag_total_price_addons_total.amount()
626
+ _frag_addons = _frag.addons()
627
+ _frag_addons.__fragment__(fragment_customer_portal_subscription_addon())
628
+ _frag_scheduled_updates = _frag.scheduled_updates()
629
+ _frag_scheduled_updates.__fragment__(fragment_customer_portal_subscription_scheduled_update_data())
630
+ return _frag
631
+
632
+
633
+ def fragment_customer_portal_subscription_addon():
634
+ _frag = sgqlc.operation.Fragment(_schema.CustomerPortalAddon, 'CustomerPortalSubscriptionAddon')
635
+ _frag.addon_id()
636
+ _frag.description()
637
+ _frag.display_name()
638
+ _frag.quantity()
639
+ return _frag
640
+
641
+
642
+ def fragment_customer_portal_subscription_scheduled_update_data():
643
+ _frag = sgqlc.operation.Fragment(_schema.SubscriptionScheduledUpdate, 'CustomerPortalSubscriptionScheduledUpdateData')
644
+ _frag.subscription_schedule_type()
645
+ _frag.schedule_status()
646
+ _frag.scheduled_execution_time()
647
+ _frag_target_package = _frag.target_package()
648
+ _frag_target_package.id()
649
+ _frag_target_package.ref_id()
650
+ _frag_target_package.display_name()
651
+ _frag_schedule_variables = _frag.schedule_variables()
652
+ _frag_schedule_variables__as__DowngradeChangeVariables = _frag_schedule_variables.__as__(_schema.DowngradeChangeVariables)
653
+ _frag_schedule_variables__as__DowngradeChangeVariables.addon_ref_ids()
654
+ _frag_schedule_variables__as__DowngradeChangeVariables.billing_period()
655
+ _frag_schedule_variables__as__DowngradeChangeVariables.downgrade_plan_ref_id()
656
+ _frag_schedule_variables__as__BillingPeriodChangeVariables = _frag_schedule_variables.__as__(_schema.BillingPeriodChangeVariables)
657
+ _frag_schedule_variables__as__BillingPeriodChangeVariables.billing_period()
658
+ _frag_schedule_variables__as__UnitAmountChangeVariables = _frag_schedule_variables.__as__(_schema.UnitAmountChangeVariables)
659
+ _frag_schedule_variables__as__UnitAmountChangeVariables.new_unit_amount()
660
+ return _frag
661
+
662
+
663
+ def fragment_customer_portal_entitlement():
664
+ _frag = sgqlc.operation.Fragment(_schema.Entitlement, 'CustomerPortalEntitlement')
665
+ _frag.is_granted()
666
+ _frag.usage_limit()
667
+ _frag.current_usage()
668
+ _frag.has_unlimited_usage()
669
+ _frag.next_reset_date()
670
+ _frag.reset_period()
671
+ _frag_reset_period_configuration = _frag.reset_period_configuration()
672
+ _frag_reset_period_configuration.__fragment__(fragment_reset_period_configuration_fragment())
673
+ _frag_feature = _frag.feature()
674
+ _frag_feature.__fragment__(fragment_feature_fragment())
675
+ return _frag
676
+
677
+
678
+ def fragment_customer_portal_promotional_entitlement():
679
+ _frag = sgqlc.operation.Fragment(_schema.CustomerPortalPromotionalEntitlement, 'CustomerPortalPromotionalEntitlement')
680
+ _frag.display_name()
681
+ _frag.has_unlimited_usage()
682
+ _frag.usage_limit()
683
+ _frag.period()
684
+ _frag.start_date()
685
+ _frag.end_date()
686
+ return _frag
687
+
688
+
689
+ def fragment_customer_portal_billing_information():
690
+ _frag = sgqlc.operation.Fragment(_schema.CustomerPortalBillingInformation, 'CustomerPortalBillingInformation')
691
+ _frag.email()
692
+ _frag.name()
693
+ _frag.default_payment_method_last4_digits()
694
+ _frag.default_payment_method_id()
695
+ _frag.default_payment_method_last4_digits()
696
+ _frag.default_payment_expiration_month()
697
+ _frag.default_payment_expiration_year()
698
+ return _frag
699
+
700
+
701
+ def fragment_mock_paywall_plan_fragment():
702
+ _frag = sgqlc.operation.Fragment(_schema.PaywallPlan, 'MockPaywallPlanFragment')
703
+ _frag.ref_id()
704
+ _frag.description()
705
+ _frag.display_name()
706
+ _frag.billing_id()
707
+ _frag.additional_meta_data()
708
+ _frag_product = _frag.product()
709
+ _frag_product.ref_id()
710
+ _frag_product.display_name()
711
+ _frag_product.description()
712
+ _frag_product.additional_meta_data()
713
+ _frag_base_plan = _frag.base_plan()
714
+ _frag_base_plan.ref_id()
715
+ _frag_base_plan.display_name()
716
+ _frag_entitlements = _frag.entitlements()
717
+ _frag_entitlements.__fragment__(fragment_mock_paywall_package_entitlement_fragment())
718
+ _frag_inherited_entitlements = _frag.inherited_entitlements()
719
+ _frag_inherited_entitlements.__fragment__(fragment_mock_paywall_package_entitlement_fragment())
720
+ _frag_prices = _frag.prices()
721
+ _frag_prices.__fragment__(fragment_mock_paywall_price_fragment())
722
+ _frag.pricing_type()
723
+ _frag_default_trial_config = _frag.default_trial_config()
724
+ _frag_default_trial_config.duration()
725
+ _frag_default_trial_config.units()
726
+ _frag_compatible_addons = _frag.compatible_addons()
727
+ _frag_compatible_addons.__fragment__(fragment_mock_paywall_addon_fragment())
728
+ return _frag
729
+
730
+
731
+ def fragment_mock_paywall_package_entitlement_fragment():
732
+ _frag = sgqlc.operation.Fragment(_schema.Entitlement, 'MockPaywallPackageEntitlementFragment')
733
+ _frag.usage_limit()
734
+ _frag.has_unlimited_usage()
735
+ _frag.reset_period()
736
+ _frag.hidden_from_widgets()
737
+ _frag.display_name_override()
738
+ _frag_feature = _frag.feature()
739
+ _frag_feature.feature_type()
740
+ _frag_feature.meter_type()
741
+ _frag_feature.feature_units()
742
+ _frag_feature.feature_units_plural()
743
+ _frag_feature.display_name()
744
+ _frag_feature.description()
745
+ _frag_feature.ref_id()
746
+ _frag_feature.additional_meta_data()
747
+ return _frag
748
+
749
+
750
+ def fragment_mock_paywall_price_fragment():
751
+ _frag = sgqlc.operation.Fragment(_schema.PaywallPrice, 'MockPaywallPriceFragment')
752
+ _frag.billing_model()
753
+ _frag.billing_period()
754
+ _frag.billing_id()
755
+ _frag.min_unit_quantity()
756
+ _frag.max_unit_quantity()
757
+ _frag.billing_country_code()
758
+ _frag_price = _frag.price()
759
+ _frag_price.amount()
760
+ _frag_price.currency()
761
+ _frag_feature = _frag.feature()
762
+ _frag_feature.feature_units()
763
+ _frag_feature.feature_units_plural()
764
+ _frag_feature.display_name()
765
+ return _frag
766
+
767
+
768
+ def fragment_mock_paywall_addon_fragment():
769
+ _frag = sgqlc.operation.Fragment(_schema.PaywallAddon, 'MockPaywallAddonFragment')
770
+ _frag.ref_id()
771
+ _frag.display_name()
772
+ _frag.description()
773
+ _frag.additional_meta_data()
774
+ _frag.billing_id()
775
+ _frag_entitlements = _frag.entitlements()
776
+ _frag_entitlements.__fragment__(fragment_mock_paywall_package_entitlement_fragment())
777
+ _frag_prices = _frag.prices()
778
+ _frag_prices.__fragment__(fragment_mock_paywall_price_fragment())
779
+ _frag.pricing_type()
780
+ return _frag
781
+
782
+
783
+ def fragment_paywall_fragment():
784
+ _frag = sgqlc.operation.Fragment(_schema.Paywall, 'PaywallFragment')
785
+ _frag_plans = _frag.plans()
786
+ _frag_plans.__fragment__(fragment_plan_fragment())
787
+ _frag_currency = _frag.currency()
788
+ _frag_currency.__fragment__(fragment_paywall_currency())
789
+ _frag_configuration = _frag.configuration()
790
+ _frag_configuration.__fragment__(fragment_paywall_configuration_fragment())
791
+ _frag_customer = _frag.customer()
792
+ _frag_customer.__fragment__(fragment_customer_fragment())
793
+ _frag_active_subscriptions = _frag.active_subscriptions()
794
+ _frag_active_subscriptions.__fragment__(fragment_subscription_fragment())
795
+ _frag_resource = _frag.resource()
796
+ _frag_resource.__fragment__(fragment_customer_resource_fragment())
797
+ return _frag
798
+
799
+
800
+ class Fragment:
801
+ addon_fragment = fragment_addon_fragment()
802
+ coupon_fragment = fragment_coupon_fragment()
803
+ customer_fragment = fragment_customer_fragment()
804
+ customer_portal_billing_information = fragment_customer_portal_billing_information()
805
+ customer_portal_configuration_fragment = fragment_customer_portal_configuration_fragment()
806
+ customer_portal_entitlement = fragment_customer_portal_entitlement()
807
+ customer_portal_fragment = fragment_customer_portal_fragment()
808
+ customer_portal_promotional_entitlement = fragment_customer_portal_promotional_entitlement()
809
+ customer_portal_subscription_addon = fragment_customer_portal_subscription_addon()
810
+ customer_portal_subscription_fragment = fragment_customer_portal_subscription_fragment()
811
+ customer_portal_subscription_scheduled_update_data = fragment_customer_portal_subscription_scheduled_update_data()
812
+ customer_resource_fragment = fragment_customer_resource_fragment()
813
+ customer_with_subscriptions_fragment = fragment_customer_with_subscriptions_fragment()
814
+ entitlement_fragment = fragment_entitlement_fragment()
815
+ entitlement_usage_updated = fragment_entitlement_usage_updated()
816
+ entitlements_updated_payload = fragment_entitlements_updated_payload()
817
+ feature_fragment = fragment_feature_fragment()
818
+ font_variant_fragment = fragment_font_variant_fragment()
819
+ layout_configuration_fragment = fragment_layout_configuration_fragment()
820
+ mock_paywall_addon_fragment = fragment_mock_paywall_addon_fragment()
821
+ mock_paywall_package_entitlement_fragment = fragment_mock_paywall_package_entitlement_fragment()
822
+ mock_paywall_plan_fragment = fragment_mock_paywall_plan_fragment()
823
+ mock_paywall_price_fragment = fragment_mock_paywall_price_fragment()
824
+ package_entitlement_fragment = fragment_package_entitlement_fragment()
825
+ paywall_addon_fragment = fragment_paywall_addon_fragment()
826
+ paywall_configuration_fragment = fragment_paywall_configuration_fragment()
827
+ paywall_currency = fragment_paywall_currency()
828
+ paywall_fragment = fragment_paywall_fragment()
829
+ paywall_package_entitlement_fragment = fragment_paywall_package_entitlement_fragment()
830
+ paywall_plan_fragment = fragment_paywall_plan_fragment()
831
+ plan_fragment = fragment_plan_fragment()
832
+ price_fragment = fragment_price_fragment()
833
+ product_fragment = fragment_product_fragment()
834
+ promotional_entitlement_fragment = fragment_promotional_entitlement_fragment()
835
+ reset_period_configuration_fragment = fragment_reset_period_configuration_fragment()
836
+ slim_customer_fragment = fragment_slim_customer_fragment()
837
+ slim_subscription_fragment = fragment_slim_subscription_fragment()
838
+ subscription_fragment = fragment_subscription_fragment()
839
+ subscription_preview_fragment = fragment_subscription_preview_fragment()
840
+ subscription_scheduled_update_data = fragment_subscription_scheduled_update_data()
841
+ total_price_fragment = fragment_total_price_fragment()
842
+ typography_configuration_fragment = fragment_typography_configuration_fragment()
843
+ usage_updated_fragment = fragment_usage_updated_fragment()
844
+
845
+
846
+ def mutation_provision_customer():
847
+ _op = sgqlc.operation.Operation(_schema_root.mutation_type, name='ProvisionCustomer', variables=dict(input=sgqlc.types.Arg(sgqlc.types.non_null(_schema.ProvisionCustomerInput))))
848
+ _op_provision_customer = _op.provision_customer(input=sgqlc.types.Variable('input'))
849
+ _op_provision_customer_customer = _op_provision_customer.customer()
850
+ _op_provision_customer_customer.__fragment__(fragment_slim_customer_fragment())
851
+ _op_provision_customer.subscription_decision_strategy()
852
+ _op_provision_customer_subscription = _op_provision_customer.subscription()
853
+ _op_provision_customer_subscription.__fragment__(fragment_slim_subscription_fragment())
854
+ return _op
855
+
856
+
857
+ def mutation_import_customer_bulk():
858
+ _op = sgqlc.operation.Operation(_schema_root.mutation_type, name='ImportCustomerBulk', variables=dict(input=sgqlc.types.Arg(sgqlc.types.non_null(_schema.ImportCustomerBulk))))
859
+ _op.import_customers_bulk(input=sgqlc.types.Variable('input'))
860
+ return _op
861
+
862
+
863
+ def mutation_import_customer():
864
+ _op = sgqlc.operation.Operation(_schema_root.mutation_type, name='ImportCustomer', variables=dict(input=sgqlc.types.Arg(sgqlc.types.non_null(_schema.ImportCustomerInput))))
865
+ _op_import_customer = _op.import_one_customer(input=sgqlc.types.Variable('input'), __alias__='import_customer')
866
+ _op_import_customer.__fragment__(fragment_slim_customer_fragment())
867
+ return _op
868
+
869
+
870
+ def mutation_update_customer():
871
+ _op = sgqlc.operation.Operation(_schema_root.mutation_type, name='UpdateCustomer', variables=dict(input=sgqlc.types.Arg(sgqlc.types.non_null(_schema.UpdateCustomerInput))))
872
+ _op_update_customer = _op.update_one_customer(input=sgqlc.types.Variable('input'), __alias__='update_customer')
873
+ _op_update_customer.__fragment__(fragment_slim_customer_fragment())
874
+ return _op
875
+
876
+
877
+ def mutation_provision_subscription():
878
+ _op = sgqlc.operation.Operation(_schema_root.mutation_type, name='ProvisionSubscription', variables=dict(input=sgqlc.types.Arg(sgqlc.types.non_null(_schema.ProvisionSubscriptionInput))))
879
+ _op_provision_subscription = _op.provision_subscription_v2(input=sgqlc.types.Variable('input'), __alias__='provision_subscription')
880
+ _op_provision_subscription.checkout_url()
881
+ _op_provision_subscription.status()
882
+ _op_provision_subscription_subscription = _op_provision_subscription.subscription()
883
+ _op_provision_subscription_subscription.__fragment__(fragment_slim_subscription_fragment())
884
+ return _op
885
+
886
+
887
+ def mutation_import_subscriptions_bulk():
888
+ _op = sgqlc.operation.Operation(_schema_root.mutation_type, name='ImportSubscriptionsBulk', variables=dict(input=sgqlc.types.Arg(sgqlc.types.non_null(_schema.ImportSubscriptionsBulk))))
889
+ _op.import_subscriptions_bulk(input=sgqlc.types.Variable('input'))
890
+ return _op
891
+
892
+
893
+ def mutation_update_subscription():
894
+ _op = sgqlc.operation.Operation(_schema_root.mutation_type, name='UpdateSubscription', variables=dict(input=sgqlc.types.Arg(sgqlc.types.non_null(_schema.UpdateSubscriptionInput))))
895
+ _op_update_subscription = _op.update_one_subscription(input=sgqlc.types.Variable('input'), __alias__='update_subscription')
896
+ _op_update_subscription.__fragment__(fragment_slim_subscription_fragment())
897
+ return _op
898
+
899
+
900
+ def mutation_cancel_subscription():
901
+ _op = sgqlc.operation.Operation(_schema_root.mutation_type, name='CancelSubscription', variables=dict(input=sgqlc.types.Arg(sgqlc.types.non_null(_schema.SubscriptionCancellationInput))))
902
+ _op_cancel_subscription = _op.cancel_subscription(input=sgqlc.types.Variable('input'))
903
+ _op_cancel_subscription.__fragment__(fragment_slim_subscription_fragment())
904
+ return _op
905
+
906
+
907
+ def mutation_initiate_checkout():
908
+ _op = sgqlc.operation.Operation(_schema_root.mutation_type, name='InitiateCheckout', variables=dict(input=sgqlc.types.Arg(sgqlc.types.non_null(_schema.InitiateCheckoutInput))))
909
+ _op_initiate_checkout = _op.initiate_checkout(input=sgqlc.types.Variable('input'))
910
+ _op_initiate_checkout.checkout_url()
911
+ _op_initiate_checkout.checkout_billing_id()
912
+ return _op
913
+
914
+
915
+ def mutation_estimate_subscription():
916
+ _op = sgqlc.operation.Operation(_schema_root.mutation_type, name='EstimateSubscription', variables=dict(input=sgqlc.types.Arg(sgqlc.types.non_null(_schema.EstimateSubscriptionInput))))
917
+ _op_estimate_subscription = _op.estimate_subscription(input=sgqlc.types.Variable('input'))
918
+ _op_estimate_subscription.__fragment__(fragment_subscription_preview_fragment())
919
+ return _op
920
+
921
+
922
+ def mutation_estimate_subscription_update():
923
+ _op = sgqlc.operation.Operation(_schema_root.mutation_type, name='EstimateSubscriptionUpdate', variables=dict(input=sgqlc.types.Arg(sgqlc.types.non_null(_schema.EstimateSubscriptionUpdateInput))))
924
+ _op_estimate_subscription_update = _op.estimate_subscription_update(input=sgqlc.types.Variable('input'))
925
+ _op_estimate_subscription_update.__fragment__(fragment_subscription_preview_fragment())
926
+ return _op
927
+
928
+
929
+ def mutation_cancel_subscription_updates():
930
+ _op = sgqlc.operation.Operation(_schema_root.mutation_type, name='CancelSubscriptionUpdates', variables=dict(input=sgqlc.types.Arg(sgqlc.types.non_null(_schema.SubscriptionUpdateScheduleCancellationInput))))
931
+ _op.cancel_schedule(input=sgqlc.types.Variable('input'))
932
+ return _op
933
+
934
+
935
+ def mutation_report_usage():
936
+ _op = sgqlc.operation.Operation(_schema_root.mutation_type, name='ReportUsage', variables=dict(input=sgqlc.types.Arg(sgqlc.types.non_null(_schema.UsageMeasurementCreateInput))))
937
+ _op_create_usage_measurement = _op.create_usage_measurement(usage_measurement=sgqlc.types.Variable('input'))
938
+ _op_create_usage_measurement.id()
939
+ _op_create_usage_measurement.current_usage()
940
+ _op_create_usage_measurement.next_reset_date()
941
+ _op_create_usage_measurement.timestamp()
942
+ return _op
943
+
944
+
945
+ def mutation_report_entitlement_check_requested():
946
+ _op = sgqlc.operation.Operation(_schema_root.mutation_type, name='ReportEntitlementCheckRequested', variables=dict(entitlementCheckRequested=sgqlc.types.Arg(sgqlc.types.non_null(_schema.EntitlementCheckRequested))))
947
+ _op.report_entitlement_check_requested(entitlement_check_requested=sgqlc.types.Variable('entitlementCheckRequested'))
948
+ return _op
949
+
950
+
951
+ def mutation_create_subscription():
952
+ _op = sgqlc.operation.Operation(_schema_root.mutation_type, name='CreateSubscription', variables=dict(input=sgqlc.types.Arg(sgqlc.types.non_null(_schema.SubscriptionInput))))
953
+ _op_create_subscription = _op.create_subscription(subscription=sgqlc.types.Variable('input'))
954
+ _op_create_subscription.__fragment__(fragment_slim_subscription_fragment())
955
+ return _op
956
+
957
+
958
+ def mutation_migrate_subscription_to_latest():
959
+ _op = sgqlc.operation.Operation(_schema_root.mutation_type, name='MigrateSubscriptionToLatest', variables=dict(input=sgqlc.types.Arg(sgqlc.types.non_null(_schema.SubscriptionMigrationInput))))
960
+ _op_migrate_subscription_to_latest = _op.migrate_subscription_to_latest(input=sgqlc.types.Variable('input'))
961
+ _op_migrate_subscription_to_latest.subscription_id()
962
+ return _op
963
+
964
+
965
+ class Mutation:
966
+ cancel_subscription = mutation_cancel_subscription()
967
+ cancel_subscription_updates = mutation_cancel_subscription_updates()
968
+ create_subscription = mutation_create_subscription()
969
+ estimate_subscription = mutation_estimate_subscription()
970
+ estimate_subscription_update = mutation_estimate_subscription_update()
971
+ import_customer = mutation_import_customer()
972
+ import_customer_bulk = mutation_import_customer_bulk()
973
+ import_subscriptions_bulk = mutation_import_subscriptions_bulk()
974
+ initiate_checkout = mutation_initiate_checkout()
975
+ migrate_subscription_to_latest = mutation_migrate_subscription_to_latest()
976
+ provision_customer = mutation_provision_customer()
977
+ provision_subscription = mutation_provision_subscription()
978
+ report_entitlement_check_requested = mutation_report_entitlement_check_requested()
979
+ report_usage = mutation_report_usage()
980
+ update_customer = mutation_update_customer()
981
+ update_subscription = mutation_update_subscription()
982
+
983
+
984
+ def query_get_customer_by_id():
985
+ _op = sgqlc.operation.Operation(_schema_root.query_type, name='GetCustomerById', variables=dict(input=sgqlc.types.Arg(sgqlc.types.non_null(_schema.GetCustomerByRefIdInput))))
986
+ _op_get_customer_by_ref_id = _op.get_customer_by_ref_id(input=sgqlc.types.Variable('input'))
987
+ _op_get_customer_by_ref_id.__fragment__(fragment_customer_with_subscriptions_fragment())
988
+ return _op
989
+
990
+
991
+ def query_get_active_subscriptions():
992
+ _op = sgqlc.operation.Operation(_schema_root.query_type, name='GetActiveSubscriptions', variables=dict(input=sgqlc.types.Arg(sgqlc.types.non_null(_schema.GetActiveSubscriptionsInput))))
993
+ _op_get_active_subscriptions = _op.get_active_subscriptions(input=sgqlc.types.Variable('input'))
994
+ _op_get_active_subscriptions.__fragment__(fragment_subscription_fragment())
995
+ return _op
996
+
997
+
998
+ def query_get_coupons():
999
+ _op = sgqlc.operation.Operation(_schema_root.query_type, name='GetCoupons')
1000
+ _op_coupons = _op.coupons(filter={'status': {'eq': 'ACTIVE'}}, paging={'first': 50})
1001
+ _op_coupons_edges = _op_coupons.edges()
1002
+ _op_coupons_edges_node = _op_coupons_edges.node()
1003
+ _op_coupons_edges_node.__fragment__(fragment_coupon_fragment())
1004
+ return _op
1005
+
1006
+
1007
+ def query_get_paywall():
1008
+ _op = sgqlc.operation.Operation(_schema_root.query_type, name='GetPaywall', variables=dict(input=sgqlc.types.Arg(sgqlc.types.non_null(_schema.GetPaywallInput))))
1009
+ _op_paywall = _op.paywall(input=sgqlc.types.Variable('input'))
1010
+ _op_paywall.__fragment__(fragment_paywall_fragment())
1011
+ return _op
1012
+
1013
+
1014
+ def query_get_entitlements():
1015
+ _op = sgqlc.operation.Operation(_schema_root.query_type, name='GetEntitlements', variables=dict(query=sgqlc.types.Arg(sgqlc.types.non_null(_schema.FetchEntitlementsQuery))))
1016
+ _op_entitlements = _op.cached_entitlements(query=sgqlc.types.Variable('query'), __alias__='entitlements')
1017
+ _op_entitlements.__fragment__(fragment_entitlement_fragment())
1018
+ return _op
1019
+
1020
+
1021
+ def query_get_entitlement():
1022
+ _op = sgqlc.operation.Operation(_schema_root.query_type, name='GetEntitlement', variables=dict(query=sgqlc.types.Arg(sgqlc.types.non_null(_schema.FetchEntitlementQuery))))
1023
+ _op_entitlement = _op.entitlement(query=sgqlc.types.Variable('query'))
1024
+ _op_entitlement.__fragment__(fragment_entitlement_fragment())
1025
+ return _op
1026
+
1027
+
1028
+ def query_get_products():
1029
+ _op = sgqlc.operation.Operation(_schema_root.query_type, name='GetProducts')
1030
+ _op_products = _op.products(paging={'first': 50})
1031
+ _op_products_edges = _op_products.edges()
1032
+ _op_products_edges_node = _op_products_edges.node()
1033
+ _op_products_edges_node.__fragment__(fragment_product_fragment())
1034
+ return _op
1035
+
1036
+
1037
+ def query_get_sdk_configuration():
1038
+ _op = sgqlc.operation.Operation(_schema_root.query_type, name='GetSdkConfiguration')
1039
+ _op_sdk_configuration = _op.sdk_configuration()
1040
+ _op_sdk_configuration.sentry_dsn()
1041
+ _op_sdk_configuration.is_widget_watermark_enabled()
1042
+ return _op
1043
+
1044
+
1045
+ def query_get_customer_portal_by_ref_id():
1046
+ _op = sgqlc.operation.Operation(_schema_root.query_type, name='GetCustomerPortalByRefId', variables=dict(input=sgqlc.types.Arg(sgqlc.types.non_null(_schema.CustomerPortalInput))))
1047
+ _op_customer_portal = _op.customer_portal(input=sgqlc.types.Variable('input'))
1048
+ _op_customer_portal.__fragment__(fragment_customer_portal_fragment())
1049
+ return _op
1050
+
1051
+
1052
+ def query_get_mock_paywall():
1053
+ _op = sgqlc.operation.Operation(_schema_root.query_type, name='GetMockPaywall', variables=dict(input=sgqlc.types.Arg(sgqlc.types.non_null(_schema.GetPaywallInput))))
1054
+ _op_mock_paywall = _op.mock_paywall(input=sgqlc.types.Variable('input'))
1055
+ _op_mock_paywall_plans = _op_mock_paywall.plans()
1056
+ _op_mock_paywall_plans.__fragment__(fragment_mock_paywall_plan_fragment())
1057
+ _op_mock_paywall_configuration = _op_mock_paywall.configuration()
1058
+ _op_mock_paywall_configuration.__fragment__(fragment_paywall_configuration_fragment())
1059
+ return _op
1060
+
1061
+
1062
+ class Query:
1063
+ get_active_subscriptions = query_get_active_subscriptions()
1064
+ get_coupons = query_get_coupons()
1065
+ get_customer_by_id = query_get_customer_by_id()
1066
+ get_customer_portal_by_ref_id = query_get_customer_portal_by_ref_id()
1067
+ get_entitlement = query_get_entitlement()
1068
+ get_entitlements = query_get_entitlements()
1069
+ get_mock_paywall = query_get_mock_paywall()
1070
+ get_paywall = query_get_paywall()
1071
+ get_products = query_get_products()
1072
+ get_sdk_configuration = query_get_sdk_configuration()
1073
+
1074
+
1075
+ def subscription_entitlements_updated():
1076
+ _op = sgqlc.operation.Operation(_schema_root.subscription_type, name='EntitlementsUpdated')
1077
+ _op_entitlements_updated = _op.entitlements_updated()
1078
+ _op_entitlements_updated.__fragment__(fragment_entitlements_updated_payload())
1079
+ return _op
1080
+
1081
+
1082
+ def subscription_usage_updated():
1083
+ _op = sgqlc.operation.Operation(_schema_root.subscription_type, name='UsageUpdated')
1084
+ _op_usage_updated = _op.usage_updated()
1085
+ _op_usage_updated.__fragment__(fragment_entitlement_usage_updated())
1086
+ return _op
1087
+
1088
+
1089
+ class Subscription:
1090
+ entitlements_updated = subscription_entitlements_updated()
1091
+ usage_updated = subscription_usage_updated()
1092
+
1093
+
1094
+ class Operations:
1095
+ fragment = Fragment
1096
+ mutation = Mutation
1097
+ query = Query
1098
+ subscription = Subscription