Skip to content

Commit

Permalink
Release 0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Aug 11, 2023
1 parent 145679a commit 17b5c7f
Show file tree
Hide file tree
Showing 90 changed files with 1,754 additions and 838 deletions.
18 changes: 17 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,25 @@ jobs:
run: poetry install
- name: Compile
run: poetry run mypy .
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set up python
uses: actions/setup-python@v4
with:
python-version: 3.7
- name: Bootstrap poetry
run: |
curl -sSL https://install.python-poetry.org | python - -y
- name: Install dependencies
run: poetry install
- name: Test
run: poetry run pytest .

publish:
needs: [ compile ]
needs: [compile, test]
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "flagright"
version = "0.0.4"
version = "0.1.1"
description = ""
readme = "README.md"
authors = []
Expand All @@ -10,11 +10,12 @@ packages = [

[tool.poetry.dependencies]
python = "^3.7"
httpx = "0.23.3"
pydantic = "^1.9.2"
httpx = "0.23.3"

[tool.poetry.dev-dependencies]
mypy = "0.971"
pytest = "^7.4.0"

[build-system]
requires = ["poetry-core"]
Expand Down
50 changes: 38 additions & 12 deletions src/flagright/__init__.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
# This file was auto-generated by Fern from our API Definition.

from .environment import FlagrightEnvironment
from .errors import BadRequestError, TooManyRequestsError, UnauthorizedError
from .types import (
AchDetails,
AchPaymentMethod,
AcquisitionChannel,
Address,
AlertClosedDetails,
Amount,
BooleanString,
Business,
BusinessBase,
BusinessEntityLink,
BusinessOptional,
BusinessOptionalSavedPaymentDetailsItem,
BusinessResponse,
BusinessUsersCreateResponse,
BusinessUsersResponse,
BusinessWithRulesResult,
CardDetails,
Expand All @@ -35,6 +36,8 @@
CompanyGeneralDetailsUserSegment,
CompanyRegistrationDetails,
ConsumerName,
ConsumerUserSegment,
ConsumerUsersCreateResponse,
ConsumerUsersResponse,
ContactDetails,
CountryCode,
Expand Down Expand Up @@ -68,11 +71,8 @@
PaymentMethod,
PepStatus,
Person,
PostBusinessUserResponse,
PostConsumerTransactionResponse,
PostConsumerUserResponse,
RiskLevel,
RiskScoringResult,
RiskScoreDetails,
RuleAction,
RuleFailureException,
RuleHitDirection,
Expand All @@ -90,17 +90,20 @@
TransactionAmountLimit,
TransactionBase,
TransactionCountLimit,
TransactionEvent,
TransactionEventMonitoringResult,
TransactionLimit,
TransactionLimits,
TransactionLimitsPaymentMethodLimits,
TransactionMonitoringResult,
TransactionState,
TransactionStatusDetails,
TransactionType,
TransactionUpdatable,
TransactionUpdatableDestinationPaymentDetails,
TransactionUpdatableOriginPaymentDetails,
TransactionWithRulesResult,
TransactionsVerifyResponse,
UpiDetails,
UpiPaymentMethod,
User,
Expand All @@ -109,16 +112,27 @@
UserDetailsGender,
UserMonitoringResult,
UserOptional,
UserOptionalUserSegment,
UserRegistrationStatus,
UserResponse,
UserState,
UserStateDetails,
UserWithRulesResult,
WalletDetails,
WalletPaymentMethod,
WebhookEvent,
WebhookEventData,
WebhookEventType,
)
from .errors import BadRequestError, TooManyRequestsError, UnauthorizedError
from .resources import (
business_user_events,
business_users,
consumer_user_events,
consumer_users,
transaction_events,
transactions,
)
from .environment import FlagrightEnvironment

__all__ = [
"AchDetails",
Expand All @@ -128,11 +142,14 @@
"AlertClosedDetails",
"Amount",
"BadRequestError",
"BooleanString",
"Business",
"BusinessBase",
"BusinessEntityLink",
"BusinessOptional",
"BusinessOptionalSavedPaymentDetailsItem",
"BusinessResponse",
"BusinessUsersCreateResponse",
"BusinessUsersResponse",
"BusinessWithRulesResult",
"CardDetails",
Expand All @@ -154,6 +171,8 @@
"CompanyGeneralDetailsUserSegment",
"CompanyRegistrationDetails",
"ConsumerName",
"ConsumerUserSegment",
"ConsumerUsersCreateResponse",
"ConsumerUsersResponse",
"ContactDetails",
"CountryCode",
Expand Down Expand Up @@ -188,11 +207,8 @@
"PaymentMethod",
"PepStatus",
"Person",
"PostBusinessUserResponse",
"PostConsumerTransactionResponse",
"PostConsumerUserResponse",
"RiskLevel",
"RiskScoringResult",
"RiskScoreDetails",
"RuleAction",
"RuleFailureException",
"RuleHitDirection",
Expand All @@ -211,17 +227,20 @@
"TransactionAmountLimit",
"TransactionBase",
"TransactionCountLimit",
"TransactionEvent",
"TransactionEventMonitoringResult",
"TransactionLimit",
"TransactionLimits",
"TransactionLimitsPaymentMethodLimits",
"TransactionMonitoringResult",
"TransactionState",
"TransactionStatusDetails",
"TransactionType",
"TransactionUpdatable",
"TransactionUpdatableDestinationPaymentDetails",
"TransactionUpdatableOriginPaymentDetails",
"TransactionWithRulesResult",
"TransactionsVerifyResponse",
"UnauthorizedError",
"UpiDetails",
"UpiPaymentMethod",
Expand All @@ -231,13 +250,20 @@
"UserDetailsGender",
"UserMonitoringResult",
"UserOptional",
"UserOptionalUserSegment",
"UserRegistrationStatus",
"UserResponse",
"UserState",
"UserStateDetails",
"UserWithRulesResult",
"WalletDetails",
"WalletPaymentMethod",
"WebhookEvent",
"WebhookEventData",
"WebhookEventType",
"business_user_events",
"business_users",
"consumer_user_events",
"consumer_users",
"transaction_events",
"transactions",
]
Loading

0 comments on commit 17b5c7f

Please sign in to comment.