Skip to content

Commit f8b07d2

Browse files
committed
Generates new client with patched ApiChannelBase and ApiCampaignBase
1 parent ce0157c commit f8b07d2

File tree

85 files changed

+303
-300
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+303
-300
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
.env*
2+
.idea/**

openapi_specs/latest/openapi-v241218-MINOR-manually-fixed-trimmed-down.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -8624,7 +8624,8 @@
86248624
"CREATING",
86258625
"INACTIVE",
86268626
"DELETED",
8627-
"UPDATING"
8627+
"UPDATING",
8628+
"CANCELLED"
86288629
]
86298630
}
86308631
}

plenigo-client/plenigo/__init__.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
"""A client library for accessing plenigo API v3"""
2-
1+
""" A client library for accessing plenigo API v3 """
32
from enum import StrEnum
43

54
from .client import AuthenticatedClient, Client
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"""Contains methods for accessing the API"""
1+
""" Contains methods for accessing the API """

plenigo-client/plenigo/api/access_rights/search_access_rights.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def _get_kwargs(
2626
ending_before: Union[Unset, str] = UNSET,
2727
sort: Union[Unset, SearchAccessRightsSort] = UNSET,
2828
) -> Dict[str, Any]:
29-
params: Dict[str, Any] = {}
29+
params: dict[str, Any] = {}
3030

3131
params["size"] = size
3232

plenigo-client/plenigo/api/app_stores/search_app_store_orders.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def _get_kwargs(
2626
ending_before: Union[Unset, str] = UNSET,
2727
sort: Union[Unset, SearchAppStoreOrdersSort] = UNSET,
2828
) -> Dict[str, Any]:
29-
params: Dict[str, Any] = {}
29+
params: dict[str, Any] = {}
3030

3131
params["size"] = size
3232

plenigo-client/plenigo/api/app_stores/search_app_store_subscriptions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def _get_kwargs(
2626
ending_before: Union[Unset, str] = UNSET,
2727
sort: Union[Unset, SearchAppStoreSubscriptionsSort] = UNSET,
2828
) -> Dict[str, Any]:
29-
params: Dict[str, Any] = {}
29+
params: dict[str, Any] = {}
3030

3131
params["size"] = size
3232

plenigo-client/plenigo/api/app_stores/search_apple_app_store_purchases.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def _get_kwargs(
2727
sort: Union[Unset, SearchAppleAppStorePurchasesSort] = UNSET,
2828
token: Union[Unset, str] = UNSET,
2929
) -> Dict[str, Any]:
30-
params: Dict[str, Any] = {}
30+
params: dict[str, Any] = {}
3131

3232
params["size"] = size
3333

plenigo-client/plenigo/api/app_stores/search_google_play_store_purchases.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def _get_kwargs(
2727
sort: Union[Unset, SearchGooglePlayStorePurchasesSort] = UNSET,
2828
token: Union[Unset, str] = UNSET,
2929
) -> Dict[str, Any]:
30-
params: Dict[str, Any] = {}
30+
params: dict[str, Any] = {}
3131

3232
params["size"] = size
3333

plenigo-client/plenigo/api/customer_cancellation_reasons/search_customer_cancellation_reasons.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def _get_kwargs(
2424
starting_after: Union[Unset, str] = UNSET,
2525
ending_before: Union[Unset, str] = UNSET,
2626
) -> Dict[str, Any]:
27-
params: Dict[str, Any] = {}
27+
params: dict[str, Any] = {}
2828

2929
params["size"] = size
3030

plenigo-client/plenigo/api/customers/search_customers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def _get_kwargs(
2929
email: Union[Unset, str] = UNSET,
3030
username: Union[Unset, str] = UNSET,
3131
) -> Dict[str, Any]:
32-
params: Dict[str, Any] = {}
32+
params: dict[str, Any] = {}
3333

3434
params["size"] = size
3535

plenigo-client/plenigo/api/invoices/search_invoices.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def _get_kwargs(
3131
filter_by_invoice_date: Union[Unset, bool] = UNSET,
3232
invoice_type: Union[Unset, SearchInvoicesInvoiceType] = UNSET,
3333
) -> Dict[str, Any]:
34-
params: Dict[str, Any] = {}
34+
params: dict[str, Any] = {}
3535

3636
params["size"] = size
3737

plenigo-client/plenigo/api/offers/search_product_offers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def _get_kwargs(
2828
plenigo_offer_id: Union[Unset, str] = UNSET,
2929
leaf_id: Union[Unset, int] = UNSET,
3030
) -> Dict[str, Any]:
31-
params: Dict[str, Any] = {}
31+
params: dict[str, Any] = {}
3232

3333
params["size"] = size
3434

plenigo-client/plenigo/api/orders/search_orders.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def _get_kwargs(
2727
sort: Union[Unset, SearchOrdersSort] = UNSET,
2828
external_system_id: Union[Unset, str] = UNSET,
2929
) -> Dict[str, Any]:
30-
params: Dict[str, Any] = {}
30+
params: dict[str, Any] = {}
3131

3232
params["size"] = size
3333

plenigo-client/plenigo/api/price_issues/search_product_price_issues.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def _get_kwargs(
2626
ending_before: Union[Unset, str] = UNSET,
2727
sort: Union[Unset, SearchProductPriceIssuesSort] = UNSET,
2828
) -> Dict[str, Any]:
29-
params: Dict[str, Any] = {}
29+
params: dict[str, Any] = {}
3030

3131
params["size"] = size
3232

plenigo-client/plenigo/api/refunds/search_refunds.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def _get_kwargs(
2727
customer_id: Union[Unset, str] = UNSET,
2828
status: Union[Unset, SearchRefundsStatus] = UNSET,
2929
) -> Dict[str, Any]:
30-
params: Dict[str, Any] = {}
30+
params: dict[str, Any] = {}
3131

3232
params["size"] = size
3333

plenigo-client/plenigo/api/subscriptions/search_subscriptions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def _get_kwargs(
2828
subscription_item_id: Union[Unset, int] = UNSET,
2929
external_system_id: Union[Unset, str] = UNSET,
3030
) -> Dict[str, Any]:
31-
params: Dict[str, Any] = {}
31+
params: dict[str, Any] = {}
3232

3333
params["size"] = size
3434

plenigo-client/plenigo/api/transactions/search_transactions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def _get_kwargs(
2828
plenigo_transaction_id: Union[Unset, str] = UNSET,
2929
psp_transaction_id: Union[Unset, str] = UNSET,
3030
) -> Dict[str, Any]:
31-
params: Dict[str, Any] = {}
31+
params: dict[str, Any] = {}
3232

3333
params["size"] = size
3434

plenigo-client/plenigo/api/vouchers/search_channel_vouchers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def _get_kwargs(
2424
size: Union[Unset, int] = UNSET,
2525
voucher_status: Union[Unset, SearchChannelVouchersVoucherStatus] = UNSET,
2626
) -> Dict[str, Any]:
27-
params: Dict[str, Any] = {}
27+
params: dict[str, Any] = {}
2828

2929
params["startingAfter"] = starting_after
3030

plenigo-client/plenigo/api/vouchers/search_voucher_campaigns.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def _get_kwargs(
2222
ending_before: Union[Unset, str] = UNSET,
2323
voucher_code: Union[Unset, str] = UNSET,
2424
) -> Dict[str, Any]:
25-
params: Dict[str, Any] = {}
25+
params: dict[str, Any] = {}
2626

2727
params["size"] = size
2828

plenigo-client/plenigo/api/vouchers/search_vouchers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def _get_kwargs(
2626
size: Union[Unset, int] = UNSET,
2727
voucher_status: Union[Unset, SearchVouchersVoucherStatus] = UNSET,
2828
) -> Dict[str, Any]:
29-
params: Dict[str, Any] = {}
29+
params: dict[str, Any] = {}
3030

3131
params["startingAfter"] = starting_after
3232

plenigo-client/plenigo/errors.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Contains shared errors types that can be raised from API functions"""
1+
""" Contains shared errors types that can be raised from API functions """
22

33

44
class UnexpectedStatus(Exception):

plenigo-client/plenigo/models/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Contains all the data models used in inputs/outputs"""
1+
""" Contains all the data models used in inputs/outputs """
22

33
from .access_right_data import AccessRightData
44
from .access_right_item_data import AccessRightItemData

plenigo-client/plenigo/models/access_right_data.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class AccessRightData:
3131
changed_by_type (Union[Unset, UserType]): type of user who performs the action
3232
customer_id (Union[Unset, str]): unique id of the customer the access right belongs to
3333
customer_blocked (Union[Unset, bool]): flag indicating if customer is blocked completely
34-
items (Union[Unset, List['AccessRightItemData']]):
34+
items (Union[Unset, list['AccessRightItemData']]):
3535
"""
3636

3737
created_date: Union[None, Unset, datetime.datetime] = UNSET
@@ -42,7 +42,7 @@ class AccessRightData:
4242
changed_by_type: Union[Unset, UserType] = UNSET
4343
customer_id: Union[Unset, str] = UNSET
4444
customer_blocked: Union[Unset, bool] = UNSET
45-
items: Union[Unset, List["AccessRightItemData"]] = UNSET
45+
items: Union[Unset, list["AccessRightItemData"]] = UNSET
4646
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
4747

4848
def to_dict(self) -> Dict[str, Any]:
@@ -78,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]:
7878

7979
customer_blocked = self.customer_blocked
8080

81-
items: Union[Unset, List[Dict[str, Any]]] = UNSET
81+
items: Union[Unset, list[dict[str, Any]]] = UNSET
8282
if not isinstance(self.items, Unset):
8383
items = []
8484
for items_item_data in self.items:

plenigo-client/plenigo/models/access_right_item_data.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def to_dict(self) -> Dict[str, Any]:
156156
else:
157157
max_cache_date = self.max_cache_date
158158

159-
data: Union[Unset, Dict[str, Any]] = UNSET
159+
data: Union[Unset, dict[str, Any]] = UNSET
160160
if not isinstance(self.data, Unset):
161161
data = self.data.to_dict()
162162

@@ -176,7 +176,7 @@ def to_dict(self) -> Dict[str, Any]:
176176

177177
item_id = self.item_id
178178

179-
access_right_data: Union[Unset, Dict[str, Any]] = UNSET
179+
access_right_data: Union[Unset, dict[str, Any]] = UNSET
180180
if not isinstance(self.access_right_data, Unset):
181181
access_right_data = self.access_right_data.to_dict()
182182

plenigo-client/plenigo/models/access_rights_data.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,20 @@ class AccessRightsData:
2222
starting_after_id (Union[Unset, str]): A cursor for use in pagination. startingAfter is an object ID that
2323
defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with
2424
obj_foo, your subsequent call can include startingAfter=obj_foo in order to fetch the next result set.
25-
items (Union[Unset, List['AccessRightData']]):
25+
items (Union[Unset, list['AccessRightData']]):
2626
"""
2727

2828
ending_before_id: Union[Unset, str] = UNSET
2929
starting_after_id: Union[Unset, str] = UNSET
30-
items: Union[Unset, List["AccessRightData"]] = UNSET
30+
items: Union[Unset, list["AccessRightData"]] = UNSET
3131
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
3232

3333
def to_dict(self) -> Dict[str, Any]:
3434
ending_before_id = self.ending_before_id
3535

3636
starting_after_id = self.starting_after_id
3737

38-
items: Union[Unset, List[Dict[str, Any]]] = UNSET
38+
items: Union[Unset, list[dict[str, Any]]] = UNSET
3939
if not isinstance(self.items, Unset):
4040
items = []
4141
for items_item_data in self.items:

plenigo-client/plenigo/models/additional_chain_data.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class AdditionalChainData:
2323
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
2424

2525
def to_dict(self) -> Dict[str, Any]:
26-
data: Union[Unset, Dict[str, Any]] = UNSET
26+
data: Union[Unset, dict[str, Any]] = UNSET
2727
if not isinstance(self.data, Unset):
2828
data = self.data.to_dict()
2929

plenigo-client/plenigo/models/additional_order_data.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ def to_dict(self) -> Dict[str, Any]:
6464

6565
source_id = self.source_id
6666

67-
utm: Union[Unset, Dict[str, Any]] = UNSET
67+
utm: Union[Unset, dict[str, Any]] = UNSET
6868
if not isinstance(self.utm, Unset):
6969
utm = self.utm.to_dict()
7070

71-
data: Union[Unset, Dict[str, Any]] = UNSET
71+
data: Union[Unset, dict[str, Any]] = UNSET
7272
if not isinstance(self.data, Unset):
7373
data = self.data.to_dict()
7474

plenigo-client/plenigo/models/api_campaign.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class ApiCampaign:
2929
start_date (Union[None, datetime.date]): start date of the campaign with full-date notation as defined by <a
3030
href="https://tools.ietf.org/html/rfc3339#section-5.6" target="_blank">RFC 3339, section 5.6</a>, for example,
3131
2017-07-21
32-
channels (List['ApiChannel']):
32+
channels (list['ApiChannel']):
3333
created_date (Union[None, Unset, datetime.datetime]): time the object was created with time notation as defined
3434
by <a href="https://tools.ietf.org/html/rfc3339#section-5.6" target="_blank">RFC 3339, section 5.6</a>, for
3535
example, 17:32:28
@@ -51,7 +51,7 @@ class ApiCampaign:
5151
plenigo_offer_id: str
5252
status: ApiCampaignBaseStatus
5353
start_date: Union[None, datetime.date]
54-
channels: List["ApiChannel"]
54+
channels: list["ApiChannel"]
5555
created_date: Union[None, Unset, datetime.datetime] = UNSET
5656
changed_date: Union[None, Unset, datetime.datetime] = UNSET
5757
created_by: Union[Unset, str] = UNSET

plenigo-client/plenigo/models/api_campaign_page.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,20 @@ class ApiCampaignPage:
2222
starting_after_id (Union[Unset, str]): A cursor for use in pagination. startingAfter is an object ID that
2323
defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with
2424
obj_foo, your subsequent call can include startingAfter=obj_foo in order to fetch the next result set.
25-
items (Union[Unset, List['ApiCampaign']]):
25+
items (Union[Unset, list['ApiCampaign']]):
2626
"""
2727

2828
ending_before_id: Union[Unset, str] = UNSET
2929
starting_after_id: Union[Unset, str] = UNSET
30-
items: Union[Unset, List["ApiCampaign"]] = UNSET
30+
items: Union[Unset, list["ApiCampaign"]] = UNSET
3131
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
3232

3333
def to_dict(self) -> Dict[str, Any]:
3434
ending_before_id = self.ending_before_id
3535

3636
starting_after_id = self.starting_after_id
3737

38-
items: Union[Unset, List[Dict[str, Any]]] = UNSET
38+
items: Union[Unset, list[dict[str, Any]]] = UNSET
3939
if not isinstance(self.items, Unset):
4040
items = []
4141
for items_item_data in self.items:

plenigo-client/plenigo/models/api_channel.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class ApiChannel:
3636
changed_by (Union[Unset, str]): id who changed the object
3737
changed_by_type (Union[Unset, UserType]): type of user who performs the action
3838
custom_data (Union[Unset, str]): free text field
39-
vouchers (Union[Unset, List['ApiVoucher']]):
39+
vouchers (Union[Unset, list['ApiVoucher']]):
4040
multi_voucher (Union[Unset, ApiMultiVoucher]):
4141
"""
4242

@@ -51,7 +51,7 @@ class ApiChannel:
5151
changed_by: Union[Unset, str] = UNSET
5252
changed_by_type: Union[Unset, UserType] = UNSET
5353
custom_data: Union[Unset, str] = UNSET
54-
vouchers: Union[Unset, List["ApiVoucher"]] = UNSET
54+
vouchers: Union[Unset, list["ApiVoucher"]] = UNSET
5555
multi_voucher: Union[Unset, "ApiMultiVoucher"] = UNSET
5656
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
5757

@@ -94,14 +94,14 @@ def to_dict(self) -> Dict[str, Any]:
9494

9595
custom_data = self.custom_data
9696

97-
vouchers: Union[Unset, List[Dict[str, Any]]] = UNSET
97+
vouchers: Union[Unset, list[dict[str, Any]]] = UNSET
9898
if not isinstance(self.vouchers, Unset):
9999
vouchers = []
100100
for vouchers_item_data in self.vouchers:
101101
vouchers_item = vouchers_item_data.to_dict()
102102
vouchers.append(vouchers_item)
103103

104-
multi_voucher: Union[Unset, Dict[str, Any]] = UNSET
104+
multi_voucher: Union[Unset, dict[str, Any]] = UNSET
105105
if not isinstance(self.multi_voucher, Unset):
106106
multi_voucher = self.multi_voucher.to_dict()
107107

plenigo-client/plenigo/models/api_channel_base_status.py

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
class ApiChannelBaseStatus(str, Enum):
55
ACTIVE = "ACTIVE"
6+
CANCELLED = "CANCELLED"
67
CREATING = "CREATING"
78
DELETED = "DELETED"
89
INACTIVE = "INACTIVE"

plenigo-client/plenigo/models/api_voucher_page.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,20 @@ class ApiVoucherPage:
2222
starting_after_id (Union[Unset, str]): A cursor for use in pagination. startingAfter is an object ID that
2323
defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with
2424
obj_foo, your subsequent call can include startingAfter=obj_foo in order to fetch the next result set.
25-
items (Union[Unset, List['ApiVoucher']]):
25+
items (Union[Unset, list['ApiVoucher']]):
2626
"""
2727

2828
ending_before_id: Union[Unset, str] = UNSET
2929
starting_after_id: Union[Unset, str] = UNSET
30-
items: Union[Unset, List["ApiVoucher"]] = UNSET
30+
items: Union[Unset, list["ApiVoucher"]] = UNSET
3131
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
3232

3333
def to_dict(self) -> Dict[str, Any]:
3434
ending_before_id = self.ending_before_id
3535

3636
starting_after_id = self.starting_after_id
3737

38-
items: Union[Unset, List[Dict[str, Any]]] = UNSET
38+
items: Union[Unset, list[dict[str, Any]]] = UNSET
3939
if not isinstance(self.items, Unset):
4040
items = []
4141
for items_item_data in self.items:

0 commit comments

Comments
 (0)