Skip to content

Commit

Permalink
Automated commit message (#23)
Browse files Browse the repository at this point in the history
Co-authored-by: maxio-sdk <[email protected]>
  • Loading branch information
michalpierog and maxio-sdk authored Feb 1, 2024
1 parent cc0825c commit c22efd2
Show file tree
Hide file tree
Showing 55 changed files with 1,479 additions and 1,373 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
*.pyc
.env
.idea
cleanupSite.sh
74 changes: 37 additions & 37 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,15 +272,15 @@ The package is compatible with Python versions `3 >=3.7, <= 3.11`.
Install the package from PyPi using the following pip command:

```python
pip install maxio-advanced-billing-sdk==0.0.4
pip install maxio-advanced-billing-sdk==0.0.5
```

You can also view the package at:
https://pypi.python.org/pypi/maxio-advanced-billing-sdk/0.0.4
https://pypi.python.org/pypi/maxio-advanced-billing-sdk/0.0.5

## Initialize the API Client

**_Note:_** Documentation for the client can be found [here.](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.4/doc/client.md)
**_Note:_** Documentation for the client can be found [here.](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.5/doc/client.md)

The following parameters are configurable for the API Client:

Expand Down Expand Up @@ -329,41 +329,41 @@ This API uses `Basic Authentication`.

## List of APIs

* [API Exports](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.4/doc/controllers/api-exports.md)
* [Advance Invoice](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.4/doc/controllers/advance-invoice.md)
* [Billing Portal](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.4/doc/controllers/billing-portal.md)
* [Custom Fields](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.4/doc/controllers/custom-fields.md)
* [Events-Based Billing Segments](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.4/doc/controllers/events-based-billing-segments.md)
* [Payment Profiles](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.4/doc/controllers/payment-profiles.md)
* [Product Families](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.4/doc/controllers/product-families.md)
* [Product Price Points](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.4/doc/controllers/product-price-points.md)
* [Proforma Invoices](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.4/doc/controllers/proforma-invoices.md)
* [Reason Codes](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.4/doc/controllers/reason-codes.md)
* [Referral Codes](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.4/doc/controllers/referral-codes.md)
* [Sales Commissions](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.4/doc/controllers/sales-commissions.md)
* [Subscription Components](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.4/doc/controllers/subscription-components.md)
* [Subscription Groups](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.4/doc/controllers/subscription-groups.md)
* [Subscription Group Invoice Account](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.4/doc/controllers/subscription-group-invoice-account.md)
* [Subscription Group Status](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.4/doc/controllers/subscription-group-status.md)
* [Subscription Invoice Account](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.4/doc/controllers/subscription-invoice-account.md)
* [Subscription Notes](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.4/doc/controllers/subscription-notes.md)
* [Subscription Products](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.4/doc/controllers/subscription-products.md)
* [Subscription Status](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.4/doc/controllers/subscription-status.md)
* [Coupons](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.4/doc/controllers/coupons.md)
* [Components](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.4/doc/controllers/components.md)
* [Customers](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.4/doc/controllers/customers.md)
* [Events](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.4/doc/controllers/events.md)
* [Insights](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.4/doc/controllers/insights.md)
* [Invoices](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.4/doc/controllers/invoices.md)
* [Offers](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.4/doc/controllers/offers.md)
* [Products](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.4/doc/controllers/products.md)
* [Sites](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.4/doc/controllers/sites.md)
* [Subscriptions](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.4/doc/controllers/subscriptions.md)
* [Webhooks](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.4/doc/controllers/webhooks.md)
* [API Exports](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.5/doc/controllers/api-exports.md)
* [Advance Invoice](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.5/doc/controllers/advance-invoice.md)
* [Billing Portal](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.5/doc/controllers/billing-portal.md)
* [Custom Fields](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.5/doc/controllers/custom-fields.md)
* [Events-Based Billing Segments](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.5/doc/controllers/events-based-billing-segments.md)
* [Payment Profiles](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.5/doc/controllers/payment-profiles.md)
* [Product Families](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.5/doc/controllers/product-families.md)
* [Product Price Points](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.5/doc/controllers/product-price-points.md)
* [Proforma Invoices](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.5/doc/controllers/proforma-invoices.md)
* [Reason Codes](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.5/doc/controllers/reason-codes.md)
* [Referral Codes](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.5/doc/controllers/referral-codes.md)
* [Sales Commissions](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.5/doc/controllers/sales-commissions.md)
* [Subscription Components](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.5/doc/controllers/subscription-components.md)
* [Subscription Groups](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.5/doc/controllers/subscription-groups.md)
* [Subscription Group Invoice Account](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.5/doc/controllers/subscription-group-invoice-account.md)
* [Subscription Group Status](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.5/doc/controllers/subscription-group-status.md)
* [Subscription Invoice Account](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.5/doc/controllers/subscription-invoice-account.md)
* [Subscription Notes](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.5/doc/controllers/subscription-notes.md)
* [Subscription Products](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.5/doc/controllers/subscription-products.md)
* [Subscription Status](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.5/doc/controllers/subscription-status.md)
* [Coupons](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.5/doc/controllers/coupons.md)
* [Components](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.5/doc/controllers/components.md)
* [Customers](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.5/doc/controllers/customers.md)
* [Events](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.5/doc/controllers/events.md)
* [Insights](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.5/doc/controllers/insights.md)
* [Invoices](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.5/doc/controllers/invoices.md)
* [Offers](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.5/doc/controllers/offers.md)
* [Products](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.5/doc/controllers/products.md)
* [Sites](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.5/doc/controllers/sites.md)
* [Subscriptions](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.5/doc/controllers/subscriptions.md)
* [Webhooks](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.5/doc/controllers/webhooks.md)

## Classes Documentation

* [Utility Classes](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.4/doc/utility-classes.md)
* [HttpResponse](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.4/doc/http-response.md)
* [HttpRequest](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.4/doc/http-request.md)
* [Utility Classes](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.5/doc/utility-classes.md)
* [HttpResponse](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.5/doc/http-response.md)
* [HttpRequest](https://www.github.com/maxio-com/ab-python-sdk/tree/0.0.5/doc/http-request.md)

2 changes: 1 addition & 1 deletion advancedbilling/controllers/base_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class BaseController(object):

@staticmethod
def user_agent():
return 'AB SDK Python:0.0.4 on OS {os-info}'
return 'AB SDK Python:0.0.5 on OS {os-info}'

@staticmethod
def user_agent_parameters():
Expand Down
15 changes: 8 additions & 7 deletions advancedbilling/controllers/custom_fields_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,7 @@ def update_metadata(self,
ResponseHandler()
.deserializer(APIHelper.json_deserialize)
.deserialize_into(Metadata.from_dictionary)
.local_error_template('422', 'HTTP Response Not OK. Status code: {$statusCode}. Response: \'{$response.body}\'.', SingleErrorResponseException)
).execute()

def delete_metadata(self,
Expand Down Expand Up @@ -619,22 +620,22 @@ def list_metadata_for_resource_type(self,
`per_page=200`.
date_field -- BasicDateField -- The type of filter you
would like to apply to your search.
start_date -- str -- The start date (format YYYY-MM-DD)
start_date -- date -- The start date (format YYYY-MM-DD)
with which to filter the date_field. Returns metadata
with a timestamp at or after midnight (12:00:00 AM) in
your site’s time zone on the date specified.
end_date -- str -- The end date (format YYYY-MM-DD) with
end_date -- date -- The end date (format YYYY-MM-DD) with
which to filter the date_field. Returns metadata with
a timestamp up to and including 11:59:59PM in your
site’s time zone on the date specified.
start_datetime -- str -- The start date and time (format
YYYY-MM-DD HH:MM:SS) with which to filter the
start_datetime -- datetime -- The start date and time
(format YYYY-MM-DD HH:MM:SS) with which to filter the
date_field. Returns metadata with a timestamp at or
after exact time provided in query. You can specify
timezone in query - otherwise your site's time zone
will be used. If provided, this parameter will be used
instead of start_date.
end_datetime -- str -- The end date and time (format
end_datetime -- datetime -- The end date and time (format
YYYY-MM-DD HH:MM:SS) with which to filter the
date_field. Returns metadata with a timestamp at or
before exact time provided in query. You can specify
Expand Down Expand Up @@ -687,10 +688,10 @@ def list_metadata_for_resource_type(self,
.value(options.get('end_date', None)))
.query_param(Parameter()
.key('start_datetime')
.value(options.get('start_datetime', None)))
.value(APIHelper.when_defined(APIHelper.RFC3339DateTime, options.get('start_datetime', None))))
.query_param(Parameter()
.key('end_datetime')
.value(options.get('end_datetime', None)))
.value(APIHelper.when_defined(APIHelper.RFC3339DateTime, options.get('end_datetime', None))))
.query_param(Parameter()
.key('with_deleted')
.value(options.get('with_deleted', None)))
Expand Down
28 changes: 14 additions & 14 deletions advancedbilling/exceptions/__init__.py
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
__all__ = [
'api_exception',
'error_list_response_exception',
'component_allocation_error_exception',
'component_price_point_error_exception',
'customer_error_response_exception',
'too_many_management_link_requests_error_exception',
'single_string_error_response_exception',
'single_error_response_exception',
'error_array_map_response_exception',
'product_price_point_error_response_exception',
'error_list_response_exception',
'error_string_map_response_exception',
'component_price_point_error_exception',
'component_allocation_error_exception',
'event_based_billing_list_segments_errors_exception',
'event_based_billing_segment_exception',
'event_based_billing_segment_errors_exception',
'product_price_point_error_response_exception',
'proforma_bad_request_error_response_exception',
'refund_prepayment_aggregated_errors_response_exception',
'refund_prepayment_base_errors_response_exception',
'single_error_response_exception',
'single_string_error_response_exception',
'subscription_add_coupon_error_exception',
'subscription_component_allocation_error_exception',
'subscription_group_signup_error_response_exception',
'subscription_group_update_error_response_exception',
'subscription_add_coupon_error_exception',
'subscription_remove_coupon_errors_exception',
'event_based_billing_segment_errors_exception',
'event_based_billing_list_segments_errors_exception',
'event_based_billing_segment_exception',
'subscriptions_mrr_error_response_exception',
'refund_prepayment_base_errors_response_exception',
'refund_prepayment_aggregated_errors_response_exception',
'proforma_bad_request_error_response_exception',
'too_many_management_link_requests_error_exception',
]
Loading

0 comments on commit c22efd2

Please sign in to comment.