Skip to content

Commit 391ee76

Browse files
author
andreals
committed
Automated commit message
1 parent b3d47ff commit 391ee76

File tree

5 files changed

+100
-52
lines changed

5 files changed

+100
-52
lines changed

README.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ To run the file within your test project, right click on your Python file inside
7070

7171
## Initialize the API Client
7272

73-
**_Note:_** Documentation for the client can be found [here.](https://www.github.com/pagarme/pagarme-python-sdk/tree/6.8.2/doc/client.md)
73+
**_Note:_** Documentation for the client can be found [here.](https://www.github.com/pagarme/pagarme-python-sdk/tree/6.8.1/doc/client.md)
7474

7575
The following parameters are configurable for the API Client:
7676

@@ -112,31 +112,31 @@ Here is the list of errors that the API might throw.
112112

113113
| HTTP Status Code | Error Description | Exception Class |
114114
| --- | --- | --- |
115-
| 400 | Invalid request | [`ErrorException`](https://www.github.com/pagarme/pagarme-python-sdk/tree/6.8.2/doc/models/error-exception.md) |
116-
| 401 | Invalid API key | [`ErrorException`](https://www.github.com/pagarme/pagarme-python-sdk/tree/6.8.2/doc/models/error-exception.md) |
117-
| 404 | An informed resource was not found | [`ErrorException`](https://www.github.com/pagarme/pagarme-python-sdk/tree/6.8.2/doc/models/error-exception.md) |
118-
| 412 | Business validation error | [`ErrorException`](https://www.github.com/pagarme/pagarme-python-sdk/tree/6.8.2/doc/models/error-exception.md) |
119-
| 422 | Contract validation error | [`ErrorException`](https://www.github.com/pagarme/pagarme-python-sdk/tree/6.8.2/doc/models/error-exception.md) |
120-
| 500 | Internal server error | [`ErrorException`](https://www.github.com/pagarme/pagarme-python-sdk/tree/6.8.2/doc/models/error-exception.md) |
115+
| 400 | Invalid request | [`ErrorException`](https://www.github.com/pagarme/pagarme-python-sdk/tree/6.8.1/doc/models/error-exception.md) |
116+
| 401 | Invalid API key | [`ErrorException`](https://www.github.com/pagarme/pagarme-python-sdk/tree/6.8.1/doc/models/error-exception.md) |
117+
| 404 | An informed resource was not found | [`ErrorException`](https://www.github.com/pagarme/pagarme-python-sdk/tree/6.8.1/doc/models/error-exception.md) |
118+
| 412 | Business validation error | [`ErrorException`](https://www.github.com/pagarme/pagarme-python-sdk/tree/6.8.1/doc/models/error-exception.md) |
119+
| 422 | Contract validation error | [`ErrorException`](https://www.github.com/pagarme/pagarme-python-sdk/tree/6.8.1/doc/models/error-exception.md) |
120+
| 500 | Internal server error | [`ErrorException`](https://www.github.com/pagarme/pagarme-python-sdk/tree/6.8.1/doc/models/error-exception.md) |
121121

122122
## List of APIs
123123

124-
* [Subscriptions](https://www.github.com/pagarme/pagarme-python-sdk/tree/6.8.2/doc/controllers/subscriptions.md)
125-
* [Orders](https://www.github.com/pagarme/pagarme-python-sdk/tree/6.8.2/doc/controllers/orders.md)
126-
* [Plans](https://www.github.com/pagarme/pagarme-python-sdk/tree/6.8.2/doc/controllers/plans.md)
127-
* [Invoices](https://www.github.com/pagarme/pagarme-python-sdk/tree/6.8.2/doc/controllers/invoices.md)
128-
* [Customers](https://www.github.com/pagarme/pagarme-python-sdk/tree/6.8.2/doc/controllers/customers.md)
129-
* [Charges](https://www.github.com/pagarme/pagarme-python-sdk/tree/6.8.2/doc/controllers/charges.md)
130-
* [Recipients](https://www.github.com/pagarme/pagarme-python-sdk/tree/6.8.2/doc/controllers/recipients.md)
131-
* [Tokens](https://www.github.com/pagarme/pagarme-python-sdk/tree/6.8.2/doc/controllers/tokens.md)
132-
* [Transactions](https://www.github.com/pagarme/pagarme-python-sdk/tree/6.8.2/doc/controllers/transactions.md)
133-
* [Transfers](https://www.github.com/pagarme/pagarme-python-sdk/tree/6.8.2/doc/controllers/transfers.md)
134-
* [Payables](https://www.github.com/pagarme/pagarme-python-sdk/tree/6.8.2/doc/controllers/payables.md)
135-
* [Balance Operations](https://www.github.com/pagarme/pagarme-python-sdk/tree/6.8.2/doc/controllers/balance-operations.md)
124+
* [Subscriptions](https://www.github.com/pagarme/pagarme-python-sdk/tree/6.8.1/doc/controllers/subscriptions.md)
125+
* [Orders](https://www.github.com/pagarme/pagarme-python-sdk/tree/6.8.1/doc/controllers/orders.md)
126+
* [Plans](https://www.github.com/pagarme/pagarme-python-sdk/tree/6.8.1/doc/controllers/plans.md)
127+
* [Invoices](https://www.github.com/pagarme/pagarme-python-sdk/tree/6.8.1/doc/controllers/invoices.md)
128+
* [Customers](https://www.github.com/pagarme/pagarme-python-sdk/tree/6.8.1/doc/controllers/customers.md)
129+
* [Charges](https://www.github.com/pagarme/pagarme-python-sdk/tree/6.8.1/doc/controllers/charges.md)
130+
* [Recipients](https://www.github.com/pagarme/pagarme-python-sdk/tree/6.8.1/doc/controllers/recipients.md)
131+
* [Tokens](https://www.github.com/pagarme/pagarme-python-sdk/tree/6.8.1/doc/controllers/tokens.md)
132+
* [Transactions](https://www.github.com/pagarme/pagarme-python-sdk/tree/6.8.1/doc/controllers/transactions.md)
133+
* [Transfers](https://www.github.com/pagarme/pagarme-python-sdk/tree/6.8.1/doc/controllers/transfers.md)
134+
* [Payables](https://www.github.com/pagarme/pagarme-python-sdk/tree/6.8.1/doc/controllers/payables.md)
135+
* [Balance Operations](https://www.github.com/pagarme/pagarme-python-sdk/tree/6.8.1/doc/controllers/balance-operations.md)
136136

137137
## Classes Documentation
138138

139-
* [Utility Classes](https://www.github.com/pagarme/pagarme-python-sdk/tree/6.8.2/doc/utility-classes.md)
140-
* [HttpResponse](https://www.github.com/pagarme/pagarme-python-sdk/tree/6.8.2/doc/http-response.md)
141-
* [HttpRequest](https://www.github.com/pagarme/pagarme-python-sdk/tree/6.8.2/doc/http-request.md)
139+
* [Utility Classes](https://www.github.com/pagarme/pagarme-python-sdk/tree/6.8.1/doc/utility-classes.md)
140+
* [HttpResponse](https://www.github.com/pagarme/pagarme-python-sdk/tree/6.8.1/doc/http-response.md)
141+
* [HttpRequest](https://www.github.com/pagarme/pagarme-python-sdk/tree/6.8.1/doc/http-request.md)
142142

doc/models/create-google-pay-intermediate-signing-key-request.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ The GooglePay Intermediate Signing Key Request
1111

1212
| Name | Type | Tags | Description |
1313
| --- | --- | --- | --- |
14-
| `signed_key` | `str` | Required | Uma mensagem codificada em Base64 com a descrição de pagamento da chave. |
15-
| `signatures` | `List[str]` | Required | Verifica se a origem da chave de assinatura intermediária é o Google. É codificada em Base64 e criada usando o ECDSA. |
14+
| `signed_key` | `str` | Optional | Uma mensagem codificada em Base64 com a descrição de pagamento da chave. |
15+
| `signatures` | `List[str]` | Optional | Verifica se a origem da chave de assinatura intermediária é o Google. É codificada em Base64 e criada usando o ECDSA. |
1616

1717
## Example (as JSON)
1818

doc/models/create-google-pay-request.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ The GooglePay Token Payment Request
1111

1212
| Name | Type | Tags | Description |
1313
| --- | --- | --- | --- |
14-
| `version` | `str` | Required | Informação sobre a versão do token. Único valor aceito é EC_v2 |
15-
| `data` | `str` | Required | Dados de pagamento criptografados. Corresponde ao encryptedMessage do token Google. |
16-
| `intermediate_signing_key` | [`CreateGooglePayIntermediateSigningKeyRequest`](../../doc/models/create-google-pay-intermediate-signing-key-request.md) | Required | The GooglePay intermediate signing key request |
17-
| `signature` | `str` | Required | Assinatura dos dados de pagamento. Verifica se a origem da mensagem é o Google. Corresponde ao signature do token Google. |
18-
| `signed_message` | `str` | Required | - |
14+
| `version` | `str` | Optional | Informação sobre a versão do token. Único valor aceito é EC_v2 |
15+
| `data` | `str` | Optional | Dados de pagamento criptografados. Corresponde ao encryptedMessage do token Google. |
16+
| `intermediate_signing_key` | [`CreateGooglePayIntermediateSigningKeyRequest`](../../doc/models/create-google-pay-intermediate-signing-key-request.md) | Optional | The GooglePay intermediate signing key request |
17+
| `signature` | `str` | Optional | Assinatura dos dados de pagamento. Verifica se a origem da mensagem é o Google. Corresponde ao signature do token Google. |
18+
| `signed_message` | `str` | Optional | - |
19+
| `merchant_identifier` | `str` | Optional | - |
1920

2021
## Example (as JSON)
2122

pagarmeapisdk/models/create_google_pay_intermediate_signing_key_request.py

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
This file was automatically generated by APIMATIC v3.0 (
77
https://www.apimatic.io ).
88
"""
9+
from pagarmeapisdk.api_helper import APIHelper
910

1011

1112
class CreateGooglePayIntermediateSigningKeyRequest(object):
@@ -29,14 +30,26 @@ class CreateGooglePayIntermediateSigningKeyRequest(object):
2930
"signatures": 'signatures'
3031
}
3132

33+
_optionals = [
34+
'signed_key',
35+
'signatures',
36+
]
37+
38+
_nullables = [
39+
'signed_key',
40+
'signatures',
41+
]
42+
3243
def __init__(self,
33-
signed_key=None,
34-
signatures=None):
44+
signed_key=APIHelper.SKIP,
45+
signatures=APIHelper.SKIP):
3546
"""Constructor for the CreateGooglePayIntermediateSigningKeyRequest class"""
3647

3748
# Initialize members of the class
38-
self.signed_key = signed_key
39-
self.signatures = signatures
49+
if signed_key is not APIHelper.SKIP:
50+
self.signed_key = signed_key
51+
if signatures is not APIHelper.SKIP:
52+
self.signatures = signatures
4053

4154
@classmethod
4255
def from_dictionary(cls,
@@ -56,8 +69,8 @@ def from_dictionary(cls,
5669
return None
5770

5871
# Extract variables from the dictionary
59-
signed_key = dictionary.get("signed_key") if dictionary.get("signed_key") else None
60-
signatures = dictionary.get("signatures") if dictionary.get("signatures") else None
72+
signed_key = dictionary.get("signed_key") if "signed_key" in dictionary.keys() else APIHelper.SKIP
73+
signatures = dictionary.get("signatures") if "signatures" in dictionary.keys() else APIHelper.SKIP
6174
# Return an object of this model
6275
return cls(signed_key,
6376
signatures)

pagarmeapisdk/models/create_google_pay_request.py

Lines changed: 51 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
This file was automatically generated by APIMATIC v3.0 (
77
https://www.apimatic.io ).
88
"""
9+
from pagarmeapisdk.api_helper import APIHelper
910
from pagarmeapisdk.models.create_google_pay_intermediate_signing_key_request import CreateGooglePayIntermediateSigningKeyRequest
1011

1112

@@ -27,6 +28,7 @@ class CreateGooglePayRequest(object):
2728
origem da mensagem é o Google. Corresponde ao signature do token
2829
Google.
2930
signed_message (str): TODO: type description here.
31+
merchant_identifier (str): TODO: type description here.
3032
3133
"""
3234

@@ -36,23 +38,50 @@ class CreateGooglePayRequest(object):
3638
"data": 'data',
3739
"intermediate_signing_key": 'intermediate_signing_key',
3840
"signature": 'signature',
39-
"signed_message": 'signed_message'
41+
"signed_message": 'signed_message',
42+
"merchant_identifier": 'merchant_identifier'
4043
}
4144

45+
_optionals = [
46+
'version',
47+
'data',
48+
'intermediate_signing_key',
49+
'signature',
50+
'signed_message',
51+
'merchant_identifier',
52+
]
53+
54+
_nullables = [
55+
'version',
56+
'data',
57+
'intermediate_signing_key',
58+
'signature',
59+
'signed_message',
60+
'merchant_identifier',
61+
]
62+
4263
def __init__(self,
43-
version=None,
44-
data=None,
45-
intermediate_signing_key=None,
46-
signature=None,
47-
signed_message=None):
64+
version=APIHelper.SKIP,
65+
data=APIHelper.SKIP,
66+
intermediate_signing_key=APIHelper.SKIP,
67+
signature=APIHelper.SKIP,
68+
signed_message=APIHelper.SKIP,
69+
merchant_identifier=APIHelper.SKIP):
4870
"""Constructor for the CreateGooglePayRequest class"""
4971

5072
# Initialize members of the class
51-
self.version = version
52-
self.data = data
53-
self.intermediate_signing_key = intermediate_signing_key
54-
self.signature = signature
55-
self.signed_message = signed_message
73+
if version is not APIHelper.SKIP:
74+
self.version = version
75+
if data is not APIHelper.SKIP:
76+
self.data = data
77+
if intermediate_signing_key is not APIHelper.SKIP:
78+
self.intermediate_signing_key = intermediate_signing_key
79+
if signature is not APIHelper.SKIP:
80+
self.signature = signature
81+
if signed_message is not APIHelper.SKIP:
82+
self.signed_message = signed_message
83+
if merchant_identifier is not APIHelper.SKIP:
84+
self.merchant_identifier = merchant_identifier
5685

5786
@classmethod
5887
def from_dictionary(cls,
@@ -72,14 +101,19 @@ def from_dictionary(cls,
72101
return None
73102

74103
# Extract variables from the dictionary
75-
version = dictionary.get("version") if dictionary.get("version") else None
76-
data = dictionary.get("data") if dictionary.get("data") else None
77-
intermediate_signing_key = CreateGooglePayIntermediateSigningKeyRequest.from_dictionary(dictionary.get('intermediate_signing_key')) if dictionary.get('intermediate_signing_key') else None
78-
signature = dictionary.get("signature") if dictionary.get("signature") else None
79-
signed_message = dictionary.get("signed_message") if dictionary.get("signed_message") else None
104+
version = dictionary.get("version") if "version" in dictionary.keys() else APIHelper.SKIP
105+
data = dictionary.get("data") if "data" in dictionary.keys() else APIHelper.SKIP
106+
if 'intermediate_signing_key' in dictionary.keys():
107+
intermediate_signing_key = CreateGooglePayIntermediateSigningKeyRequest.from_dictionary(dictionary.get('intermediate_signing_key')) if dictionary.get('intermediate_signing_key') else None
108+
else:
109+
intermediate_signing_key = APIHelper.SKIP
110+
signature = dictionary.get("signature") if "signature" in dictionary.keys() else APIHelper.SKIP
111+
signed_message = dictionary.get("signed_message") if "signed_message" in dictionary.keys() else APIHelper.SKIP
112+
merchant_identifier = dictionary.get("merchant_identifier") if "merchant_identifier" in dictionary.keys() else APIHelper.SKIP
80113
# Return an object of this model
81114
return cls(version,
82115
data,
83116
intermediate_signing_key,
84117
signature,
85-
signed_message)
118+
signed_message,
119+
merchant_identifier)

0 commit comments

Comments
 (0)