tremendous-python 5.2.0__py3-none-any.whl → 5.3.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15250,7 +15250,7 @@ class TremendousApi:
15250
15250
  def resend_reward(
15251
15251
  self,
15252
15252
  id: Annotated[str, Field(strict=True, description="ID of the reward that should be resent")],
15253
- resend_reward_request: Annotated[Optional[ResendRewardRequest], Field(description="_Only_ for rewards with a previous delivery failure: You can update the email or phone number used for the resend. You can only provide one of `updated_email` or `updated_phone`, not both. ")] = None,
15253
+ resend_reward_request: Annotated[Optional[ResendRewardRequest], Field(description="You can update the email or phone number used for the resend. You can only provide one of `updated_email` or `updated_phone`, not both. ")] = None,
15254
15254
  _request_timeout: Union[
15255
15255
  None,
15256
15256
  Annotated[StrictFloat, Field(gt=0)],
@@ -15266,11 +15266,11 @@ class TremendousApi:
15266
15266
  ) -> object:
15267
15267
  """Resend reward
15268
15268
 
15269
- Resends a reward, identified by the given `id` in the URL, to its recipient.
15269
+ Resends a reward, identified by the given `id` in the URL, to its recipient. Only rewards with a previous delivery failure can be resent.
15270
15270
 
15271
15271
  :param id: ID of the reward that should be resent (required)
15272
15272
  :type id: str
15273
- :param resend_reward_request: _Only_ for rewards with a previous delivery failure: You can update the email or phone number used for the resend. You can only provide one of `updated_email` or `updated_phone`, not both.
15273
+ :param resend_reward_request: You can update the email or phone number used for the resend. You can only provide one of `updated_email` or `updated_phone`, not both.
15274
15274
  :type resend_reward_request: ResendRewardRequest
15275
15275
  :param _request_timeout: timeout setting for this request. If one
15276
15276
  number provided, it will be total request
@@ -15326,7 +15326,7 @@ class TremendousApi:
15326
15326
  def resend_reward_with_http_info(
15327
15327
  self,
15328
15328
  id: Annotated[str, Field(strict=True, description="ID of the reward that should be resent")],
15329
- resend_reward_request: Annotated[Optional[ResendRewardRequest], Field(description="_Only_ for rewards with a previous delivery failure: You can update the email or phone number used for the resend. You can only provide one of `updated_email` or `updated_phone`, not both. ")] = None,
15329
+ resend_reward_request: Annotated[Optional[ResendRewardRequest], Field(description="You can update the email or phone number used for the resend. You can only provide one of `updated_email` or `updated_phone`, not both. ")] = None,
15330
15330
  _request_timeout: Union[
15331
15331
  None,
15332
15332
  Annotated[StrictFloat, Field(gt=0)],
@@ -15342,11 +15342,11 @@ class TremendousApi:
15342
15342
  ) -> ApiResponse[object]:
15343
15343
  """Resend reward
15344
15344
 
15345
- Resends a reward, identified by the given `id` in the URL, to its recipient.
15345
+ Resends a reward, identified by the given `id` in the URL, to its recipient. Only rewards with a previous delivery failure can be resent.
15346
15346
 
15347
15347
  :param id: ID of the reward that should be resent (required)
15348
15348
  :type id: str
15349
- :param resend_reward_request: _Only_ for rewards with a previous delivery failure: You can update the email or phone number used for the resend. You can only provide one of `updated_email` or `updated_phone`, not both.
15349
+ :param resend_reward_request: You can update the email or phone number used for the resend. You can only provide one of `updated_email` or `updated_phone`, not both.
15350
15350
  :type resend_reward_request: ResendRewardRequest
15351
15351
  :param _request_timeout: timeout setting for this request. If one
15352
15352
  number provided, it will be total request
@@ -15402,7 +15402,7 @@ class TremendousApi:
15402
15402
  def resend_reward_without_preload_content(
15403
15403
  self,
15404
15404
  id: Annotated[str, Field(strict=True, description="ID of the reward that should be resent")],
15405
- resend_reward_request: Annotated[Optional[ResendRewardRequest], Field(description="_Only_ for rewards with a previous delivery failure: You can update the email or phone number used for the resend. You can only provide one of `updated_email` or `updated_phone`, not both. ")] = None,
15405
+ resend_reward_request: Annotated[Optional[ResendRewardRequest], Field(description="You can update the email or phone number used for the resend. You can only provide one of `updated_email` or `updated_phone`, not both. ")] = None,
15406
15406
  _request_timeout: Union[
15407
15407
  None,
15408
15408
  Annotated[StrictFloat, Field(gt=0)],
@@ -15418,11 +15418,11 @@ class TremendousApi:
15418
15418
  ) -> RESTResponseType:
15419
15419
  """Resend reward
15420
15420
 
15421
- Resends a reward, identified by the given `id` in the URL, to its recipient.
15421
+ Resends a reward, identified by the given `id` in the URL, to its recipient. Only rewards with a previous delivery failure can be resent.
15422
15422
 
15423
15423
  :param id: ID of the reward that should be resent (required)
15424
15424
  :type id: str
15425
- :param resend_reward_request: _Only_ for rewards with a previous delivery failure: You can update the email or phone number used for the resend. You can only provide one of `updated_email` or `updated_phone`, not both.
15425
+ :param resend_reward_request: You can update the email or phone number used for the resend. You can only provide one of `updated_email` or `updated_phone`, not both.
15426
15426
  :type resend_reward_request: ResendRewardRequest
15427
15427
  :param _request_timeout: timeout setting for this request. If one
15428
15428
  number provided, it will be total request
@@ -172,6 +172,16 @@ class ListFundingSources200ResponseFundingSourcesInnerMeta(BaseModel):
172
172
  if self.day_of_week is None and "day_of_week" in self.model_fields_set:
173
173
  _dict['day_of_week'] = None
174
174
 
175
+ # set to None if address_1 (nullable) is None
176
+ # and model_fields_set contains the field
177
+ if self.address_1 is None and "address_1" in self.model_fields_set:
178
+ _dict['address_1'] = None
179
+
180
+ # set to None if address_2 (nullable) is None
181
+ # and model_fields_set contains the field
182
+ if self.address_2 is None and "address_2" in self.model_fields_set:
183
+ _dict['address_2'] = None
184
+
175
185
  # set to None if failure_details (nullable) is None
176
186
  # and model_fields_set contains the field
177
187
  if self.failure_details is None and "failure_details" in self.model_fields_set:
@@ -35,7 +35,7 @@ class ListProductsResponseProductsInner(BaseModel):
35
35
  id: Annotated[str, Field(strict=True)]
36
36
  name: StrictStr = Field(description="Name of the product")
37
37
  description: StrictStr = Field(description="Detailed description of the product. Mostly used for products with a `category` of `charities`.")
38
- category: StrictStr = Field(description="The category of this product <table> <thead> <tr> <th>Category</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>ach</code></td> <td>Bank transfer to the recipient</td> </tr> <tr> <td><code>charity</code></td> <td>Donations to a charity</td> </tr> <tr> <td><code>instant_debit_transfer</code></td> <td>Instant debit transfer to the recipient</td> </tr> <tr> <td><code>merchant_card</code></td> <td>A gift card for a certain merchant (e.g. Amazon)</td> </tr> <tr> <td><code>paypal</code></td> <td>Payout via PayPal</td> </tr> <tr> <td><code>venmo</code></td> <td>Payout via Venmo</td> </tr> <tr> <td><code>visa_card</code></td> <td>Payout in form of a Visa debit card</td> </tr> </tbody> </table> ")
38
+ category: StrictStr = Field(description="The category of this product <table> <thead> <tr> <th>Category</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>ach</code></td> <td>Bank transfer to the recipient</td> </tr> <tr> <td><code>charity</code></td> <td>Donations to a charity</td> </tr> <tr> <td><code>instant_debit_transfer</code></td> <td>Instant debit transfer to the recipient</td> </tr> <tr> <td><code>merchant_card</code></td> <td>A gift card for a certain merchant (e.g. Amazon)</td> </tr> <tr> <td><code>paypal</code></td> <td>Payout via PayPal</td> </tr> <tr> <td><code>venmo</code></td> <td>Payout via Venmo</td> </tr> <tr> <td><code>visa_card</code></td> <td>Payout in form of a Visa debit card</td> </tr> <tr> <td><code>cash_app</code></td> <td>Payout via Cash App</td> </tr> </tbody> </table> ")
39
39
  disclosure: StrictStr = Field(description="Legal disclosures for this product. Can be in HTML format.")
40
40
  skus: Optional[List[ListProductsResponseProductsInnerSkusInner]] = Field(default=None, description="Products are restricted in their usage based on the amount of the reward. The `skus` array defines bands of denominations in which this product may be used for payouts. ")
41
41
  currency_codes: Annotated[List[StrictStr], Field(min_length=1)] = Field(description="Available currencies for this product")
@@ -55,8 +55,8 @@ class ListProductsResponseProductsInner(BaseModel):
55
55
  @field_validator('category')
56
56
  def category_validate_enum(cls, value):
57
57
  """Validates the enum"""
58
- if value not in set(['ach', 'charity', 'instant_debit_transfer', 'merchant_card', 'paypal', 'venmo', 'visa_card']):
59
- raise ValueError("must be one of enum values ('ach', 'charity', 'instant_debit_transfer', 'merchant_card', 'paypal', 'venmo', 'visa_card')")
58
+ if value not in set(['ach', 'charity', 'instant_debit_transfer', 'merchant_card', 'paypal', 'venmo', 'visa_card', 'cash_app']):
59
+ raise ValueError("must be one of enum values ('ach', 'charity', 'instant_debit_transfer', 'merchant_card', 'paypal', 'venmo', 'visa_card', 'cash_app')")
60
60
  return value
61
61
 
62
62
  @field_validator('currency_codes')
@@ -35,7 +35,7 @@ class Product(BaseModel):
35
35
  id: Annotated[str, Field(strict=True)]
36
36
  name: StrictStr = Field(description="Name of the product")
37
37
  description: StrictStr = Field(description="Detailed description of the product. Mostly used for products with a `category` of `charities`.")
38
- category: StrictStr = Field(description="The category of this product <table> <thead> <tr> <th>Category</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>ach</code></td> <td>Bank transfer to the recipient</td> </tr> <tr> <td><code>charity</code></td> <td>Donations to a charity</td> </tr> <tr> <td><code>instant_debit_transfer</code></td> <td>Instant debit transfer to the recipient</td> </tr> <tr> <td><code>merchant_card</code></td> <td>A gift card for a certain merchant (e.g. Amazon)</td> </tr> <tr> <td><code>paypal</code></td> <td>Payout via PayPal</td> </tr> <tr> <td><code>venmo</code></td> <td>Payout via Venmo</td> </tr> <tr> <td><code>visa_card</code></td> <td>Payout in form of a Visa debit card</td> </tr> </tbody> </table> ")
38
+ category: StrictStr = Field(description="The category of this product <table> <thead> <tr> <th>Category</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>ach</code></td> <td>Bank transfer to the recipient</td> </tr> <tr> <td><code>charity</code></td> <td>Donations to a charity</td> </tr> <tr> <td><code>instant_debit_transfer</code></td> <td>Instant debit transfer to the recipient</td> </tr> <tr> <td><code>merchant_card</code></td> <td>A gift card for a certain merchant (e.g. Amazon)</td> </tr> <tr> <td><code>paypal</code></td> <td>Payout via PayPal</td> </tr> <tr> <td><code>venmo</code></td> <td>Payout via Venmo</td> </tr> <tr> <td><code>visa_card</code></td> <td>Payout in form of a Visa debit card</td> </tr> <tr> <td><code>cash_app</code></td> <td>Payout via Cash App</td> </tr> </tbody> </table> ")
39
39
  disclosure: StrictStr = Field(description="Legal disclosures for this product. Can be in HTML format.")
40
40
  skus: Optional[List[ListProductsResponseProductsInnerSkusInner]] = Field(default=None, description="Products are restricted in their usage based on the amount of the reward. The `skus` array defines bands of denominations in which this product may be used for payouts. ")
41
41
  currency_codes: Annotated[List[StrictStr], Field(min_length=1)] = Field(description="Available currencies for this product")
@@ -55,8 +55,8 @@ class Product(BaseModel):
55
55
  @field_validator('category')
56
56
  def category_validate_enum(cls, value):
57
57
  """Validates the enum"""
58
- if value not in set(['ach', 'charity', 'instant_debit_transfer', 'merchant_card', 'paypal', 'venmo', 'visa_card']):
59
- raise ValueError("must be one of enum values ('ach', 'charity', 'instant_debit_transfer', 'merchant_card', 'paypal', 'venmo', 'visa_card')")
58
+ if value not in set(['ach', 'charity', 'instant_debit_transfer', 'merchant_card', 'paypal', 'venmo', 'visa_card', 'cash_app']):
59
+ raise ValueError("must be one of enum values ('ach', 'charity', 'instant_debit_transfer', 'merchant_card', 'paypal', 'venmo', 'visa_card', 'cash_app')")
60
60
  return value
61
61
 
62
62
  @field_validator('currency_codes')
tremendous/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = '5.2.0'
1
+ __version__ = '5.3.0'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tremendous-python
3
- Version: 5.2.0
3
+ Version: 5.3.0
4
4
  Summary: Python API client for Tremendous
5
5
  Home-page: https://github.com/tremendous-rewards/tremendous-python
6
6
  Author: Tremendous
@@ -5,9 +5,9 @@ tremendous/configuration.py,sha256=xKyUUYnMgYjZ0XR8vIhQoRGJu_rrLh3UYO9mz31BuYo,1
5
5
  tremendous/exceptions.py,sha256=gWDqaC50P1a-DSt3UDZJ-Wo2zoqR_FXqknJdBU9lkIU,6667
6
6
  tremendous/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  tremendous/rest.py,sha256=FwSQXtibzbFUhmbX3HlSCKnnDSTgK4xBVo4YTceDVH8,9660
8
- tremendous/version.py,sha256=aEorqw8M_e1-DkUSXB1IJxv_AlEBhMhOWfq4rQK5Hz4,22
8
+ tremendous/version.py,sha256=8zvxVO3EF8LiynEUivQwhVRV4ipVrbFU-n_TV0UwmR0,22
9
9
  tremendous/api/__init__.py,sha256=NspQ9vNaLWIkAoRM3v1XOFlg7vY3l1r61TiwAUiWsvc,104
10
- tremendous/api/tremendous_api.py,sha256=Kub6kUYlK3QLgJRfoS6AYBDxbMxgG9Rmxjjf5uJWDoM,751126
10
+ tremendous/api/tremendous_api.py,sha256=6DcguLkttSfV_tJcQ63VNxVH5CI-nElKPyntMWVwLrc,750991
11
11
  tremendous/models/__init__.py,sha256=e5ir_XL_gG7afY45ljlKbs9cX2r31Z-0zBSQjwea3DU,19780
12
12
  tremendous/models/allow_email.py,sha256=GmDqA5mO1zoIVh_KpBWjCjHdUBOdnXJeqSMVRpmOTI4,2790
13
13
  tremendous/models/allow_email1.py,sha256=jFdbllsZzkf4gEoLJtFsLKW0qaSLTwKquYqx0CV8gxs,2830
@@ -142,7 +142,7 @@ tremendous/models/list_fraud_rules200_response.py,sha256=85Mmjdn73cSII4OYNtVCz8P
142
142
  tremendous/models/list_fraud_rules200_response_fraud_rules_inner.py,sha256=Ll3KoZnDKD6rf6DtzlW8nNg6o_536TgI6FJwYsgMrzs,5164
143
143
  tremendous/models/list_funding_sources200_response.py,sha256=1-6Jj-rHCKDgKLLH4v5CiqrExjXVzp1GVky6SXC3ZyQ,3454
144
144
  tremendous/models/list_funding_sources200_response_funding_sources_inner.py,sha256=cHruzG3JIccNkGLy-06VD4_oJOmXMV5gB4V4OEEt-_s,7722
145
- tremendous/models/list_funding_sources200_response_funding_sources_inner_meta.py,sha256=lea8B0VW6ZcLVEpkQUYQb6UqIRKLbPEKbwfJLa1yEi4,13508
145
+ tremendous/models/list_funding_sources200_response_funding_sources_inner_meta.py,sha256=cRx-op4nBr2lR0ImaGj3If9NiG_Oc-Ib3f2Yyw8dXTQ,13946
146
146
  tremendous/models/list_funding_sources200_response_funding_sources_inner_meta_failure_details.py,sha256=kuaYMMo1J3UmjvTvpzfWd83JIFS-6Ygnay02UtKN5KA,3160
147
147
  tremendous/models/list_invoices200_response.py,sha256=H8nTprG-jRyTNCtInSGM_qF7b5o-fIguj5wMY4fOC-A,3476
148
148
  tremendous/models/list_invoices200_response_invoices_inner.py,sha256=C1Fy_8k4K557Yq4omoKMLJXdxzYNY1NKT4xoY8svAqU,5730
@@ -155,7 +155,7 @@ tremendous/models/list_orders200_response_orders_inner_payment_refund.py,sha256=
155
155
  tremendous/models/list_organizations200_response.py,sha256=jyrJsdVDEN0RGMJ1eBlKblrnSNHbk1LK-kMhvW8z3qY,3443
156
156
  tremendous/models/list_organizations200_response_organizations_inner.py,sha256=ivK9LQaPHwvREadXOfjktGTyGVOCKtNVGE53XT_StXA,4740
157
157
  tremendous/models/list_products_response.py,sha256=-yq0DJ8cf_Ex04J4B4GQW3v0FOut86TCcNKHkd3Bai8,3272
158
- tremendous/models/list_products_response_products_inner.py,sha256=QgR0-ovqHsxd7hkuYnvO-d6azf4oeiErPYA1dvnaoyQ,11302
158
+ tremendous/models/list_products_response_products_inner.py,sha256=QfCMa8S6VitNG-fLFhZYRqqxL6-zFVLIPnp2ZXenC80,11417
159
159
  tremendous/models/list_products_response_products_inner_countries_inner.py,sha256=zet4R2bgO-kbIuCW2iHRcVRIH4cQeCz9QcZTJtuFd8s,2852
160
160
  tremendous/models/list_products_response_products_inner_documents.py,sha256=x5-axEFTOa6UZh9osJIPV2JKZkZzQJmnHeNt3PK9XVI,3411
161
161
  tremendous/models/list_products_response_products_inner_images_inner.py,sha256=NHHTE0eh75iuJ3yWvpyAThMYF8XySPS2OIHqeMkcnzE,3619
@@ -191,7 +191,7 @@ tremendous/models/organization.py,sha256=cbl9Q493s6yxVHS1auc9FEM5CuO1JblSJ1WxNso
191
191
  tremendous/models/payment_details.py,sha256=_HNcqSHo9h3c__FADCzMfLw_HgQU2XnJ2MflcK5yIgg,4223
192
192
  tremendous/models/payment_details_refund.py,sha256=y7Mjg839C96cwrxpX_WTXGoExtAkupZT-3LMGgJQvoM,3140
193
193
  tremendous/models/payout.py,sha256=vG_feulPd7eGLYcrWm9GZozvQTSMOkfLbXy7UjcPzq8,5953
194
- tremendous/models/product.py,sha256=F0cQyKQh6qVPlmxIAiMQJkhEQG55KxjPvjwfS9LCSD0,11292
194
+ tremendous/models/product.py,sha256=4l0bednpPOFQDMlHWlBQx_E1Ggh-D3SgVqv1C5wNBNQ,11407
195
195
  tremendous/models/product_documents.py,sha256=ttg3-3mzLNK4GG9nN8gcBmWWGUTLpC-MzGiOFz10xb8,3333
196
196
  tremendous/models/recipient.py,sha256=UTV6xVHXTzdljL3rJQolwMxub5QMRH9lVIrc9_ENmnk,3127
197
197
  tremendous/models/refund_details.py,sha256=c0x1KJh4c6JZMBFobI1iX3aRqwCjqU2bwm_uR-_3FAY,2930
@@ -236,8 +236,8 @@ tremendous/models/update_fraud_rule_list_request.py,sha256=LdOgv7tqPzlKyjZuH52mS
236
236
  tremendous/models/update_fraud_rule_list_request_config.py,sha256=tlBRDmtUb-tA5vKtwuQD1T63gvKbC7uJmV1ZZ18ZZMg,7289
237
237
  tremendous/models/webhook.py,sha256=0pHfhptuYCadXEZRCgIDBDfsuC05mm9GMNkbUxFhFJ4,3726
238
238
  tremendous/models/webhook_post.py,sha256=p6XlugA1tte_U3ZV9sEGKTSmZyZFa3i8Bxj8ejB6W7k,2720
239
- tremendous_python-5.2.0.dist-info/licenses/LICENSE,sha256=w2FQEW9lLNgnbTqAtfE83pweZmuKxBDGJuI2CEK72Ns,1105
240
- tremendous_python-5.2.0.dist-info/METADATA,sha256=fA4pT1MvGQXPt9pdWo4pWWCOFhaMho64kNjmIVDoJtA,633
241
- tremendous_python-5.2.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
242
- tremendous_python-5.2.0.dist-info/top_level.txt,sha256=BtFjKKgW-uLrCNyBgKRucWH89zjLzYCCFoev2H1cj_Y,11
243
- tremendous_python-5.2.0.dist-info/RECORD,,
239
+ tremendous_python-5.3.0.dist-info/licenses/LICENSE,sha256=w2FQEW9lLNgnbTqAtfE83pweZmuKxBDGJuI2CEK72Ns,1105
240
+ tremendous_python-5.3.0.dist-info/METADATA,sha256=BrAu9Rvk6C0JIKQX2WctiNedi7_vNP8A9MtZzLBX90Q,633
241
+ tremendous_python-5.3.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
242
+ tremendous_python-5.3.0.dist-info/top_level.txt,sha256=BtFjKKgW-uLrCNyBgKRucWH89zjLzYCCFoev2H1cj_Y,11
243
+ tremendous_python-5.3.0.dist-info/RECORD,,