lark-billing 0.0.8__tar.gz → 0.1.0__tar.gz

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 lark-billing might be problematic. Click here for more details.

Files changed (118) hide show
  1. {lark_billing-0.0.8 → lark_billing-0.1.0}/PKG-INFO +5 -5
  2. {lark_billing-0.0.8 → lark_billing-0.1.0}/README.md +4 -4
  3. {lark_billing-0.0.8 → lark_billing-0.1.0}/pyproject.toml +1 -1
  4. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/__init__.py +41 -16
  5. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/checkout/client.py +8 -4
  6. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/checkout/raw_client.py +4 -0
  7. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/core/client_wrapper.py +2 -2
  8. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/customer_portal/client.py +4 -2
  9. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/customer_portal/raw_client.py +2 -0
  10. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/pricing_metrics/__init__.py +19 -2
  11. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/pricing_metrics/client.py +148 -22
  12. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/pricing_metrics/raw_client.py +159 -20
  13. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/pricing_metrics/types/__init__.py +14 -1
  14. lark_billing-0.1.0/src/lark/pricing_metrics/types/pricing_metric_aggregation.py +106 -0
  15. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/rate_cards/client.py +74 -12
  16. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/rate_cards/raw_client.py +24 -14
  17. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/rate_cards/types/create_rate_card_request_usage_based_rates_item.py +1 -1
  18. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/subjects/client.py +12 -2
  19. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/subscriptions/client.py +4 -2
  20. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/subscriptions/raw_client.py +2 -0
  21. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/types/__init__.py +23 -13
  22. lark_billing-0.1.0/src/lark/types/aggregation.py +82 -0
  23. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/types/amount.py +4 -1
  24. lark_billing-0.1.0/src/lark/types/billing_state_response.py +27 -0
  25. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/types/count_aggregation_pricing_metric_interface.py +4 -0
  26. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/types/create_customer_portal_session_response.py +9 -2
  27. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/types/create_fixed_rate_request.py +10 -2
  28. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/types/create_simple_usage_based_rate_request.py +15 -3
  29. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/types/create_subscription_checkout_session_response.py +14 -3
  30. lark_billing-0.1.0/src/lark/types/custom_aggregation_pricing_metric_interface.py +26 -0
  31. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/types/fixed_rate_interface.py +1 -1
  32. lark_billing-0.1.0/src/lark/types/invoice_resource.py +56 -0
  33. lark_billing-0.1.0/src/lark/types/last_aggregation_pricing_metric_interface.py +26 -0
  34. lark_billing-0.1.0/src/lark/types/last_aggregation_pricing_metric_resource.py +22 -0
  35. lark_billing-0.1.0/src/lark/types/max_aggregation_pricing_metric_interface.py +26 -0
  36. lark_billing-0.0.8/src/lark/types/billing_state_response.py → lark_billing-0.1.0/src/lark/types/max_aggregation_pricing_metric_resource.py +5 -3
  37. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/types/period.py +3 -2
  38. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/types/pricing_metric_resource.py +24 -5
  39. lark_billing-0.1.0/src/lark/types/pricing_metric_summary_resource.py +43 -0
  40. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/types/rate_card_resource.py +36 -7
  41. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/types/rate_card_resource_usage_based_rates_item.py +1 -1
  42. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/types/simple_usage_based_rate_interface.py +1 -1
  43. lark_billing-0.1.0/src/lark/types/subscription_resource.py +61 -0
  44. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/types/sum_aggregation_pricing_metric_interface.py +4 -0
  45. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/types/sum_aggregation_pricing_metric_resource.py +4 -1
  46. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/usage_events/__init__.py +3 -3
  47. lark_billing-0.1.0/src/lark/usage_events/client.py +189 -0
  48. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/usage_events/raw_client.py +21 -147
  49. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/usage_events/types/__init__.py +3 -5
  50. lark_billing-0.0.8/src/lark/types/value.py → lark_billing-0.1.0/src/lark/usage_events/types/create_usage_event_request_data_value.py +1 -1
  51. lark_billing-0.0.8/src/lark/pricing_metrics/types/pricing_metric_aggregation.py +0 -38
  52. lark_billing-0.0.8/src/lark/types/aggregation.py +0 -38
  53. lark_billing-0.0.8/src/lark/types/create_pricing_metric_response.py +0 -24
  54. lark_billing-0.0.8/src/lark/types/create_usage_event_summary_response.py +0 -23
  55. lark_billing-0.0.8/src/lark/types/get_pricing_metric_response.py +0 -24
  56. lark_billing-0.0.8/src/lark/types/invoice_resource.py +0 -31
  57. lark_billing-0.0.8/src/lark/types/subscription_resource.py +0 -30
  58. lark_billing-0.0.8/src/lark/usage_events/client.py +0 -280
  59. lark_billing-0.0.8/src/lark/usage_events/types/create_usage_event_summary_request_aggregation_type.py +0 -5
  60. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/checkout/__init__.py +0 -0
  61. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/client.py +0 -0
  62. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/core/__init__.py +0 -0
  63. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/core/api_error.py +0 -0
  64. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/core/datetime_utils.py +0 -0
  65. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/core/file.py +0 -0
  66. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/core/force_multipart.py +0 -0
  67. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/core/http_client.py +0 -0
  68. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/core/http_response.py +0 -0
  69. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/core/http_sse/__init__.py +0 -0
  70. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/core/http_sse/_api.py +0 -0
  71. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/core/http_sse/_decoders.py +0 -0
  72. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/core/http_sse/_exceptions.py +0 -0
  73. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/core/http_sse/_models.py +0 -0
  74. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/core/jsonable_encoder.py +0 -0
  75. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/core/pydantic_utilities.py +0 -0
  76. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/core/query_encoder.py +0 -0
  77. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/core/remove_none_from_dict.py +0 -0
  78. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/core/request_options.py +0 -0
  79. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/core/serialization.py +0 -0
  80. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/customer_access/__init__.py +0 -0
  81. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/customer_access/client.py +0 -0
  82. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/customer_access/raw_client.py +0 -0
  83. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/customer_portal/__init__.py +0 -0
  84. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/environment.py +0 -0
  85. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/errors/__init__.py +0 -0
  86. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/errors/unprocessable_entity_error.py +0 -0
  87. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/invoices/__init__.py +0 -0
  88. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/invoices/client.py +0 -0
  89. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/invoices/raw_client.py +0 -0
  90. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/py.typed +0 -0
  91. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/rate_cards/__init__.py +0 -0
  92. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/rate_cards/types/__init__.py +0 -0
  93. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/rate_cards/types/create_rate_card_request_billing_interval.py +0 -0
  94. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/subjects/__init__.py +0 -0
  95. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/subjects/raw_client.py +0 -0
  96. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/subscriptions/__init__.py +0 -0
  97. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/types/count_aggregation_pricing_metric_resource.py +0 -0
  98. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/types/create_subject_response.py +0 -0
  99. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/types/flat_price.py +0 -0
  100. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/types/http_validation_error.py +0 -0
  101. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/types/invoice_line_item_resource.py +0 -0
  102. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/types/invoice_status.py +0 -0
  103. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/types/list_invoices_response.py +0 -0
  104. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/types/list_pricing_metrics_response.py +0 -0
  105. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/types/list_rate_cards_response.py +0 -0
  106. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/types/list_subjects_response.py +0 -0
  107. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/types/list_subscriptions_response.py +0 -0
  108. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/types/package_price.py +0 -0
  109. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/types/package_price_input_rounding_behavior.py +0 -0
  110. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/types/package_price_output_rounding_behavior.py +0 -0
  111. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/types/period_resource.py +0 -0
  112. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/types/price.py +0 -0
  113. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/types/rate_card_resource_billing_interval.py +0 -0
  114. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/types/subject_resource.py +0 -0
  115. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/types/subscription_status.py +0 -0
  116. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/types/validation_error.py +0 -0
  117. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/types/validation_error_loc_item.py +0 -0
  118. {lark_billing-0.0.8 → lark_billing-0.1.0}/src/lark/version.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lark-billing
3
- Version: 0.0.8
3
+ Version: 0.1.0
4
4
  Summary:
5
5
  Requires-Python: >=3.8,<4.0
6
6
  Classifier: Intended Audience :: Developers
@@ -53,8 +53,8 @@ client = Lark(
53
53
  api_key="YOUR_API_KEY",
54
54
  )
55
55
  client.checkout.create_subscription_checkout_session(
56
- subject_id="subject_id",
57
- rate_card_id="rate_card_id",
56
+ subject_id="subj_VyX6Q96h5avMho8O7QWlKeXE",
57
+ rate_card_id="rc_AJWMxR81jxoRlli6p13uf3JB",
58
58
  success_callback_url="https://example.com/callback",
59
59
  )
60
60
  ```
@@ -75,8 +75,8 @@ client = AsyncLark(
75
75
 
76
76
  async def main() -> None:
77
77
  await client.checkout.create_subscription_checkout_session(
78
- subject_id="subject_id",
79
- rate_card_id="rate_card_id",
78
+ subject_id="subj_VyX6Q96h5avMho8O7QWlKeXE",
79
+ rate_card_id="rc_AJWMxR81jxoRlli6p13uf3JB",
80
80
  success_callback_url="https://example.com/callback",
81
81
  )
82
82
 
@@ -26,8 +26,8 @@ client = Lark(
26
26
  api_key="YOUR_API_KEY",
27
27
  )
28
28
  client.checkout.create_subscription_checkout_session(
29
- subject_id="subject_id",
30
- rate_card_id="rate_card_id",
29
+ subject_id="subj_VyX6Q96h5avMho8O7QWlKeXE",
30
+ rate_card_id="rc_AJWMxR81jxoRlli6p13uf3JB",
31
31
  success_callback_url="https://example.com/callback",
32
32
  )
33
33
  ```
@@ -48,8 +48,8 @@ client = AsyncLark(
48
48
 
49
49
  async def main() -> None:
50
50
  await client.checkout.create_subscription_checkout_session(
51
- subject_id="subject_id",
52
- rate_card_id="rate_card_id",
51
+ subject_id="subj_VyX6Q96h5avMho8O7QWlKeXE",
52
+ rate_card_id="rc_AJWMxR81jxoRlli6p13uf3JB",
53
53
  success_callback_url="https://example.com/callback",
54
54
  )
55
55
 
@@ -3,7 +3,7 @@ name = "lark-billing"
3
3
 
4
4
  [tool.poetry]
5
5
  name = "lark-billing"
6
- version = "0.0.8"
6
+ version = "0.1.0"
7
7
  description = ""
8
8
  readme = "README.md"
9
9
  authors = []
@@ -9,6 +9,8 @@ if typing.TYPE_CHECKING:
9
9
  from .types import (
10
10
  Aggregation,
11
11
  Aggregation_Count,
12
+ Aggregation_Last,
13
+ Aggregation_Max,
12
14
  Aggregation_Sum,
13
15
  Amount,
14
16
  BillingStateResponse,
@@ -16,23 +18,25 @@ if typing.TYPE_CHECKING:
16
18
  CountAggregationPricingMetricResource,
17
19
  CreateCustomerPortalSessionResponse,
18
20
  CreateFixedRateRequest,
19
- CreatePricingMetricResponse,
20
21
  CreateSimpleUsageBasedRateRequest,
21
22
  CreateSubjectResponse,
22
23
  CreateSubscriptionCheckoutSessionResponse,
23
- CreateUsageEventSummaryResponse,
24
+ CustomAggregationPricingMetricInterface,
24
25
  FixedRateInterface,
25
26
  FlatPrice,
26
- GetPricingMetricResponse,
27
27
  HttpValidationError,
28
28
  InvoiceLineItemResource,
29
29
  InvoiceResource,
30
30
  InvoiceStatus,
31
+ LastAggregationPricingMetricInterface,
32
+ LastAggregationPricingMetricResource,
31
33
  ListInvoicesResponse,
32
34
  ListPricingMetricsResponse,
33
35
  ListRateCardsResponse,
34
36
  ListSubjectsResponse,
35
37
  ListSubscriptionsResponse,
38
+ MaxAggregationPricingMetricInterface,
39
+ MaxAggregationPricingMetricResource,
36
40
  PackagePrice,
37
41
  PackagePriceInputRoundingBehavior,
38
42
  PackagePriceOutputRoundingBehavior,
@@ -42,6 +46,7 @@ if typing.TYPE_CHECKING:
42
46
  Price_Flat,
43
47
  Price_Package,
44
48
  PricingMetricResource,
49
+ PricingMetricSummaryResource,
45
50
  RateCardResource,
46
51
  RateCardResourceBillingInterval,
47
52
  RateCardResourceUsageBasedRatesItem,
@@ -54,7 +59,6 @@ if typing.TYPE_CHECKING:
54
59
  SumAggregationPricingMetricResource,
55
60
  ValidationError,
56
61
  ValidationErrorLocItem,
57
- Value,
58
62
  )
59
63
  from .errors import UnprocessableEntityError
60
64
  from . import (
@@ -70,17 +74,26 @@ if typing.TYPE_CHECKING:
70
74
  )
71
75
  from .client import AsyncLark, Lark
72
76
  from .environment import LarkEnvironment
73
- from .pricing_metrics import PricingMetricAggregation, PricingMetricAggregation_Count, PricingMetricAggregation_Sum
77
+ from .pricing_metrics import (
78
+ PricingMetricAggregation,
79
+ PricingMetricAggregation_Count,
80
+ PricingMetricAggregation_Custom,
81
+ PricingMetricAggregation_Last,
82
+ PricingMetricAggregation_Max,
83
+ PricingMetricAggregation_Sum,
84
+ )
74
85
  from .rate_cards import (
75
86
  CreateRateCardRequestBillingInterval,
76
87
  CreateRateCardRequestUsageBasedRatesItem,
77
88
  CreateRateCardRequestUsageBasedRatesItem_Simple,
78
89
  )
79
- from .usage_events import CreateUsageEventSummaryRequestAggregationType
90
+ from .usage_events import CreateUsageEventRequestDataValue
80
91
  from .version import __version__
81
92
  _dynamic_imports: typing.Dict[str, str] = {
82
93
  "Aggregation": ".types",
83
94
  "Aggregation_Count": ".types",
95
+ "Aggregation_Last": ".types",
96
+ "Aggregation_Max": ".types",
84
97
  "Aggregation_Sum": ".types",
85
98
  "Amount": ".types",
86
99
  "AsyncLark": ".client",
@@ -89,29 +102,31 @@ _dynamic_imports: typing.Dict[str, str] = {
89
102
  "CountAggregationPricingMetricResource": ".types",
90
103
  "CreateCustomerPortalSessionResponse": ".types",
91
104
  "CreateFixedRateRequest": ".types",
92
- "CreatePricingMetricResponse": ".types",
93
105
  "CreateRateCardRequestBillingInterval": ".rate_cards",
94
106
  "CreateRateCardRequestUsageBasedRatesItem": ".rate_cards",
95
107
  "CreateRateCardRequestUsageBasedRatesItem_Simple": ".rate_cards",
96
108
  "CreateSimpleUsageBasedRateRequest": ".types",
97
109
  "CreateSubjectResponse": ".types",
98
110
  "CreateSubscriptionCheckoutSessionResponse": ".types",
99
- "CreateUsageEventSummaryRequestAggregationType": ".usage_events",
100
- "CreateUsageEventSummaryResponse": ".types",
111
+ "CreateUsageEventRequestDataValue": ".usage_events",
112
+ "CustomAggregationPricingMetricInterface": ".types",
101
113
  "FixedRateInterface": ".types",
102
114
  "FlatPrice": ".types",
103
- "GetPricingMetricResponse": ".types",
104
115
  "HttpValidationError": ".types",
105
116
  "InvoiceLineItemResource": ".types",
106
117
  "InvoiceResource": ".types",
107
118
  "InvoiceStatus": ".types",
108
119
  "Lark": ".client",
109
120
  "LarkEnvironment": ".environment",
121
+ "LastAggregationPricingMetricInterface": ".types",
122
+ "LastAggregationPricingMetricResource": ".types",
110
123
  "ListInvoicesResponse": ".types",
111
124
  "ListPricingMetricsResponse": ".types",
112
125
  "ListRateCardsResponse": ".types",
113
126
  "ListSubjectsResponse": ".types",
114
127
  "ListSubscriptionsResponse": ".types",
128
+ "MaxAggregationPricingMetricInterface": ".types",
129
+ "MaxAggregationPricingMetricResource": ".types",
115
130
  "PackagePrice": ".types",
116
131
  "PackagePriceInputRoundingBehavior": ".types",
117
132
  "PackagePriceOutputRoundingBehavior": ".types",
@@ -122,8 +137,12 @@ _dynamic_imports: typing.Dict[str, str] = {
122
137
  "Price_Package": ".types",
123
138
  "PricingMetricAggregation": ".pricing_metrics",
124
139
  "PricingMetricAggregation_Count": ".pricing_metrics",
140
+ "PricingMetricAggregation_Custom": ".pricing_metrics",
141
+ "PricingMetricAggregation_Last": ".pricing_metrics",
142
+ "PricingMetricAggregation_Max": ".pricing_metrics",
125
143
  "PricingMetricAggregation_Sum": ".pricing_metrics",
126
144
  "PricingMetricResource": ".types",
145
+ "PricingMetricSummaryResource": ".types",
127
146
  "RateCardResource": ".types",
128
147
  "RateCardResourceBillingInterval": ".types",
129
148
  "RateCardResourceUsageBasedRatesItem": ".types",
@@ -137,7 +156,6 @@ _dynamic_imports: typing.Dict[str, str] = {
137
156
  "UnprocessableEntityError": ".errors",
138
157
  "ValidationError": ".types",
139
158
  "ValidationErrorLocItem": ".types",
140
- "Value": ".types",
141
159
  "__version__": ".version",
142
160
  "checkout": ".checkout",
143
161
  "customer_access": ".customer_access",
@@ -175,6 +193,8 @@ def __dir__():
175
193
  __all__ = [
176
194
  "Aggregation",
177
195
  "Aggregation_Count",
196
+ "Aggregation_Last",
197
+ "Aggregation_Max",
178
198
  "Aggregation_Sum",
179
199
  "Amount",
180
200
  "AsyncLark",
@@ -183,29 +203,31 @@ __all__ = [
183
203
  "CountAggregationPricingMetricResource",
184
204
  "CreateCustomerPortalSessionResponse",
185
205
  "CreateFixedRateRequest",
186
- "CreatePricingMetricResponse",
187
206
  "CreateRateCardRequestBillingInterval",
188
207
  "CreateRateCardRequestUsageBasedRatesItem",
189
208
  "CreateRateCardRequestUsageBasedRatesItem_Simple",
190
209
  "CreateSimpleUsageBasedRateRequest",
191
210
  "CreateSubjectResponse",
192
211
  "CreateSubscriptionCheckoutSessionResponse",
193
- "CreateUsageEventSummaryRequestAggregationType",
194
- "CreateUsageEventSummaryResponse",
212
+ "CreateUsageEventRequestDataValue",
213
+ "CustomAggregationPricingMetricInterface",
195
214
  "FixedRateInterface",
196
215
  "FlatPrice",
197
- "GetPricingMetricResponse",
198
216
  "HttpValidationError",
199
217
  "InvoiceLineItemResource",
200
218
  "InvoiceResource",
201
219
  "InvoiceStatus",
202
220
  "Lark",
203
221
  "LarkEnvironment",
222
+ "LastAggregationPricingMetricInterface",
223
+ "LastAggregationPricingMetricResource",
204
224
  "ListInvoicesResponse",
205
225
  "ListPricingMetricsResponse",
206
226
  "ListRateCardsResponse",
207
227
  "ListSubjectsResponse",
208
228
  "ListSubscriptionsResponse",
229
+ "MaxAggregationPricingMetricInterface",
230
+ "MaxAggregationPricingMetricResource",
209
231
  "PackagePrice",
210
232
  "PackagePriceInputRoundingBehavior",
211
233
  "PackagePriceOutputRoundingBehavior",
@@ -216,8 +238,12 @@ __all__ = [
216
238
  "Price_Package",
217
239
  "PricingMetricAggregation",
218
240
  "PricingMetricAggregation_Count",
241
+ "PricingMetricAggregation_Custom",
242
+ "PricingMetricAggregation_Last",
243
+ "PricingMetricAggregation_Max",
219
244
  "PricingMetricAggregation_Sum",
220
245
  "PricingMetricResource",
246
+ "PricingMetricSummaryResource",
221
247
  "RateCardResource",
222
248
  "RateCardResourceBillingInterval",
223
249
  "RateCardResourceUsageBasedRatesItem",
@@ -231,7 +257,6 @@ __all__ = [
231
257
  "UnprocessableEntityError",
232
258
  "ValidationError",
233
259
  "ValidationErrorLocItem",
234
- "Value",
235
260
  "__version__",
236
261
  "checkout",
237
262
  "customer_access",
@@ -39,8 +39,10 @@ class CheckoutClient:
39
39
  Parameters
40
40
  ----------
41
41
  subject_id : str
42
+ The ID of the subject to create the checkout for.
42
43
 
43
44
  rate_card_id : str
45
+ The ID of the rate card to subscribe to.
44
46
 
45
47
  success_callback_url : str
46
48
  The URL to redirect to after the checkout is successful.
@@ -64,8 +66,8 @@ class CheckoutClient:
64
66
  api_key="YOUR_API_KEY",
65
67
  )
66
68
  client.checkout.create_subscription_checkout_session(
67
- subject_id="subject_id",
68
- rate_card_id="rate_card_id",
69
+ subject_id="subj_VyX6Q96h5avMho8O7QWlKeXE",
70
+ rate_card_id="rc_AJWMxR81jxoRlli6p13uf3JB",
69
71
  success_callback_url="https://example.com/callback",
70
72
  )
71
73
  """
@@ -107,8 +109,10 @@ class AsyncCheckoutClient:
107
109
  Parameters
108
110
  ----------
109
111
  subject_id : str
112
+ The ID of the subject to create the checkout for.
110
113
 
111
114
  rate_card_id : str
115
+ The ID of the rate card to subscribe to.
112
116
 
113
117
  success_callback_url : str
114
118
  The URL to redirect to after the checkout is successful.
@@ -137,8 +141,8 @@ class AsyncCheckoutClient:
137
141
 
138
142
  async def main() -> None:
139
143
  await client.checkout.create_subscription_checkout_session(
140
- subject_id="subject_id",
141
- rate_card_id="rate_card_id",
144
+ subject_id="subj_VyX6Q96h5avMho8O7QWlKeXE",
145
+ rate_card_id="rc_AJWMxR81jxoRlli6p13uf3JB",
142
146
  success_callback_url="https://example.com/callback",
143
147
  )
144
148
 
@@ -33,8 +33,10 @@ class RawCheckoutClient:
33
33
  Parameters
34
34
  ----------
35
35
  subject_id : str
36
+ The ID of the subject to create the checkout for.
36
37
 
37
38
  rate_card_id : str
39
+ The ID of the rate card to subscribe to.
38
40
 
39
41
  success_callback_url : str
40
42
  The URL to redirect to after the checkout is successful.
@@ -109,8 +111,10 @@ class AsyncRawCheckoutClient:
109
111
  Parameters
110
112
  ----------
111
113
  subject_id : str
114
+ The ID of the subject to create the checkout for.
112
115
 
113
116
  rate_card_id : str
117
+ The ID of the rate card to subscribe to.
114
118
 
115
119
  success_callback_url : str
116
120
  The URL to redirect to after the checkout is successful.
@@ -22,10 +22,10 @@ class BaseClientWrapper:
22
22
 
23
23
  def get_headers(self) -> typing.Dict[str, str]:
24
24
  headers: typing.Dict[str, str] = {
25
- "User-Agent": "lark-billing/0.0.8",
25
+ "User-Agent": "lark-billing/0.1.0",
26
26
  "X-Fern-Language": "Python",
27
27
  "X-Fern-SDK-Name": "lark-billing",
28
- "X-Fern-SDK-Version": "0.0.8",
28
+ "X-Fern-SDK-Version": "0.1.0",
29
29
  **(self.get_custom_headers() or {}),
30
30
  }
31
31
  headers["X-API-Key"] = self.api_key
@@ -33,6 +33,7 @@ class CustomerPortalClient:
33
33
  Parameters
34
34
  ----------
35
35
  subject_id : str
36
+ The ID of the subject to create the customer portal session for.
36
37
 
37
38
  request_options : typing.Optional[RequestOptions]
38
39
  Request-specific configuration.
@@ -50,7 +51,7 @@ class CustomerPortalClient:
50
51
  api_key="YOUR_API_KEY",
51
52
  )
52
53
  client.customer_portal.create_customer_portal_session(
53
- subject_id="subject_id",
54
+ subject_id="subj_VyX6Q96h5avMho8O7QWlKeXE",
54
55
  )
55
56
  """
56
57
  _response = self._raw_client.create_customer_portal_session(
@@ -81,6 +82,7 @@ class AsyncCustomerPortalClient:
81
82
  Parameters
82
83
  ----------
83
84
  subject_id : str
85
+ The ID of the subject to create the customer portal session for.
84
86
 
85
87
  request_options : typing.Optional[RequestOptions]
86
88
  Request-specific configuration.
@@ -103,7 +105,7 @@ class AsyncCustomerPortalClient:
103
105
 
104
106
  async def main() -> None:
105
107
  await client.customer_portal.create_customer_portal_session(
106
- subject_id="subject_id",
108
+ subject_id="subj_VyX6Q96h5avMho8O7QWlKeXE",
107
109
  )
108
110
 
109
111
 
@@ -27,6 +27,7 @@ class RawCustomerPortalClient:
27
27
  Parameters
28
28
  ----------
29
29
  subject_id : str
30
+ The ID of the subject to create the customer portal session for.
30
31
 
31
32
  request_options : typing.Optional[RequestOptions]
32
33
  Request-specific configuration.
@@ -86,6 +87,7 @@ class AsyncRawCustomerPortalClient:
86
87
  Parameters
87
88
  ----------
88
89
  subject_id : str
90
+ The ID of the subject to create the customer portal session for.
89
91
 
90
92
  request_options : typing.Optional[RequestOptions]
91
93
  Request-specific configuration.
@@ -6,10 +6,20 @@ import typing
6
6
  from importlib import import_module
7
7
 
8
8
  if typing.TYPE_CHECKING:
9
- from .types import PricingMetricAggregation, PricingMetricAggregation_Count, PricingMetricAggregation_Sum
9
+ from .types import (
10
+ PricingMetricAggregation,
11
+ PricingMetricAggregation_Count,
12
+ PricingMetricAggregation_Custom,
13
+ PricingMetricAggregation_Last,
14
+ PricingMetricAggregation_Max,
15
+ PricingMetricAggregation_Sum,
16
+ )
10
17
  _dynamic_imports: typing.Dict[str, str] = {
11
18
  "PricingMetricAggregation": ".types",
12
19
  "PricingMetricAggregation_Count": ".types",
20
+ "PricingMetricAggregation_Custom": ".types",
21
+ "PricingMetricAggregation_Last": ".types",
22
+ "PricingMetricAggregation_Max": ".types",
13
23
  "PricingMetricAggregation_Sum": ".types",
14
24
  }
15
25
 
@@ -35,4 +45,11 @@ def __dir__():
35
45
  return sorted(lazy_attrs)
36
46
 
37
47
 
38
- __all__ = ["PricingMetricAggregation", "PricingMetricAggregation_Count", "PricingMetricAggregation_Sum"]
48
+ __all__ = [
49
+ "PricingMetricAggregation",
50
+ "PricingMetricAggregation_Count",
51
+ "PricingMetricAggregation_Custom",
52
+ "PricingMetricAggregation_Last",
53
+ "PricingMetricAggregation_Max",
54
+ "PricingMetricAggregation_Sum",
55
+ ]