Skip to content

Commit

Permalink
Merge branch 'main' into OmarAlJarrah/Add-gfm-formatters
Browse files Browse the repository at this point in the history
  • Loading branch information
OmarAlJarrah authored Oct 26, 2023
2 parents 1e5b11f + 5808de7 commit 67e4c67
Show file tree
Hide file tree
Showing 9 changed files with 311 additions and 286 deletions.
10 changes: 5 additions & 5 deletions release/fraudPreventionV2/docs/Brand.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ Incorrect `brand` - `card_type` combination will result in data quality issues a
* `SWITCH` : `SWITCH`
* `MAESTRO` : `MAESTRO`
* `CHINA_UNION_PAY` : `CHINA_UNION_PAY`
* `UATP` : `UATP`
* `UATP_SUPPLY` : `UATP`
* `AIR_PLUS` : `UATP`
* `UA_PASS_PLUS` : `UATP`
* `VISA` : `VISA`
* `VISA_DELTA` : `VISA`
* `VISA_ELECTRON` : `VISA`
Expand Down Expand Up @@ -55,10 +59,6 @@ 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 @@ -227,9 +227,9 @@ Incorrect `brand` - `card_type` combination will result in data quality issues a
| SWITCH | Any | True | ... |
| UATP | Any | True | ... |
| UATP_SUPPLY | Any | True | ... |
| UA_PASS_PLUS | 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
7 changes: 7 additions & 0 deletions release/fraudPreventionV2/docs/CardType.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ Incorrect `card_type` - `brand` combination will result in data quality issues a
* `SWITCH` : `SWITCH`
* `MAESTRO` : `MAESTRO`
* `CHINA_UNION_PAY` : `CHINA_UNION_PAY`
* `UATP` : `UATP`
* `UATP` : `UATP_SUPPLY`
* `UATP` : `AIR_PLUS`
* `UATP` : `UA_PASS_PLUS`
* `VISA` : `VISA`
* `VISA` : `VISA_DELTA`
* `VISA` : `VISA_ELECTRON`
Expand Down Expand Up @@ -57,6 +61,8 @@ Incorrect `card_type` - `brand` combination will result in data quality issues a




Expand All @@ -72,6 +78,7 @@ Incorrect `card_type` - `brand` combination will result in data quality issues a
| MASTER_CARD | Any | True | ... |
| SOLO | Any | True | ... |
| SWITCH | Any | True | ... |
| UATP | Any | True | ... |
| VISA | Any | True | ... |


Expand Down
28 changes: 14 additions & 14 deletions release/fraudPreventionV2/docs/CreditCard.md

Large diffs are not rendered by default.

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.3.0"
sdk_metadata = "expediagroup-fraudpreventionv2-python-sdk/3.0.0"

self.__api_client = ApiClient(client_config, _ExpediaGroupAuthClient)

Expand Down
155 changes: 82 additions & 73 deletions release/fraudPreventionV2/src/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,10 @@ class Brand(
* `SWITCH` : `SWITCH`
* `MAESTRO` : `MAESTRO`
* `CHINA_UNION_PAY` : `CHINA_UNION_PAY`
* `UATP` : `UATP`
* `UATP_SUPPLY` : `UATP`
* `AIR_PLUS` : `UATP`
* `UA_PASS_PLUS` : `UATP`
* `VISA` : `VISA`
* `VISA_DELTA` : `VISA`
* `VISA_ELECTRON` : `VISA`
Expand Down Expand Up @@ -608,10 +612,6 @@ 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 @@ -642,6 +642,10 @@ class Brand(
SOLO: Any = "SOLO"
SWITCH: Any = "SWITCH"
CHINA_UNION_PAY: Any = "CHINA_UNION_PAY"
UATP: Any = "UATP"
UATP_SUPPLY: Any = "UATP_SUPPLY"
AIR_PLUS: Any = "AIR_PLUS"
UA_PASS_PLUS: Any = "UA_PASS_PLUS"
VISA: Any = "VISA"
VISA_DELTA: Any = "VISA_DELTA"
VISA_ELECTRON: Any = "VISA_ELECTRON"
Expand All @@ -668,10 +672,6 @@ 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 @@ -789,6 +789,10 @@ class CardType(
* `SWITCH` : `SWITCH`
* `MAESTRO` : `MAESTRO`
* `CHINA_UNION_PAY` : `CHINA_UNION_PAY`
* `UATP` : `UATP`
* `UATP` : `UATP_SUPPLY`
* `UATP` : `AIR_PLUS`
* `UATP` : `UA_PASS_PLUS`
* `VISA` : `VISA`
* `VISA` : `VISA_DELTA`
* `VISA` : `VISA_ELECTRON`
Expand All @@ -808,6 +812,7 @@ class CardType(
SWITCH: Any = "SWITCH"
MAESTRO: Any = "MAESTRO"
CHINA_UNION_PAY: Any = "CHINA_UNION_PAY"
UATP: Any = "UATP"
VISA: Any = "VISA"


Expand Down Expand Up @@ -2496,6 +2501,10 @@ class PaymentGeneric(
* `SWITCH` : `SWITCH`
* `MAESTRO` : `MAESTRO`
* `CHINA_UNION_PAY` : `CHINA_UNION_PAY`
* `UATP` : `UATP`
* `UATP_SUPPLY` : `UATP`
* `AIR_PLUS` : `UATP`
* `UA_PASS_PLUS` : `UATP`
* `VISA` : `VISA`
* `VISA_DELTA` : `VISA`
* `VISA_ELECTRON` : `VISA`
Expand Down Expand Up @@ -2524,10 +2533,6 @@ 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 @@ -2599,6 +2604,10 @@ def dict(self, **kwargs):
* `SWITCH` : `SWITCH`
* `MAESTRO` : `MAESTRO`
* `CHINA_UNION_PAY` : `CHINA_UNION_PAY`
* `UATP` : `UATP`
* `UATP` : `UATP_SUPPLY`
* `UATP` : `AIR_PLUS`
* `UATP` : `UA_PASS_PLUS`
* `VISA` : `VISA`
* `VISA` : `VISA_DELTA`
* `VISA` : `VISA_ELECTRON`
Expand Down Expand Up @@ -3101,38 +3110,33 @@ class OrderPurchaseScreenRequest(
OrderPurchaseScreenRequest.update_forward_refs()


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


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


class ExpediaGroupTooManyRequestsErrorException(ExpediaGroupApiException):
r"""Exception wrapping a TooManyRequestsError object."""
class ExpediaGroupUnauthorizedErrorException(ExpediaGroupApiException):
r"""Exception wrapping a UnauthorizedError object."""
pass


class ExpediaGroupBadRequestErrorException(ExpediaGroupApiException):
r"""Exception wrapping a BadRequestError object."""
class ExpediaGroupForbiddenErrorException(ExpediaGroupApiException):
r"""Exception wrapping a ForbiddenError object."""
pass


class ExpediaGroupRetryableOrderPurchaseUpdateFailureException(ExpediaGroupApiException):
r"""Exception wrapping a RetryableOrderPurchaseUpdateFailure object."""
class ExpediaGroupAccountTakeoverBadRequestErrorException(ExpediaGroupApiException):
r"""Exception wrapping a AccountTakeoverBadRequestError object."""
pass


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


class ExpediaGroupServiceUnavailableErrorException(ExpediaGroupApiException):
r"""Exception wrapping a ServiceUnavailableError object."""
class ExpediaGroupInternalServerErrorException(ExpediaGroupApiException):
r"""Exception wrapping a InternalServerError object."""
pass


Expand All @@ -3141,28 +3145,28 @@ class ExpediaGroupAccountUpdateNotFoundErrorException(ExpediaGroupApiException):
pass


class ExpediaGroupAccountTakeoverUnauthorizedErrorException(ExpediaGroupApiException):
r"""Exception wrapping a AccountTakeoverUnauthorizedError object."""
class ExpediaGroupRetryableOrderPurchaseUpdateFailureException(ExpediaGroupApiException):
r"""Exception wrapping a RetryableOrderPurchaseUpdateFailure object."""
pass


class ExpediaGroupRetryableOrderPurchaseScreenFailureException(ExpediaGroupApiException):
r"""Exception wrapping a RetryableOrderPurchaseScreenFailure object."""
class ExpediaGroupAccountTakeoverUnauthorizedErrorException(ExpediaGroupApiException):
r"""Exception wrapping a AccountTakeoverUnauthorizedError object."""
pass


class ExpediaGroupUnauthorizedErrorException(ExpediaGroupApiException):
r"""Exception wrapping a UnauthorizedError object."""
class ExpediaGroupBadRequestErrorException(ExpediaGroupApiException):
r"""Exception wrapping a BadRequestError object."""
pass


class ExpediaGroupInternalServerErrorException(ExpediaGroupApiException):
r"""Exception wrapping a InternalServerError object."""
class ExpediaGroupServiceUnavailableErrorException(ExpediaGroupApiException):
r"""Exception wrapping a ServiceUnavailableError object."""
pass


class ExpediaGroupAccountTakeoverBadRequestErrorException(ExpediaGroupApiException):
r"""Exception wrapping a AccountTakeoverBadRequestError object."""
class ExpediaGroupTooManyRequestsErrorException(ExpediaGroupApiException):
r"""Exception wrapping a TooManyRequestsError object."""
pass


Expand All @@ -3171,15 +3175,14 @@ class ExpediaGroupOrderPurchaseUpdateNotFoundErrorException(ExpediaGroupApiExcep
pass


class ExpediaGroupGatewayTimeoutErrorException(ExpediaGroupApiException):
r"""Exception wrapping a GatewayTimeoutError object."""
class ExpediaGroupBadGatewayErrorException(ExpediaGroupApiException):
r"""Exception wrapping a BadGatewayError object."""
pass


@dataclass
class ForbiddenErrorDeserializationContract:
exception: type = ExpediaGroupForbiddenErrorException
model: type = ForbiddenError
class ExpediaGroupGatewayTimeoutErrorException(ExpediaGroupApiException):
r"""Exception wrapping a GatewayTimeoutError object."""
pass


@dataclass
Expand All @@ -3189,33 +3192,33 @@ class NotFoundErrorDeserializationContract:


@dataclass
class TooManyRequestsErrorDeserializationContract:
exception: type = ExpediaGroupTooManyRequestsErrorException
model: type = TooManyRequestsError
class UnauthorizedErrorDeserializationContract:
exception: type = ExpediaGroupUnauthorizedErrorException
model: type = UnauthorizedError


@dataclass
class BadRequestErrorDeserializationContract:
exception: type = ExpediaGroupBadRequestErrorException
model: type = BadRequestError
class ForbiddenErrorDeserializationContract:
exception: type = ExpediaGroupForbiddenErrorException
model: type = ForbiddenError


@dataclass
class RetryableOrderPurchaseUpdateFailureDeserializationContract:
exception: type = ExpediaGroupRetryableOrderPurchaseUpdateFailureException
model: type = RetryableOrderPurchaseUpdateFailure
class AccountTakeoverBadRequestErrorDeserializationContract:
exception: type = ExpediaGroupAccountTakeoverBadRequestErrorException
model: type = AccountTakeoverBadRequestError


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


@dataclass
class ServiceUnavailableErrorDeserializationContract:
exception: type = ExpediaGroupServiceUnavailableErrorException
model: type = ServiceUnavailableError
class InternalServerErrorDeserializationContract:
exception: type = ExpediaGroupInternalServerErrorException
model: type = InternalServerError


@dataclass
Expand All @@ -3225,33 +3228,33 @@ class AccountUpdateNotFoundErrorDeserializationContract:


@dataclass
class AccountTakeoverUnauthorizedErrorDeserializationContract:
exception: type = ExpediaGroupAccountTakeoverUnauthorizedErrorException
model: type = AccountTakeoverUnauthorizedError
class RetryableOrderPurchaseUpdateFailureDeserializationContract:
exception: type = ExpediaGroupRetryableOrderPurchaseUpdateFailureException
model: type = RetryableOrderPurchaseUpdateFailure


@dataclass
class RetryableOrderPurchaseScreenFailureDeserializationContract:
exception: type = ExpediaGroupRetryableOrderPurchaseScreenFailureException
model: type = RetryableOrderPurchaseScreenFailure
class AccountTakeoverUnauthorizedErrorDeserializationContract:
exception: type = ExpediaGroupAccountTakeoverUnauthorizedErrorException
model: type = AccountTakeoverUnauthorizedError


@dataclass
class UnauthorizedErrorDeserializationContract:
exception: type = ExpediaGroupUnauthorizedErrorException
model: type = UnauthorizedError
class BadRequestErrorDeserializationContract:
exception: type = ExpediaGroupBadRequestErrorException
model: type = BadRequestError


@dataclass
class InternalServerErrorDeserializationContract:
exception: type = ExpediaGroupInternalServerErrorException
model: type = InternalServerError
class ServiceUnavailableErrorDeserializationContract:
exception: type = ExpediaGroupServiceUnavailableErrorException
model: type = ServiceUnavailableError


@dataclass
class AccountTakeoverBadRequestErrorDeserializationContract:
exception: type = ExpediaGroupAccountTakeoverBadRequestErrorException
model: type = AccountTakeoverBadRequestError
class TooManyRequestsErrorDeserializationContract:
exception: type = ExpediaGroupTooManyRequestsErrorException
model: type = TooManyRequestsError


@dataclass
Expand All @@ -3260,6 +3263,12 @@ class OrderPurchaseUpdateNotFoundErrorDeserializationContract:
model: type = OrderPurchaseUpdateNotFoundError


@dataclass
class BadGatewayErrorDeserializationContract:
exception: type = ExpediaGroupBadGatewayErrorException
model: type = BadGatewayError


@dataclass
class GatewayTimeoutErrorDeserializationContract:
exception: type = ExpediaGroupGatewayTimeoutErrorException
Expand Down
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.3.0",
version="3.0.0",
packages=["expediagroup.sdk.fraudpreventionv2"],
package_dir={"expediagroup-fraudpreventionv2-sdk": "."},
license="Apache License, Version 2.0",
Expand Down
Loading

0 comments on commit 67e4c67

Please sign in to comment.