Repository navigation
feat: Add the API fields missing from wallets, customers and more #431
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
e818f60
feat(alerts): Add alert webhook models
groyoh bd31ecd
feat(customer): Add account type and integration fields
groyoh be6e1f9
feat(payments): Add missing payment response fields
groyoh 986cf72
feat(models): Add einvoicing and organization slug
groyoh 73a4d0e
feat(subscription): Add progressive billing fields
groyoh 3c3626d
feat(plan): Add entitlements and pending_deletion
groyoh ab11ab9
feat(wallets): Add wallet transaction input fields
groyoh 2aa433c
test(wallets): Cover unset wallet transaction fields
groyoh 08c17d2
test(wallets): Match full wallet transaction bodies
groyoh 4b35306
test(alerts): Cover wallet alert webhook payloads
groyoh 33a127d
fix(wallets): Omit unset priority on transactions
groyoh ba4c5cf
feat(models): Export plan entitlement and threshold models
groyoh c0a133e
test(wallets): Send a zero priority on transactions
groyoh c24b77b
refactor(alerts): Share the alert webhook fields and threshold model
groyoh 63dd777
refactor(wallets): Drop unset fields from wallet transaction create
groyoh 237394a
feat(subscription): Read entitlements and applicable usage thresholds
groyoh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| from typing import Any, Dict, List, Optional | ||
|
|
||
| from ..base_model import BaseResponseModel | ||
|
|
||
|
|
||
| class PlanEntitlementPrivilegeResponse(BaseResponseModel): | ||
| code: Optional[str] | ||
| name: Optional[str] | ||
| value_type: Optional[str] | ||
| config: Optional[Dict[str, Any]] | ||
| value: Any | ||
|
|
||
|
|
||
| class PlanEntitlementPrivilegesResponse(BaseResponseModel): | ||
| __root__: List[PlanEntitlementPrivilegeResponse] | ||
|
|
||
|
|
||
| class PlanEntitlementResponse(BaseResponseModel): | ||
| code: Optional[str] | ||
| name: Optional[str] | ||
| description: Optional[str] | ||
| privileges: Optional[PlanEntitlementPrivilegesResponse] | ||
|
|
||
|
|
||
| class PlanEntitlementsResponse(BaseResponseModel): | ||
| __root__: List[PlanEntitlementResponse] | ||
|
|
||
|
|
||
| class SubscriptionEntitlementPrivilegeResponse(BaseResponseModel): | ||
| code: Optional[str] | ||
| name: Optional[str] | ||
| value_type: Optional[str] | ||
| config: Optional[Dict[str, Any]] | ||
| value: Any | ||
| plan_value: Any | ||
| override_value: Any | ||
|
|
||
|
|
||
| class SubscriptionEntitlementPrivilegesResponse(BaseResponseModel): | ||
| __root__: List[SubscriptionEntitlementPrivilegeResponse] | ||
|
|
||
|
|
||
| class SubscriptionEntitlementResponse(BaseResponseModel): | ||
| code: Optional[str] | ||
| name: Optional[str] | ||
| description: Optional[str] | ||
| privileges: Optional[SubscriptionEntitlementPrivilegesResponse] | ||
| overrides: Optional[Dict[str, Any]] | ||
|
|
||
|
|
||
| class SubscriptionEntitlementsResponse(BaseResponseModel): | ||
| __root__: List[SubscriptionEntitlementResponse] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.