Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/pip/main/email-validator-approx-e…
Browse files Browse the repository at this point in the history
…q-2.1.0.post1
  • Loading branch information
mohnoor94 authored Oct 26, 2023
2 parents 90fbac6 + e4b5785 commit 4d3caf6
Show file tree
Hide file tree
Showing 179 changed files with 3,208 additions and 5,476 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/generate-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,21 @@ jobs:
cp "../generator/package/expediagroup/sdk/$namespace/model.py" "./temp/expediagroup/sdk/$namespace/model.py"
python3 ./__main__.py -p ./temp -n "$namespace"
- name: Install Pandoc
run: |
pip3 install lastversion
architecture="$(dpkg --print-architecture)"
lastversion --assets --filter "$architecture.deb" download https://github.com/jgm/pandoc
sudo dpkg -i "$(ls | grep 'pandoc-.*\.deb')"
- name: Format docs
working-directory: expediagroup/sdk/docsgen/docs
run: |
source ../env/bin/activate
npx prettier --write --parser markdown *.md
for file in *.md; do pandoc "$file" -f markdown -t gfm -o "${file%.md}.md"; done
mdformat .
- uses: actions/upload-artifact@v3
with:
name: sdk
Expand Down
4 changes: 2 additions & 2 deletions expediagroup/sdk/docsgen/templates/class.jinja2
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{ breadcrumbs }}
# class `{{ module.name }}.{{ class.name }}`
```
```python
{{ class.constructor.name }}({% for arg in class.constructor.arguments %}
{{ arg.name }}: {{ arg.datatype }},{% endfor %}
)
Expand Down Expand Up @@ -29,7 +29,7 @@
## Methods
{% for method in class.methods %}
### {{ method.name }}
```
```python
{{ method.name }}(
{% for arg in method.arguments %}{{ arg.name }}: {{ arg.datatype }},
{% endfor %})
Expand Down
53 changes: 21 additions & 32 deletions release/fraudPreventionV2/docs/AccountRole.md
Original file line number Diff line number Diff line change
@@ -1,41 +1,30 @@
[index](index.md) / [expediagroup.sdk.fraudpreventionv2.model](expediagroup.sdk.fraudpreventionv2.model.md) / [AccountRole](AccountRole.md)
[index](index.md) /
[expediagroup.sdk.fraudpreventionv2.model](expediagroup.sdk.fraudpreventionv2.model.md)
/ [AccountRole](AccountRole.md)

# class `expediagroup.sdk.fraudpreventionv2.model.AccountRole`
```
AccountRole(
)
```

pydantic model AccountRole: Identifies the account role and associated permissions of a user''s account. Possible values are:
- `USER`: Basic account with no special privileges.
- `MANAGER`: Account with additional privileges, such as the ability to make bookings for others.
- `ADMIN`: Account with higher privileges than a manager, including the ability to grant manager access to other users.
```python
AccountRole()
```

pydantic model AccountRole: Identifies the account role and associated
permissions of a user’’s account. Possible values are:

- `USER`: Basic account with no special privileges.
- `MANAGER`: Account with additional privileges, such as the ability to
make bookings for others.
- `ADMIN`: Account with higher privileges than a manager, including the
ability to grant manager access to other users.

## Attributes






| Name | Type | Required | Description |
|---------|------|----------|-------------|
| ADMIN | Any | True | ... |
| MANAGER | Any | True | ... |
| USER | Any | True | ... |









| Name | Type | Required | Description |
| ------- | ---- | -------- | ----------- |
| ADMIN | Any | True ||
| MANAGER | Any | True ||
| USER | Any | True ||

# Inheritance
object > Enum > AccountRole

object > Enum > AccountRole
35 changes: 13 additions & 22 deletions release/fraudPreventionV2/docs/AccountScreenRequest.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,24 @@
[index](index.md) / [expediagroup.sdk.fraudpreventionv2.model](expediagroup.sdk.fraudpreventionv2.model.md) / [AccountScreenRequest](AccountScreenRequest.md)
[index](index.md) /
[expediagroup.sdk.fraudpreventionv2.model](expediagroup.sdk.fraudpreventionv2.model.md)
/ [AccountScreenRequest](AccountScreenRequest.md)

# class `expediagroup.sdk.fraudpreventionv2.model.AccountScreenRequest`
```

```python
AccountScreenRequest(
transaction: AccountTransaction,
)
```

pydantic model AccountScreenRequest: Information for account screening by Expedia's Fraud Prevention Service.


pydantic model AccountScreenRequest: Information for account screening
by Expedia’s Fraud Prevention Service.

## Attributes




| Name | Type | Required | Description |
|-------------|---------------------------------------------|----------|-------------|
| transaction | [AccountTransaction](AccountTransaction.md) | True | ... |









| Name | Type | Required | Description |
| ----------- | ------------------------------------------- | -------- | ----------- |
| transaction | [AccountTransaction](AccountTransaction.md) | True ||

# Inheritance
object > BaseModel > AccountScreenRequest

object > BaseModel > AccountScreenRequest
39 changes: 14 additions & 25 deletions release/fraudPreventionV2/docs/AccountScreenResponse.md
Original file line number Diff line number Diff line change
@@ -1,37 +1,26 @@
[index](index.md) / [expediagroup.sdk.fraudpreventionv2.model](expediagroup.sdk.fraudpreventionv2.model.md) / [AccountScreenResponse](AccountScreenResponse.md)
[index](index.md) /
[expediagroup.sdk.fraudpreventionv2.model](expediagroup.sdk.fraudpreventionv2.model.md)
/ [AccountScreenResponse](AccountScreenResponse.md)

# class `expediagroup.sdk.fraudpreventionv2.model.AccountScreenResponse`
```

```python
AccountScreenResponse(
risk_id: Optional[constr(max_length=200)],
decision: Optional[AccountTakeoverFraudDecision],
)
```

pydantic model AccountScreenResponse: Response for an account transaction provided by Expedia's Fraud Prevention Service.


pydantic model AccountScreenResponse: Response for an account
transaction provided by Expedia’s Fraud Prevention Service.

## Attributes





| Name | Type | Required | Description |
|----------|---------------------------------------------------------------------------|----------|--------------------------------------------------------------------------------------|
| decision | Optional[[AccountTakeoverFraudDecision](AccountTakeoverFraudDecision.md)] | False | ... |
| risk_id | Optional[constr(max_length=200)] | False | Unique identifier assigned to the transaction by Expedia's Fraud Prevention Service. |









| Name | Type | Required | Description |
| -------- | --------------------------------------------------------------------------- | -------- | ------------------------------------------------------------------------------------ |
| decision | Optional\[[AccountTakeoverFraudDecision](AccountTakeoverFraudDecision.md)\] | False ||
| risk_id | Optional\[constr(max_length=200)\] | False | Unique identifier assigned to the transaction by Expedia’s Fraud Prevention Service. |

# Inheritance
object > BaseModel > AccountScreenResponse

object > BaseModel > AccountScreenResponse
36 changes: 14 additions & 22 deletions release/fraudPreventionV2/docs/AccountTakeoverBadRequestError.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,25 @@
[index](index.md) / [expediagroup.sdk.fraudpreventionv2.model](expediagroup.sdk.fraudpreventionv2.model.md) / [AccountTakeoverBadRequestError](AccountTakeoverBadRequestError.md)
[index](index.md) /
[expediagroup.sdk.fraudpreventionv2.model](expediagroup.sdk.fraudpreventionv2.model.md)
/ [AccountTakeoverBadRequestError](AccountTakeoverBadRequestError.md)

# class `expediagroup.sdk.fraudpreventionv2.model.AccountTakeoverBadRequestError`
```

```python
AccountTakeoverBadRequestError(
causes: Optional[list[Cause1]],
)
```

pydantic model AccountTakeoverBadRequestError: Indicates that a bad request occurred. Typically it is an invalid parameter.


pydantic model AccountTakeoverBadRequestError: Indicates that a bad
request occurred. Typically it is an invalid parameter.

## Attributes




| Name | Type | Required | Description |
|--------|-------------------------------------|----------|-------------|
| causes | Optional[list[[Cause1](Cause1.md)]] | False | ... |









| Name | Type | Required | Description |
| ------ | --------------------------------------- | -------- | ----------- |
| causes | Optional\[list\[[Cause1](Cause1.md)\]\] | False ||

# Inheritance
object > [AccountTakeoverError](AccountTakeoverError.md) > AccountTakeoverBadRequestError

object > [AccountTakeoverError](AccountTakeoverError.md) >
AccountTakeoverBadRequestError
Original file line number Diff line number Diff line change
@@ -1,37 +1,24 @@
[index](index.md) / [expediagroup.sdk.fraudpreventionv2.model](expediagroup.sdk.fraudpreventionv2.model.md) / [AccountTakeoverBadRequestErrorDeserializationContract](AccountTakeoverBadRequestErrorDeserializationContract.md)
[index](index.md) /
[expediagroup.sdk.fraudpreventionv2.model](expediagroup.sdk.fraudpreventionv2.model.md)
/
[AccountTakeoverBadRequestErrorDeserializationContract](AccountTakeoverBadRequestErrorDeserializationContract.md)

# class `expediagroup.sdk.fraudpreventionv2.model.AccountTakeoverBadRequestErrorDeserializationContract`
```

```python
AccountTakeoverBadRequestErrorDeserializationContract(
exception: type,
model: type,
)
```





## Attributes





| Name | Type | Required | Description |
|-----------|------|----------|-------------|
| exception | type | True | ... |
| model | type | True | ... |









| Name | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| exception | type | True ||
| model | type | True ||

# Inheritance
object > AccountTakeoverBadRequestErrorDeserializationContract

object > AccountTakeoverBadRequestErrorDeserializationContract
Loading

0 comments on commit 4d3caf6

Please sign in to comment.