-
Notifications
You must be signed in to change notification settings - Fork 199
Expand file tree
/
Copy path_enums.py
More file actions
920 lines (685 loc) · 26.9 KB
/
Copy path_enums.py
File metadata and controls
920 lines (685 loc) · 26.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
# coding=utf-8
from enum import Enum
from corehttp.utils import CaseInsensitiveEnumMeta
class AddonInstanceType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The instanceType of the add-on. Single instance add-ons can be added to subscription only once
while add-ons with multiple type can be added more then once.
"""
SINGLE = "single"
"""SINGLE."""
MULTIPLE = "multiple"
"""MULTIPLE."""
class AddonOrderBy(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Order by options for add-ons."""
ID = "id"
"""ID."""
KEY = "key"
"""KEY."""
VERSION = "version"
"""VERSION."""
CREATED_AT = "created_at"
"""CREATED_AT."""
UPDATED_AT = "updated_at"
"""UPDATED_AT."""
class AddonStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The status of the add-on defined by the effectiveFrom and effectiveTo properties."""
DRAFT = "draft"
"""DRAFT."""
ACTIVE = "active"
"""ACTIVE."""
ARCHIVED = "archived"
"""ARCHIVED."""
class AppCapabilityType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""App capability type."""
REPORT_USAGE = "reportUsage"
"""The app can report aggregated usage."""
REPORT_EVENTS = "reportEvents"
"""The app can report raw events."""
CALCULATE_TAX = "calculateTax"
"""The app can calculate tax."""
INVOICE_CUSTOMERS = "invoiceCustomers"
"""The app can invoice customers."""
COLLECT_PAYMENTS = "collectPayments"
"""The app can collect payments."""
class AppStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""App installed status."""
READY = "ready"
"""The app is ready to be used."""
UNAUTHORIZED = "unauthorized"
"""The app is unauthorized. This usually happens when the app's credentials are revoked or
expired. To resolve this, the user must re-authorize the app."""
class AppType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Type of the app."""
STRIPE = "stripe"
"""STRIPE."""
SANDBOX = "sandbox"
"""SANDBOX."""
CUSTOM_INVOICING = "custom_invoicing"
"""CUSTOM_INVOICING."""
class BillingCollectionAlignment(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Collection alignment."""
SUBSCRIPTION = "subscription"
"""Align the collection to the start of the subscription period."""
ANCHORED = "anchored"
"""Align the collection to the anchor time and cadence."""
class BillingProfileCustomerOverrideExpand(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""CustomerOverrideExpand specifies the parts of the profile to expand."""
APPS = "apps"
"""APPS."""
CUSTOMER = "customer"
"""CUSTOMER."""
class BillingProfileCustomerOverrideOrderBy(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Order by options for customers."""
CUSTOMER_ID = "customerId"
"""CUSTOMER_ID."""
CUSTOMER_NAME = "customerName"
"""CUSTOMER_NAME."""
CUSTOMER_KEY = "customerKey"
"""CUSTOMER_KEY."""
CUSTOMER_PRIMARY_EMAIL = "customerPrimaryEmail"
"""CUSTOMER_PRIMARY_EMAIL."""
CUSTOMER_CREATED_AT = "customerCreatedAt"
"""CUSTOMER_CREATED_AT."""
class BillingProfileExpand(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""BillingProfileExpand details what profile fields to expand."""
APPS = "apps"
"""APPS."""
class BillingProfileOrderBy(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""BillingProfileOrderBy specifies the ordering options for profiles."""
CREATED_AT = "createdAt"
"""CREATED_AT."""
UPDATED_AT = "updatedAt"
"""UPDATED_AT."""
DEFAULT = "default"
"""DEFAULT."""
NAME = "name"
"""NAME."""
class BillingSettlementMode(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The settlement mode of a plan.
It determines how the billing system generates invoices and credits for the subscriptions using
this plan.
* credit_then_invoice: credits from the previous billing period are applied first, then the
remaining balance is invoiced. This is the default and most common settlement mode.
* credit_only: only credits from the previous billing period are generated and applied. No
invoices are generated for the subscription.
"""
CREDIT_THEN_INVOICE = "credit_then_invoice"
"""CREDIT_THEN_INVOICE."""
CREDIT_ONLY = "credit_only"
"""CREDIT_ONLY."""
class BillingWorkflowInvoicingSubscriptionEndProrationMode( # pylint: disable=name-too-long
str, Enum, metaclass=CaseInsensitiveEnumMeta
):
"""Billing workflow subscription end proration mode."""
BILL_FULL_PERIOD = "bill_full_period"
"""Bill the full billing period amount for terminal lines even when the actual service period is
shorter."""
BILL_ACTUAL_PERIOD = "bill_actual_period"
"""Bill the amount for the actual terminal service period."""
class CheckoutSessionUIMode(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Stripe CheckoutSession.ui_mode."""
EMBEDDED = "embedded"
"""EMBEDDED."""
HOSTED = "hosted"
"""HOSTED."""
class CollectionMethod(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Collection method."""
CHARGE_AUTOMATICALLY = "charge_automatically"
"""CHARGE_AUTOMATICALLY."""
SEND_INVOICE = "send_invoice"
"""SEND_INVOICE."""
class CreateCheckoutSessionTaxIdCollectionRequired( # pylint: disable=name-too-long
str, Enum, metaclass=CaseInsensitiveEnumMeta
):
"""Create Stripe checkout session tax ID collection required."""
IF_SUPPORTED = "if_supported"
"""A tax ID will be required if collection is supported for the selected billing address country.
See: `https://docs.stripe.com/tax/checkout/tax-ids#supported-types
<https://docs.stripe.com/tax/checkout/tax-ids#supported-types>`_."""
NEVER = "never"
"""Tax ID collection is never required."""
class CreateStripeCheckoutSessionBillingAddressCollection( # pylint: disable=name-too-long
str, Enum, metaclass=CaseInsensitiveEnumMeta
):
"""Specify whether Checkout should collect the customer’s billing address."""
AUTO = "auto"
"""Checkout will only collect the billing address when necessary. When using automatic_tax,
Checkout will collect the minimum number of fields required for tax calculation."""
REQUIRED = "required"
"""Checkout will always collect the customer’s billing address."""
class CreateStripeCheckoutSessionConsentCollectionPaymentMethodReuseAgreementPosition( # pylint: disable=name-too-long
str, Enum, metaclass=CaseInsensitiveEnumMeta
):
"""Create Stripe checkout session consent collection agreement position."""
AUTO = "auto"
"""Uses Stripe defaults to determine the visibility and position of the payment method reuse
agreement."""
HIDDEN = "hidden"
"""Hides the payment method reuse agreement."""
class CreateStripeCheckoutSessionConsentCollectionPromotions( # pylint: disable=name-too-long
str, Enum, metaclass=CaseInsensitiveEnumMeta
):
"""Create Stripe checkout session consent collection promotions."""
AUTO = "auto"
"""Enable the collection of customer consent for promotional communications. The Checkout Session
will determine whether to display an option to opt into promotional communication from the
merchant depending on if a customer is provided, and if that customer has consented to
receiving promotional communications from the merchant in the past."""
NONE = "none"
"""Checkout will not collect customer consent for promotional communications."""
class CreateStripeCheckoutSessionConsentCollectionTermsOfService( # pylint: disable=name-too-long
str, Enum, metaclass=CaseInsensitiveEnumMeta
):
"""Create Stripe checkout session consent collection terms of service."""
NONE = "none"
"""Does not display checkbox for the terms of service agreement."""
REQUIRED = "required"
"""Displays a checkbox for the terms of service agreement which requires customer to check before
being able to pay."""
class CreateStripeCheckoutSessionCustomerUpdateBehavior( # pylint: disable=name-too-long
str, Enum, metaclass=CaseInsensitiveEnumMeta
):
"""Create Stripe checkout session customer update behavior."""
AUTO = "auto"
"""Checkout will automatically determine whether to update the provided Customer object using
details from the session."""
NEVER = "never"
"""Checkout will never update the provided Customer object."""
class CreateStripeCheckoutSessionRedirectOnCompletion( # pylint: disable=name-too-long
str, Enum, metaclass=CaseInsensitiveEnumMeta
):
"""Create Stripe checkout session redirect on completion."""
ALWAYS = "always"
"""The Session will always redirect to the return_url after successful confirmation."""
IF_REQUIRED = "if_required"
"""The Session will only redirect to the return_url after a redirect-based payment method is used."""
NEVER = "never"
"""The Session will never redirect to the return_url, and redirect-based payment methods will be
disabled."""
class CustomerExpand(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""CustomerExpand specifies the parts of the customer to expand in the list output."""
SUBSCRIPTIONS = "subscriptions"
"""SUBSCRIPTIONS."""
class CustomerOrderBy(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Order by options for customers."""
ID = "id"
"""ID."""
NAME = "name"
"""NAME."""
CREATED_AT = "createdAt"
"""CREATED_AT."""
class CustomerSubscriptionOrderBy(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Order by options for customer subscriptions."""
ACTIVE_FROM = "activeFrom"
"""ACTIVE_FROM."""
ACTIVE_TO = "activeTo"
"""ACTIVE_TO."""
class CustomInvoicingPaymentTrigger(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Payment trigger to execute on a finalized invoice."""
PAID = "paid"
"""PAID."""
PAYMENT_FAILED = "payment_failed"
"""PAYMENT_FAILED."""
PAYMENT_UNCOLLECTIBLE = "payment_uncollectible"
"""PAYMENT_UNCOLLECTIBLE."""
PAYMENT_OVERDUE = "payment_overdue"
"""PAYMENT_OVERDUE."""
ACTION_REQUIRED = "action_required"
"""ACTION_REQUIRED."""
VOID = "void"
"""VOID."""
class DiscountReasonType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The type of the discount reason."""
MAXIMUM_SPEND = "maximum_spend"
"""MAXIMUM_SPEND."""
RATECARD_PERCENTAGE = "ratecard_percentage"
"""RATECARD_PERCENTAGE."""
RATECARD_USAGE = "ratecard_usage"
"""RATECARD_USAGE."""
class EditOp(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Enum listing the different operation types."""
ADD_ITEM = "add_item"
"""ADD_ITEM."""
REMOVE_ITEM = "remove_item"
"""REMOVE_ITEM."""
UNSCHEDULE_EDIT = "unschedule_edit"
"""UNSCHEDULE_EDIT."""
ADD_PHASE = "add_phase"
"""ADD_PHASE."""
REMOVE_PHASE = "remove_phase"
"""REMOVE_PHASE."""
STRETCH_PHASE = "stretch_phase"
"""STRETCH_PHASE."""
class EntitlementOrderBy(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Order by options for entitlements."""
CREATED_AT = "createdAt"
"""CREATED_AT."""
UPDATED_AT = "updatedAt"
"""UPDATED_AT."""
class EntitlementType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Type of the entitlement."""
METERED = "metered"
"""METERED."""
BOOLEAN = "boolean"
"""BOOLEAN."""
STATIC = "static"
"""STATIC."""
class ExpirationDuration(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The expiration duration enum."""
HOUR = "HOUR"
"""HOUR."""
DAY = "DAY"
"""DAY."""
WEEK = "WEEK"
"""WEEK."""
MONTH = "MONTH"
"""MONTH."""
YEAR = "YEAR"
"""YEAR."""
class FeatureOrderBy(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Order by options for features."""
ID = "id"
"""ID."""
KEY = "key"
"""KEY."""
NAME = "name"
"""NAME."""
CREATED_AT = "createdAt"
"""CREATED_AT."""
UPDATED_AT = "updatedAt"
"""UPDATED_AT."""
class FeatureUnitCostType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The type of unit cost."""
LLM = "llm"
"""LLM."""
MANUAL = "manual"
"""MANUAL."""
class GrantOrderBy(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Order by options for grants."""
ID = "id"
"""ID."""
CREATED_AT = "createdAt"
"""CREATED_AT."""
UPDATED_AT = "updatedAt"
"""UPDATED_AT."""
class InstallMethod(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Install method of the application."""
WITH_O_AUTH2 = "with_oauth2"
"""WITH_O_AUTH2."""
WITH_API_KEY = "with_api_key"
"""WITH_API_KEY."""
NO_CREDENTIALS_REQUIRED = "no_credentials_required"
"""NO_CREDENTIALS_REQUIRED."""
class InvoiceDetailedLineCostCategory(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""InvoiceDetailedLineCostCategory determines if the flat fee is a regular fee due to use due to a
commitment.
"""
REGULAR = "regular"
"""The fee is a regular fee due to usage."""
COMMITMENT = "commitment"
"""The fee is a fee due to a commitment (e.g. minimum spend)."""
class InvoiceDocumentRefType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""InvoiceDocumentRefType defines the type of document that is being referenced."""
CREDIT_NOTE_ORIGINAL_INVOICE = "credit_note_original_invoice"
"""CREDIT_NOTE_ORIGINAL_INVOICE."""
class InvoiceExpand(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""InvoiceExpand specifies the parts of the invoice to expand in the list output."""
LINES = "lines"
"""LINES."""
PRECEDING = "preceding"
"""PRECEDING."""
WORKFLOW_APPS = "workflow.apps"
"""WORKFLOW_APPS."""
class InvoiceLineManagedBy(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""InvoiceLineManagedBy specifies who manages the line."""
SUBSCRIPTION = "subscription"
"""The line is managed by the susbcription engine of
If there are any changes to the subscription the line will be updated accordingly."""
SYSTEM = "system"
"""The line is managed by the billing system of the
The line is immutable."""
MANUAL = "manual"
"""The line is managed via our API.
If the line is coming from a subscription we will not update the line if the subscription
changes.
The only exception is that the period and invoiceAt fields will be updated in case of
progressively billed
usage-based lines to maintain the coherence of the line structure. Any other fields edited will
be kept as is."""
class InvoiceLineStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Line status specifies the status of the line."""
VALID = "valid"
"""The line is valid and can be used in the invoice."""
DETAILED = "detailed"
"""The line is a detail line which is used to detail the individual charges and discounts of a
valid line."""
SPLIT = "split"
"""The line has been split into multiple valid lines due to progressive billing."""
class InvoiceLineTaxBehavior(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""InvoiceLineTaxBehavior details how the tax item is applied to the base amount.
Inclusive means the tax is included in the base amount.
Exclusive means the tax is added to the base amount.
"""
INCLUSIVE = "inclusive"
"""Tax is included in the base amount."""
EXCLUSIVE = "exclusive"
"""Tax is added to the base amount."""
class InvoiceLineTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""LineTypes represents the different types of lines that can be used in an invoice."""
FLAT_FEE = "flat_fee"
"""FLAT_FEE."""
USAGE_BASED = "usage_based"
"""USAGE_BASED."""
class InvoiceOrderBy(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""InvoiceOrderBy specifies the ordering options for invoice listing."""
CUSTOMER_NAME = "customer.name"
"""CUSTOMER_NAME."""
ISSUED_AT = "issuedAt"
"""ISSUED_AT."""
STATUS = "status"
"""STATUS."""
CREATED_AT = "createdAt"
"""CREATED_AT."""
UPDATED_AT = "updatedAt"
"""UPDATED_AT."""
PERIOD_START = "periodStart"
"""PERIOD_START."""
class InvoiceStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""InvoiceStatus describes the status of an invoice."""
GATHERING = "gathering"
"""The list of line items for the next invoice is being gathered."""
DRAFT = "draft"
"""The invoice is in draft status."""
ISSUING = "issuing"
"""The invoice is in the process of being issued."""
ISSUED = "issued"
"""The invoice has been issued to the customer."""
PAYMENT_PROCESSING = "payment_processing"
"""The payment for the invoice is being processed."""
OVERDUE = "overdue"
"""The invoice's payment is overdue."""
PAID = "paid"
"""The invoice has been paid."""
UNCOLLECTIBLE = "uncollectible"
"""The invoice has been marked uncollectible."""
VOIDED = "voided"
"""The invoice has been voided."""
class InvoiceType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""InvoiceType represents the type of invoice.
The type of invoice determines the purpose of the invoice and how it should be handled.
"""
STANDARD = "standard"
"""A regular commercial invoice document between a supplier and customer."""
CREDIT_NOTE = "credit_note"
"""Reflects a refund either partial or complete of the preceding document. A credit note
effectively *extends* the previous document."""
class MeasureUsageFromPreset(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Start of measurement options."""
CURRENT_PERIOD_START = "CURRENT_PERIOD_START"
"""CURRENT_PERIOD_START."""
NOW = "NOW"
"""NOW."""
class MeterAggregation(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The aggregation type to use for the meter."""
SUM = "SUM"
"""SUM."""
COUNT = "COUNT"
"""COUNT."""
UNIQUE_COUNT = "UNIQUE_COUNT"
"""UNIQUE_COUNT."""
AVG = "AVG"
"""AVG."""
MIN = "MIN"
"""MIN."""
MAX = "MAX"
"""MAX."""
LATEST = "LATEST"
"""LATEST."""
class MeterOrderBy(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Order by options for meters."""
KEY = "key"
"""KEY."""
NAME = "name"
"""NAME."""
AGGREGATION = "aggregation"
"""AGGREGATION."""
CREATED_AT = "createdAt"
"""CREATED_AT."""
UPDATED_AT = "updatedAt"
"""UPDATED_AT."""
class NotificationChannelOrderBy(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Order by options for notification channels."""
ID = "id"
"""ID."""
TYPE = "type"
"""TYPE."""
CREATED_AT = "createdAt"
"""CREATED_AT."""
UPDATED_AT = "updatedAt"
"""UPDATED_AT."""
class NotificationChannelType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Type of the notification channel."""
WEBHOOK = "WEBHOOK"
"""WEBHOOK."""
class NotificationEventDeliveryStatusState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Delivery State."""
SUCCESS = "SUCCESS"
"""SUCCESS."""
FAILED = "FAILED"
"""FAILED."""
SENDING = "SENDING"
"""SENDING."""
PENDING = "PENDING"
"""PENDING."""
RESENDING = "RESENDING"
"""RESENDING."""
class NotificationEventOrderBy(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Order by options for notification channels."""
ID = "id"
"""ID."""
CREATED_AT = "createdAt"
"""CREATED_AT."""
class NotificationEventType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Type of the notification event."""
ENTITLEMENTS_BALANCE_THRESHOLD = "entitlements.balance.threshold"
"""ENTITLEMENTS_BALANCE_THRESHOLD."""
ENTITLEMENTS_RESET = "entitlements.reset"
"""ENTITLEMENTS_RESET."""
INVOICE_CREATED = "invoice.created"
"""INVOICE_CREATED."""
INVOICE_UPDATED = "invoice.updated"
"""INVOICE_UPDATED."""
class NotificationRuleBalanceThresholdValueType( # pylint: disable=name-too-long
str, Enum, metaclass=CaseInsensitiveEnumMeta
):
"""Notification balance threshold type."""
PERCENT = "PERCENT"
"""PERCENT."""
NUMBER = "NUMBER"
"""NUMBER."""
BALANCE_VALUE = "balance_value"
"""BALANCE_VALUE."""
USAGE_PERCENTAGE = "usage_percentage"
"""USAGE_PERCENTAGE."""
USAGE_VALUE = "usage_value"
"""USAGE_VALUE."""
class NotificationRuleOrderBy(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Order by options for notification channels."""
ID = "id"
"""ID."""
TYPE = "type"
"""TYPE."""
CREATED_AT = "createdAt"
"""CREATED_AT."""
UPDATED_AT = "updatedAt"
"""UPDATED_AT."""
class OAuth2AuthorizationCodeGrantErrorType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""OAuth2 authorization code grant error types."""
INVALID_REQUEST = "invalid_request"
"""The request is missing a required parameter, includes an invalid parameter value, includes a
parameter more than once, or is otherwise malformed."""
UNAUTHORIZED_CLIENT = "unauthorized_client"
"""The client is not authorized to request an authorization code using this method."""
ACCESS_DENIED = "access_denied"
"""The resource owner or authorization server denied the request."""
UNSUPPORTED_RESPONSE_TYPE = "unsupported_response_type"
"""The authorization server does not support obtaining an authorization code using this method."""
INVALID_SCOPE = "invalid_scope"
"""The requested scope is invalid, unknown, or malformed."""
SERVER_ERROR = "server_error"
"""The authorization server encountered an unexpected condition that prevented it from fulfilling
the request."""
TEMPORARILY_UNAVAILABLE = "temporarily_unavailable"
"""The authorization server is currently unable to handle the request due to a temporary
overloading or maintenance of the server."""
class PaymentTermType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""PaymentTermType defines the type of terms to be applied."""
DUE_DATE = "due_date"
"""Due on a specific date."""
INSTANT = "instant"
"""On receipt of invoice."""
class PlanAddonOrderBy(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Order by options for plan add-on assignments."""
ID = "id"
"""ID."""
KEY = "key"
"""KEY."""
VERSION = "version"
"""VERSION."""
CREATED_AT = "created_at"
"""CREATED_AT."""
UPDATED_AT = "updated_at"
"""UPDATED_AT."""
class PlanOrderBy(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Order by options for plans."""
ID = "id"
"""ID."""
KEY = "key"
"""KEY."""
VERSION = "version"
"""VERSION."""
CREATED_AT = "created_at"
"""CREATED_AT."""
UPDATED_AT = "updated_at"
"""UPDATED_AT."""
class PlanStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The status of a plan."""
DRAFT = "draft"
"""DRAFT."""
ACTIVE = "active"
"""ACTIVE."""
ARCHIVED = "archived"
"""ARCHIVED."""
SCHEDULED = "scheduled"
"""SCHEDULED."""
class PricePaymentTerm(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The payment term of a flat price. One of: in_advance or in_arrears."""
IN_ADVANCE = "in_advance"
"""If in_advance, the rate card will be invoiced in the previous billing cycle."""
IN_ARREARS = "in_arrears"
"""If in_arrears, the rate card will be invoiced in the current billing cycle."""
class PriceType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The type of the price."""
FLAT = "flat"
"""FLAT."""
UNIT = "unit"
"""UNIT."""
TIERED = "tiered"
"""TIERED."""
DYNAMIC = "dynamic"
"""DYNAMIC."""
PACKAGE = "package"
"""PACKAGE."""
class ProRatingMode(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Pro-rating mode options for handling billing period changes."""
PRORATE_PRICES = "prorate_prices"
"""Calculate pro-rated charges based on time remaining in billing period."""
class RateCardType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The type of the rate card."""
FLAT_FEE = "flat_fee"
"""FLAT_FEE."""
USAGE_BASED = "usage_based"
"""USAGE_BASED."""
class RecurringPeriodIntervalEnum(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The unit of time for the interval. One of: ``day``, ``week``, ``month``, or ``year``."""
DAY = "DAY"
"""DAY."""
WEEK = "WEEK"
"""WEEK."""
MONTH = "MONTH"
"""MONTH."""
YEAR = "YEAR"
"""YEAR."""
class RemovePhaseShifting(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The direction of the phase shift when a phase is removed."""
NEXT = "next"
"""Shifts all subsequent phases to start sooner by the deleted phase's length."""
PREV = "prev"
"""Extends the previous phase to end later by the deleted phase's length."""
class SortOrder(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The order direction."""
ASC = "ASC"
"""ASC."""
DESC = "DESC"
"""DESC."""
class StripeCheckoutSessionMode(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Stripe CheckoutSession.mode."""
SETUP = "setup"
"""SETUP."""
class SubscriptionStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Subscription status."""
ACTIVE = "active"
"""ACTIVE."""
INACTIVE = "inactive"
"""INACTIVE."""
CANCELED = "canceled"
"""CANCELED."""
SCHEDULED = "scheduled"
"""SCHEDULED."""
class SubscriptionTimingEnum(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Subscription edit timing. When immediate, the requested changes take effect immediately. When
nextBillingCycle, the requested changes take effect at the next billing cycle.
"""
IMMEDIATE = "immediate"
"""IMMEDIATE."""
NEXT_BILLING_CYCLE = "next_billing_cycle"
"""NEXT_BILLING_CYCLE."""
class TaxBehavior(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Tax behavior.
This enum is used to specify whether tax is included in the price or excluded from the price.
"""
INCLUSIVE = "inclusive"
"""Tax is included in the price."""
EXCLUSIVE = "exclusive"
"""Tax is excluded from the price."""
class TieredPriceMode(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The mode of the tiered price."""
VOLUME = "volume"
"""VOLUME."""
GRADUATED = "graduated"
"""GRADUATED."""
class ValidationIssueSeverity(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""ValidationIssueSeverity describes the severity of a validation issue.
Issues with severity "critical" will prevent the invoice from being issued.
"""
CRITICAL = "critical"
"""CRITICAL."""
WARNING = "warning"
"""WARNING."""
class VoidInvoiceLineActionType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""VoidInvoiceLineActionType describes how to handle the voidied line item in the invoice."""
DISCARD = "discard"
"""The line items will never be charged for again."""
PENDING = "pending"
"""Queue the line items into the pending state, they will be included in the next invoice. (We
want to generate an invoice right now)."""
class WindowSize(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Aggregation window size."""
MINUTE = "MINUTE"
"""MINUTE."""
HOUR = "HOUR"
"""HOUR."""
DAY = "DAY"
"""DAY."""
MONTH = "MONTH"
"""MONTH."""