Skip to content

Commit

Permalink
chore: Publish fraudPreventionV2 [2.3.0] SDK (#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Oct 17, 2023
1 parent 93c56b4 commit e5491ac
Show file tree
Hide file tree
Showing 7 changed files with 299 additions and 273 deletions.
16 changes: 16 additions & 0 deletions release/fraudPreventionV2/docs/Brand.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ Incorrect `brand` - `card_type` combination will result in data quality issues a
* `CHEAP_CASH`
* `BONUS_PLUS`
* `ULTIMATE_REWARDS`
* `UATP`
* `UATP_SUPPLY`
* `AIR_PLUS`
* `US_PASS_PLUS`

'brand' with 'GiftCard' payment_type is an enum value with following:
* `GIFT_CARD`
Expand Down Expand Up @@ -162,6 +166,14 @@ Incorrect `brand` - `card_type` combination will result in data quality issues a







Expand All @@ -174,6 +186,7 @@ Incorrect `brand` - `card_type` combination will result in data quality issues a

| Name | Type | Required | Description |
|---------------------------|------|----------|-------------|
| AIR_PLUS | Any | True | ... |
| ALASKA_MILES | Any | True | ... |
| AMERICAN_EXPRESS | Any | True | ... |
| AMEX_POINTS | Any | True | ... |
Expand Down Expand Up @@ -212,8 +225,11 @@ Incorrect `brand` - `card_type` combination will result in data quality issues a
| SOFORT | Any | True | ... |
| SOLO | Any | True | ... |
| SWITCH | Any | True | ... |
| UATP | Any | True | ... |
| UATP_SUPPLY | Any | True | ... |
| ULTIMATE_REWARDS | Any | True | ... |
| UNITED_POINTS | Any | True | ... |
| US_PASS_PLUS | Any | True | ... |
| VISA | Any | True | ... |
| VISA_DANKORT | Any | True | ... |
| VISA_DELTA | Any | True | ... |
Expand Down
24 changes: 12 additions & 12 deletions release/fraudPreventionV2/docs/PaymentGeneric.md

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion release/fraudPreventionV2/src/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def __init__(self, client_config: ClientConfig):
"""
python_version = platform.python_version()
os_name, os_version, *_ = platform.platform().split("-")
sdk_metadata = "expediagroup-fraudpreventionv2-python-sdk/2.2.0"
sdk_metadata = "expediagroup-fraudpreventionv2-python-sdk/2.3.0"

self.__api_client = ApiClient(client_config, _ExpediaGroupAuthClient)

Expand Down
150 changes: 81 additions & 69 deletions release/fraudPreventionV2/src/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,10 @@ class Brand(
* `CHEAP_CASH`
* `BONUS_PLUS`
* `ULTIMATE_REWARDS`
* `UATP`
* `UATP_SUPPLY`
* `AIR_PLUS`
* `US_PASS_PLUS`
'brand' with 'GiftCard' payment_type is an enum value with following:
* `GIFT_CARD`
Expand Down Expand Up @@ -664,6 +668,10 @@ class Brand(
CHEAP_CASH: Any = "CHEAP_CASH"
BONUS_PLUS: Any = "BONUS_PLUS"
ULTIMATE_REWARDS: Any = "ULTIMATE_REWARDS"
UATP: Any = "UATP"
UATP_SUPPLY: Any = "UATP_SUPPLY"
AIR_PLUS: Any = "AIR_PLUS"
US_PASS_PLUS: Any = "US_PASS_PLUS"
GIFT_CARD: Any = "GIFT_CARD"
IBP: Any = "IBP"
LOCAL_DEBIT_CARD: Any = "LOCAL_DEBIT_CARD"
Expand Down Expand Up @@ -2516,6 +2524,10 @@ class PaymentGeneric(
* `CHEAP_CASH`
* `BONUS_PLUS`
* `ULTIMATE_REWARDS`
* `UATP`
* `UATP_SUPPLY`
* `AIR_PLUS`
* `US_PASS_PLUS`
'brand' with 'GiftCard' payment_type is an enum value with following:
* `GIFT_CARD`
Expand Down Expand Up @@ -3089,18 +3101,13 @@ class OrderPurchaseScreenRequest(
OrderPurchaseScreenRequest.update_forward_refs()


class ExpediaGroupOrderPurchaseUpdateNotFoundErrorException(ExpediaGroupApiException):
r"""Exception wrapping a OrderPurchaseUpdateNotFoundError object."""
pass


class ExpediaGroupAccountTakeoverBadRequestErrorException(ExpediaGroupApiException):
r"""Exception wrapping a AccountTakeoverBadRequestError object."""
class ExpediaGroupForbiddenErrorException(ExpediaGroupApiException):
r"""Exception wrapping a ForbiddenError object."""
pass


class ExpediaGroupServiceUnavailableErrorException(ExpediaGroupApiException):
r"""Exception wrapping a ServiceUnavailableError object."""
class ExpediaGroupNotFoundErrorException(ExpediaGroupApiException):
r"""Exception wrapping a NotFoundError object."""
pass


Expand All @@ -3109,38 +3116,38 @@ class ExpediaGroupTooManyRequestsErrorException(ExpediaGroupApiException):
pass


class ExpediaGroupAccountUpdateNotFoundErrorException(ExpediaGroupApiException):
r"""Exception wrapping a AccountUpdateNotFoundError object."""
class ExpediaGroupBadRequestErrorException(ExpediaGroupApiException):
r"""Exception wrapping a BadRequestError object."""
pass


class ExpediaGroupBadGatewayErrorException(ExpediaGroupApiException):
r"""Exception wrapping a BadGatewayError object."""
class ExpediaGroupRetryableOrderPurchaseUpdateFailureException(ExpediaGroupApiException):
r"""Exception wrapping a RetryableOrderPurchaseUpdateFailure object."""
pass


class ExpediaGroupRetryableOrderPurchaseScreenFailureException(ExpediaGroupApiException):
r"""Exception wrapping a RetryableOrderPurchaseScreenFailure object."""
class ExpediaGroupBadGatewayErrorException(ExpediaGroupApiException):
r"""Exception wrapping a BadGatewayError object."""
pass


class ExpediaGroupRetryableOrderPurchaseUpdateFailureException(ExpediaGroupApiException):
r"""Exception wrapping a RetryableOrderPurchaseUpdateFailure object."""
class ExpediaGroupServiceUnavailableErrorException(ExpediaGroupApiException):
r"""Exception wrapping a ServiceUnavailableError object."""
pass


class ExpediaGroupNotFoundErrorException(ExpediaGroupApiException):
r"""Exception wrapping a NotFoundError object."""
class ExpediaGroupAccountUpdateNotFoundErrorException(ExpediaGroupApiException):
r"""Exception wrapping a AccountUpdateNotFoundError object."""
pass


class ExpediaGroupGatewayTimeoutErrorException(ExpediaGroupApiException):
r"""Exception wrapping a GatewayTimeoutError object."""
class ExpediaGroupAccountTakeoverUnauthorizedErrorException(ExpediaGroupApiException):
r"""Exception wrapping a AccountTakeoverUnauthorizedError object."""
pass


class ExpediaGroupBadRequestErrorException(ExpediaGroupApiException):
r"""Exception wrapping a BadRequestError object."""
class ExpediaGroupRetryableOrderPurchaseScreenFailureException(ExpediaGroupApiException):
r"""Exception wrapping a RetryableOrderPurchaseScreenFailure object."""
pass


Expand All @@ -3149,37 +3156,36 @@ class ExpediaGroupUnauthorizedErrorException(ExpediaGroupApiException):
pass


class ExpediaGroupForbiddenErrorException(ExpediaGroupApiException):
r"""Exception wrapping a ForbiddenError object."""
class ExpediaGroupInternalServerErrorException(ExpediaGroupApiException):
r"""Exception wrapping a InternalServerError object."""
pass


class ExpediaGroupAccountTakeoverUnauthorizedErrorException(ExpediaGroupApiException):
r"""Exception wrapping a AccountTakeoverUnauthorizedError object."""
class ExpediaGroupAccountTakeoverBadRequestErrorException(ExpediaGroupApiException):
r"""Exception wrapping a AccountTakeoverBadRequestError object."""
pass


class ExpediaGroupInternalServerErrorException(ExpediaGroupApiException):
r"""Exception wrapping a InternalServerError object."""
class ExpediaGroupOrderPurchaseUpdateNotFoundErrorException(ExpediaGroupApiException):
r"""Exception wrapping a OrderPurchaseUpdateNotFoundError object."""
pass


@dataclass
class OrderPurchaseUpdateNotFoundErrorDeserializationContract:
exception: type = ExpediaGroupOrderPurchaseUpdateNotFoundErrorException
model: type = OrderPurchaseUpdateNotFoundError
class ExpediaGroupGatewayTimeoutErrorException(ExpediaGroupApiException):
r"""Exception wrapping a GatewayTimeoutError object."""
pass


@dataclass
class AccountTakeoverBadRequestErrorDeserializationContract:
exception: type = ExpediaGroupAccountTakeoverBadRequestErrorException
model: type = AccountTakeoverBadRequestError
class ForbiddenErrorDeserializationContract:
exception: type = ExpediaGroupForbiddenErrorException
model: type = ForbiddenError


@dataclass
class ServiceUnavailableErrorDeserializationContract:
exception: type = ExpediaGroupServiceUnavailableErrorException
model: type = ServiceUnavailableError
class NotFoundErrorDeserializationContract:
exception: type = ExpediaGroupNotFoundErrorException
model: type = NotFoundError


@dataclass
Expand All @@ -3189,45 +3195,45 @@ class TooManyRequestsErrorDeserializationContract:


@dataclass
class AccountUpdateNotFoundErrorDeserializationContract:
exception: type = ExpediaGroupAccountUpdateNotFoundErrorException
model: type = AccountUpdateNotFoundError
class BadRequestErrorDeserializationContract:
exception: type = ExpediaGroupBadRequestErrorException
model: type = BadRequestError


@dataclass
class BadGatewayErrorDeserializationContract:
exception: type = ExpediaGroupBadGatewayErrorException
model: type = BadGatewayError
class RetryableOrderPurchaseUpdateFailureDeserializationContract:
exception: type = ExpediaGroupRetryableOrderPurchaseUpdateFailureException
model: type = RetryableOrderPurchaseUpdateFailure


@dataclass
class RetryableOrderPurchaseScreenFailureDeserializationContract:
exception: type = ExpediaGroupRetryableOrderPurchaseScreenFailureException
model: type = RetryableOrderPurchaseScreenFailure
class BadGatewayErrorDeserializationContract:
exception: type = ExpediaGroupBadGatewayErrorException
model: type = BadGatewayError


@dataclass
class RetryableOrderPurchaseUpdateFailureDeserializationContract:
exception: type = ExpediaGroupRetryableOrderPurchaseUpdateFailureException
model: type = RetryableOrderPurchaseUpdateFailure
class ServiceUnavailableErrorDeserializationContract:
exception: type = ExpediaGroupServiceUnavailableErrorException
model: type = ServiceUnavailableError


@dataclass
class NotFoundErrorDeserializationContract:
exception: type = ExpediaGroupNotFoundErrorException
model: type = NotFoundError
class AccountUpdateNotFoundErrorDeserializationContract:
exception: type = ExpediaGroupAccountUpdateNotFoundErrorException
model: type = AccountUpdateNotFoundError


@dataclass
class GatewayTimeoutErrorDeserializationContract:
exception: type = ExpediaGroupGatewayTimeoutErrorException
model: type = GatewayTimeoutError
class AccountTakeoverUnauthorizedErrorDeserializationContract:
exception: type = ExpediaGroupAccountTakeoverUnauthorizedErrorException
model: type = AccountTakeoverUnauthorizedError


@dataclass
class BadRequestErrorDeserializationContract:
exception: type = ExpediaGroupBadRequestErrorException
model: type = BadRequestError
class RetryableOrderPurchaseScreenFailureDeserializationContract:
exception: type = ExpediaGroupRetryableOrderPurchaseScreenFailureException
model: type = RetryableOrderPurchaseScreenFailure


@dataclass
Expand All @@ -3237,18 +3243,24 @@ class UnauthorizedErrorDeserializationContract:


@dataclass
class ForbiddenErrorDeserializationContract:
exception: type = ExpediaGroupForbiddenErrorException
model: type = ForbiddenError
class InternalServerErrorDeserializationContract:
exception: type = ExpediaGroupInternalServerErrorException
model: type = InternalServerError


@dataclass
class AccountTakeoverUnauthorizedErrorDeserializationContract:
exception: type = ExpediaGroupAccountTakeoverUnauthorizedErrorException
model: type = AccountTakeoverUnauthorizedError
class AccountTakeoverBadRequestErrorDeserializationContract:
exception: type = ExpediaGroupAccountTakeoverBadRequestErrorException
model: type = AccountTakeoverBadRequestError


@dataclass
class InternalServerErrorDeserializationContract:
exception: type = ExpediaGroupInternalServerErrorException
model: type = InternalServerError
class OrderPurchaseUpdateNotFoundErrorDeserializationContract:
exception: type = ExpediaGroupOrderPurchaseUpdateNotFoundErrorException
model: type = OrderPurchaseUpdateNotFoundError


@dataclass
class GatewayTimeoutErrorDeserializationContract:
exception: type = ExpediaGroupGatewayTimeoutErrorException
model: type = GatewayTimeoutError
2 changes: 1 addition & 1 deletion release/fraudPreventionV2/src/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

setup(
name="expediagroup-fraudpreventionv2-sdk",
version="2.2.0",
version="2.3.0",
packages=["expediagroup.sdk.fraudpreventionv2"],
package_dir={"expediagroup-fraudpreventionv2-sdk": "."},
license="Apache License, Version 2.0",
Expand Down
Loading

0 comments on commit e5491ac

Please sign in to comment.