From 219262fb4ca3da4109252eda44f8d3e434bede9a Mon Sep 17 00:00:00 2001
From: maciej-nedza <76946708+maciej-nedza@users.noreply.github.com>
Date: Mon, 4 Mar 2024 10:42:41 +0100
Subject: [PATCH] [DE-746] Update SDK (#31)
- Enabled additional model properties
- Renamed `BulkComponentSPricePointAssignment` to `BulkComponentsPricePointAssignment`
- Add query parameters for list subscription group proforma invoices
- Use ProformaInvoiceStatus for list proforma invoices status query parameter
- Added missing fields in the `Allocation` model
- Added missing `404` errors for subscription components endpoints
- Renamed components price points related models to match the proper camelCase style
- Changed `includeNextProformaInvoice` param type from `String` to an enum
- Add enums for proforma invoices and invoices properties:
- Invoice Discount Source Type
- Invoice Discount Type
- Proforma Invoice Discount Source Type
- Proforma Invoice Role
- Proforma Invoice Status
- Tax Source Type
- Remove `ProformaTaxBreakout`, use `InvoiceTaxBreakout` instead
- Make Proforma Invoice reuse `InvoiceConsolidationLevel` and `CollectionMethod` enums instead of strings
- Remove ProformaInvoiceDiscountBreakout - use InvoiceDiscountBreakout instead
- Add missing fields for ProformaInvoiceDiscount
- Add tests for Proforma Invoices
- Merge proforma invoice and preview proforma, add kind for invoice line item
- Add kind to invoice line item
---
README.md | 2 +-
.../proforma_invoices_controller.py | 64 ++-
.../subscription_components_controller.py | 10 +-
advancedbilling/models/__init__.py | 14 +-
advancedbilling/models/account_balance.py | 13 +-
advancedbilling/models/account_balances.py | 13 +-
advancedbilling/models/ach_agreement.py | 13 +-
.../models/activate_subscription_request.py | 13 +-
advancedbilling/models/add_coupons_request.py | 13 +-
.../models/add_subscription_to_a_group.py | 13 +-
advancedbilling/models/address_change.py | 13 +-
.../models/agreement_acceptance.py | 13 +-
advancedbilling/models/allocate_components.py | 13 +-
advancedbilling/models/allocation.py | 39 +-
.../models/allocation_expiration_date.py | 13 +-
advancedbilling/models/allocation_preview.py | 13 +-
.../models/allocation_preview_item.py | 13 +-
.../models/allocation_preview_line_item.py | 13 +-
.../models/allocation_preview_response.py | 13 +-
advancedbilling/models/allocation_response.py | 13 +-
advancedbilling/models/allocation_settings.py | 13 +-
.../models/applied_credit_note_data.py | 13 +-
.../models/apply_credit_note_event_data.py | 13 +-
.../models/apply_debit_note_event_data.py | 13 +-
.../models/apply_payment_event_data.py | 13 +-
advancedbilling/models/attribute_error.py | 13 +-
advancedbilling/models/auto_resume.py | 13 +-
.../models/bank_account_attributes.py | 13 +-
.../models/bank_account_payment_profile.py | 16 +-
.../models/bank_account_response.py | 13 +-
.../models/bank_account_verification.py | 13 +-
.../bank_account_verification_request.py | 13 +-
advancedbilling/models/base_refund_error.py | 13 +-
advancedbilling/models/base_string_error.py | 13 +-
advancedbilling/models/batch_job.py | 13 +-
advancedbilling/models/batch_job_response.py | 13 +-
advancedbilling/models/billing_address.py | 13 +-
advancedbilling/models/billing_manifest.py | 13 +-
.../models/billing_manifest_item.py | 13 +-
advancedbilling/models/billing_schedule.py | 13 +-
advancedbilling/models/breakouts.py | 13 +-
...bulk_components_price_point_assignment.py} | 25 +-
...ulk_create_product_price_points_request.py | 13 +-
...lk_create_product_price_points_response.py | 13 +-
.../models/bulk_create_segments.py | 13 +-
.../models/bulk_update_segments.py | 13 +-
.../models/bulk_update_segments_item.py | 13 +-
advancedbilling/models/calendar_billing.py | 13 +-
.../cancel_grouped_subscriptions_request.py | 13 +-
.../models/cancellation_options.py | 13 +-
.../models/cancellation_request.py | 13 +-
...ge_invoice_collection_method_event_data.py | 13 +-
advancedbilling/models/chargify_ebb.py | 13 +-
advancedbilling/models/component.py | 13 +-
.../models/component_allocation_change.py | 13 +-
.../models/component_allocation_error_item.py | 13 +-
advancedbilling/models/component_cost_data.py | 13 +-
.../models/component_cost_data_rate_tier.py | 13 +-
.../models/component_currency_price.py | 13 +-
.../component_currency_prices_response.py | 13 +-
.../models/component_custom_price.py | 13 +-
advancedbilling/models/component_price.py | 13 +-
.../models/component_price_point.py | 13 +-
...py => component_price_point_assignment.py} | 21 +-
.../component_price_point_error_item.py | 13 +-
.../models/component_price_point_item.py | 13 +-
.../models/component_price_point_response.py | 13 +-
.../models/component_price_points_response.py | 13 +-
advancedbilling/models/component_response.py | 13 +-
.../models/consolidated_invoice.py | 13 +-
advancedbilling/models/count_response.py | 13 +-
advancedbilling/models/coupon.py | 13 +-
advancedbilling/models/coupon_currency.py | 13 +-
.../models/coupon_currency_request.py | 13 +-
.../models/coupon_currency_response.py | 13 +-
advancedbilling/models/coupon_response.py | 13 +-
advancedbilling/models/coupon_restriction.py | 13 +-
advancedbilling/models/coupon_subcodes.py | 13 +-
.../models/coupon_subcodes_response.py | 13 +-
advancedbilling/models/coupon_usage.py | 13 +-
advancedbilling/models/create_allocation.py | 13 +-
.../models/create_allocation_request.py | 13 +-
.../models/create_component_price_point.py | 13 +-
.../create_component_price_point_request.py | 13 +-
.../create_component_price_points_request.py | 13 +-
.../models/create_currency_price.py | 13 +-
.../models/create_currency_prices_request.py | 13 +-
advancedbilling/models/create_customer.py | 13 +-
.../models/create_customer_request.py | 13 +-
.../models/create_ebb_component.py | 13 +-
advancedbilling/models/create_invoice.py | 13 +-
.../models/create_invoice_address.py | 13 +-
.../models/create_invoice_coupon.py | 13 +-
advancedbilling/models/create_invoice_item.py | 13 +-
.../models/create_invoice_payment.py | 13 +-
.../create_invoice_payment_application.py | 13 +-
.../models/create_invoice_payment_request.py | 13 +-
.../models/create_invoice_request.py | 13 +-
advancedbilling/models/create_metadata.py | 13 +-
.../models/create_metadata_request.py | 13 +-
advancedbilling/models/create_metafield.py | 13 +-
.../models/create_metafields_request.py | 13 +-
.../models/create_metered_component.py | 13 +-
.../models/create_multi_invoice_payment.py | 13 +-
.../create_multi_invoice_payment_request.py | 13 +-
advancedbilling/models/create_offer.py | 13 +-
.../models/create_offer_component.py | 13 +-
.../models/create_offer_request.py | 13 +-
.../models/create_on_off_component.py | 13 +-
.../models/create_or_update_coupon.py | 13 +-
.../models/create_or_update_endpoint.py | 13 +-
.../create_or_update_endpoint_request.py | 13 +-
.../create_or_update_flat_amount_coupon.py | 13 +-
.../create_or_update_percentage_coupon.py | 13 +-
.../models/create_or_update_product.py | 13 +-
.../create_or_update_product_request.py | 13 +-
.../models/create_or_update_segment_price.py | 13 +-
advancedbilling/models/create_payment.py | 13 +-
.../models/create_payment_profile.py | 13 +-
.../models/create_payment_profile_request.py | 13 +-
.../models/create_prepaid_component.py | 13 +-
...ate_prepaid_usage_component_price_point.py | 13 +-
advancedbilling/models/create_prepayment.py | 13 +-
.../models/create_prepayment_request.py | 13 +-
.../models/create_prepayment_response.py | 13 +-
.../models/create_product_currency_price.py | 13 +-
.../create_product_currency_prices_request.py | 13 +-
.../models/create_product_family.py | 13 +-
.../models/create_product_family_request.py | 13 +-
.../models/create_product_price_point.py | 13 +-
.../create_product_price_point_request.py | 13 +-
.../models/create_quantity_based_component.py | 13 +-
advancedbilling/models/create_reason_code.py | 13 +-
.../models/create_reason_code_request.py | 13 +-
advancedbilling/models/create_segment.py | 13 +-
.../models/create_segment_request.py | 13 +-
.../create_signup_proforma_preview_include.py | 22 +
advancedbilling/models/create_subscription.py | 13 +-
.../models/create_subscription_component.py | 13 +-
.../models/create_subscription_group.py | 13 +-
.../create_subscription_group_request.py | 13 +-
.../models/create_subscription_request.py | 13 +-
advancedbilling/models/create_usage.py | 13 +-
.../models/create_usage_request.py | 13 +-
advancedbilling/models/created_prepayment.py | 13 +-
.../models/credit_account_balance_changed.py | 13 +-
.../models/credit_card_attributes.py | 13 +-
.../models/credit_card_payment_profile.py | 13 +-
advancedbilling/models/credit_note.py | 13 +-
advancedbilling/models/credit_note_1.py | 13 +-
.../models/credit_note_application.py | 13 +-
.../models/credit_note_line_item.py | 13 +-
.../models/credit_scheme_request.py | 13 +-
advancedbilling/models/currency_price.py | 13 +-
.../models/currency_prices_response.py | 13 +-
.../models/custom_field_value_change.py | 13 +-
advancedbilling/models/customer.py | 13 +-
advancedbilling/models/customer_1.py | 16 +-
advancedbilling/models/customer_attributes.py | 13 +-
advancedbilling/models/customer_change.py | 13 +-
.../customer_changes_preview_response.py | 13 +-
.../models/customer_custom_fields_change.py | 13 +-
advancedbilling/models/customer_error.py | 13 +-
.../models/customer_payer_change.py | 13 +-
advancedbilling/models/customer_response.py | 13 +-
.../models/deduct_service_credit.py | 13 +-
.../models/deduct_service_credit_request.py | 13 +-
.../models/delayed_cancellation_response.py | 13 +-
.../delete_subscription_group_response.py | 13 +-
advancedbilling/models/dunner_data.py | 13 +-
advancedbilling/models/dunning_step_data.py | 13 +-
.../models/dunning_step_reached.py | 13 +-
advancedbilling/models/ebb_component.py | 13 +-
advancedbilling/models/ebb_event.py | 13 +-
.../models/enable_webhooks_request.py | 13 +-
.../models/enable_webhooks_response.py | 13 +-
advancedbilling/models/endpoint.py | 13 +-
advancedbilling/models/endpoint_response.py | 13 +-
advancedbilling/models/errors.py | 13 +-
advancedbilling/models/event.py | 18 +-
.../event_based_billing_segment_error.py | 13 +-
advancedbilling/models/event_response.py | 13 +-
.../full_subscription_group_response.py | 13 +-
.../get_one_time_token_payment_profile.py | 13 +-
.../models/get_one_time_token_request.py | 13 +-
advancedbilling/models/group_billing.py | 13 +-
advancedbilling/models/group_settings.py | 13 +-
advancedbilling/models/group_target.py | 13 +-
advancedbilling/models/invoice.py | 13 +-
advancedbilling/models/invoice_address.py | 13 +-
.../models/invoice_balance_item.py | 13 +-
advancedbilling/models/invoice_credit.py | 13 +-
.../models/invoice_custom_field.py | 13 +-
advancedbilling/models/invoice_customer.py | 16 +-
advancedbilling/models/invoice_discount.py | 17 +-
.../models/invoice_discount_breakout.py | 13 +-
.../models/invoice_discount_source_type.py | 41 ++
.../models/invoice_discount_type.py | 41 ++
.../models/invoice_display_settings.py | 13 +-
advancedbilling/models/invoice_event.py | 13 +-
advancedbilling/models/invoice_event_data.py | 13 +-
.../models/invoice_event_payment.py | 13 +-
.../models/invoice_event_payment_1.py | 13 +-
advancedbilling/models/invoice_issued.py | 13 +-
advancedbilling/models/invoice_line_item.py | 23 +-
.../invoice_line_item_component_cost_data.py | 13 +-
.../models/invoice_line_item_event_data.py | 13 +-
.../invoice_line_item_pricing_detail.py | 13 +-
advancedbilling/models/invoice_payer.py | 13 +-
.../models/invoice_payer_change.py | 13 +-
advancedbilling/models/invoice_payment.py | 13 +-
.../models/invoice_payment_application.py | 13 +-
.../models/invoice_payment_method.py | 13 +-
advancedbilling/models/invoice_pre_payment.py | 13 +-
.../models/invoice_previous_balance.py | 13 +-
advancedbilling/models/invoice_refund.py | 13 +-
advancedbilling/models/invoice_response.py | 13 +-
advancedbilling/models/invoice_seller.py | 13 +-
advancedbilling/models/invoice_tax.py | 16 +-
.../models/invoice_tax_breakout.py | 23 +-
.../models/invoice_tax_component_breakout.py | 13 +-
.../models/issue_advance_invoice_request.py | 13 +-
.../models/issue_invoice_event_data.py | 13 +-
.../models/issue_invoice_request.py | 13 +-
.../models/issue_service_credit.py | 13 +-
.../models/issue_service_credit_request.py | 13 +-
.../models/item_price_point_changed.py | 13 +-
.../models/item_price_point_data.py | 13 +-
.../list_components_price_points_response.py | 13 +-
.../models/list_credit_notes_response.py | 13 +-
.../models/list_invoice_events_response.py | 13 +-
.../models/list_invoices_response.py | 13 +-
.../models/list_metafields_response.py | 13 +-
advancedbilling/models/list_mrr_response.py | 13 +-
.../models/list_mrr_response_result.py | 13 +-
.../models/list_offers_response.py | 13 +-
.../list_product_price_points_response.py | 13 +-
.../models/list_proforma_invoices_meta.py | 13 +-
.../models/list_proforma_invoices_response.py | 13 +-
.../models/list_public_keys_meta.py | 13 +-
.../models/list_public_keys_response.py | 13 +-
advancedbilling/models/list_sale_rep_item.py | 13 +-
.../models/list_segments_response.py | 13 +-
.../list_subcription_group_prepayment_item.py | 13 +-
.../list_subscription_components_response.py | 13 +-
.../list_subscription_group_prepayment.py | 13 +-
..._subscription_group_prepayment_response.py | 13 +-
.../models/list_subscription_groups_item.py | 13 +-
.../models/list_subscription_groups_meta.py | 13 +-
.../list_subscription_groups_response.py | 13 +-
advancedbilling/models/metadata.py | 13 +-
advancedbilling/models/metafield.py | 13 +-
advancedbilling/models/metafield_scope.py | 13 +-
advancedbilling/models/metered_component.py | 13 +-
advancedbilling/models/metered_usage.py | 13 +-
advancedbilling/models/movement.py | 13 +-
advancedbilling/models/movement_line_item.py | 13 +-
advancedbilling/models/mrr.py | 13 +-
advancedbilling/models/mrr_movement.py | 13 +-
advancedbilling/models/mrr_response.py | 13 +-
.../models/multi_invoice_payment.py | 13 +-
.../models/multi_invoice_payment_response.py | 13 +-
.../models/nested_subscription_group.py | 13 +-
advancedbilling/models/net_terms.py | 13 +-
advancedbilling/models/offer.py | 13 +-
advancedbilling/models/offer_discount.py | 13 +-
advancedbilling/models/offer_item.py | 13 +-
advancedbilling/models/offer_response.py | 13 +-
advancedbilling/models/offer_signup_page.py | 13 +-
advancedbilling/models/on_off_component.py | 13 +-
.../models/organization_address.py | 13 +-
advancedbilling/models/origin_invoice.py | 13 +-
advancedbilling/models/overage_pricing.py | 13 +-
.../models/override_subscription.py | 13 +-
.../models/override_subscription_request.py | 13 +-
advancedbilling/models/paginated_metadata.py | 13 +-
advancedbilling/models/paid_invoice.py | 13 +-
advancedbilling/models/pause_request.py | 13 +-
advancedbilling/models/payer_attributes.py | 13 +-
advancedbilling/models/payer_error.py | 13 +-
.../payment_collection_method_changed.py | 13 +-
.../models/payment_for_allocation.py | 13 +-
.../models/payment_method_apple_pay.py | 13 +-
.../models/payment_method_bank_account.py | 13 +-
.../models/payment_method_credit_card.py | 13 +-
.../models/payment_method_external.py | 13 +-
.../models/payment_method_paypal.py | 13 +-
.../models/payment_profile_attributes.py | 13 +-
.../models/payment_profile_response.py | 13 +-
.../models/payment_related_events.py | 13 +-
.../models/pending_cancellation_change.py | 13 +-
.../models/portal_management_link.py | 13 +-
.../models/prepaid_component_price_point.py | 13 +-
.../models/prepaid_configuration.py | 13 +-
.../models/prepaid_configuration_response.py | 13 +-
.../prepaid_subscription_balance_changed.py | 13 +-
advancedbilling/models/prepaid_usage.py | 13 +-
.../models/prepaid_usage_allocation_detail.py | 13 +-
.../models/prepaid_usage_component.py | 13 +-
advancedbilling/models/prepayment.py | 13 +-
.../prepayment_account_balance_changed.py | 13 +-
.../models/prepayment_aggregated_error.py | 13 +-
advancedbilling/models/prepayment_response.py | 13 +-
.../models/prepayments_response.py | 13 +-
.../models/preview_allocations_request.py | 13 +-
advancedbilling/models/price.py | 13 +-
advancedbilling/models/price_point.py | 13 +-
advancedbilling/models/product.py | 13 +-
advancedbilling/models/product_family.py | 13 +-
.../models/product_family_response.py | 13 +-
advancedbilling/models/product_price_point.py | 13 +-
.../models/product_price_point_errors.py | 13 +-
.../models/product_price_point_response.py | 13 +-
advancedbilling/models/product_response.py | 13 +-
advancedbilling/models/proforma_error.py | 13 +-
advancedbilling/models/proforma_invoice.py | 49 ++-
.../models/proforma_invoice_credit.py | 13 +-
.../models/proforma_invoice_discount.py | 44 +-
.../proforma_invoice_discount_breakout.py | 69 ----
.../proforma_invoice_discount_source_type.py | 25 ++
.../models/proforma_invoice_issued.py | 13 +-
.../models/proforma_invoice_payment.py | 13 +-
.../models/proforma_invoice_preview.py | 386 ------------------
.../models/proforma_invoice_role.py | 32 ++
.../models/proforma_invoice_status.py | 28 ++
.../models/proforma_invoice_tax.py | 24 +-
.../models/proforma_invoice_tax_breakout.py | 69 ----
.../proforma_invoice_tax_source_type.py | 38 ++
advancedbilling/models/proration.py | 13 +-
advancedbilling/models/public_key.py | 13 +-
advancedbilling/models/public_signup_page.py | 13 +-
.../models/quantity_based_component.py | 13 +-
.../reactivate_subscription_group_request.py | 13 +-
.../reactivate_subscription_group_response.py | 13 +-
.../models/reactivate_subscription_request.py | 13 +-
.../models/reactivation_billing.py | 13 +-
advancedbilling/models/reason_code.py | 13 +-
.../models/reason_code_response.py | 13 +-
.../models/reason_codes_json_response.py | 13 +-
.../models/record_payment_request.py | 13 +-
.../models/record_payment_response.py | 13 +-
advancedbilling/models/referral_code.py | 13 +-
.../models/referral_validation_response.py | 13 +-
advancedbilling/models/refund.py | 13 +-
.../models/refund_consolidated_invoice.py | 13 +-
advancedbilling/models/refund_invoice.py | 13 +-
.../models/refund_invoice_event_data.py | 13 +-
.../models/refund_invoice_request.py | 13 +-
advancedbilling/models/refund_prepayment.py | 13 +-
.../refund_prepayment_aggregated_error.py | 13 +-
.../refund_prepayment_base_refund_error.py | 13 +-
.../models/refund_prepayment_request.py | 13 +-
advancedbilling/models/refund_success.py | 13 +-
.../models/remove_payment_event_data.py | 13 +-
advancedbilling/models/renewal_preview.py | 13 +-
.../models/renewal_preview_component.py | 13 +-
.../models/renewal_preview_line_item.py | 13 +-
.../models/renewal_preview_request.py | 13 +-
.../models/renewal_preview_response.py | 13 +-
.../models/replay_webhooks_request.py | 13 +-
.../models/replay_webhooks_response.py | 13 +-
advancedbilling/models/resent_invitation.py | 13 +-
advancedbilling/models/resume_options.py | 13 +-
advancedbilling/models/revoked_invitation.py | 13 +-
advancedbilling/models/sale_rep.py | 13 +-
advancedbilling/models/sale_rep_item_mrr.py | 13 +-
advancedbilling/models/sale_rep_settings.py | 13 +-
.../models/sale_rep_subscription.py | 13 +-
advancedbilling/models/segment.py | 13 +-
advancedbilling/models/segment_price.py | 13 +-
advancedbilling/models/segment_response.py | 13 +-
advancedbilling/models/seller.py | 13 +-
.../models/send_invoice_request.py | 13 +-
advancedbilling/models/service_credit.py | 13 +-
.../models/service_credit_response.py | 13 +-
advancedbilling/models/shipping_address.py | 13 +-
.../models/signup_proforma_preview.py | 13 +-
.../signup_proforma_preview_response.py | 13 +-
advancedbilling/models/site.py | 13 +-
advancedbilling/models/site_response.py | 13 +-
advancedbilling/models/site_statistics.py | 13 +-
advancedbilling/models/site_summary.py | 13 +-
advancedbilling/models/subscription.py | 13 +-
.../models/subscription_component.py | 13 +-
...ription_component_allocation_error_item.py | 13 +-
.../models/subscription_component_response.py | 13 +-
.../subscription_component_subscription.py | 13 +-
.../models/subscription_custom_price.py | 13 +-
advancedbilling/models/subscription_group.py | 13 +-
.../models/subscription_group_balances.py | 13 +-
.../models/subscription_group_bank_account.py | 13 +-
...bscription_group_component_custom_price.py | 13 +-
.../models/subscription_group_credit_card.py | 13 +-
.../models/subscription_group_customer.py | 13 +-
.../models/subscription_group_item.py | 13 +-
.../models/subscription_group_member_error.py | 13 +-
.../subscription_group_payment_profile.py | 13 +-
.../models/subscription_group_prepayment.py | 13 +-
.../subscription_group_prepayment_request.py | 13 +-
.../subscription_group_prepayment_response.py | 13 +-
.../models/subscription_group_response.py | 13 +-
.../models/subscription_group_signup.py | 13 +-
.../subscription_group_signup_component.py | 13 +-
.../models/subscription_group_signup_error.py | 13 +-
.../subscription_group_signup_failure.py | 13 +-
.../subscription_group_signup_failure_data.py | 13 +-
.../models/subscription_group_signup_item.py | 13 +-
.../subscription_group_signup_request.py | 13 +-
.../subscription_group_signup_response.py | 13 +-
.../subscription_group_signup_success.py | 13 +-
.../subscription_group_signup_success_data.py | 13 +-
.../subscription_group_subscription_error.py | 13 +-
.../models/subscription_group_update_error.py | 13 +-
.../models/subscription_included_coupon.py | 13 +-
.../models/subscription_migration_preview.py | 13 +-
.../subscription_migration_preview_options.py | 13 +-
.../subscription_migration_preview_request.py | 13 +-
...subscription_migration_preview_response.py | 13 +-
advancedbilling/models/subscription_mrr.py | 13 +-
.../models/subscription_mrr_breakout.py | 13 +-
.../models/subscription_mrr_response.py | 13 +-
advancedbilling/models/subscription_note.py | 13 +-
.../models/subscription_note_response.py | 13 +-
.../models/subscription_preview.py | 13 +-
.../models/subscription_preview_response.py | 13 +-
.../models/subscription_product_change.py | 13 +-
.../models/subscription_product_migration.py | 13 +-
.../subscription_product_migration_request.py | 13 +-
.../models/subscription_response.py | 13 +-
.../models/subscription_state_change.py | 13 +-
advancedbilling/models/tax_configuration.py | 13 +-
.../too_many_management_link_requests.py | 13 +-
.../update_allocation_expiration_date.py | 13 +-
advancedbilling/models/update_component.py | 13 +-
.../models/update_component_price_point.py | 13 +-
.../update_component_price_point_request.py | 13 +-
.../models/update_component_request.py | 13 +-
.../models/update_coupon_currency.py | 13 +-
.../models/update_currency_price.py | 13 +-
.../models/update_currency_prices_request.py | 13 +-
advancedbilling/models/update_customer.py | 13 +-
.../models/update_customer_request.py | 13 +-
advancedbilling/models/update_metadata.py | 13 +-
.../models/update_metadata_request.py | 13 +-
advancedbilling/models/update_metafield.py | 13 +-
.../models/update_metafields_request.py | 13 +-
.../models/update_payment_profile.py | 13 +-
.../models/update_payment_profile_request.py | 13 +-
advancedbilling/models/update_price.py | 13 +-
.../models/update_product_price_point.py | 13 +-
.../update_product_price_point_request.py | 13 +-
advancedbilling/models/update_reason_code.py | 13 +-
.../models/update_reason_code_request.py | 13 +-
advancedbilling/models/update_segment.py | 13 +-
.../models/update_segment_request.py | 13 +-
advancedbilling/models/update_subscription.py | 13 +-
.../models/update_subscription_component.py | 13 +-
.../models/update_subscription_group.py | 13 +-
.../update_subscription_group_request.py | 13 +-
.../models/update_subscription_note.py | 13 +-
.../update_subscription_note_request.py | 13 +-
.../models/update_subscription_request.py | 13 +-
.../models/upsert_prepaid_configuration.py | 13 +-
.../upsert_prepaid_configuration_request.py | 13 +-
advancedbilling/models/usage.py | 13 +-
advancedbilling/models/usage_response.py | 13 +-
advancedbilling/models/void_invoice.py | 13 +-
.../models/void_invoice_event_data.py | 13 +-
.../models/void_invoice_request.py | 13 +-
.../models/void_remainder_event_data.py | 13 +-
advancedbilling/models/webhook.py | 13 +-
advancedbilling/models/webhook_response.py | 13 +-
.../utilities/union_type_lookup.py | 2 +-
doc/client.md | 2 +-
doc/controllers/invoices.md | 2 +-
doc/controllers/proforma-invoices.md | 31 +-
doc/controllers/subscription-components.md | 46 ++-
doc/models/allocation.md | 3 +
...bulk-components-price-point-assignment.md} | 6 +-
...md => component-price-point-assignment.md} | 8 +-
...ent-price-point-assignment-price-point.md} | 2 +-
.../create-signup-proforma-preview-include.md | 19 +
doc/models/invoice-discount-source-type.md | 15 +
doc/models/invoice-discount-type.md | 15 +
doc/models/invoice-discount.md | 6 +-
doc/models/invoice-line-item.md | 1 +
doc/models/invoice-tax-breakout.md | 4 +-
doc/models/invoice-tax.md | 4 +-
.../proforma-invoice-discount-breakout.md | 23 --
.../proforma-invoice-discount-source-type.md | 14 +
doc/models/proforma-invoice-discount.md | 16 +-
doc/models/proforma-invoice-preview.md | 60 ---
doc/models/proforma-invoice-role.md | 18 +
doc/models/proforma-invoice-status.md | 15 +
doc/models/proforma-invoice-tax-breakout.md | 23 --
.../proforma-invoice-tax-source-type.md | 14 +
doc/models/proforma-invoice-tax.md | 6 +-
doc/models/proforma-invoice.md | 9 +-
tests/conftest.py | 2 -
499 files changed, 5652 insertions(+), 1674 deletions(-)
rename advancedbilling/models/{bulk_component_s_price_point_assignment.py => bulk_components_price_point_assignment.py} (60%)
rename advancedbilling/models/{component_s_price_point_assignment.py => component_price_point_assignment.py} (70%)
create mode 100644 advancedbilling/models/create_signup_proforma_preview_include.py
create mode 100644 advancedbilling/models/invoice_discount_source_type.py
create mode 100644 advancedbilling/models/invoice_discount_type.py
delete mode 100644 advancedbilling/models/proforma_invoice_discount_breakout.py
create mode 100644 advancedbilling/models/proforma_invoice_discount_source_type.py
delete mode 100644 advancedbilling/models/proforma_invoice_preview.py
create mode 100644 advancedbilling/models/proforma_invoice_role.py
create mode 100644 advancedbilling/models/proforma_invoice_status.py
delete mode 100644 advancedbilling/models/proforma_invoice_tax_breakout.py
create mode 100644 advancedbilling/models/proforma_invoice_tax_source_type.py
rename doc/models/{bulk-component-s-price-point-assignment.md => bulk-components-price-point-assignment.md} (51%)
rename doc/models/{component-s-price-point-assignment.md => component-price-point-assignment.md} (68%)
rename doc/models/containers/{component-s-price-point-assignment-price-point.md => component-price-point-assignment-price-point.md} (61%)
create mode 100644 doc/models/create-signup-proforma-preview-include.md
create mode 100644 doc/models/invoice-discount-source-type.md
create mode 100644 doc/models/invoice-discount-type.md
delete mode 100644 doc/models/proforma-invoice-discount-breakout.md
create mode 100644 doc/models/proforma-invoice-discount-source-type.md
delete mode 100644 doc/models/proforma-invoice-preview.md
create mode 100644 doc/models/proforma-invoice-role.md
create mode 100644 doc/models/proforma-invoice-status.md
delete mode 100644 doc/models/proforma-invoice-tax-breakout.md
create mode 100644 doc/models/proforma-invoice-tax-source-type.md
diff --git a/README.md b/README.md
index 31deb2a..ef32641 100644
--- a/README.md
+++ b/README.md
@@ -288,7 +288,7 @@ The following parameters are configurable for the API Client:
| --- | --- | --- |
| `subdomain` | `str` | The subdomain for your Chargify site.
*Default*: `'subdomain'` |
| `domain` | `str` | The Chargify server domain.
*Default*: `'chargify.com'` |
-| `environment` | Environment | The API environment.
**Default: `Environment.PRODUCTION`** |
+| `environment` | `Environment` | The API environment.
**Default: `Environment.PRODUCTION`** |
| `http_client_instance` | `HttpClient` | The Http Client passed from the sdk user for making requests |
| `override_http_client_configuration` | `bool` | The value which determines to override properties of the passed Http Client from the sdk user |
| `http_call_back` | `HttpCallBack` | The callback value that is invoked before and after an HTTP call is made to an endpoint |
diff --git a/advancedbilling/controllers/proforma_invoices_controller.py b/advancedbilling/controllers/proforma_invoices_controller.py
index 77c4a2e..38d405b 100644
--- a/advancedbilling/controllers/proforma_invoices_controller.py
+++ b/advancedbilling/controllers/proforma_invoices_controller.py
@@ -15,9 +15,8 @@
from apimatic_core.types.parameter import Parameter
from advancedbilling.http.http_method_enum import HttpMethodEnum
from apimatic_core.authentication.multiple.single_auth import Single
-from advancedbilling.models.proforma_invoice import ProformaInvoice
from advancedbilling.models.list_proforma_invoices_response import ListProformaInvoicesResponse
-from advancedbilling.models.proforma_invoice_preview import ProformaInvoicePreview
+from advancedbilling.models.proforma_invoice import ProformaInvoice
from advancedbilling.models.signup_proforma_preview_response import SignupProformaPreviewResponse
from advancedbilling.exceptions.error_list_response_exception import ErrorListResponseException
from advancedbilling.exceptions.api_exception import APIException
@@ -75,7 +74,7 @@ def create_consolidated_proforma_invoice(self,
).execute()
def list_subscription_group_proforma_invoices(self,
- uid):
+ options=dict()):
"""Does a GET request to /subscription_groups/{uid}/proforma_invoices.json.
Only proforma invoices with a `consolidation_level` of parent are
@@ -87,10 +86,22 @@ def list_subscription_group_proforma_invoices(self,
set to true.
Args:
- uid (str): The uid of the subscription group
+ options (dict, optional): Key-value pairs for any of the
+ parameters to this API Endpoint. All parameters to the
+ endpoint are supplied through the dictionary with their names
+ being the key and their desired values being the value. A list
+ of parameters that can be used are::
+
+ uid -- str -- The uid of the subscription group
+ line_items -- bool -- Include line items data
+ discounts -- bool -- Include discounts data
+ taxes -- bool -- Include taxes data
+ credits -- bool -- Include credits data
+ payments -- bool -- Include payments data
+ custom_fields -- bool -- Include custom fields data
Returns:
- ProformaInvoice: Response from the API. OK
+ ListProformaInvoicesResponse: Response from the API. OK
Raises:
APIException: When an error occurs while fetching the data from
@@ -106,9 +117,27 @@ def list_subscription_group_proforma_invoices(self,
.http_method(HttpMethodEnum.GET)
.template_param(Parameter()
.key('uid')
- .value(uid)
+ .value(options.get('uid', None))
.is_required(True)
.should_encode(True))
+ .query_param(Parameter()
+ .key('line_items')
+ .value(options.get('line_items', None)))
+ .query_param(Parameter()
+ .key('discounts')
+ .value(options.get('discounts', None)))
+ .query_param(Parameter()
+ .key('taxes')
+ .value(options.get('taxes', None)))
+ .query_param(Parameter()
+ .key('credits')
+ .value(options.get('credits', None)))
+ .query_param(Parameter()
+ .key('payments')
+ .value(options.get('payments', None)))
+ .query_param(Parameter()
+ .key('custom_fields')
+ .value(options.get('custom_fields', None)))
.header_param(Parameter()
.key('accept')
.value('application/json'))
@@ -116,7 +145,7 @@ def list_subscription_group_proforma_invoices(self,
).response(
ResponseHandler()
.deserializer(APIHelper.json_deserialize)
- .deserialize_into(ProformaInvoice.from_dictionary)
+ .deserialize_into(ListProformaInvoicesResponse.from_dictionary)
.local_error_template('404', 'Not Found:\'{$response.body}\'', APIException)
).execute()
@@ -235,9 +264,9 @@ def list_proforma_invoices(self,
invoice's Due Date, in the YYYY-MM-DD format.
end_date -- str -- The ending date range for the invoice's
Due Date, in the YYYY-MM-DD format.
- status -- InvoiceStatus -- The current status of the
- invoice. Allowed Values: draft, open, paid, pending,
- voided
+ status -- ProformaInvoiceStatus -- The current status of
+ the invoice. Allowed Values: draft, open, paid,
+ pending, voided
page -- int -- Result records are organized in pages. By
default, the first page of results is displayed. The
page parameter specifies a page number of results to
@@ -412,7 +441,7 @@ def preview_proforma_invoice(self,
subscription_id (int): The Chargify id of the subscription
Returns:
- ProformaInvoicePreview: Response from the API. OK
+ ProformaInvoice: Response from the API. OK
Raises:
APIException: When an error occurs while fetching the data from
@@ -438,7 +467,7 @@ def preview_proforma_invoice(self,
).response(
ResponseHandler()
.deserializer(APIHelper.json_deserialize)
- .deserialize_into(ProformaInvoicePreview.from_dictionary)
+ .deserialize_into(ProformaInvoice.from_dictionary)
.local_error_template('404', 'Not Found:\'{$response.body}\'', APIException)
.local_error_template('422', 'HTTP Response Not OK. Status code: {$statusCode}. Response: \'{$response.body}\'.', ErrorListResponseException)
).execute()
@@ -500,7 +529,7 @@ def create_signup_proforma_invoice(self,
).execute()
def preview_signup_proforma_invoice(self,
- include_next_proforma_invoice=None,
+ include=None,
body=None):
"""Does a POST request to /subscriptions/proforma_invoices/preview.json.
@@ -519,8 +548,9 @@ def preview_signup_proforma_invoice(self,
minimum requirements.
Args:
- include_next_proforma_invoice (str, optional): Choose to include a
- proforma invoice preview for the first renewal
+ include (CreateSignupProformaPreviewInclude, optional): Choose to
+ include a proforma invoice preview for the first renewal. Use
+ in query `include=next_proforma_invoice`.
body (CreateSubscriptionRequest, optional): TODO: type description
here.
@@ -543,8 +573,8 @@ def preview_signup_proforma_invoice(self,
.key('Content-Type')
.value('application/json'))
.query_param(Parameter()
- .key('include=next_proforma_invoice')
- .value(include_next_proforma_invoice))
+ .key('include')
+ .value(include))
.body_param(Parameter()
.value(body))
.header_param(Parameter()
diff --git a/advancedbilling/controllers/subscription_components_controller.py b/advancedbilling/controllers/subscription_components_controller.py
index 6f57377..c7513fc 100644
--- a/advancedbilling/controllers/subscription_components_controller.py
+++ b/advancedbilling/controllers/subscription_components_controller.py
@@ -18,7 +18,7 @@
from apimatic_core.types.array_serialization_format import SerializationFormats
from apimatic_core.authentication.multiple.single_auth import Single
from advancedbilling.models.subscription_component_response import SubscriptionComponentResponse
-from advancedbilling.models.bulk_component_s_price_point_assignment import BulkComponentSPricePointAssignment
+from advancedbilling.models.bulk_components_price_point_assignment import BulkComponentsPricePointAssignment
from advancedbilling.models.subscription_response import SubscriptionResponse
from advancedbilling.models.allocation_response import AllocationResponse
from advancedbilling.models.allocation_preview_response import AllocationPreviewResponse
@@ -237,11 +237,11 @@ def bulk_update_subscription_components_price_points(self,
Args:
subscription_id (int): The Chargify id of the subscription
- body (BulkComponentSPricePointAssignment, optional): TODO: type
+ body (BulkComponentsPricePointAssignment, optional): TODO: type
description here.
Returns:
- BulkComponentSPricePointAssignment: Response from the API. OK
+ BulkComponentsPricePointAssignment: Response from the API. OK
Raises:
APIException: When an error occurs while fetching the data from
@@ -273,7 +273,7 @@ def bulk_update_subscription_components_price_points(self,
).response(
ResponseHandler()
.deserializer(APIHelper.json_deserialize)
- .deserialize_into(BulkComponentSPricePointAssignment.from_dictionary)
+ .deserialize_into(BulkComponentsPricePointAssignment.from_dictionary)
.local_error_template('422', 'HTTP Response Not OK. Status code: {$statusCode}. Response: \'{$response.body}\'.', ComponentPricePointErrorException)
).execute()
@@ -290,7 +290,7 @@ def bulk_reset_subscription_components_price_points(self,
subscription_id (int): The Chargify id of the subscription
Returns:
- SubscriptionResponse: Response from the API. OK
+ SubscriptionResponse: Response from the API. Created
Raises:
APIException: When an error occurs while fetching the data from
diff --git a/advancedbilling/models/__init__.py b/advancedbilling/models/__init__.py
index 6fef0be..3e5e057 100644
--- a/advancedbilling/models/__init__.py
+++ b/advancedbilling/models/__init__.py
@@ -42,7 +42,7 @@
'billing_schedule',
'billing_address',
'breakouts',
- 'bulk_component_s_price_point_assignment',
+ 'bulk_components_price_point_assignment',
'bulk_create_product_price_points_request',
'bulk_create_product_price_points_response',
'bulk_create_segments',
@@ -64,12 +64,12 @@
'component_custom_price',
'component_price',
'component_price_point',
+ 'component_price_point_assignment',
'component_price_point_item',
'component_price_point_response',
'component_price_points_response',
'component_price_point_error_item',
'component_response',
- 'component_s_price_point_assignment',
'consolidated_invoice',
'count_response',
'coupon',
@@ -310,12 +310,9 @@
'proforma_invoice',
'proforma_invoice_credit',
'proforma_invoice_discount',
- 'proforma_invoice_discount_breakout',
'proforma_invoice_issued',
'proforma_invoice_payment',
- 'proforma_invoice_preview',
'proforma_invoice_tax',
- 'proforma_invoice_tax_breakout',
'proration',
'public_key',
'public_signup_page',
@@ -476,6 +473,7 @@
'compounding_strategy',
'create_invoice_status',
'create_prepayment_method',
+ 'create_signup_proforma_preview_include',
'credit_note_status',
'credit_scheme',
'credit_type',
@@ -494,6 +492,8 @@
'interval_unit',
'invoice_consolidation_level',
'invoice_date_field',
+ 'invoice_discount_source_type',
+ 'invoice_discount_type',
'invoice_event_payment_method',
'invoice_event_type',
'invoice_payment_method_type',
@@ -516,6 +516,10 @@
'prepayment_method',
'price_point_type',
'pricing_scheme',
+ 'proforma_invoice_discount_source_type',
+ 'proforma_invoice_role',
+ 'proforma_invoice_status',
+ 'proforma_invoice_tax_source_type',
'reactivation_charge',
'recurring_scheme',
'resource_type',
diff --git a/advancedbilling/models/account_balance.py b/advancedbilling/models/account_balance.py
index 7fbeaff..dd742bf 100644
--- a/advancedbilling/models/account_balance.py
+++ b/advancedbilling/models/account_balance.py
@@ -30,13 +30,17 @@ class AccountBalance(object):
]
def __init__(self,
- balance_in_cents=APIHelper.SKIP):
+ balance_in_cents=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the AccountBalance class"""
# Initialize members of the class
if balance_in_cents is not APIHelper.SKIP:
self.balance_in_cents = balance_in_cents
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -57,5 +61,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
balance_in_cents = dictionary.get("balance_in_cents") if dictionary.get("balance_in_cents") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(balance_in_cents)
+ return cls(balance_in_cents,
+ dictionary)
diff --git a/advancedbilling/models/account_balances.py b/advancedbilling/models/account_balances.py
index e5f5c37..59161ee 100644
--- a/advancedbilling/models/account_balances.py
+++ b/advancedbilling/models/account_balances.py
@@ -47,7 +47,8 @@ def __init__(self,
open_invoices=APIHelper.SKIP,
pending_discounts=APIHelper.SKIP,
service_credits=APIHelper.SKIP,
- prepayments=APIHelper.SKIP):
+ prepayments=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the AccountBalances class"""
# Initialize members of the class
@@ -60,6 +61,9 @@ def __init__(self,
if prepayments is not APIHelper.SKIP:
self.prepayments = prepayments
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -83,8 +87,13 @@ def from_dictionary(cls,
pending_discounts = AccountBalance.from_dictionary(dictionary.get('pending_discounts')) if 'pending_discounts' in dictionary.keys() else APIHelper.SKIP
service_credits = AccountBalance.from_dictionary(dictionary.get('service_credits')) if 'service_credits' in dictionary.keys() else APIHelper.SKIP
prepayments = AccountBalance.from_dictionary(dictionary.get('prepayments')) if 'prepayments' in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(open_invoices,
pending_discounts,
service_credits,
- prepayments)
+ prepayments,
+ dictionary)
diff --git a/advancedbilling/models/ach_agreement.py b/advancedbilling/models/ach_agreement.py
index 5468ecc..ff8e410 100644
--- a/advancedbilling/models/ach_agreement.py
+++ b/advancedbilling/models/ach_agreement.py
@@ -49,7 +49,8 @@ def __init__(self,
agreement_terms=APIHelper.SKIP,
authorizer_first_name=APIHelper.SKIP,
authorizer_last_name=APIHelper.SKIP,
- ip_address=APIHelper.SKIP):
+ ip_address=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the ACHAgreement class"""
# Initialize members of the class
@@ -62,6 +63,9 @@ def __init__(self,
if ip_address is not APIHelper.SKIP:
self.ip_address = ip_address
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -85,11 +89,16 @@ def from_dictionary(cls,
authorizer_first_name = dictionary.get("authorizer_first_name") if dictionary.get("authorizer_first_name") else APIHelper.SKIP
authorizer_last_name = dictionary.get("authorizer_last_name") if dictionary.get("authorizer_last_name") else APIHelper.SKIP
ip_address = dictionary.get("ip_address") if dictionary.get("ip_address") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(agreement_terms,
authorizer_first_name,
authorizer_last_name,
- ip_address)
+ ip_address,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/activate_subscription_request.py b/advancedbilling/models/activate_subscription_request.py
index 844cf4f..2b5f0f2 100644
--- a/advancedbilling/models/activate_subscription_request.py
+++ b/advancedbilling/models/activate_subscription_request.py
@@ -39,13 +39,17 @@ class ActivateSubscriptionRequest(object):
]
def __init__(self,
- revert_on_failure=APIHelper.SKIP):
+ revert_on_failure=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the ActivateSubscriptionRequest class"""
# Initialize members of the class
if revert_on_failure is not APIHelper.SKIP:
self.revert_on_failure = revert_on_failure
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -66,5 +70,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
revert_on_failure = dictionary.get("revert_on_failure") if "revert_on_failure" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(revert_on_failure)
+ return cls(revert_on_failure,
+ dictionary)
diff --git a/advancedbilling/models/add_coupons_request.py b/advancedbilling/models/add_coupons_request.py
index 818b59b..c5d552e 100644
--- a/advancedbilling/models/add_coupons_request.py
+++ b/advancedbilling/models/add_coupons_request.py
@@ -30,13 +30,17 @@ class AddCouponsRequest(object):
]
def __init__(self,
- codes=APIHelper.SKIP):
+ codes=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the AddCouponsRequest class"""
# Initialize members of the class
if codes is not APIHelper.SKIP:
self.codes = codes
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -57,5 +61,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
codes = dictionary.get("codes") if dictionary.get("codes") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(codes)
+ return cls(codes,
+ dictionary)
diff --git a/advancedbilling/models/add_subscription_to_a_group.py b/advancedbilling/models/add_subscription_to_a_group.py
index 6b42150..ca8d37f 100644
--- a/advancedbilling/models/add_subscription_to_a_group.py
+++ b/advancedbilling/models/add_subscription_to_a_group.py
@@ -30,13 +30,17 @@ class AddSubscriptionToAGroup(object):
]
def __init__(self,
- group=APIHelper.SKIP):
+ group=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the AddSubscriptionToAGroup class"""
# Initialize members of the class
if group is not APIHelper.SKIP:
self.group = group
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -58,5 +62,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
group = APIHelper.deserialize_union_type(UnionTypeLookUp.get('AddSubscriptionToAGroupGroup'), dictionary.get('group'), False) if dictionary.get('group') is not None else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(group)
+ return cls(group,
+ dictionary)
diff --git a/advancedbilling/models/address_change.py b/advancedbilling/models/address_change.py
index a6c28d3..3e51968 100644
--- a/advancedbilling/models/address_change.py
+++ b/advancedbilling/models/address_change.py
@@ -30,13 +30,17 @@ class AddressChange(object):
def __init__(self,
before=None,
- after=None):
+ after=None,
+ additional_properties={}):
"""Constructor for the AddressChange class"""
# Initialize members of the class
self.before = before
self.after = after
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -58,9 +62,14 @@ def from_dictionary(cls,
# Extract variables from the dictionary
before = InvoiceAddress.from_dictionary(dictionary.get('before')) if dictionary.get('before') else None
after = InvoiceAddress.from_dictionary(dictionary.get('after')) if dictionary.get('after') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(before,
- after)
+ after,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/agreement_acceptance.py b/advancedbilling/models/agreement_acceptance.py
index ba11fb5..a11c859 100644
--- a/advancedbilling/models/agreement_acceptance.py
+++ b/advancedbilling/models/agreement_acceptance.py
@@ -53,7 +53,8 @@ def __init__(self,
privacy_policy_url=APIHelper.SKIP,
return_refund_policy_url=APIHelper.SKIP,
delivery_policy_url=APIHelper.SKIP,
- secure_checkout_policy_url=APIHelper.SKIP):
+ secure_checkout_policy_url=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the AgreementAcceptance class"""
# Initialize members of the class
@@ -70,6 +71,9 @@ def __init__(self,
if secure_checkout_policy_url is not APIHelper.SKIP:
self.secure_checkout_policy_url = secure_checkout_policy_url
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -95,13 +99,18 @@ def from_dictionary(cls,
return_refund_policy_url = dictionary.get("return_refund_policy_url") if dictionary.get("return_refund_policy_url") else APIHelper.SKIP
delivery_policy_url = dictionary.get("delivery_policy_url") if dictionary.get("delivery_policy_url") else APIHelper.SKIP
secure_checkout_policy_url = dictionary.get("secure_checkout_policy_url") if dictionary.get("secure_checkout_policy_url") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(ip_address,
terms_url,
privacy_policy_url,
return_refund_policy_url,
delivery_policy_url,
- secure_checkout_policy_url)
+ secure_checkout_policy_url,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/allocate_components.py b/advancedbilling/models/allocate_components.py
index 354641f..b29a35e 100644
--- a/advancedbilling/models/allocate_components.py
+++ b/advancedbilling/models/allocate_components.py
@@ -74,7 +74,8 @@ def __init__(self,
upgrade_charge=APIHelper.SKIP,
downgrade_credit=APIHelper.SKIP,
payment_collection_method=APIHelper.SKIP,
- initiate_dunning=APIHelper.SKIP):
+ initiate_dunning=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the AllocateComponents class"""
# Initialize members of the class
@@ -95,6 +96,9 @@ def __init__(self,
if initiate_dunning is not APIHelper.SKIP:
self.initiate_dunning = initiate_dunning
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -126,6 +130,10 @@ def from_dictionary(cls,
downgrade_credit = dictionary.get("downgrade_credit") if "downgrade_credit" in dictionary.keys() else APIHelper.SKIP
payment_collection_method = dictionary.get("payment_collection_method") if dictionary.get("payment_collection_method") else APIHelper.SKIP
initiate_dunning = dictionary.get("initiate_dunning") if "initiate_dunning" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(proration_upgrade_scheme,
proration_downgrade_scheme,
@@ -134,4 +142,5 @@ def from_dictionary(cls,
upgrade_charge,
downgrade_credit,
payment_collection_method,
- initiate_dunning)
+ initiate_dunning,
+ dictionary)
diff --git a/advancedbilling/models/allocation.py b/advancedbilling/models/allocation.py
index 73d39b9..6cb74ce 100644
--- a/advancedbilling/models/allocation.py
+++ b/advancedbilling/models/allocation.py
@@ -67,6 +67,9 @@ class Allocation(object):
setting if one is not provided. Available values: `full`,
`prorated`, `none`.
payment (PaymentForAllocation | None): TODO: type description here.
+ expires_at (datetime): TODO: type description here.
+ used_quantity (long|int): TODO: type description here.
+ charge_id (long|int): TODO: type description here.
"""
@@ -93,7 +96,10 @@ class Allocation(object):
"initiate_dunning": 'initiate_dunning',
"upgrade_charge": 'upgrade_charge',
"downgrade_credit": 'downgrade_credit',
- "payment": 'payment'
+ "payment": 'payment',
+ "expires_at": 'expires_at',
+ "used_quantity": 'used_quantity',
+ "charge_id": 'charge_id'
}
_optionals = [
@@ -119,6 +125,9 @@ class Allocation(object):
'upgrade_charge',
'downgrade_credit',
'payment',
+ 'expires_at',
+ 'used_quantity',
+ 'charge_id',
]
_nullables = [
@@ -151,7 +160,11 @@ def __init__(self,
initiate_dunning=APIHelper.SKIP,
upgrade_charge=APIHelper.SKIP,
downgrade_credit=APIHelper.SKIP,
- payment=APIHelper.SKIP):
+ payment=APIHelper.SKIP,
+ expires_at=APIHelper.SKIP,
+ used_quantity=APIHelper.SKIP,
+ charge_id=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the Allocation class"""
# Initialize members of the class
@@ -199,6 +212,15 @@ def __init__(self,
self.downgrade_credit = downgrade_credit
if payment is not APIHelper.SKIP:
self.payment = payment
+ if expires_at is not APIHelper.SKIP:
+ self.expires_at = APIHelper.apply_datetime_converter(expires_at, APIHelper.RFC3339DateTime) if expires_at else None
+ if used_quantity is not APIHelper.SKIP:
+ self.used_quantity = used_quantity
+ if charge_id is not APIHelper.SKIP:
+ self.charge_id = charge_id
+
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
@classmethod
def from_dictionary(cls,
@@ -245,6 +267,13 @@ def from_dictionary(cls,
payment = APIHelper.deserialize_union_type(UnionTypeLookUp.get('AllocationPayment'), dictionary.get('payment'), False) if dictionary.get('payment') is not None else None
else:
payment = APIHelper.SKIP
+ expires_at = APIHelper.RFC3339DateTime.from_value(dictionary.get("expires_at")).datetime if dictionary.get("expires_at") else APIHelper.SKIP
+ used_quantity = dictionary.get("used_quantity") if dictionary.get("used_quantity") else APIHelper.SKIP
+ charge_id = dictionary.get("charge_id") if dictionary.get("charge_id") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(allocation_id,
component_id,
@@ -267,4 +296,8 @@ def from_dictionary(cls,
initiate_dunning,
upgrade_charge,
downgrade_credit,
- payment)
+ payment,
+ expires_at,
+ used_quantity,
+ charge_id,
+ dictionary)
diff --git a/advancedbilling/models/allocation_expiration_date.py b/advancedbilling/models/allocation_expiration_date.py
index 3a9ec4f..caadb3d 100644
--- a/advancedbilling/models/allocation_expiration_date.py
+++ b/advancedbilling/models/allocation_expiration_date.py
@@ -30,13 +30,17 @@ class AllocationExpirationDate(object):
]
def __init__(self,
- expires_at=APIHelper.SKIP):
+ expires_at=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the AllocationExpirationDate class"""
# Initialize members of the class
if expires_at is not APIHelper.SKIP:
self.expires_at = APIHelper.apply_datetime_converter(expires_at, APIHelper.RFC3339DateTime) if expires_at else None
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -57,5 +61,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
expires_at = APIHelper.RFC3339DateTime.from_value(dictionary.get("expires_at")).datetime if dictionary.get("expires_at") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(expires_at)
+ return cls(expires_at,
+ dictionary)
diff --git a/advancedbilling/models/allocation_preview.py b/advancedbilling/models/allocation_preview.py
index 276a518..55847fc 100644
--- a/advancedbilling/models/allocation_preview.py
+++ b/advancedbilling/models/allocation_preview.py
@@ -83,7 +83,8 @@ def __init__(self,
accrue_charge=APIHelper.SKIP,
allocations=APIHelper.SKIP,
period_type=APIHelper.SKIP,
- existing_balance_in_cents=APIHelper.SKIP):
+ existing_balance_in_cents=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the AllocationPreview class"""
# Initialize members of the class
@@ -114,6 +115,9 @@ def __init__(self,
if existing_balance_in_cents is not APIHelper.SKIP:
self.existing_balance_in_cents = existing_balance_in_cents
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -154,6 +158,10 @@ def from_dictionary(cls,
allocations = APIHelper.SKIP
period_type = dictionary.get("period_type") if dictionary.get("period_type") else APIHelper.SKIP
existing_balance_in_cents = dictionary.get("existing_balance_in_cents") if dictionary.get("existing_balance_in_cents") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(start_date,
end_date,
@@ -167,4 +175,5 @@ def from_dictionary(cls,
accrue_charge,
allocations,
period_type,
- existing_balance_in_cents)
+ existing_balance_in_cents,
+ dictionary)
diff --git a/advancedbilling/models/allocation_preview_item.py b/advancedbilling/models/allocation_preview_item.py
index 1421e57..503d445 100644
--- a/advancedbilling/models/allocation_preview_item.py
+++ b/advancedbilling/models/allocation_preview_item.py
@@ -117,7 +117,8 @@ def __init__(self,
previous_price_point_id=APIHelper.SKIP,
price_point_handle=APIHelper.SKIP,
price_point_name=APIHelper.SKIP,
- component_handle=APIHelper.SKIP):
+ component_handle=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the AllocationPreviewItem class"""
# Initialize members of the class
@@ -158,6 +159,9 @@ def __init__(self,
if component_handle is not APIHelper.SKIP:
self.component_handle = component_handle
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -196,6 +200,10 @@ def from_dictionary(cls,
price_point_handle = dictionary.get("price_point_handle") if dictionary.get("price_point_handle") else APIHelper.SKIP
price_point_name = dictionary.get("price_point_name") if dictionary.get("price_point_name") else APIHelper.SKIP
component_handle = dictionary.get("component_handle") if "component_handle" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(component_id,
subscription_id,
@@ -214,4 +222,5 @@ def from_dictionary(cls,
previous_price_point_id,
price_point_handle,
price_point_name,
- component_handle)
+ component_handle,
+ dictionary)
diff --git a/advancedbilling/models/allocation_preview_line_item.py b/advancedbilling/models/allocation_preview_line_item.py
index a2f4630..3878109 100644
--- a/advancedbilling/models/allocation_preview_line_item.py
+++ b/advancedbilling/models/allocation_preview_line_item.py
@@ -65,7 +65,8 @@ def __init__(self,
taxable_amount_in_cents=APIHelper.SKIP,
component_id=APIHelper.SKIP,
component_handle=APIHelper.SKIP,
- direction=APIHelper.SKIP):
+ direction=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the AllocationPreviewLineItem class"""
# Initialize members of the class
@@ -88,6 +89,9 @@ def __init__(self,
if direction is not APIHelper.SKIP:
self.direction = direction
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -116,6 +120,10 @@ def from_dictionary(cls,
component_id = dictionary.get("component_id") if dictionary.get("component_id") else APIHelper.SKIP
component_handle = dictionary.get("component_handle") if dictionary.get("component_handle") else APIHelper.SKIP
direction = dictionary.get("direction") if dictionary.get("direction") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(transaction_type,
kind,
@@ -125,4 +133,5 @@ def from_dictionary(cls,
taxable_amount_in_cents,
component_id,
component_handle,
- direction)
+ direction,
+ dictionary)
diff --git a/advancedbilling/models/allocation_preview_response.py b/advancedbilling/models/allocation_preview_response.py
index 4724511..17b294a 100644
--- a/advancedbilling/models/allocation_preview_response.py
+++ b/advancedbilling/models/allocation_preview_response.py
@@ -26,12 +26,16 @@ class AllocationPreviewResponse(object):
}
def __init__(self,
- allocation_preview=None):
+ allocation_preview=None,
+ additional_properties={}):
"""Constructor for the AllocationPreviewResponse class"""
# Initialize members of the class
self.allocation_preview = allocation_preview
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
allocation_preview = AllocationPreview.from_dictionary(dictionary.get('allocation_preview')) if dictionary.get('allocation_preview') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(allocation_preview)
+ return cls(allocation_preview,
+ dictionary)
diff --git a/advancedbilling/models/allocation_response.py b/advancedbilling/models/allocation_response.py
index 5185c4e..f87cf0d 100644
--- a/advancedbilling/models/allocation_response.py
+++ b/advancedbilling/models/allocation_response.py
@@ -31,13 +31,17 @@ class AllocationResponse(object):
]
def __init__(self,
- allocation=APIHelper.SKIP):
+ allocation=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the AllocationResponse class"""
# Initialize members of the class
if allocation is not APIHelper.SKIP:
self.allocation = allocation
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -58,5 +62,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
allocation = Allocation.from_dictionary(dictionary.get('allocation')) if 'allocation' in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(allocation)
+ return cls(allocation,
+ dictionary)
diff --git a/advancedbilling/models/allocation_settings.py b/advancedbilling/models/allocation_settings.py
index 33b6ec6..bc68d1e 100644
--- a/advancedbilling/models/allocation_settings.py
+++ b/advancedbilling/models/allocation_settings.py
@@ -49,7 +49,8 @@ class AllocationSettings(object):
def __init__(self,
upgrade_charge=APIHelper.SKIP,
downgrade_credit=APIHelper.SKIP,
- accrue_charge=APIHelper.SKIP):
+ accrue_charge=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the AllocationSettings class"""
# Initialize members of the class
@@ -60,6 +61,9 @@ def __init__(self,
if accrue_charge is not APIHelper.SKIP:
self.accrue_charge = accrue_charge
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -82,7 +86,12 @@ def from_dictionary(cls,
upgrade_charge = dictionary.get("upgrade_charge") if "upgrade_charge" in dictionary.keys() else APIHelper.SKIP
downgrade_credit = dictionary.get("downgrade_credit") if "downgrade_credit" in dictionary.keys() else APIHelper.SKIP
accrue_charge = dictionary.get("accrue_charge") if dictionary.get("accrue_charge") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(upgrade_charge,
downgrade_credit,
- accrue_charge)
+ accrue_charge,
+ dictionary)
diff --git a/advancedbilling/models/applied_credit_note_data.py b/advancedbilling/models/applied_credit_note_data.py
index a9b0fda..805ca5c 100644
--- a/advancedbilling/models/applied_credit_note_data.py
+++ b/advancedbilling/models/applied_credit_note_data.py
@@ -34,7 +34,8 @@ class AppliedCreditNoteData(object):
def __init__(self,
uid=APIHelper.SKIP,
- number=APIHelper.SKIP):
+ number=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the AppliedCreditNoteData class"""
# Initialize members of the class
@@ -43,6 +44,9 @@ def __init__(self,
if number is not APIHelper.SKIP:
self.number = number
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -64,9 +68,14 @@ def from_dictionary(cls,
# Extract variables from the dictionary
uid = dictionary.get("uid") if dictionary.get("uid") else APIHelper.SKIP
number = dictionary.get("number") if dictionary.get("number") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(uid,
- number)
+ number,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/apply_credit_note_event_data.py b/advancedbilling/models/apply_credit_note_event_data.py
index cbf92a4..d40766a 100644
--- a/advancedbilling/models/apply_credit_note_event_data.py
+++ b/advancedbilling/models/apply_credit_note_event_data.py
@@ -71,7 +71,8 @@ def __init__(self,
memo=APIHelper.SKIP,
role=APIHelper.SKIP,
consolidated_invoice=APIHelper.SKIP,
- applied_credit_notes=APIHelper.SKIP):
+ applied_credit_notes=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the ApplyCreditNoteEventData class"""
# Initialize members of the class
@@ -91,6 +92,9 @@ def __init__(self,
if applied_credit_notes is not APIHelper.SKIP:
self.applied_credit_notes = applied_credit_notes
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -124,6 +128,10 @@ def from_dictionary(cls,
applied_credit_notes = [AppliedCreditNoteData.from_dictionary(x) for x in dictionary.get('applied_credit_notes')]
else:
applied_credit_notes = APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(uid,
credit_note_number,
@@ -134,7 +142,8 @@ def from_dictionary(cls,
memo,
role,
consolidated_invoice,
- applied_credit_notes)
+ applied_credit_notes,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/apply_debit_note_event_data.py b/advancedbilling/models/apply_debit_note_event_data.py
index a795229..fa29717 100644
--- a/advancedbilling/models/apply_debit_note_event_data.py
+++ b/advancedbilling/models/apply_debit_note_event_data.py
@@ -39,7 +39,8 @@ def __init__(self,
debit_note_number=None,
debit_note_uid=None,
original_amount=None,
- applied_amount=None):
+ applied_amount=None,
+ additional_properties={}):
"""Constructor for the ApplyDebitNoteEventData class"""
# Initialize members of the class
@@ -48,6 +49,9 @@ def __init__(self,
self.original_amount = original_amount
self.applied_amount = applied_amount
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -71,11 +75,16 @@ def from_dictionary(cls,
debit_note_uid = dictionary.get("debit_note_uid") if dictionary.get("debit_note_uid") else None
original_amount = dictionary.get("original_amount") if dictionary.get("original_amount") else None
applied_amount = dictionary.get("applied_amount") if dictionary.get("applied_amount") else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(debit_note_number,
debit_note_uid,
original_amount,
- applied_amount)
+ applied_amount,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/apply_payment_event_data.py b/advancedbilling/models/apply_payment_event_data.py
index fa28bc9..c5bee68 100644
--- a/advancedbilling/models/apply_payment_event_data.py
+++ b/advancedbilling/models/apply_payment_event_data.py
@@ -80,7 +80,8 @@ def __init__(self,
parent_invoice_number=APIHelper.SKIP,
remaining_prepayment_amount=APIHelper.SKIP,
prepayment=APIHelper.SKIP,
- external=APIHelper.SKIP):
+ external=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the ApplyPaymentEventData class"""
# Initialize members of the class
@@ -100,6 +101,9 @@ def __init__(self,
if external is not APIHelper.SKIP:
self.external = external
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -130,6 +134,10 @@ def from_dictionary(cls,
remaining_prepayment_amount = dictionary.get("remaining_prepayment_amount") if "remaining_prepayment_amount" in dictionary.keys() else APIHelper.SKIP
prepayment = dictionary.get("prepayment") if "prepayment" in dictionary.keys() else APIHelper.SKIP
external = dictionary.get("external") if "external" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(memo,
original_amount,
@@ -140,7 +148,8 @@ def from_dictionary(cls,
parent_invoice_number,
remaining_prepayment_amount,
prepayment,
- external)
+ external,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/attribute_error.py b/advancedbilling/models/attribute_error.py
index fff13cf..3f5a52e 100644
--- a/advancedbilling/models/attribute_error.py
+++ b/advancedbilling/models/attribute_error.py
@@ -25,12 +25,16 @@ class AttributeError(object):
}
def __init__(self,
- attribute=None):
+ attribute=None,
+ additional_properties={}):
"""Constructor for the AttributeError class"""
# Initialize members of the class
self.attribute = attribute
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -51,5 +55,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
attribute = dictionary.get("attribute") if dictionary.get("attribute") else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(attribute)
+ return cls(attribute,
+ dictionary)
diff --git a/advancedbilling/models/auto_resume.py b/advancedbilling/models/auto_resume.py
index 8a4224a..cb16eca 100644
--- a/advancedbilling/models/auto_resume.py
+++ b/advancedbilling/models/auto_resume.py
@@ -34,13 +34,17 @@ class AutoResume(object):
]
def __init__(self,
- automatically_resume_at=APIHelper.SKIP):
+ automatically_resume_at=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the AutoResume class"""
# Initialize members of the class
if automatically_resume_at is not APIHelper.SKIP:
self.automatically_resume_at = APIHelper.apply_datetime_converter(automatically_resume_at, APIHelper.RFC3339DateTime) if automatically_resume_at else None
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -64,5 +68,10 @@ def from_dictionary(cls,
automatically_resume_at = APIHelper.RFC3339DateTime.from_value(dictionary.get("automatically_resume_at")).datetime if dictionary.get("automatically_resume_at") else None
else:
automatically_resume_at = APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(automatically_resume_at)
+ return cls(automatically_resume_at,
+ dictionary)
diff --git a/advancedbilling/models/bank_account_attributes.py b/advancedbilling/models/bank_account_attributes.py
index 8ce1c1b..6d3256d 100644
--- a/advancedbilling/models/bank_account_attributes.py
+++ b/advancedbilling/models/bank_account_attributes.py
@@ -88,7 +88,8 @@ def __init__(self,
payment_type=APIHelper.SKIP,
current_vault=APIHelper.SKIP,
vault_token=APIHelper.SKIP,
- customer_vault_token=APIHelper.SKIP):
+ customer_vault_token=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the BankAccountAttributes class"""
# Initialize members of the class
@@ -117,6 +118,9 @@ def __init__(self,
if customer_vault_token is not APIHelper.SKIP:
self.customer_vault_token = customer_vault_token
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -148,6 +152,10 @@ def from_dictionary(cls,
current_vault = dictionary.get("current_vault") if dictionary.get("current_vault") else APIHelper.SKIP
vault_token = dictionary.get("vault_token") if dictionary.get("vault_token") else APIHelper.SKIP
customer_vault_token = dictionary.get("customer_vault_token") if dictionary.get("customer_vault_token") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(chargify_token,
bank_name,
@@ -160,7 +168,8 @@ def from_dictionary(cls,
payment_type,
current_vault,
vault_token,
- customer_vault_token)
+ customer_vault_token,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/bank_account_payment_profile.py b/advancedbilling/models/bank_account_payment_profile.py
index e1fd296..03652c6 100644
--- a/advancedbilling/models/bank_account_payment_profile.py
+++ b/advancedbilling/models/bank_account_payment_profile.py
@@ -118,6 +118,7 @@ class BankAccountPaymentProfile(object):
'billing_country',
'customer_vault_token',
'billing_address_2',
+ 'site_gateway_setting_id',
'gateway_handle',
]
@@ -143,7 +144,8 @@ def __init__(self,
payment_type=APIHelper.SKIP,
verified=False,
site_gateway_setting_id=APIHelper.SKIP,
- gateway_handle=APIHelper.SKIP):
+ gateway_handle=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the BankAccountPaymentProfile class"""
# Initialize members of the class
@@ -189,6 +191,9 @@ def __init__(self,
if gateway_handle is not APIHelper.SKIP:
self.gateway_handle = gateway_handle
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -228,8 +233,12 @@ def from_dictionary(cls,
bank_account_holder_type = dictionary.get("bank_account_holder_type") if dictionary.get("bank_account_holder_type") else APIHelper.SKIP
payment_type = dictionary.get("payment_type") if dictionary.get("payment_type") else APIHelper.SKIP
verified = dictionary.get("verified") if dictionary.get("verified") else False
- site_gateway_setting_id = dictionary.get("site_gateway_setting_id") if dictionary.get("site_gateway_setting_id") else APIHelper.SKIP
+ site_gateway_setting_id = dictionary.get("site_gateway_setting_id") if "site_gateway_setting_id" in dictionary.keys() else APIHelper.SKIP
gateway_handle = dictionary.get("gateway_handle") if "gateway_handle" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(masked_bank_routing_number,
masked_bank_account_number,
@@ -252,7 +261,8 @@ def from_dictionary(cls,
payment_type,
verified,
site_gateway_setting_id,
- gateway_handle)
+ gateway_handle,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/bank_account_response.py b/advancedbilling/models/bank_account_response.py
index 0e5c469..7720521 100644
--- a/advancedbilling/models/bank_account_response.py
+++ b/advancedbilling/models/bank_account_response.py
@@ -27,12 +27,16 @@ class BankAccountResponse(object):
}
def __init__(self,
- payment_profile=None):
+ payment_profile=None,
+ additional_properties={}):
"""Constructor for the BankAccountResponse class"""
# Initialize members of the class
self.payment_profile = payment_profile
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -53,5 +57,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
payment_profile = BankAccountPaymentProfile.from_dictionary(dictionary.get('payment_profile')) if dictionary.get('payment_profile') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(payment_profile)
+ return cls(payment_profile,
+ dictionary)
diff --git a/advancedbilling/models/bank_account_verification.py b/advancedbilling/models/bank_account_verification.py
index 1b049d6..3dec3fc 100644
--- a/advancedbilling/models/bank_account_verification.py
+++ b/advancedbilling/models/bank_account_verification.py
@@ -34,7 +34,8 @@ class BankAccountVerification(object):
def __init__(self,
deposit_1_in_cents=APIHelper.SKIP,
- deposit_2_in_cents=APIHelper.SKIP):
+ deposit_2_in_cents=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the BankAccountVerification class"""
# Initialize members of the class
@@ -43,6 +44,9 @@ def __init__(self,
if deposit_2_in_cents is not APIHelper.SKIP:
self.deposit_2_in_cents = deposit_2_in_cents
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -64,6 +68,11 @@ def from_dictionary(cls,
# Extract variables from the dictionary
deposit_1_in_cents = dictionary.get("deposit_1_in_cents") if dictionary.get("deposit_1_in_cents") else APIHelper.SKIP
deposit_2_in_cents = dictionary.get("deposit_2_in_cents") if dictionary.get("deposit_2_in_cents") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(deposit_1_in_cents,
- deposit_2_in_cents)
+ deposit_2_in_cents,
+ dictionary)
diff --git a/advancedbilling/models/bank_account_verification_request.py b/advancedbilling/models/bank_account_verification_request.py
index f64e560..36d9d72 100644
--- a/advancedbilling/models/bank_account_verification_request.py
+++ b/advancedbilling/models/bank_account_verification_request.py
@@ -27,12 +27,16 @@ class BankAccountVerificationRequest(object):
}
def __init__(self,
- bank_account_verification=None):
+ bank_account_verification=None,
+ additional_properties={}):
"""Constructor for the BankAccountVerificationRequest class"""
# Initialize members of the class
self.bank_account_verification = bank_account_verification
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -53,5 +57,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
bank_account_verification = BankAccountVerification.from_dictionary(dictionary.get('bank_account_verification')) if dictionary.get('bank_account_verification') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(bank_account_verification)
+ return cls(bank_account_verification,
+ dictionary)
diff --git a/advancedbilling/models/base_refund_error.py b/advancedbilling/models/base_refund_error.py
index f115dd3..d5df049 100644
--- a/advancedbilling/models/base_refund_error.py
+++ b/advancedbilling/models/base_refund_error.py
@@ -30,13 +30,17 @@ class BaseRefundError(object):
]
def __init__(self,
- base=APIHelper.SKIP):
+ base=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the BaseRefundError class"""
# Initialize members of the class
if base is not APIHelper.SKIP:
self.base = base
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -57,5 +61,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
base = dictionary.get("base") if dictionary.get("base") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(base)
+ return cls(base,
+ dictionary)
diff --git a/advancedbilling/models/base_string_error.py b/advancedbilling/models/base_string_error.py
index 9f1056f..e1bc00c 100644
--- a/advancedbilling/models/base_string_error.py
+++ b/advancedbilling/models/base_string_error.py
@@ -31,13 +31,17 @@ class BaseStringError(object):
]
def __init__(self,
- base=APIHelper.SKIP):
+ base=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the BaseStringError class"""
# Initialize members of the class
if base is not APIHelper.SKIP:
self.base = base
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -58,5 +62,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
base = dictionary.get("base") if dictionary.get("base") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(base)
+ return cls(base,
+ dictionary)
diff --git a/advancedbilling/models/batch_job.py b/advancedbilling/models/batch_job.py
index 3fc405c..8cf525d 100644
--- a/advancedbilling/models/batch_job.py
+++ b/advancedbilling/models/batch_job.py
@@ -52,7 +52,8 @@ def __init__(self,
finished_at=APIHelper.SKIP,
row_count=APIHelper.SKIP,
created_at=APIHelper.SKIP,
- completed=APIHelper.SKIP):
+ completed=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the BatchJob class"""
# Initialize members of the class
@@ -67,6 +68,9 @@ def __init__(self,
if completed is not APIHelper.SKIP:
self.completed = completed
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -97,9 +101,14 @@ def from_dictionary(cls,
else:
created_at = APIHelper.SKIP
completed = dictionary.get("completed") if dictionary.get("completed") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(id,
finished_at,
row_count,
created_at,
- completed)
+ completed,
+ dictionary)
diff --git a/advancedbilling/models/batch_job_response.py b/advancedbilling/models/batch_job_response.py
index f064dd6..daf0cb5 100644
--- a/advancedbilling/models/batch_job_response.py
+++ b/advancedbilling/models/batch_job_response.py
@@ -26,12 +26,16 @@ class BatchJobResponse(object):
}
def __init__(self,
- batchjob=None):
+ batchjob=None,
+ additional_properties={}):
"""Constructor for the BatchJobResponse class"""
# Initialize members of the class
self.batchjob = batchjob
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
batchjob = BatchJob.from_dictionary(dictionary.get('batchjob')) if dictionary.get('batchjob') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(batchjob)
+ return cls(batchjob,
+ dictionary)
diff --git a/advancedbilling/models/billing_address.py b/advancedbilling/models/billing_address.py
index 26ec2ab..c3b21e3 100644
--- a/advancedbilling/models/billing_address.py
+++ b/advancedbilling/models/billing_address.py
@@ -59,7 +59,8 @@ def __init__(self,
city=APIHelper.SKIP,
state=APIHelper.SKIP,
zip=APIHelper.SKIP,
- country=APIHelper.SKIP):
+ country=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the BillingAddress class"""
# Initialize members of the class
@@ -76,6 +77,9 @@ def __init__(self,
if country is not APIHelper.SKIP:
self.country = country
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -101,13 +105,18 @@ def from_dictionary(cls,
state = dictionary.get("state") if "state" in dictionary.keys() else APIHelper.SKIP
zip = dictionary.get("zip") if "zip" in dictionary.keys() else APIHelper.SKIP
country = dictionary.get("country") if "country" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(street,
line_2,
city,
state,
zip,
- country)
+ country,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/billing_manifest.py b/advancedbilling/models/billing_manifest.py
index 3e14b3b..76d1f22 100644
--- a/advancedbilling/models/billing_manifest.py
+++ b/advancedbilling/models/billing_manifest.py
@@ -63,7 +63,8 @@ def __init__(self,
start_date=APIHelper.SKIP,
end_date=APIHelper.SKIP,
period_type=APIHelper.SKIP,
- existing_balance_in_cents=APIHelper.SKIP):
+ existing_balance_in_cents=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the BillingManifest class"""
# Initialize members of the class
@@ -86,6 +87,9 @@ def __init__(self,
if existing_balance_in_cents is not APIHelper.SKIP:
self.existing_balance_in_cents = existing_balance_in_cents
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -118,6 +122,10 @@ def from_dictionary(cls,
end_date = APIHelper.RFC3339DateTime.from_value(dictionary.get("end_date")).datetime if dictionary.get("end_date") else APIHelper.SKIP
period_type = dictionary.get("period_type") if dictionary.get("period_type") else APIHelper.SKIP
existing_balance_in_cents = dictionary.get("existing_balance_in_cents") if dictionary.get("existing_balance_in_cents") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(line_items,
total_in_cents,
@@ -127,4 +135,5 @@ def from_dictionary(cls,
start_date,
end_date,
period_type,
- existing_balance_in_cents)
+ existing_balance_in_cents,
+ dictionary)
diff --git a/advancedbilling/models/billing_manifest_item.py b/advancedbilling/models/billing_manifest_item.py
index 4e89b5e..0332398 100644
--- a/advancedbilling/models/billing_manifest_item.py
+++ b/advancedbilling/models/billing_manifest_item.py
@@ -84,7 +84,8 @@ def __init__(self,
product_handle=APIHelper.SKIP,
product_name=APIHelper.SKIP,
period_range_start=APIHelper.SKIP,
- period_range_end=APIHelper.SKIP):
+ period_range_end=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the BillingManifestItem class"""
# Initialize members of the class
@@ -117,6 +118,9 @@ def __init__(self,
if period_range_end is not APIHelper.SKIP:
self.period_range_end = period_range_end
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -150,6 +154,10 @@ def from_dictionary(cls,
product_name = dictionary.get("product_name") if dictionary.get("product_name") else APIHelper.SKIP
period_range_start = dictionary.get("period_range_start") if dictionary.get("period_range_start") else APIHelper.SKIP
period_range_end = dictionary.get("period_range_end") if dictionary.get("period_range_end") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(transaction_type,
kind,
@@ -164,4 +172,5 @@ def from_dictionary(cls,
product_handle,
product_name,
period_range_start,
- period_range_end)
+ period_range_end,
+ dictionary)
diff --git a/advancedbilling/models/billing_schedule.py b/advancedbilling/models/billing_schedule.py
index b7a0727..c990a48 100644
--- a/advancedbilling/models/billing_schedule.py
+++ b/advancedbilling/models/billing_schedule.py
@@ -38,13 +38,17 @@ class BillingSchedule(object):
]
def __init__(self,
- initial_billing_at=APIHelper.SKIP):
+ initial_billing_at=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the BillingSchedule class"""
# Initialize members of the class
if initial_billing_at is not APIHelper.SKIP:
self.initial_billing_at = initial_billing_at
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -65,8 +69,13 @@ def from_dictionary(cls,
# Extract variables from the dictionary
initial_billing_at = dateutil.parser.parse(dictionary.get('initial_billing_at')).date() if dictionary.get('initial_billing_at') else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(initial_billing_at)
+ return cls(initial_billing_at,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/breakouts.py b/advancedbilling/models/breakouts.py
index 0f8c0f2..996b23d 100644
--- a/advancedbilling/models/breakouts.py
+++ b/advancedbilling/models/breakouts.py
@@ -42,7 +42,8 @@ def __init__(self,
plan_amount_in_cents=APIHelper.SKIP,
plan_amount_formatted=APIHelper.SKIP,
usage_amount_in_cents=APIHelper.SKIP,
- usage_amount_formatted=APIHelper.SKIP):
+ usage_amount_formatted=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the Breakouts class"""
# Initialize members of the class
@@ -55,6 +56,9 @@ def __init__(self,
if usage_amount_formatted is not APIHelper.SKIP:
self.usage_amount_formatted = usage_amount_formatted
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -78,8 +82,13 @@ def from_dictionary(cls,
plan_amount_formatted = dictionary.get("plan_amount_formatted") if dictionary.get("plan_amount_formatted") else APIHelper.SKIP
usage_amount_in_cents = dictionary.get("usage_amount_in_cents") if dictionary.get("usage_amount_in_cents") else APIHelper.SKIP
usage_amount_formatted = dictionary.get("usage_amount_formatted") if dictionary.get("usage_amount_formatted") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(plan_amount_in_cents,
plan_amount_formatted,
usage_amount_in_cents,
- usage_amount_formatted)
+ usage_amount_formatted,
+ dictionary)
diff --git a/advancedbilling/models/bulk_component_s_price_point_assignment.py b/advancedbilling/models/bulk_components_price_point_assignment.py
similarity index 60%
rename from advancedbilling/models/bulk_component_s_price_point_assignment.py
rename to advancedbilling/models/bulk_components_price_point_assignment.py
index 74ef22c..bc95ce7 100644
--- a/advancedbilling/models/bulk_component_s_price_point_assignment.py
+++ b/advancedbilling/models/bulk_components_price_point_assignment.py
@@ -7,17 +7,17 @@
https://www.apimatic.io ).
"""
from advancedbilling.api_helper import APIHelper
-from advancedbilling.models.component_s_price_point_assignment import ComponentSPricePointAssignment
+from advancedbilling.models.component_price_point_assignment import ComponentPricePointAssignment
-class BulkComponentSPricePointAssignment(object):
+class BulkComponentsPricePointAssignment(object):
- """Implementation of the 'Bulk Component's Price Point Assignment' model.
+ """Implementation of the 'Bulk Components Price Point Assignment' model.
TODO: type model description here.
Attributes:
- components (List[ComponentSPricePointAssignment]): TODO: type
+ components (List[ComponentPricePointAssignment]): TODO: type
description here.
"""
@@ -32,13 +32,17 @@ class BulkComponentSPricePointAssignment(object):
]
def __init__(self,
- components=APIHelper.SKIP):
- """Constructor for the BulkComponentSPricePointAssignment class"""
+ components=APIHelper.SKIP,
+ additional_properties={}):
+ """Constructor for the BulkComponentsPricePointAssignment class"""
# Initialize members of the class
if components is not APIHelper.SKIP:
self.components = components
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -60,8 +64,13 @@ def from_dictionary(cls,
# Extract variables from the dictionary
components = None
if dictionary.get('components') is not None:
- components = [ComponentSPricePointAssignment.from_dictionary(x) for x in dictionary.get('components')]
+ components = [ComponentPricePointAssignment.from_dictionary(x) for x in dictionary.get('components')]
else:
components = APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(components)
+ return cls(components,
+ dictionary)
diff --git a/advancedbilling/models/bulk_create_product_price_points_request.py b/advancedbilling/models/bulk_create_product_price_points_request.py
index fd48080..9846290 100644
--- a/advancedbilling/models/bulk_create_product_price_points_request.py
+++ b/advancedbilling/models/bulk_create_product_price_points_request.py
@@ -27,12 +27,16 @@ class BulkCreateProductPricePointsRequest(object):
}
def __init__(self,
- price_points=None):
+ price_points=None,
+ additional_properties={}):
"""Constructor for the BulkCreateProductPricePointsRequest class"""
# Initialize members of the class
self.price_points = price_points
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -55,5 +59,10 @@ def from_dictionary(cls,
price_points = None
if dictionary.get('price_points') is not None:
price_points = [CreateProductPricePoint.from_dictionary(x) for x in dictionary.get('price_points')]
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(price_points)
+ return cls(price_points,
+ dictionary)
diff --git a/advancedbilling/models/bulk_create_product_price_points_response.py b/advancedbilling/models/bulk_create_product_price_points_response.py
index 2881ab9..96775a6 100644
--- a/advancedbilling/models/bulk_create_product_price_points_response.py
+++ b/advancedbilling/models/bulk_create_product_price_points_response.py
@@ -31,13 +31,17 @@ class BulkCreateProductPricePointsResponse(object):
]
def __init__(self,
- price_points=APIHelper.SKIP):
+ price_points=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the BulkCreateProductPricePointsResponse class"""
# Initialize members of the class
if price_points is not APIHelper.SKIP:
self.price_points = price_points
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -62,5 +66,10 @@ def from_dictionary(cls,
price_points = [ProductPricePoint.from_dictionary(x) for x in dictionary.get('price_points')]
else:
price_points = APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(price_points)
+ return cls(price_points,
+ dictionary)
diff --git a/advancedbilling/models/bulk_create_segments.py b/advancedbilling/models/bulk_create_segments.py
index 2bc6a95..29bf243 100644
--- a/advancedbilling/models/bulk_create_segments.py
+++ b/advancedbilling/models/bulk_create_segments.py
@@ -31,13 +31,17 @@ class BulkCreateSegments(object):
]
def __init__(self,
- segments=APIHelper.SKIP):
+ segments=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the BulkCreateSegments class"""
# Initialize members of the class
if segments is not APIHelper.SKIP:
self.segments = segments
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -62,5 +66,10 @@ def from_dictionary(cls,
segments = [CreateSegment.from_dictionary(x) for x in dictionary.get('segments')]
else:
segments = APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(segments)
+ return cls(segments,
+ dictionary)
diff --git a/advancedbilling/models/bulk_update_segments.py b/advancedbilling/models/bulk_update_segments.py
index 34bd1d2..1ae9d41 100644
--- a/advancedbilling/models/bulk_update_segments.py
+++ b/advancedbilling/models/bulk_update_segments.py
@@ -31,13 +31,17 @@ class BulkUpdateSegments(object):
]
def __init__(self,
- segments=APIHelper.SKIP):
+ segments=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the BulkUpdateSegments class"""
# Initialize members of the class
if segments is not APIHelper.SKIP:
self.segments = segments
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -62,5 +66,10 @@ def from_dictionary(cls,
segments = [BulkUpdateSegmentsItem.from_dictionary(x) for x in dictionary.get('segments')]
else:
segments = APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(segments)
+ return cls(segments,
+ dictionary)
diff --git a/advancedbilling/models/bulk_update_segments_item.py b/advancedbilling/models/bulk_update_segments_item.py
index 1357302..ae62dd6 100644
--- a/advancedbilling/models/bulk_update_segments_item.py
+++ b/advancedbilling/models/bulk_update_segments_item.py
@@ -36,7 +36,8 @@ class BulkUpdateSegmentsItem(object):
def __init__(self,
id=None,
pricing_scheme=None,
- prices=None):
+ prices=None,
+ additional_properties={}):
"""Constructor for the BulkUpdateSegmentsItem class"""
# Initialize members of the class
@@ -44,6 +45,9 @@ def __init__(self,
self.pricing_scheme = pricing_scheme
self.prices = prices
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -68,7 +72,12 @@ def from_dictionary(cls,
prices = None
if dictionary.get('prices') is not None:
prices = [CreateOrUpdateSegmentPrice.from_dictionary(x) for x in dictionary.get('prices')]
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(id,
pricing_scheme,
- prices)
+ prices,
+ dictionary)
diff --git a/advancedbilling/models/calendar_billing.py b/advancedbilling/models/calendar_billing.py
index 632286e..3e863b2 100644
--- a/advancedbilling/models/calendar_billing.py
+++ b/advancedbilling/models/calendar_billing.py
@@ -36,7 +36,8 @@ class CalendarBilling(object):
def __init__(self,
snap_day=APIHelper.SKIP,
- calendar_billing_first_charge=APIHelper.SKIP):
+ calendar_billing_first_charge=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the CalendarBilling class"""
# Initialize members of the class
@@ -45,6 +46,9 @@ def __init__(self,
if calendar_billing_first_charge is not APIHelper.SKIP:
self.calendar_billing_first_charge = calendar_billing_first_charge
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -67,9 +71,14 @@ def from_dictionary(cls,
# Extract variables from the dictionary
snap_day = APIHelper.deserialize_union_type(UnionTypeLookUp.get('CalendarBillingSnapDay'), dictionary.get('snap_day'), False) if dictionary.get('snap_day') is not None else APIHelper.SKIP
calendar_billing_first_charge = dictionary.get("calendar_billing_first_charge") if dictionary.get("calendar_billing_first_charge") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(snap_day,
- calendar_billing_first_charge)
+ calendar_billing_first_charge,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/cancel_grouped_subscriptions_request.py b/advancedbilling/models/cancel_grouped_subscriptions_request.py
index bc48182..edbed73 100644
--- a/advancedbilling/models/cancel_grouped_subscriptions_request.py
+++ b/advancedbilling/models/cancel_grouped_subscriptions_request.py
@@ -30,13 +30,17 @@ class CancelGroupedSubscriptionsRequest(object):
]
def __init__(self,
- charge_unbilled_usage=APIHelper.SKIP):
+ charge_unbilled_usage=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the CancelGroupedSubscriptionsRequest class"""
# Initialize members of the class
if charge_unbilled_usage is not APIHelper.SKIP:
self.charge_unbilled_usage = charge_unbilled_usage
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -57,5 +61,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
charge_unbilled_usage = dictionary.get("charge_unbilled_usage") if "charge_unbilled_usage" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(charge_unbilled_usage)
+ return cls(charge_unbilled_usage,
+ dictionary)
diff --git a/advancedbilling/models/cancellation_options.py b/advancedbilling/models/cancellation_options.py
index d521089..7ed5f4a 100644
--- a/advancedbilling/models/cancellation_options.py
+++ b/advancedbilling/models/cancellation_options.py
@@ -36,7 +36,8 @@ class CancellationOptions(object):
def __init__(self,
cancellation_message=APIHelper.SKIP,
- reason_code=APIHelper.SKIP):
+ reason_code=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the CancellationOptions class"""
# Initialize members of the class
@@ -45,6 +46,9 @@ def __init__(self,
if reason_code is not APIHelper.SKIP:
self.reason_code = reason_code
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -66,6 +70,11 @@ def from_dictionary(cls,
# Extract variables from the dictionary
cancellation_message = dictionary.get("cancellation_message") if dictionary.get("cancellation_message") else APIHelper.SKIP
reason_code = dictionary.get("reason_code") if dictionary.get("reason_code") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(cancellation_message,
- reason_code)
+ reason_code,
+ dictionary)
diff --git a/advancedbilling/models/cancellation_request.py b/advancedbilling/models/cancellation_request.py
index 1e26b94..061acd7 100644
--- a/advancedbilling/models/cancellation_request.py
+++ b/advancedbilling/models/cancellation_request.py
@@ -26,12 +26,16 @@ class CancellationRequest(object):
}
def __init__(self,
- subscription=None):
+ subscription=None,
+ additional_properties={}):
"""Constructor for the CancellationRequest class"""
# Initialize members of the class
self.subscription = subscription
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
subscription = CancellationOptions.from_dictionary(dictionary.get('subscription')) if dictionary.get('subscription') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(subscription)
+ return cls(subscription,
+ dictionary)
diff --git a/advancedbilling/models/change_invoice_collection_method_event_data.py b/advancedbilling/models/change_invoice_collection_method_event_data.py
index 56729c8..6e27967 100644
--- a/advancedbilling/models/change_invoice_collection_method_event_data.py
+++ b/advancedbilling/models/change_invoice_collection_method_event_data.py
@@ -30,13 +30,17 @@ class ChangeInvoiceCollectionMethodEventData(object):
def __init__(self,
from_collection_method=None,
- to_collection_method=None):
+ to_collection_method=None,
+ additional_properties={}):
"""Constructor for the ChangeInvoiceCollectionMethodEventData class"""
# Initialize members of the class
self.from_collection_method = from_collection_method
self.to_collection_method = to_collection_method
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -58,9 +62,14 @@ def from_dictionary(cls,
# Extract variables from the dictionary
from_collection_method = dictionary.get("from_collection_method") if dictionary.get("from_collection_method") else None
to_collection_method = dictionary.get("to_collection_method") if dictionary.get("to_collection_method") else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(from_collection_method,
- to_collection_method)
+ to_collection_method,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/chargify_ebb.py b/advancedbilling/models/chargify_ebb.py
index 424ced3..bcf7419 100644
--- a/advancedbilling/models/chargify_ebb.py
+++ b/advancedbilling/models/chargify_ebb.py
@@ -67,7 +67,8 @@ def __init__(self,
created_at=APIHelper.SKIP,
uniqueness_token=APIHelper.SKIP,
subscription_id=APIHelper.SKIP,
- subscription_reference=APIHelper.SKIP):
+ subscription_reference=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the ChargifyEBB class"""
# Initialize members of the class
@@ -84,6 +85,9 @@ def __init__(self,
if subscription_reference is not APIHelper.SKIP:
self.subscription_reference = subscription_reference
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -109,10 +113,15 @@ def from_dictionary(cls,
uniqueness_token = dictionary.get("uniqueness_token") if dictionary.get("uniqueness_token") else APIHelper.SKIP
subscription_id = dictionary.get("subscription_id") if dictionary.get("subscription_id") else APIHelper.SKIP
subscription_reference = dictionary.get("subscription_reference") if dictionary.get("subscription_reference") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(timestamp,
id,
created_at,
uniqueness_token,
subscription_id,
- subscription_reference)
+ subscription_reference,
+ dictionary)
diff --git a/advancedbilling/models/component.py b/advancedbilling/models/component.py
index 7ae593f..3657b09 100644
--- a/advancedbilling/models/component.py
+++ b/advancedbilling/models/component.py
@@ -220,7 +220,8 @@ def __init__(self,
accounting_code=APIHelper.SKIP,
event_based_billing_metric_id=APIHelper.SKIP,
interval=APIHelper.SKIP,
- interval_unit=APIHelper.SKIP):
+ interval_unit=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the Component class"""
# Initialize members of the class
@@ -293,6 +294,9 @@ def __init__(self,
if interval_unit is not APIHelper.SKIP:
self.interval_unit = interval_unit
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -359,6 +363,10 @@ def from_dictionary(cls,
event_based_billing_metric_id = dictionary.get("event_based_billing_metric_id") if dictionary.get("event_based_billing_metric_id") else APIHelper.SKIP
interval = dictionary.get("interval") if dictionary.get("interval") else APIHelper.SKIP
interval_unit = dictionary.get("interval_unit") if dictionary.get("interval_unit") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(id,
name,
@@ -393,4 +401,5 @@ def from_dictionary(cls,
accounting_code,
event_based_billing_metric_id,
interval,
- interval_unit)
+ interval_unit,
+ dictionary)
diff --git a/advancedbilling/models/component_allocation_change.py b/advancedbilling/models/component_allocation_change.py
index e52b452..56968d9 100644
--- a/advancedbilling/models/component_allocation_change.py
+++ b/advancedbilling/models/component_allocation_change.py
@@ -48,7 +48,8 @@ def __init__(self,
component_handle=None,
memo=None,
allocation_id=None,
- allocated_quantity=APIHelper.SKIP):
+ allocated_quantity=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the ComponentAllocationChange class"""
# Initialize members of the class
@@ -61,6 +62,9 @@ def __init__(self,
if allocated_quantity is not APIHelper.SKIP:
self.allocated_quantity = allocated_quantity
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -88,6 +92,10 @@ def from_dictionary(cls,
memo = dictionary.get("memo") if dictionary.get("memo") else None
allocation_id = dictionary.get("allocation_id") if dictionary.get("allocation_id") else None
allocated_quantity = APIHelper.deserialize_union_type(UnionTypeLookUp.get('ComponentAllocationChangeAllocatedQuantity'), dictionary.get('allocated_quantity'), False) if dictionary.get('allocated_quantity') is not None else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(previous_allocation,
new_allocation,
@@ -95,7 +103,8 @@ def from_dictionary(cls,
component_handle,
memo,
allocation_id,
- allocated_quantity)
+ allocated_quantity,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/component_allocation_error_item.py b/advancedbilling/models/component_allocation_error_item.py
index 6d4c7ee..1fdb2df 100644
--- a/advancedbilling/models/component_allocation_error_item.py
+++ b/advancedbilling/models/component_allocation_error_item.py
@@ -42,7 +42,8 @@ def __init__(self,
component_id=APIHelper.SKIP,
message=APIHelper.SKIP,
kind=APIHelper.SKIP,
- on=APIHelper.SKIP):
+ on=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the ComponentAllocationErrorItem class"""
# Initialize members of the class
@@ -55,6 +56,9 @@ def __init__(self,
if on is not APIHelper.SKIP:
self.on = on
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -78,8 +82,13 @@ def from_dictionary(cls,
message = dictionary.get("message") if dictionary.get("message") else APIHelper.SKIP
kind = dictionary.get("kind") if dictionary.get("kind") else APIHelper.SKIP
on = dictionary.get("on") if dictionary.get("on") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(component_id,
message,
kind,
- on)
+ on,
+ dictionary)
diff --git a/advancedbilling/models/component_cost_data.py b/advancedbilling/models/component_cost_data.py
index 4e3ddec..704cbdc 100644
--- a/advancedbilling/models/component_cost_data.py
+++ b/advancedbilling/models/component_cost_data.py
@@ -62,7 +62,8 @@ def __init__(self,
quantity=APIHelper.SKIP,
amount=APIHelper.SKIP,
pricing_scheme=APIHelper.SKIP,
- tiers=APIHelper.SKIP):
+ tiers=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the ComponentCostData class"""
# Initialize members of the class
@@ -81,6 +82,9 @@ def __init__(self,
if tiers is not APIHelper.SKIP:
self.tiers = tiers
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -111,6 +115,10 @@ def from_dictionary(cls,
tiers = [ComponentCostDataRateTier.from_dictionary(x) for x in dictionary.get('tiers')]
else:
tiers = APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(component_code_id,
price_point_id,
@@ -118,7 +126,8 @@ def from_dictionary(cls,
quantity,
amount,
pricing_scheme,
- tiers)
+ tiers,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/component_cost_data_rate_tier.py b/advancedbilling/models/component_cost_data_rate_tier.py
index 96c30ea..c2e3c4e 100644
--- a/advancedbilling/models/component_cost_data_rate_tier.py
+++ b/advancedbilling/models/component_cost_data_rate_tier.py
@@ -50,7 +50,8 @@ def __init__(self,
ending_quantity=APIHelper.SKIP,
quantity=APIHelper.SKIP,
unit_price=APIHelper.SKIP,
- amount=APIHelper.SKIP):
+ amount=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the ComponentCostDataRateTier class"""
# Initialize members of the class
@@ -65,6 +66,9 @@ def __init__(self,
if amount is not APIHelper.SKIP:
self.amount = amount
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -89,12 +93,17 @@ def from_dictionary(cls,
quantity = dictionary.get("quantity") if dictionary.get("quantity") else APIHelper.SKIP
unit_price = dictionary.get("unit_price") if dictionary.get("unit_price") else APIHelper.SKIP
amount = dictionary.get("amount") if dictionary.get("amount") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(starting_quantity,
ending_quantity,
quantity,
unit_price,
- amount)
+ amount,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/component_currency_price.py b/advancedbilling/models/component_currency_price.py
index 4bd0935..49a3025 100644
--- a/advancedbilling/models/component_currency_price.py
+++ b/advancedbilling/models/component_currency_price.py
@@ -50,7 +50,8 @@ def __init__(self,
price=APIHelper.SKIP,
formatted_price=APIHelper.SKIP,
price_id=APIHelper.SKIP,
- price_point_id=APIHelper.SKIP):
+ price_point_id=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the ComponentCurrencyPrice class"""
# Initialize members of the class
@@ -67,6 +68,9 @@ def __init__(self,
if price_point_id is not APIHelper.SKIP:
self.price_point_id = price_point_id
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -92,13 +96,18 @@ def from_dictionary(cls,
formatted_price = dictionary.get("formatted_price") if dictionary.get("formatted_price") else APIHelper.SKIP
price_id = dictionary.get("price_id") if dictionary.get("price_id") else APIHelper.SKIP
price_point_id = dictionary.get("price_point_id") if dictionary.get("price_point_id") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(id,
currency,
price,
formatted_price,
price_id,
- price_point_id)
+ price_point_id,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/component_currency_prices_response.py b/advancedbilling/models/component_currency_prices_response.py
index f6bb4d7..2cc501f 100644
--- a/advancedbilling/models/component_currency_prices_response.py
+++ b/advancedbilling/models/component_currency_prices_response.py
@@ -27,12 +27,16 @@ class ComponentCurrencyPricesResponse(object):
}
def __init__(self,
- currency_prices=None):
+ currency_prices=None,
+ additional_properties={}):
"""Constructor for the ComponentCurrencyPricesResponse class"""
# Initialize members of the class
self.currency_prices = currency_prices
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -55,5 +59,10 @@ def from_dictionary(cls,
currency_prices = None
if dictionary.get('currency_prices') is not None:
currency_prices = [ComponentCurrencyPrice.from_dictionary(x) for x in dictionary.get('currency_prices')]
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(currency_prices)
+ return cls(currency_prices,
+ dictionary)
diff --git a/advancedbilling/models/component_custom_price.py b/advancedbilling/models/component_custom_price.py
index ab0b7f1..17a3b9e 100644
--- a/advancedbilling/models/component_custom_price.py
+++ b/advancedbilling/models/component_custom_price.py
@@ -50,7 +50,8 @@ def __init__(self,
pricing_scheme=APIHelper.SKIP,
interval=APIHelper.SKIP,
interval_unit=APIHelper.SKIP,
- prices=APIHelper.SKIP):
+ prices=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the ComponentCustomPrice class"""
# Initialize members of the class
@@ -63,6 +64,9 @@ def __init__(self,
if prices is not APIHelper.SKIP:
self.prices = prices
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -90,11 +94,16 @@ def from_dictionary(cls,
prices = [Price.from_dictionary(x) for x in dictionary.get('prices')]
else:
prices = APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(pricing_scheme,
interval,
interval_unit,
- prices)
+ prices,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/component_price.py b/advancedbilling/models/component_price.py
index 917bc8c..64b0cd6 100644
--- a/advancedbilling/models/component_price.py
+++ b/advancedbilling/models/component_price.py
@@ -63,7 +63,8 @@ def __init__(self,
unit_price=APIHelper.SKIP,
price_point_id=APIHelper.SKIP,
formatted_unit_price=APIHelper.SKIP,
- segment_id=APIHelper.SKIP):
+ segment_id=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the ComponentPrice class"""
# Initialize members of the class
@@ -84,6 +85,9 @@ def __init__(self,
if segment_id is not APIHelper.SKIP:
self.segment_id = segment_id
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -111,6 +115,10 @@ def from_dictionary(cls,
price_point_id = dictionary.get("price_point_id") if dictionary.get("price_point_id") else APIHelper.SKIP
formatted_unit_price = dictionary.get("formatted_unit_price") if dictionary.get("formatted_unit_price") else APIHelper.SKIP
segment_id = dictionary.get("segment_id") if "segment_id" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(id,
component_id,
@@ -119,7 +127,8 @@ def from_dictionary(cls,
unit_price,
price_point_id,
formatted_unit_price,
- segment_id)
+ segment_id,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/component_price_point.py b/advancedbilling/models/component_price_point.py
index cfbd0f4..394200a 100644
--- a/advancedbilling/models/component_price_point.py
+++ b/advancedbilling/models/component_price_point.py
@@ -125,7 +125,8 @@ def __init__(self,
tax_included=APIHelper.SKIP,
interval=APIHelper.SKIP,
interval_unit=APIHelper.SKIP,
- currency_prices=APIHelper.SKIP):
+ currency_prices=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the ComponentPricePoint class"""
# Initialize members of the class
@@ -164,6 +165,9 @@ def __init__(self,
if currency_prices is not APIHelper.SKIP:
self.currency_prices = currency_prices
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -215,6 +219,10 @@ def from_dictionary(cls,
currency_prices = [ComponentCurrencyPrice.from_dictionary(x) for x in dictionary.get('currency_prices')]
else:
currency_prices = APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(id,
mtype,
@@ -232,4 +240,5 @@ def from_dictionary(cls,
tax_included,
interval,
interval_unit,
- currency_prices)
+ currency_prices,
+ dictionary)
diff --git a/advancedbilling/models/component_s_price_point_assignment.py b/advancedbilling/models/component_price_point_assignment.py
similarity index 70%
rename from advancedbilling/models/component_s_price_point_assignment.py
rename to advancedbilling/models/component_price_point_assignment.py
index 2080214..e05b882 100644
--- a/advancedbilling/models/component_s_price_point_assignment.py
+++ b/advancedbilling/models/component_price_point_assignment.py
@@ -9,9 +9,9 @@
from advancedbilling.api_helper import APIHelper
-class ComponentSPricePointAssignment(object):
+class ComponentPricePointAssignment(object):
- """Implementation of the 'Component's Price Point Assignment' model.
+ """Implementation of the 'Component Price Point Assignment' model.
TODO: type model description here.
@@ -34,8 +34,9 @@ class ComponentSPricePointAssignment(object):
def __init__(self,
component_id=APIHelper.SKIP,
- price_point=APIHelper.SKIP):
- """Constructor for the ComponentSPricePointAssignment class"""
+ price_point=APIHelper.SKIP,
+ additional_properties={}):
+ """Constructor for the ComponentPricePointAssignment class"""
# Initialize members of the class
if component_id is not APIHelper.SKIP:
@@ -43,6 +44,9 @@ def __init__(self,
if price_point is not APIHelper.SKIP:
self.price_point = price_point
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -64,7 +68,12 @@ def from_dictionary(cls,
# Extract variables from the dictionary
component_id = dictionary.get("component_id") if dictionary.get("component_id") else APIHelper.SKIP
- price_point = APIHelper.deserialize_union_type(UnionTypeLookUp.get('ComponentSPricePointAssignmentPricePoint'), dictionary.get('price_point'), False) if dictionary.get('price_point') is not None else APIHelper.SKIP
+ price_point = APIHelper.deserialize_union_type(UnionTypeLookUp.get('ComponentPricePointAssignmentPricePoint'), dictionary.get('price_point'), False) if dictionary.get('price_point') is not None else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(component_id,
- price_point)
+ price_point,
+ dictionary)
diff --git a/advancedbilling/models/component_price_point_error_item.py b/advancedbilling/models/component_price_point_error_item.py
index 1a711d4..a0f1864 100644
--- a/advancedbilling/models/component_price_point_error_item.py
+++ b/advancedbilling/models/component_price_point_error_item.py
@@ -38,7 +38,8 @@ class ComponentPricePointErrorItem(object):
def __init__(self,
component_id=APIHelper.SKIP,
message=APIHelper.SKIP,
- price_point=APIHelper.SKIP):
+ price_point=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the ComponentPricePointErrorItem class"""
# Initialize members of the class
@@ -49,6 +50,9 @@ def __init__(self,
if price_point is not APIHelper.SKIP:
self.price_point = price_point
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -71,7 +75,12 @@ def from_dictionary(cls,
component_id = dictionary.get("component_id") if dictionary.get("component_id") else APIHelper.SKIP
message = dictionary.get("message") if dictionary.get("message") else APIHelper.SKIP
price_point = dictionary.get("price_point") if dictionary.get("price_point") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(component_id,
message,
- price_point)
+ price_point,
+ dictionary)
diff --git a/advancedbilling/models/component_price_point_item.py b/advancedbilling/models/component_price_point_item.py
index 759fb33..3128b1e 100644
--- a/advancedbilling/models/component_price_point_item.py
+++ b/advancedbilling/models/component_price_point_item.py
@@ -59,7 +59,8 @@ def __init__(self,
pricing_scheme=APIHelper.SKIP,
interval=APIHelper.SKIP,
interval_unit=APIHelper.SKIP,
- prices=APIHelper.SKIP):
+ prices=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the ComponentPricePointItem class"""
# Initialize members of the class
@@ -76,6 +77,9 @@ def __init__(self,
if prices is not APIHelper.SKIP:
self.prices = prices
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -105,13 +109,18 @@ def from_dictionary(cls,
prices = [Price.from_dictionary(x) for x in dictionary.get('prices')]
else:
prices = APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(name,
handle,
pricing_scheme,
interval,
interval_unit,
- prices)
+ prices,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/component_price_point_response.py b/advancedbilling/models/component_price_point_response.py
index e988be9..a2101f5 100644
--- a/advancedbilling/models/component_price_point_response.py
+++ b/advancedbilling/models/component_price_point_response.py
@@ -26,12 +26,16 @@ class ComponentPricePointResponse(object):
}
def __init__(self,
- price_point=None):
+ price_point=None,
+ additional_properties={}):
"""Constructor for the ComponentPricePointResponse class"""
# Initialize members of the class
self.price_point = price_point
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
price_point = ComponentPricePoint.from_dictionary(dictionary.get('price_point')) if dictionary.get('price_point') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(price_point)
+ return cls(price_point,
+ dictionary)
diff --git a/advancedbilling/models/component_price_points_response.py b/advancedbilling/models/component_price_points_response.py
index be75014..cfd3609 100644
--- a/advancedbilling/models/component_price_points_response.py
+++ b/advancedbilling/models/component_price_points_response.py
@@ -37,7 +37,8 @@ class ComponentPricePointsResponse(object):
def __init__(self,
price_points=APIHelper.SKIP,
- meta=APIHelper.SKIP):
+ meta=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the ComponentPricePointsResponse class"""
# Initialize members of the class
@@ -46,6 +47,9 @@ def __init__(self,
if meta is not APIHelper.SKIP:
self.meta = meta
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -71,6 +75,11 @@ def from_dictionary(cls,
else:
price_points = APIHelper.SKIP
meta = ListPublicKeysMeta.from_dictionary(dictionary.get('meta')) if 'meta' in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(price_points,
- meta)
+ meta,
+ dictionary)
diff --git a/advancedbilling/models/component_response.py b/advancedbilling/models/component_response.py
index f5acb42..574097f 100644
--- a/advancedbilling/models/component_response.py
+++ b/advancedbilling/models/component_response.py
@@ -26,12 +26,16 @@ class ComponentResponse(object):
}
def __init__(self,
- component=None):
+ component=None,
+ additional_properties={}):
"""Constructor for the ComponentResponse class"""
# Initialize members of the class
self.component = component
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
component = Component.from_dictionary(dictionary.get('component')) if dictionary.get('component') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(component)
+ return cls(component,
+ dictionary)
diff --git a/advancedbilling/models/consolidated_invoice.py b/advancedbilling/models/consolidated_invoice.py
index bf35c93..25faa33 100644
--- a/advancedbilling/models/consolidated_invoice.py
+++ b/advancedbilling/models/consolidated_invoice.py
@@ -31,13 +31,17 @@ class ConsolidatedInvoice(object):
]
def __init__(self,
- invoices=APIHelper.SKIP):
+ invoices=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the ConsolidatedInvoice class"""
# Initialize members of the class
if invoices is not APIHelper.SKIP:
self.invoices = invoices
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -62,5 +66,10 @@ def from_dictionary(cls,
invoices = [Invoice.from_dictionary(x) for x in dictionary.get('invoices')]
else:
invoices = APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(invoices)
+ return cls(invoices,
+ dictionary)
diff --git a/advancedbilling/models/count_response.py b/advancedbilling/models/count_response.py
index 1eb3c81..1be1083 100644
--- a/advancedbilling/models/count_response.py
+++ b/advancedbilling/models/count_response.py
@@ -30,13 +30,17 @@ class CountResponse(object):
]
def __init__(self,
- count=APIHelper.SKIP):
+ count=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the CountResponse class"""
# Initialize members of the class
if count is not APIHelper.SKIP:
self.count = count
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -57,5 +61,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
count = dictionary.get("count") if dictionary.get("count") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(count)
+ return cls(count,
+ dictionary)
diff --git a/advancedbilling/models/coupon.py b/advancedbilling/models/coupon.py
index c6268c0..2886a70 100644
--- a/advancedbilling/models/coupon.py
+++ b/advancedbilling/models/coupon.py
@@ -159,7 +159,8 @@ def __init__(self,
discount_type=APIHelper.SKIP,
exclude_mid_period_allocations=APIHelper.SKIP,
apply_on_cancel_at_end_of_period=APIHelper.SKIP,
- coupon_restrictions=APIHelper.SKIP):
+ coupon_restrictions=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the Coupon class"""
# Initialize members of the class
@@ -222,6 +223,9 @@ def __init__(self,
if coupon_restrictions is not APIHelper.SKIP:
self.coupon_restrictions = coupon_restrictions
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -281,6 +285,10 @@ def from_dictionary(cls,
coupon_restrictions = [CouponRestriction.from_dictionary(x) for x in dictionary.get('coupon_restrictions')]
else:
coupon_restrictions = APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(id,
name,
@@ -310,4 +318,5 @@ def from_dictionary(cls,
discount_type,
exclude_mid_period_allocations,
apply_on_cancel_at_end_of_period,
- coupon_restrictions)
+ coupon_restrictions,
+ dictionary)
diff --git a/advancedbilling/models/coupon_currency.py b/advancedbilling/models/coupon_currency.py
index 795de03..6e03aec 100644
--- a/advancedbilling/models/coupon_currency.py
+++ b/advancedbilling/models/coupon_currency.py
@@ -42,7 +42,8 @@ def __init__(self,
id=APIHelper.SKIP,
currency=APIHelper.SKIP,
price=APIHelper.SKIP,
- coupon_id=APIHelper.SKIP):
+ coupon_id=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the CouponCurrency class"""
# Initialize members of the class
@@ -55,6 +56,9 @@ def __init__(self,
if coupon_id is not APIHelper.SKIP:
self.coupon_id = coupon_id
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -78,8 +82,13 @@ def from_dictionary(cls,
currency = dictionary.get("currency") if dictionary.get("currency") else APIHelper.SKIP
price = dictionary.get("price") if dictionary.get("price") else APIHelper.SKIP
coupon_id = dictionary.get("coupon_id") if dictionary.get("coupon_id") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(id,
currency,
price,
- coupon_id)
+ coupon_id,
+ dictionary)
diff --git a/advancedbilling/models/coupon_currency_request.py b/advancedbilling/models/coupon_currency_request.py
index d43764f..193dc51 100644
--- a/advancedbilling/models/coupon_currency_request.py
+++ b/advancedbilling/models/coupon_currency_request.py
@@ -27,12 +27,16 @@ class CouponCurrencyRequest(object):
}
def __init__(self,
- currency_prices=None):
+ currency_prices=None,
+ additional_properties={}):
"""Constructor for the CouponCurrencyRequest class"""
# Initialize members of the class
self.currency_prices = currency_prices
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -55,5 +59,10 @@ def from_dictionary(cls,
currency_prices = None
if dictionary.get('currency_prices') is not None:
currency_prices = [UpdateCouponCurrency.from_dictionary(x) for x in dictionary.get('currency_prices')]
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(currency_prices)
+ return cls(currency_prices,
+ dictionary)
diff --git a/advancedbilling/models/coupon_currency_response.py b/advancedbilling/models/coupon_currency_response.py
index e653935..a61b238 100644
--- a/advancedbilling/models/coupon_currency_response.py
+++ b/advancedbilling/models/coupon_currency_response.py
@@ -31,13 +31,17 @@ class CouponCurrencyResponse(object):
]
def __init__(self,
- currency_prices=APIHelper.SKIP):
+ currency_prices=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the CouponCurrencyResponse class"""
# Initialize members of the class
if currency_prices is not APIHelper.SKIP:
self.currency_prices = currency_prices
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -62,5 +66,10 @@ def from_dictionary(cls,
currency_prices = [CouponCurrency.from_dictionary(x) for x in dictionary.get('currency_prices')]
else:
currency_prices = APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(currency_prices)
+ return cls(currency_prices,
+ dictionary)
diff --git a/advancedbilling/models/coupon_response.py b/advancedbilling/models/coupon_response.py
index 86cf968..04e1b7f 100644
--- a/advancedbilling/models/coupon_response.py
+++ b/advancedbilling/models/coupon_response.py
@@ -31,13 +31,17 @@ class CouponResponse(object):
]
def __init__(self,
- coupon=APIHelper.SKIP):
+ coupon=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the CouponResponse class"""
# Initialize members of the class
if coupon is not APIHelper.SKIP:
self.coupon = coupon
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -58,5 +62,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
coupon = Coupon.from_dictionary(dictionary.get('coupon')) if 'coupon' in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(coupon)
+ return cls(coupon,
+ dictionary)
diff --git a/advancedbilling/models/coupon_restriction.py b/advancedbilling/models/coupon_restriction.py
index d676663..ff9e9b5 100644
--- a/advancedbilling/models/coupon_restriction.py
+++ b/advancedbilling/models/coupon_restriction.py
@@ -50,7 +50,8 @@ def __init__(self,
item_type=APIHelper.SKIP,
item_id=APIHelper.SKIP,
name=APIHelper.SKIP,
- handle=APIHelper.SKIP):
+ handle=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the CouponRestriction class"""
# Initialize members of the class
@@ -65,6 +66,9 @@ def __init__(self,
if handle is not APIHelper.SKIP:
self.handle = handle
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -89,12 +93,17 @@ def from_dictionary(cls,
item_id = dictionary.get("item_id") if dictionary.get("item_id") else APIHelper.SKIP
name = dictionary.get("name") if dictionary.get("name") else APIHelper.SKIP
handle = dictionary.get("handle") if "handle" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(id,
item_type,
item_id,
name,
- handle)
+ handle,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/coupon_subcodes.py b/advancedbilling/models/coupon_subcodes.py
index bbcb6d5..b121e29 100644
--- a/advancedbilling/models/coupon_subcodes.py
+++ b/advancedbilling/models/coupon_subcodes.py
@@ -30,13 +30,17 @@ class CouponSubcodes(object):
]
def __init__(self,
- codes=APIHelper.SKIP):
+ codes=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the CouponSubcodes class"""
# Initialize members of the class
if codes is not APIHelper.SKIP:
self.codes = codes
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -57,5 +61,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
codes = dictionary.get("codes") if dictionary.get("codes") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(codes)
+ return cls(codes,
+ dictionary)
diff --git a/advancedbilling/models/coupon_subcodes_response.py b/advancedbilling/models/coupon_subcodes_response.py
index 7f9a44f..59e8f5e 100644
--- a/advancedbilling/models/coupon_subcodes_response.py
+++ b/advancedbilling/models/coupon_subcodes_response.py
@@ -38,7 +38,8 @@ class CouponSubcodesResponse(object):
def __init__(self,
created_codes=APIHelper.SKIP,
duplicate_codes=APIHelper.SKIP,
- invalid_codes=APIHelper.SKIP):
+ invalid_codes=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the CouponSubcodesResponse class"""
# Initialize members of the class
@@ -49,6 +50,9 @@ def __init__(self,
if invalid_codes is not APIHelper.SKIP:
self.invalid_codes = invalid_codes
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -71,7 +75,12 @@ def from_dictionary(cls,
created_codes = dictionary.get("created_codes") if dictionary.get("created_codes") else APIHelper.SKIP
duplicate_codes = dictionary.get("duplicate_codes") if dictionary.get("duplicate_codes") else APIHelper.SKIP
invalid_codes = dictionary.get("invalid_codes") if dictionary.get("invalid_codes") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(created_codes,
duplicate_codes,
- invalid_codes)
+ invalid_codes,
+ dictionary)
diff --git a/advancedbilling/models/coupon_usage.py b/advancedbilling/models/coupon_usage.py
index a49a65e..b928925 100644
--- a/advancedbilling/models/coupon_usage.py
+++ b/advancedbilling/models/coupon_usage.py
@@ -64,7 +64,8 @@ def __init__(self,
savings=APIHelper.SKIP,
savings_in_cents=APIHelper.SKIP,
revenue=APIHelper.SKIP,
- revenue_in_cents=APIHelper.SKIP):
+ revenue_in_cents=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the CouponUsage class"""
# Initialize members of the class
@@ -83,6 +84,9 @@ def __init__(self,
if revenue_in_cents is not APIHelper.SKIP:
self.revenue_in_cents = revenue_in_cents
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -109,6 +113,10 @@ def from_dictionary(cls,
savings_in_cents = dictionary.get("savings_in_cents") if "savings_in_cents" in dictionary.keys() else APIHelper.SKIP
revenue = dictionary.get("revenue") if "revenue" in dictionary.keys() else APIHelper.SKIP
revenue_in_cents = dictionary.get("revenue_in_cents") if dictionary.get("revenue_in_cents") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(id,
name,
@@ -116,4 +124,5 @@ def from_dictionary(cls,
savings,
savings_in_cents,
revenue,
- revenue_in_cents)
+ revenue_in_cents,
+ dictionary)
diff --git a/advancedbilling/models/create_allocation.py b/advancedbilling/models/create_allocation.py
index e7f329a..b2a002e 100644
--- a/advancedbilling/models/create_allocation.py
+++ b/advancedbilling/models/create_allocation.py
@@ -101,7 +101,8 @@ def __init__(self,
upgrade_charge=APIHelper.SKIP,
initiate_dunning=APIHelper.SKIP,
price_point_id=APIHelper.SKIP,
- billing_schedule=APIHelper.SKIP):
+ billing_schedule=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the CreateAllocation class"""
# Initialize members of the class
@@ -127,6 +128,9 @@ def __init__(self,
if billing_schedule is not APIHelper.SKIP:
self.billing_schedule = billing_schedule
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -161,6 +165,10 @@ def from_dictionary(cls,
else:
price_point_id = APIHelper.SKIP
billing_schedule = BillingSchedule.from_dictionary(dictionary.get('billing_schedule')) if 'billing_schedule' in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(quantity,
component_id,
@@ -172,4 +180,5 @@ def from_dictionary(cls,
upgrade_charge,
initiate_dunning,
price_point_id,
- billing_schedule)
+ billing_schedule,
+ dictionary)
diff --git a/advancedbilling/models/create_allocation_request.py b/advancedbilling/models/create_allocation_request.py
index ca1ac9f..1252de1 100644
--- a/advancedbilling/models/create_allocation_request.py
+++ b/advancedbilling/models/create_allocation_request.py
@@ -26,12 +26,16 @@ class CreateAllocationRequest(object):
}
def __init__(self,
- allocation=None):
+ allocation=None,
+ additional_properties={}):
"""Constructor for the CreateAllocationRequest class"""
# Initialize members of the class
self.allocation = allocation
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
allocation = CreateAllocation.from_dictionary(dictionary.get('allocation')) if dictionary.get('allocation') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(allocation)
+ return cls(allocation,
+ dictionary)
diff --git a/advancedbilling/models/create_component_price_point.py b/advancedbilling/models/create_component_price_point.py
index 2c2291b..eba53d8 100644
--- a/advancedbilling/models/create_component_price_point.py
+++ b/advancedbilling/models/create_component_price_point.py
@@ -67,7 +67,8 @@ def __init__(self,
use_site_exchange_rate=True,
tax_included=APIHelper.SKIP,
interval=APIHelper.SKIP,
- interval_unit=APIHelper.SKIP):
+ interval_unit=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the CreateComponentPricePoint class"""
# Initialize members of the class
@@ -84,6 +85,9 @@ def __init__(self,
if interval_unit is not APIHelper.SKIP:
self.interval_unit = interval_unit
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -113,6 +117,10 @@ def from_dictionary(cls,
tax_included = dictionary.get("tax_included") if "tax_included" in dictionary.keys() else APIHelper.SKIP
interval = dictionary.get("interval") if dictionary.get("interval") else APIHelper.SKIP
interval_unit = dictionary.get("interval_unit") if dictionary.get("interval_unit") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(name,
pricing_scheme,
@@ -121,7 +129,8 @@ def from_dictionary(cls,
use_site_exchange_rate,
tax_included,
interval,
- interval_unit)
+ interval_unit,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/create_component_price_point_request.py b/advancedbilling/models/create_component_price_point_request.py
index dc43447..e20a212 100644
--- a/advancedbilling/models/create_component_price_point_request.py
+++ b/advancedbilling/models/create_component_price_point_request.py
@@ -28,12 +28,16 @@ class CreateComponentPricePointRequest(object):
}
def __init__(self,
- price_point=None):
+ price_point=None,
+ additional_properties={}):
"""Constructor for the CreateComponentPricePointRequest class"""
# Initialize members of the class
self.price_point = price_point
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -55,8 +59,13 @@ def from_dictionary(cls,
# Extract variables from the dictionary
price_point = APIHelper.deserialize_union_type(UnionTypeLookUp.get('CreateComponentPricePointRequestPricePoint'), dictionary.get('price_point'), False) if dictionary.get('price_point') is not None else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(price_point)
+ return cls(price_point,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/create_component_price_points_request.py b/advancedbilling/models/create_component_price_points_request.py
index eb1cef8..d848d32 100644
--- a/advancedbilling/models/create_component_price_points_request.py
+++ b/advancedbilling/models/create_component_price_points_request.py
@@ -28,12 +28,16 @@ class CreateComponentPricePointsRequest(object):
}
def __init__(self,
- price_points=None):
+ price_points=None,
+ additional_properties={}):
"""Constructor for the CreateComponentPricePointsRequest class"""
# Initialize members of the class
self.price_points = price_points
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -55,8 +59,13 @@ def from_dictionary(cls,
# Extract variables from the dictionary
price_points = APIHelper.deserialize_union_type(UnionTypeLookUp.get('CreateComponentPricePointsRequestPricePoints'), dictionary.get('price_points'), False) if dictionary.get('price_points') is not None else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(price_points)
+ return cls(price_points,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/create_currency_price.py b/advancedbilling/models/create_currency_price.py
index a988eef..49da259 100644
--- a/advancedbilling/models/create_currency_price.py
+++ b/advancedbilling/models/create_currency_price.py
@@ -38,7 +38,8 @@ class CreateCurrencyPrice(object):
def __init__(self,
currency=APIHelper.SKIP,
price=APIHelper.SKIP,
- price_id=APIHelper.SKIP):
+ price_id=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the CreateCurrencyPrice class"""
# Initialize members of the class
@@ -49,6 +50,9 @@ def __init__(self,
if price_id is not APIHelper.SKIP:
self.price_id = price_id
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -71,7 +75,12 @@ def from_dictionary(cls,
currency = dictionary.get("currency") if dictionary.get("currency") else APIHelper.SKIP
price = dictionary.get("price") if dictionary.get("price") else APIHelper.SKIP
price_id = dictionary.get("price_id") if dictionary.get("price_id") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(currency,
price,
- price_id)
+ price_id,
+ dictionary)
diff --git a/advancedbilling/models/create_currency_prices_request.py b/advancedbilling/models/create_currency_prices_request.py
index c57e1e3..fb90457 100644
--- a/advancedbilling/models/create_currency_prices_request.py
+++ b/advancedbilling/models/create_currency_prices_request.py
@@ -27,12 +27,16 @@ class CreateCurrencyPricesRequest(object):
}
def __init__(self,
- currency_prices=None):
+ currency_prices=None,
+ additional_properties={}):
"""Constructor for the CreateCurrencyPricesRequest class"""
# Initialize members of the class
self.currency_prices = currency_prices
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -55,5 +59,10 @@ def from_dictionary(cls,
currency_prices = None
if dictionary.get('currency_prices') is not None:
currency_prices = [CreateCurrencyPrice.from_dictionary(x) for x in dictionary.get('currency_prices')]
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(currency_prices)
+ return cls(currency_prices,
+ dictionary)
diff --git a/advancedbilling/models/create_customer.py b/advancedbilling/models/create_customer.py
index cc1a481..d660e29 100644
--- a/advancedbilling/models/create_customer.py
+++ b/advancedbilling/models/create_customer.py
@@ -100,7 +100,8 @@ def __init__(self,
vat_number=APIHelper.SKIP,
tax_exempt=APIHelper.SKIP,
tax_exempt_reason=APIHelper.SKIP,
- parent_id=APIHelper.SKIP):
+ parent_id=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the CreateCustomer class"""
# Initialize members of the class
@@ -138,6 +139,9 @@ def __init__(self,
if parent_id is not APIHelper.SKIP:
self.parent_id = parent_id
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -175,6 +179,10 @@ def from_dictionary(cls,
tax_exempt = dictionary.get("tax_exempt") if "tax_exempt" in dictionary.keys() else APIHelper.SKIP
tax_exempt_reason = dictionary.get("tax_exempt_reason") if dictionary.get("tax_exempt_reason") else APIHelper.SKIP
parent_id = dictionary.get("parent_id") if "parent_id" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(first_name,
last_name,
@@ -193,4 +201,5 @@ def from_dictionary(cls,
vat_number,
tax_exempt,
tax_exempt_reason,
- parent_id)
+ parent_id,
+ dictionary)
diff --git a/advancedbilling/models/create_customer_request.py b/advancedbilling/models/create_customer_request.py
index e662a8d..3f1a5a1 100644
--- a/advancedbilling/models/create_customer_request.py
+++ b/advancedbilling/models/create_customer_request.py
@@ -26,12 +26,16 @@ class CreateCustomerRequest(object):
}
def __init__(self,
- customer=None):
+ customer=None,
+ additional_properties={}):
"""Constructor for the CreateCustomerRequest class"""
# Initialize members of the class
self.customer = customer
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
customer = CreateCustomer.from_dictionary(dictionary.get('customer')) if dictionary.get('customer') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(customer)
+ return cls(customer,
+ dictionary)
diff --git a/advancedbilling/models/create_ebb_component.py b/advancedbilling/models/create_ebb_component.py
index 80ddb4c..e18f207 100644
--- a/advancedbilling/models/create_ebb_component.py
+++ b/advancedbilling/models/create_ebb_component.py
@@ -26,12 +26,16 @@ class CreateEBBComponent(object):
}
def __init__(self,
- event_based_component=None):
+ event_based_component=None,
+ additional_properties={}):
"""Constructor for the CreateEBBComponent class"""
# Initialize members of the class
self.event_based_component = event_based_component
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
event_based_component = EBBComponent.from_dictionary(dictionary.get('event_based_component')) if dictionary.get('event_based_component') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(event_based_component)
+ return cls(event_based_component,
+ dictionary)
diff --git a/advancedbilling/models/create_invoice.py b/advancedbilling/models/create_invoice.py
index ed5ea07..82f1f7f 100644
--- a/advancedbilling/models/create_invoice.py
+++ b/advancedbilling/models/create_invoice.py
@@ -77,7 +77,8 @@ def __init__(self,
billing_address=APIHelper.SKIP,
shipping_address=APIHelper.SKIP,
coupons=APIHelper.SKIP,
- status='open'):
+ status='open',
+ additional_properties={}):
"""Constructor for the CreateInvoice class"""
# Initialize members of the class
@@ -101,6 +102,9 @@ def __init__(self,
self.coupons = coupons
self.status = status
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -138,6 +142,10 @@ def from_dictionary(cls,
else:
coupons = APIHelper.SKIP
status = dictionary.get("status") if dictionary.get("status") else 'open'
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(line_items,
issue_date,
@@ -148,4 +156,5 @@ def from_dictionary(cls,
billing_address,
shipping_address,
coupons,
- status)
+ status,
+ dictionary)
diff --git a/advancedbilling/models/create_invoice_address.py b/advancedbilling/models/create_invoice_address.py
index 37da2e7..96e1cb8 100644
--- a/advancedbilling/models/create_invoice_address.py
+++ b/advancedbilling/models/create_invoice_address.py
@@ -62,7 +62,8 @@ def __init__(self,
city=APIHelper.SKIP,
state=APIHelper.SKIP,
zip=APIHelper.SKIP,
- country=APIHelper.SKIP):
+ country=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the CreateInvoiceAddress class"""
# Initialize members of the class
@@ -85,6 +86,9 @@ def __init__(self,
if country is not APIHelper.SKIP:
self.country = country
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -113,6 +117,10 @@ def from_dictionary(cls,
state = dictionary.get("state") if dictionary.get("state") else APIHelper.SKIP
zip = dictionary.get("zip") if dictionary.get("zip") else APIHelper.SKIP
country = dictionary.get("country") if dictionary.get("country") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(first_name,
last_name,
@@ -122,4 +130,5 @@ def from_dictionary(cls,
city,
state,
zip,
- country)
+ country,
+ dictionary)
diff --git a/advancedbilling/models/create_invoice_coupon.py b/advancedbilling/models/create_invoice_coupon.py
index bac43e6..87a8f62 100644
--- a/advancedbilling/models/create_invoice_coupon.py
+++ b/advancedbilling/models/create_invoice_coupon.py
@@ -51,7 +51,8 @@ def __init__(self,
amount=APIHelper.SKIP,
description=APIHelper.SKIP,
product_family_id=APIHelper.SKIP,
- compounding_strategy=APIHelper.SKIP):
+ compounding_strategy=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the CreateInvoiceCoupon class"""
# Initialize members of the class
@@ -68,6 +69,9 @@ def __init__(self,
if compounding_strategy is not APIHelper.SKIP:
self.compounding_strategy = compounding_strategy
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -94,10 +98,15 @@ def from_dictionary(cls,
description = dictionary.get("description") if dictionary.get("description") else APIHelper.SKIP
product_family_id = APIHelper.deserialize_union_type(UnionTypeLookUp.get('CreateInvoiceCouponProductFamilyId'), dictionary.get('product_family_id'), False) if dictionary.get('product_family_id') is not None else APIHelper.SKIP
compounding_strategy = dictionary.get("compounding_strategy") if dictionary.get("compounding_strategy") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(code,
percentage,
amount,
description,
product_family_id,
- compounding_strategy)
+ compounding_strategy,
+ dictionary)
diff --git a/advancedbilling/models/create_invoice_item.py b/advancedbilling/models/create_invoice_item.py
index d145784..415f779 100644
--- a/advancedbilling/models/create_invoice_item.py
+++ b/advancedbilling/models/create_invoice_item.py
@@ -84,7 +84,8 @@ def __init__(self,
component_id=APIHelper.SKIP,
price_point_id=APIHelper.SKIP,
product_price_point_id=APIHelper.SKIP,
- description=APIHelper.SKIP):
+ description=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the CreateInvoiceItem class"""
# Initialize members of the class
@@ -113,6 +114,9 @@ def __init__(self,
if description is not APIHelper.SKIP:
self.description = description
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -145,6 +149,10 @@ def from_dictionary(cls,
price_point_id = APIHelper.deserialize_union_type(UnionTypeLookUp.get('CreateInvoiceItemPricePointId'), dictionary.get('price_point_id'), False) if dictionary.get('price_point_id') is not None else APIHelper.SKIP
product_price_point_id = APIHelper.deserialize_union_type(UnionTypeLookUp.get('CreateInvoiceItemProductPricePointId'), dictionary.get('product_price_point_id'), False) if dictionary.get('product_price_point_id') is not None else APIHelper.SKIP
description = dictionary.get("description") if dictionary.get("description") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(title,
quantity,
@@ -157,4 +165,5 @@ def from_dictionary(cls,
component_id,
price_point_id,
product_price_point_id,
- description)
+ description,
+ dictionary)
diff --git a/advancedbilling/models/create_invoice_payment.py b/advancedbilling/models/create_invoice_payment.py
index e5ae9ac..fb28324 100644
--- a/advancedbilling/models/create_invoice_payment.py
+++ b/advancedbilling/models/create_invoice_payment.py
@@ -50,7 +50,8 @@ def __init__(self,
memo=APIHelper.SKIP,
method=APIHelper.SKIP,
details=APIHelper.SKIP,
- payment_profile_id=APIHelper.SKIP):
+ payment_profile_id=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the CreateInvoicePayment class"""
# Initialize members of the class
@@ -65,6 +66,9 @@ def __init__(self,
if payment_profile_id is not APIHelper.SKIP:
self.payment_profile_id = payment_profile_id
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -90,9 +94,14 @@ def from_dictionary(cls,
method = dictionary.get("method") if dictionary.get("method") else APIHelper.SKIP
details = dictionary.get("details") if dictionary.get("details") else APIHelper.SKIP
payment_profile_id = dictionary.get("payment_profile_id") if dictionary.get("payment_profile_id") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(amount,
memo,
method,
details,
- payment_profile_id)
+ payment_profile_id,
+ dictionary)
diff --git a/advancedbilling/models/create_invoice_payment_application.py b/advancedbilling/models/create_invoice_payment_application.py
index 4645bc3..042f777 100644
--- a/advancedbilling/models/create_invoice_payment_application.py
+++ b/advancedbilling/models/create_invoice_payment_application.py
@@ -31,13 +31,17 @@ class CreateInvoicePaymentApplication(object):
def __init__(self,
invoice_uid=None,
- amount=None):
+ amount=None,
+ additional_properties={}):
"""Constructor for the CreateInvoicePaymentApplication class"""
# Initialize members of the class
self.invoice_uid = invoice_uid
self.amount = amount
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -59,9 +63,14 @@ def from_dictionary(cls,
# Extract variables from the dictionary
invoice_uid = dictionary.get("invoice_uid") if dictionary.get("invoice_uid") else None
amount = dictionary.get("amount") if dictionary.get("amount") else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(invoice_uid,
- amount)
+ amount,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/create_invoice_payment_request.py b/advancedbilling/models/create_invoice_payment_request.py
index ea8ca37..4437c4e 100644
--- a/advancedbilling/models/create_invoice_payment_request.py
+++ b/advancedbilling/models/create_invoice_payment_request.py
@@ -35,7 +35,8 @@ class CreateInvoicePaymentRequest(object):
def __init__(self,
payment=None,
- mtype=APIHelper.SKIP):
+ mtype=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the CreateInvoicePaymentRequest class"""
# Initialize members of the class
@@ -43,6 +44,9 @@ def __init__(self,
if mtype is not APIHelper.SKIP:
self.mtype = mtype
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -64,6 +68,11 @@ def from_dictionary(cls,
# Extract variables from the dictionary
payment = CreateInvoicePayment.from_dictionary(dictionary.get('payment')) if dictionary.get('payment') else None
mtype = dictionary.get("type") if dictionary.get("type") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(payment,
- mtype)
+ mtype,
+ dictionary)
diff --git a/advancedbilling/models/create_invoice_request.py b/advancedbilling/models/create_invoice_request.py
index 45c0f1f..04fe487 100644
--- a/advancedbilling/models/create_invoice_request.py
+++ b/advancedbilling/models/create_invoice_request.py
@@ -26,12 +26,16 @@ class CreateInvoiceRequest(object):
}
def __init__(self,
- invoice=None):
+ invoice=None,
+ additional_properties={}):
"""Constructor for the CreateInvoiceRequest class"""
# Initialize members of the class
self.invoice = invoice
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
invoice = CreateInvoice.from_dictionary(dictionary.get('invoice')) if dictionary.get('invoice') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(invoice)
+ return cls(invoice,
+ dictionary)
diff --git a/advancedbilling/models/create_metadata.py b/advancedbilling/models/create_metadata.py
index a952e4d..f7cf8f6 100644
--- a/advancedbilling/models/create_metadata.py
+++ b/advancedbilling/models/create_metadata.py
@@ -34,7 +34,8 @@ class CreateMetadata(object):
def __init__(self,
name=APIHelper.SKIP,
- value=APIHelper.SKIP):
+ value=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the CreateMetadata class"""
# Initialize members of the class
@@ -43,6 +44,9 @@ def __init__(self,
if value is not APIHelper.SKIP:
self.value = value
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -64,6 +68,11 @@ def from_dictionary(cls,
# Extract variables from the dictionary
name = dictionary.get("name") if dictionary.get("name") else APIHelper.SKIP
value = dictionary.get("value") if dictionary.get("value") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(name,
- value)
+ value,
+ dictionary)
diff --git a/advancedbilling/models/create_metadata_request.py b/advancedbilling/models/create_metadata_request.py
index 57fc18b..6762c46 100644
--- a/advancedbilling/models/create_metadata_request.py
+++ b/advancedbilling/models/create_metadata_request.py
@@ -26,12 +26,16 @@ class CreateMetadataRequest(object):
}
def __init__(self,
- metadata=None):
+ metadata=None,
+ additional_properties={}):
"""Constructor for the CreateMetadataRequest class"""
# Initialize members of the class
self.metadata = metadata
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -54,5 +58,10 @@ def from_dictionary(cls,
metadata = None
if dictionary.get('metadata') is not None:
metadata = [CreateMetadata.from_dictionary(x) for x in dictionary.get('metadata')]
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(metadata)
+ return cls(metadata,
+ dictionary)
diff --git a/advancedbilling/models/create_metafield.py b/advancedbilling/models/create_metafield.py
index 8932292..2b50c70 100644
--- a/advancedbilling/models/create_metafield.py
+++ b/advancedbilling/models/create_metafield.py
@@ -51,7 +51,8 @@ def __init__(self,
name=APIHelper.SKIP,
scope=APIHelper.SKIP,
input_type=APIHelper.SKIP,
- enum=APIHelper.SKIP):
+ enum=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the CreateMetafield class"""
# Initialize members of the class
@@ -64,6 +65,9 @@ def __init__(self,
if enum is not APIHelper.SKIP:
self.enum = enum
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -87,11 +91,16 @@ def from_dictionary(cls,
scope = MetafieldScope.from_dictionary(dictionary.get('scope')) if 'scope' in dictionary.keys() else APIHelper.SKIP
input_type = dictionary.get("input_type") if dictionary.get("input_type") else APIHelper.SKIP
enum = dictionary.get("enum") if dictionary.get("enum") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(name,
scope,
input_type,
- enum)
+ enum,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/create_metafields_request.py b/advancedbilling/models/create_metafields_request.py
index 31b2910..89dad46 100644
--- a/advancedbilling/models/create_metafields_request.py
+++ b/advancedbilling/models/create_metafields_request.py
@@ -27,12 +27,16 @@ class CreateMetafieldsRequest(object):
}
def __init__(self,
- metafields=None):
+ metafields=None,
+ additional_properties={}):
"""Constructor for the CreateMetafieldsRequest class"""
# Initialize members of the class
self.metafields = metafields
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -54,8 +58,13 @@ def from_dictionary(cls,
# Extract variables from the dictionary
metafields = APIHelper.deserialize_union_type(UnionTypeLookUp.get('CreateMetafieldsRequestMetafields'), dictionary.get('metafields'), False) if dictionary.get('metafields') is not None else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(metafields)
+ return cls(metafields,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/create_metered_component.py b/advancedbilling/models/create_metered_component.py
index aa06422..0cd9e37 100644
--- a/advancedbilling/models/create_metered_component.py
+++ b/advancedbilling/models/create_metered_component.py
@@ -26,12 +26,16 @@ class CreateMeteredComponent(object):
}
def __init__(self,
- metered_component=None):
+ metered_component=None,
+ additional_properties={}):
"""Constructor for the CreateMeteredComponent class"""
# Initialize members of the class
self.metered_component = metered_component
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
metered_component = MeteredComponent.from_dictionary(dictionary.get('metered_component')) if dictionary.get('metered_component') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(metered_component)
+ return cls(metered_component,
+ dictionary)
diff --git a/advancedbilling/models/create_multi_invoice_payment.py b/advancedbilling/models/create_multi_invoice_payment.py
index 0e3df8d..69421d8 100644
--- a/advancedbilling/models/create_multi_invoice_payment.py
+++ b/advancedbilling/models/create_multi_invoice_payment.py
@@ -54,7 +54,8 @@ def __init__(self,
memo=APIHelper.SKIP,
details=APIHelper.SKIP,
method=APIHelper.SKIP,
- received_on=APIHelper.SKIP):
+ received_on=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the CreateMultiInvoicePayment class"""
# Initialize members of the class
@@ -69,6 +70,9 @@ def __init__(self,
self.received_on = received_on
self.applications = applications
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -97,13 +101,18 @@ def from_dictionary(cls,
details = dictionary.get("details") if dictionary.get("details") else APIHelper.SKIP
method = dictionary.get("method") if dictionary.get("method") else APIHelper.SKIP
received_on = dictionary.get("received_on") if dictionary.get("received_on") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(amount,
applications,
memo,
details,
method,
- received_on)
+ received_on,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/create_multi_invoice_payment_request.py b/advancedbilling/models/create_multi_invoice_payment_request.py
index d87b142..9027a79 100644
--- a/advancedbilling/models/create_multi_invoice_payment_request.py
+++ b/advancedbilling/models/create_multi_invoice_payment_request.py
@@ -26,12 +26,16 @@ class CreateMultiInvoicePaymentRequest(object):
}
def __init__(self,
- payment=None):
+ payment=None,
+ additional_properties={}):
"""Constructor for the CreateMultiInvoicePaymentRequest class"""
# Initialize members of the class
self.payment = payment
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
payment = CreateMultiInvoicePayment.from_dictionary(dictionary.get('payment')) if dictionary.get('payment') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(payment)
+ return cls(payment,
+ dictionary)
diff --git a/advancedbilling/models/create_offer.py b/advancedbilling/models/create_offer.py
index 0b2599c..f9679e4 100644
--- a/advancedbilling/models/create_offer.py
+++ b/advancedbilling/models/create_offer.py
@@ -52,7 +52,8 @@ def __init__(self,
description=APIHelper.SKIP,
product_price_point_id=APIHelper.SKIP,
components=APIHelper.SKIP,
- coupons=APIHelper.SKIP):
+ coupons=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the CreateOffer class"""
# Initialize members of the class
@@ -68,6 +69,9 @@ def __init__(self,
if coupons is not APIHelper.SKIP:
self.coupons = coupons
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -98,6 +102,10 @@ def from_dictionary(cls,
else:
components = APIHelper.SKIP
coupons = dictionary.get("coupons") if dictionary.get("coupons") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(name,
handle,
@@ -105,4 +113,5 @@ def from_dictionary(cls,
description,
product_price_point_id,
components,
- coupons)
+ coupons,
+ dictionary)
diff --git a/advancedbilling/models/create_offer_component.py b/advancedbilling/models/create_offer_component.py
index bfe94a4..7ed281d 100644
--- a/advancedbilling/models/create_offer_component.py
+++ b/advancedbilling/models/create_offer_component.py
@@ -34,7 +34,8 @@ class CreateOfferComponent(object):
def __init__(self,
component_id=APIHelper.SKIP,
- starting_quantity=APIHelper.SKIP):
+ starting_quantity=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the CreateOfferComponent class"""
# Initialize members of the class
@@ -43,6 +44,9 @@ def __init__(self,
if starting_quantity is not APIHelper.SKIP:
self.starting_quantity = starting_quantity
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -64,6 +68,11 @@ def from_dictionary(cls,
# Extract variables from the dictionary
component_id = dictionary.get("component_id") if dictionary.get("component_id") else APIHelper.SKIP
starting_quantity = dictionary.get("starting_quantity") if dictionary.get("starting_quantity") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(component_id,
- starting_quantity)
+ starting_quantity,
+ dictionary)
diff --git a/advancedbilling/models/create_offer_request.py b/advancedbilling/models/create_offer_request.py
index 67259fe..a971ddc 100644
--- a/advancedbilling/models/create_offer_request.py
+++ b/advancedbilling/models/create_offer_request.py
@@ -26,12 +26,16 @@ class CreateOfferRequest(object):
}
def __init__(self,
- offer=None):
+ offer=None,
+ additional_properties={}):
"""Constructor for the CreateOfferRequest class"""
# Initialize members of the class
self.offer = offer
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
offer = CreateOffer.from_dictionary(dictionary.get('offer')) if dictionary.get('offer') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(offer)
+ return cls(offer,
+ dictionary)
diff --git a/advancedbilling/models/create_on_off_component.py b/advancedbilling/models/create_on_off_component.py
index 64e03c3..452dd6e 100644
--- a/advancedbilling/models/create_on_off_component.py
+++ b/advancedbilling/models/create_on_off_component.py
@@ -26,12 +26,16 @@ class CreateOnOffComponent(object):
}
def __init__(self,
- on_off_component=None):
+ on_off_component=None,
+ additional_properties={}):
"""Constructor for the CreateOnOffComponent class"""
# Initialize members of the class
self.on_off_component = on_off_component
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
on_off_component = OnOffComponent.from_dictionary(dictionary.get('on_off_component')) if dictionary.get('on_off_component') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(on_off_component)
+ return cls(on_off_component,
+ dictionary)
diff --git a/advancedbilling/models/create_or_update_coupon.py b/advancedbilling/models/create_or_update_coupon.py
index 65a3e69..a891fd7 100644
--- a/advancedbilling/models/create_or_update_coupon.py
+++ b/advancedbilling/models/create_or_update_coupon.py
@@ -44,7 +44,8 @@ class CreateOrUpdateCoupon(object):
def __init__(self,
coupon=APIHelper.SKIP,
restricted_products=APIHelper.SKIP,
- restricted_components=APIHelper.SKIP):
+ restricted_components=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the CreateOrUpdateCoupon class"""
# Initialize members of the class
@@ -55,6 +56,9 @@ def __init__(self,
if restricted_components is not APIHelper.SKIP:
self.restricted_components = restricted_components
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -78,7 +82,12 @@ def from_dictionary(cls,
coupon = APIHelper.deserialize_union_type(UnionTypeLookUp.get('CreateOrUpdateCouponCoupon'), dictionary.get('coupon'), False) if dictionary.get('coupon') is not None else APIHelper.SKIP
restricted_products = dictionary.get("restricted_products") if "restricted_products" in dictionary.keys() else APIHelper.SKIP
restricted_components = dictionary.get("restricted_components") if "restricted_components" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(coupon,
restricted_products,
- restricted_components)
+ restricted_components,
+ dictionary)
diff --git a/advancedbilling/models/create_or_update_endpoint.py b/advancedbilling/models/create_or_update_endpoint.py
index c3c5aa3..cfa283e 100644
--- a/advancedbilling/models/create_or_update_endpoint.py
+++ b/advancedbilling/models/create_or_update_endpoint.py
@@ -29,13 +29,17 @@ class CreateOrUpdateEndpoint(object):
def __init__(self,
url=None,
- webhook_subscriptions=None):
+ webhook_subscriptions=None,
+ additional_properties={}):
"""Constructor for the CreateOrUpdateEndpoint class"""
# Initialize members of the class
self.url = url
self.webhook_subscriptions = webhook_subscriptions
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -57,6 +61,11 @@ def from_dictionary(cls,
# Extract variables from the dictionary
url = dictionary.get("url") if dictionary.get("url") else None
webhook_subscriptions = dictionary.get("webhook_subscriptions") if dictionary.get("webhook_subscriptions") else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(url,
- webhook_subscriptions)
+ webhook_subscriptions,
+ dictionary)
diff --git a/advancedbilling/models/create_or_update_endpoint_request.py b/advancedbilling/models/create_or_update_endpoint_request.py
index 2393547..4868410 100644
--- a/advancedbilling/models/create_or_update_endpoint_request.py
+++ b/advancedbilling/models/create_or_update_endpoint_request.py
@@ -26,12 +26,16 @@ class CreateOrUpdateEndpointRequest(object):
}
def __init__(self,
- endpoint=None):
+ endpoint=None,
+ additional_properties={}):
"""Constructor for the CreateOrUpdateEndpointRequest class"""
# Initialize members of the class
self.endpoint = endpoint
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
endpoint = CreateOrUpdateEndpoint.from_dictionary(dictionary.get('endpoint')) if dictionary.get('endpoint') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(endpoint)
+ return cls(endpoint,
+ dictionary)
diff --git a/advancedbilling/models/create_or_update_flat_amount_coupon.py b/advancedbilling/models/create_or_update_flat_amount_coupon.py
index 3ee6280..7ca7dc3 100644
--- a/advancedbilling/models/create_or_update_flat_amount_coupon.py
+++ b/advancedbilling/models/create_or_update_flat_amount_coupon.py
@@ -74,7 +74,8 @@ def __init__(self,
stackable=APIHelper.SKIP,
compounding_strategy=APIHelper.SKIP,
exclude_mid_period_allocations=APIHelper.SKIP,
- apply_on_cancel_at_end_of_period=APIHelper.SKIP):
+ apply_on_cancel_at_end_of_period=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the CreateOrUpdateFlatAmountCoupon class"""
# Initialize members of the class
@@ -100,6 +101,9 @@ def __init__(self,
if apply_on_cancel_at_end_of_period is not APIHelper.SKIP:
self.apply_on_cancel_at_end_of_period = apply_on_cancel_at_end_of_period
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -131,6 +135,10 @@ def from_dictionary(cls,
compounding_strategy = dictionary.get("compounding_strategy") if dictionary.get("compounding_strategy") else APIHelper.SKIP
exclude_mid_period_allocations = dictionary.get("exclude_mid_period_allocations") if "exclude_mid_period_allocations" in dictionary.keys() else APIHelper.SKIP
apply_on_cancel_at_end_of_period = dictionary.get("apply_on_cancel_at_end_of_period") if "apply_on_cancel_at_end_of_period" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(name,
code,
@@ -143,7 +151,8 @@ def from_dictionary(cls,
stackable,
compounding_strategy,
exclude_mid_period_allocations,
- apply_on_cancel_at_end_of_period)
+ apply_on_cancel_at_end_of_period,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/create_or_update_percentage_coupon.py b/advancedbilling/models/create_or_update_percentage_coupon.py
index 2f1cfa7..063f8fe 100644
--- a/advancedbilling/models/create_or_update_percentage_coupon.py
+++ b/advancedbilling/models/create_or_update_percentage_coupon.py
@@ -74,7 +74,8 @@ def __init__(self,
stackable=APIHelper.SKIP,
compounding_strategy=APIHelper.SKIP,
exclude_mid_period_allocations=APIHelper.SKIP,
- apply_on_cancel_at_end_of_period=APIHelper.SKIP):
+ apply_on_cancel_at_end_of_period=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the CreateOrUpdatePercentageCoupon class"""
# Initialize members of the class
@@ -100,6 +101,9 @@ def __init__(self,
if apply_on_cancel_at_end_of_period is not APIHelper.SKIP:
self.apply_on_cancel_at_end_of_period = apply_on_cancel_at_end_of_period
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -132,6 +136,10 @@ def from_dictionary(cls,
compounding_strategy = dictionary.get("compounding_strategy") if dictionary.get("compounding_strategy") else APIHelper.SKIP
exclude_mid_period_allocations = dictionary.get("exclude_mid_period_allocations") if "exclude_mid_period_allocations" in dictionary.keys() else APIHelper.SKIP
apply_on_cancel_at_end_of_period = dictionary.get("apply_on_cancel_at_end_of_period") if "apply_on_cancel_at_end_of_period" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(name,
code,
@@ -144,7 +152,8 @@ def from_dictionary(cls,
stackable,
compounding_strategy,
exclude_mid_period_allocations,
- apply_on_cancel_at_end_of_period)
+ apply_on_cancel_at_end_of_period,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/create_or_update_product.py b/advancedbilling/models/create_or_update_product.py
index 952d435..894f2d5 100644
--- a/advancedbilling/models/create_or_update_product.py
+++ b/advancedbilling/models/create_or_update_product.py
@@ -101,7 +101,8 @@ def __init__(self,
expiration_interval=APIHelper.SKIP,
expiration_interval_unit=APIHelper.SKIP,
auto_create_signup_page=APIHelper.SKIP,
- tax_code=APIHelper.SKIP):
+ tax_code=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the CreateOrUpdateProduct class"""
# Initialize members of the class
@@ -133,6 +134,9 @@ def __init__(self,
if tax_code is not APIHelper.SKIP:
self.tax_code = tax_code
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -168,6 +172,10 @@ def from_dictionary(cls,
expiration_interval_unit = dictionary.get("expiration_interval_unit") if dictionary.get("expiration_interval_unit") else APIHelper.SKIP
auto_create_signup_page = dictionary.get("auto_create_signup_page") if "auto_create_signup_page" in dictionary.keys() else APIHelper.SKIP
tax_code = dictionary.get("tax_code") if dictionary.get("tax_code") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(name,
description,
@@ -184,4 +192,5 @@ def from_dictionary(cls,
expiration_interval,
expiration_interval_unit,
auto_create_signup_page,
- tax_code)
+ tax_code,
+ dictionary)
diff --git a/advancedbilling/models/create_or_update_product_request.py b/advancedbilling/models/create_or_update_product_request.py
index bf5ebf3..3b2a37f 100644
--- a/advancedbilling/models/create_or_update_product_request.py
+++ b/advancedbilling/models/create_or_update_product_request.py
@@ -26,12 +26,16 @@ class CreateOrUpdateProductRequest(object):
}
def __init__(self,
- product=None):
+ product=None,
+ additional_properties={}):
"""Constructor for the CreateOrUpdateProductRequest class"""
# Initialize members of the class
self.product = product
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
product = CreateOrUpdateProduct.from_dictionary(dictionary.get('product')) if dictionary.get('product') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(product)
+ return cls(product,
+ dictionary)
diff --git a/advancedbilling/models/create_or_update_segment_price.py b/advancedbilling/models/create_or_update_segment_price.py
index 20f12f1..3699dd5 100644
--- a/advancedbilling/models/create_or_update_segment_price.py
+++ b/advancedbilling/models/create_or_update_segment_price.py
@@ -38,7 +38,8 @@ class CreateOrUpdateSegmentPrice(object):
def __init__(self,
unit_price=None,
starting_quantity=APIHelper.SKIP,
- ending_quantity=APIHelper.SKIP):
+ ending_quantity=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the CreateOrUpdateSegmentPrice class"""
# Initialize members of the class
@@ -48,6 +49,9 @@ def __init__(self,
self.ending_quantity = ending_quantity
self.unit_price = unit_price
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -71,10 +75,15 @@ def from_dictionary(cls,
unit_price = APIHelper.deserialize_union_type(UnionTypeLookUp.get('CreateOrUpdateSegmentPriceUnitPrice'), dictionary.get('unit_price'), False) if dictionary.get('unit_price') is not None else None
starting_quantity = dictionary.get("starting_quantity") if dictionary.get("starting_quantity") else APIHelper.SKIP
ending_quantity = dictionary.get("ending_quantity") if dictionary.get("ending_quantity") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(unit_price,
starting_quantity,
- ending_quantity)
+ ending_quantity,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/create_payment.py b/advancedbilling/models/create_payment.py
index a3aa682..a114a20 100644
--- a/advancedbilling/models/create_payment.py
+++ b/advancedbilling/models/create_payment.py
@@ -35,7 +35,8 @@ def __init__(self,
amount=None,
memo=None,
payment_details=None,
- payment_method=None):
+ payment_method=None,
+ additional_properties={}):
"""Constructor for the CreatePayment class"""
# Initialize members of the class
@@ -44,6 +45,9 @@ def __init__(self,
self.payment_details = payment_details
self.payment_method = payment_method
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -67,8 +71,13 @@ def from_dictionary(cls,
memo = dictionary.get("memo") if dictionary.get("memo") else None
payment_details = dictionary.get("payment_details") if dictionary.get("payment_details") else None
payment_method = dictionary.get("payment_method") if dictionary.get("payment_method") else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(amount,
memo,
payment_details,
- payment_method)
+ payment_method,
+ dictionary)
diff --git a/advancedbilling/models/create_payment_profile.py b/advancedbilling/models/create_payment_profile.py
index 3889b44..feffd50 100644
--- a/advancedbilling/models/create_payment_profile.py
+++ b/advancedbilling/models/create_payment_profile.py
@@ -215,7 +215,8 @@ def __init__(self,
bank_branch_code=APIHelper.SKIP,
bank_account_type=APIHelper.SKIP,
bank_account_holder_type=APIHelper.SKIP,
- last_four=APIHelper.SKIP):
+ last_four=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the CreatePaymentProfile class"""
# Initialize members of the class
@@ -284,6 +285,9 @@ def __init__(self,
if last_four is not APIHelper.SKIP:
self.last_four = last_four
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -336,6 +340,10 @@ def from_dictionary(cls,
bank_account_type = dictionary.get("bank_account_type") if dictionary.get("bank_account_type") else APIHelper.SKIP
bank_account_holder_type = dictionary.get("bank_account_holder_type") if dictionary.get("bank_account_holder_type") else APIHelper.SKIP
last_four = dictionary.get("last_four") if dictionary.get("last_four") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(chargify_token,
id,
@@ -368,4 +376,5 @@ def from_dictionary(cls,
bank_branch_code,
bank_account_type,
bank_account_holder_type,
- last_four)
+ last_four,
+ dictionary)
diff --git a/advancedbilling/models/create_payment_profile_request.py b/advancedbilling/models/create_payment_profile_request.py
index 0a26880..f4621aa 100644
--- a/advancedbilling/models/create_payment_profile_request.py
+++ b/advancedbilling/models/create_payment_profile_request.py
@@ -26,12 +26,16 @@ class CreatePaymentProfileRequest(object):
}
def __init__(self,
- payment_profile=None):
+ payment_profile=None,
+ additional_properties={}):
"""Constructor for the CreatePaymentProfileRequest class"""
# Initialize members of the class
self.payment_profile = payment_profile
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
payment_profile = CreatePaymentProfile.from_dictionary(dictionary.get('payment_profile')) if dictionary.get('payment_profile') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(payment_profile)
+ return cls(payment_profile,
+ dictionary)
diff --git a/advancedbilling/models/create_prepaid_component.py b/advancedbilling/models/create_prepaid_component.py
index aa1f946..ca54145 100644
--- a/advancedbilling/models/create_prepaid_component.py
+++ b/advancedbilling/models/create_prepaid_component.py
@@ -27,12 +27,16 @@ class CreatePrepaidComponent(object):
}
def __init__(self,
- prepaid_usage_component=None):
+ prepaid_usage_component=None,
+ additional_properties={}):
"""Constructor for the CreatePrepaidComponent class"""
# Initialize members of the class
self.prepaid_usage_component = prepaid_usage_component
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -53,5 +57,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
prepaid_usage_component = PrepaidUsageComponent.from_dictionary(dictionary.get('prepaid_usage_component')) if dictionary.get('prepaid_usage_component') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(prepaid_usage_component)
+ return cls(prepaid_usage_component,
+ dictionary)
diff --git a/advancedbilling/models/create_prepaid_usage_component_price_point.py b/advancedbilling/models/create_prepaid_usage_component_price_point.py
index 652faaf..b4681e5 100644
--- a/advancedbilling/models/create_prepaid_usage_component_price_point.py
+++ b/advancedbilling/models/create_prepaid_usage_component_price_point.py
@@ -76,7 +76,8 @@ def __init__(self,
rollover_prepaid_remainder=APIHelper.SKIP,
renew_prepaid_allocation=APIHelper.SKIP,
expiration_interval=APIHelper.SKIP,
- expiration_interval_unit=APIHelper.SKIP):
+ expiration_interval_unit=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the CreatePrepaidUsageComponentPricePoint class"""
# Initialize members of the class
@@ -96,6 +97,9 @@ def __init__(self,
if expiration_interval_unit is not APIHelper.SKIP:
self.expiration_interval_unit = expiration_interval_unit
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -127,6 +131,10 @@ def from_dictionary(cls,
renew_prepaid_allocation = dictionary.get("renew_prepaid_allocation") if "renew_prepaid_allocation" in dictionary.keys() else APIHelper.SKIP
expiration_interval = dictionary.get("expiration_interval") if dictionary.get("expiration_interval") else APIHelper.SKIP
expiration_interval_unit = dictionary.get("expiration_interval_unit") if dictionary.get("expiration_interval_unit") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(name,
pricing_scheme,
@@ -137,7 +145,8 @@ def from_dictionary(cls,
rollover_prepaid_remainder,
renew_prepaid_allocation,
expiration_interval,
- expiration_interval_unit)
+ expiration_interval_unit,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/create_prepayment.py b/advancedbilling/models/create_prepayment.py
index 9475cae..872d565 100644
--- a/advancedbilling/models/create_prepayment.py
+++ b/advancedbilling/models/create_prepayment.py
@@ -46,7 +46,8 @@ def __init__(self,
details=None,
memo=None,
method=None,
- payment_profile_id=APIHelper.SKIP):
+ payment_profile_id=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the CreatePrepayment class"""
# Initialize members of the class
@@ -57,6 +58,9 @@ def __init__(self,
if payment_profile_id is not APIHelper.SKIP:
self.payment_profile_id = payment_profile_id
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -81,9 +85,14 @@ def from_dictionary(cls,
memo = dictionary.get("memo") if dictionary.get("memo") else None
method = dictionary.get("method") if dictionary.get("method") else None
payment_profile_id = dictionary.get("payment_profile_id") if dictionary.get("payment_profile_id") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(amount,
details,
memo,
method,
- payment_profile_id)
+ payment_profile_id,
+ dictionary)
diff --git a/advancedbilling/models/create_prepayment_request.py b/advancedbilling/models/create_prepayment_request.py
index b4d21d6..5220f28 100644
--- a/advancedbilling/models/create_prepayment_request.py
+++ b/advancedbilling/models/create_prepayment_request.py
@@ -26,12 +26,16 @@ class CreatePrepaymentRequest(object):
}
def __init__(self,
- prepayment=None):
+ prepayment=None,
+ additional_properties={}):
"""Constructor for the CreatePrepaymentRequest class"""
# Initialize members of the class
self.prepayment = prepayment
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
prepayment = CreatePrepayment.from_dictionary(dictionary.get('prepayment')) if dictionary.get('prepayment') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(prepayment)
+ return cls(prepayment,
+ dictionary)
diff --git a/advancedbilling/models/create_prepayment_response.py b/advancedbilling/models/create_prepayment_response.py
index 4b9ea0d..b247ce6 100644
--- a/advancedbilling/models/create_prepayment_response.py
+++ b/advancedbilling/models/create_prepayment_response.py
@@ -26,12 +26,16 @@ class CreatePrepaymentResponse(object):
}
def __init__(self,
- prepayment=None):
+ prepayment=None,
+ additional_properties={}):
"""Constructor for the CreatePrepaymentResponse class"""
# Initialize members of the class
self.prepayment = prepayment
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
prepayment = CreatedPrepayment.from_dictionary(dictionary.get('prepayment')) if dictionary.get('prepayment') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(prepayment)
+ return cls(prepayment,
+ dictionary)
diff --git a/advancedbilling/models/create_product_currency_price.py b/advancedbilling/models/create_product_currency_price.py
index d82cfd8..1cf6e8a 100644
--- a/advancedbilling/models/create_product_currency_price.py
+++ b/advancedbilling/models/create_product_currency_price.py
@@ -31,7 +31,8 @@ class CreateProductCurrencyPrice(object):
def __init__(self,
currency=None,
price=None,
- role=None):
+ role=None,
+ additional_properties={}):
"""Constructor for the CreateProductCurrencyPrice class"""
# Initialize members of the class
@@ -39,6 +40,9 @@ def __init__(self,
self.price = price
self.role = role
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -61,7 +65,12 @@ def from_dictionary(cls,
currency = dictionary.get("currency") if dictionary.get("currency") else None
price = dictionary.get("price") if dictionary.get("price") else None
role = dictionary.get("role") if dictionary.get("role") else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(currency,
price,
- role)
+ role,
+ dictionary)
diff --git a/advancedbilling/models/create_product_currency_prices_request.py b/advancedbilling/models/create_product_currency_prices_request.py
index 28f956a..283babe 100644
--- a/advancedbilling/models/create_product_currency_prices_request.py
+++ b/advancedbilling/models/create_product_currency_prices_request.py
@@ -27,12 +27,16 @@ class CreateProductCurrencyPricesRequest(object):
}
def __init__(self,
- currency_prices=None):
+ currency_prices=None,
+ additional_properties={}):
"""Constructor for the CreateProductCurrencyPricesRequest class"""
# Initialize members of the class
self.currency_prices = currency_prices
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -55,5 +59,10 @@ def from_dictionary(cls,
currency_prices = None
if dictionary.get('currency_prices') is not None:
currency_prices = [CreateProductCurrencyPrice.from_dictionary(x) for x in dictionary.get('currency_prices')]
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(currency_prices)
+ return cls(currency_prices,
+ dictionary)
diff --git a/advancedbilling/models/create_product_family.py b/advancedbilling/models/create_product_family.py
index 8799020..c655f7c 100644
--- a/advancedbilling/models/create_product_family.py
+++ b/advancedbilling/models/create_product_family.py
@@ -38,7 +38,8 @@ class CreateProductFamily(object):
def __init__(self,
name=APIHelper.SKIP,
- description=APIHelper.SKIP):
+ description=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the CreateProductFamily class"""
# Initialize members of the class
@@ -47,6 +48,9 @@ def __init__(self,
if description is not APIHelper.SKIP:
self.description = description
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -68,6 +72,11 @@ def from_dictionary(cls,
# Extract variables from the dictionary
name = dictionary.get("name") if dictionary.get("name") else APIHelper.SKIP
description = dictionary.get("description") if "description" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(name,
- description)
+ description,
+ dictionary)
diff --git a/advancedbilling/models/create_product_family_request.py b/advancedbilling/models/create_product_family_request.py
index 3affc1a..f7cbe33 100644
--- a/advancedbilling/models/create_product_family_request.py
+++ b/advancedbilling/models/create_product_family_request.py
@@ -26,12 +26,16 @@ class CreateProductFamilyRequest(object):
}
def __init__(self,
- product_family=None):
+ product_family=None,
+ additional_properties={}):
"""Constructor for the CreateProductFamilyRequest class"""
# Initialize members of the class
self.product_family = product_family
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
product_family = CreateProductFamily.from_dictionary(dictionary.get('product_family')) if dictionary.get('product_family') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(product_family)
+ return cls(product_family,
+ dictionary)
diff --git a/advancedbilling/models/create_product_price_point.py b/advancedbilling/models/create_product_price_point.py
index 06aada4..e0f7ece 100644
--- a/advancedbilling/models/create_product_price_point.py
+++ b/advancedbilling/models/create_product_price_point.py
@@ -94,7 +94,8 @@ def __init__(self,
initial_charge_after_trial=APIHelper.SKIP,
expiration_interval=APIHelper.SKIP,
expiration_interval_unit=APIHelper.SKIP,
- use_site_exchange_rate=True):
+ use_site_exchange_rate=True,
+ additional_properties={}):
"""Constructor for the CreateProductPricePoint class"""
# Initialize members of the class
@@ -122,6 +123,9 @@ def __init__(self,
self.expiration_interval_unit = expiration_interval_unit
self.use_site_exchange_rate = use_site_exchange_rate
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -155,6 +159,10 @@ def from_dictionary(cls,
expiration_interval = dictionary.get("expiration_interval") if dictionary.get("expiration_interval") else APIHelper.SKIP
expiration_interval_unit = dictionary.get("expiration_interval_unit") if dictionary.get("expiration_interval_unit") else APIHelper.SKIP
use_site_exchange_rate = dictionary.get("use_site_exchange_rate") if dictionary.get("use_site_exchange_rate") else True
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(name,
price_in_cents,
@@ -169,4 +177,5 @@ def from_dictionary(cls,
initial_charge_after_trial,
expiration_interval,
expiration_interval_unit,
- use_site_exchange_rate)
+ use_site_exchange_rate,
+ dictionary)
diff --git a/advancedbilling/models/create_product_price_point_request.py b/advancedbilling/models/create_product_price_point_request.py
index 83f3dcf..4633dec 100644
--- a/advancedbilling/models/create_product_price_point_request.py
+++ b/advancedbilling/models/create_product_price_point_request.py
@@ -26,12 +26,16 @@ class CreateProductPricePointRequest(object):
}
def __init__(self,
- price_point=None):
+ price_point=None,
+ additional_properties={}):
"""Constructor for the CreateProductPricePointRequest class"""
# Initialize members of the class
self.price_point = price_point
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
price_point = CreateProductPricePoint.from_dictionary(dictionary.get('price_point')) if dictionary.get('price_point') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(price_point)
+ return cls(price_point,
+ dictionary)
diff --git a/advancedbilling/models/create_quantity_based_component.py b/advancedbilling/models/create_quantity_based_component.py
index c2a8868..26b8238 100644
--- a/advancedbilling/models/create_quantity_based_component.py
+++ b/advancedbilling/models/create_quantity_based_component.py
@@ -27,12 +27,16 @@ class CreateQuantityBasedComponent(object):
}
def __init__(self,
- quantity_based_component=None):
+ quantity_based_component=None,
+ additional_properties={}):
"""Constructor for the CreateQuantityBasedComponent class"""
# Initialize members of the class
self.quantity_based_component = quantity_based_component
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -53,5 +57,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
quantity_based_component = QuantityBasedComponent.from_dictionary(dictionary.get('quantity_based_component')) if dictionary.get('quantity_based_component') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(quantity_based_component)
+ return cls(quantity_based_component,
+ dictionary)
diff --git a/advancedbilling/models/create_reason_code.py b/advancedbilling/models/create_reason_code.py
index f1bad70..c1f33d9 100644
--- a/advancedbilling/models/create_reason_code.py
+++ b/advancedbilling/models/create_reason_code.py
@@ -36,7 +36,8 @@ class CreateReasonCode(object):
def __init__(self,
code=None,
description=None,
- position=APIHelper.SKIP):
+ position=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the CreateReasonCode class"""
# Initialize members of the class
@@ -45,6 +46,9 @@ def __init__(self,
if position is not APIHelper.SKIP:
self.position = position
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -67,7 +71,12 @@ def from_dictionary(cls,
code = dictionary.get("code") if dictionary.get("code") else None
description = dictionary.get("description") if dictionary.get("description") else None
position = dictionary.get("position") if dictionary.get("position") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(code,
description,
- position)
+ position,
+ dictionary)
diff --git a/advancedbilling/models/create_reason_code_request.py b/advancedbilling/models/create_reason_code_request.py
index ea1b846..79f93eb 100644
--- a/advancedbilling/models/create_reason_code_request.py
+++ b/advancedbilling/models/create_reason_code_request.py
@@ -26,12 +26,16 @@ class CreateReasonCodeRequest(object):
}
def __init__(self,
- reason_code=None):
+ reason_code=None,
+ additional_properties={}):
"""Constructor for the CreateReasonCodeRequest class"""
# Initialize members of the class
self.reason_code = reason_code
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
reason_code = CreateReasonCode.from_dictionary(dictionary.get('reason_code')) if dictionary.get('reason_code') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(reason_code)
+ return cls(reason_code,
+ dictionary)
diff --git a/advancedbilling/models/create_segment.py b/advancedbilling/models/create_segment.py
index 75af9d3..70830ab 100644
--- a/advancedbilling/models/create_segment.py
+++ b/advancedbilling/models/create_segment.py
@@ -66,7 +66,8 @@ def __init__(self,
segment_property_2_value=APIHelper.SKIP,
segment_property_3_value=APIHelper.SKIP,
segment_property_4_value=APIHelper.SKIP,
- prices=APIHelper.SKIP):
+ prices=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the CreateSegment class"""
# Initialize members of the class
@@ -82,6 +83,9 @@ def __init__(self,
if prices is not APIHelper.SKIP:
self.prices = prices
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -112,10 +116,15 @@ def from_dictionary(cls,
prices = [CreateOrUpdateSegmentPrice.from_dictionary(x) for x in dictionary.get('prices')]
else:
prices = APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(pricing_scheme,
segment_property_1_value,
segment_property_2_value,
segment_property_3_value,
segment_property_4_value,
- prices)
+ prices,
+ dictionary)
diff --git a/advancedbilling/models/create_segment_request.py b/advancedbilling/models/create_segment_request.py
index 5d3c524..041991a 100644
--- a/advancedbilling/models/create_segment_request.py
+++ b/advancedbilling/models/create_segment_request.py
@@ -26,12 +26,16 @@ class CreateSegmentRequest(object):
}
def __init__(self,
- segment=None):
+ segment=None,
+ additional_properties={}):
"""Constructor for the CreateSegmentRequest class"""
# Initialize members of the class
self.segment = segment
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
segment = CreateSegment.from_dictionary(dictionary.get('segment')) if dictionary.get('segment') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(segment)
+ return cls(segment,
+ dictionary)
diff --git a/advancedbilling/models/create_signup_proforma_preview_include.py b/advancedbilling/models/create_signup_proforma_preview_include.py
new file mode 100644
index 0000000..2e9fc04
--- /dev/null
+++ b/advancedbilling/models/create_signup_proforma_preview_include.py
@@ -0,0 +1,22 @@
+# -*- coding: utf-8 -*-
+
+"""
+advanced_billing
+
+This file was automatically generated for Maxio by APIMATIC v3.0 (
+ https://www.apimatic.io ).
+"""
+
+
+class CreateSignupProformaPreviewInclude(object):
+
+ """Implementation of the 'Create Signup Proforma Preview Include' enum.
+
+ TODO: type enum description here.
+
+ Attributes:
+ NEXT_PROFORMA_INVOICE: TODO: type description here.
+
+ """
+ NEXT_PROFORMA_INVOICE = 'next_proforma_invoice'
+
diff --git a/advancedbilling/models/create_subscription.py b/advancedbilling/models/create_subscription.py
index 0223793..d378430 100644
--- a/advancedbilling/models/create_subscription.py
+++ b/advancedbilling/models/create_subscription.py
@@ -365,7 +365,8 @@ def __init__(self,
ach_agreement=APIHelper.SKIP,
dunning_communication_delay_enabled=False,
dunning_communication_delay_time_zone=APIHelper.SKIP,
- skip_billing_manifest_taxes=False):
+ skip_billing_manifest_taxes=False,
+ additional_properties={}):
"""Constructor for the CreateSubscription class"""
# Initialize members of the class
@@ -465,6 +466,9 @@ def __init__(self,
self.dunning_communication_delay_time_zone = dunning_communication_delay_time_zone
self.skip_billing_manifest_taxes = skip_billing_manifest_taxes
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -538,6 +542,10 @@ def from_dictionary(cls,
dunning_communication_delay_enabled = dictionary.get("dunning_communication_delay_enabled") if dictionary.get("dunning_communication_delay_enabled") else False
dunning_communication_delay_time_zone = dictionary.get("dunning_communication_delay_time_zone") if "dunning_communication_delay_time_zone" in dictionary.keys() else APIHelper.SKIP
skip_billing_manifest_taxes = dictionary.get("skip_billing_manifest_taxes") if dictionary.get("skip_billing_manifest_taxes") else False
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(product_handle,
product_id,
@@ -587,4 +595,5 @@ def from_dictionary(cls,
ach_agreement,
dunning_communication_delay_enabled,
dunning_communication_delay_time_zone,
- skip_billing_manifest_taxes)
+ skip_billing_manifest_taxes,
+ dictionary)
diff --git a/advancedbilling/models/create_subscription_component.py b/advancedbilling/models/create_subscription_component.py
index 0b84396..7035d56 100644
--- a/advancedbilling/models/create_subscription_component.py
+++ b/advancedbilling/models/create_subscription_component.py
@@ -57,7 +57,8 @@ def __init__(self,
allocated_quantity=APIHelper.SKIP,
quantity=APIHelper.SKIP,
price_point_id=APIHelper.SKIP,
- custom_price=APIHelper.SKIP):
+ custom_price=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the CreateSubscriptionComponent class"""
# Initialize members of the class
@@ -76,6 +77,9 @@ def __init__(self,
if custom_price is not APIHelper.SKIP:
self.custom_price = custom_price
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -103,6 +107,10 @@ def from_dictionary(cls,
quantity = dictionary.get("quantity") if dictionary.get("quantity") else APIHelper.SKIP
price_point_id = APIHelper.deserialize_union_type(UnionTypeLookUp.get('CreateSubscriptionComponentPricePointId'), dictionary.get('price_point_id'), False) if dictionary.get('price_point_id') is not None else APIHelper.SKIP
custom_price = ComponentCustomPrice.from_dictionary(dictionary.get('custom_price')) if 'custom_price' in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(component_id,
enabled,
@@ -110,7 +118,8 @@ def from_dictionary(cls,
allocated_quantity,
quantity,
price_point_id,
- custom_price)
+ custom_price,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/create_subscription_group.py b/advancedbilling/models/create_subscription_group.py
index 9666b5f..c4691f2 100644
--- a/advancedbilling/models/create_subscription_group.py
+++ b/advancedbilling/models/create_subscription_group.py
@@ -33,7 +33,8 @@ class CreateSubscriptionGroup(object):
def __init__(self,
subscription_id=None,
- member_ids=APIHelper.SKIP):
+ member_ids=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the CreateSubscriptionGroup class"""
# Initialize members of the class
@@ -41,6 +42,9 @@ def __init__(self,
if member_ids is not APIHelper.SKIP:
self.member_ids = member_ids
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -63,9 +67,14 @@ def from_dictionary(cls,
# Extract variables from the dictionary
subscription_id = APIHelper.deserialize_union_type(UnionTypeLookUp.get('CreateSubscriptionGroupSubscriptionId'), dictionary.get('subscription_id'), False) if dictionary.get('subscription_id') is not None else None
member_ids = dictionary.get("member_ids") if dictionary.get("member_ids") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(subscription_id,
- member_ids)
+ member_ids,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/create_subscription_group_request.py b/advancedbilling/models/create_subscription_group_request.py
index d3d74f3..36d8137 100644
--- a/advancedbilling/models/create_subscription_group_request.py
+++ b/advancedbilling/models/create_subscription_group_request.py
@@ -27,12 +27,16 @@ class CreateSubscriptionGroupRequest(object):
}
def __init__(self,
- subscription_group=None):
+ subscription_group=None,
+ additional_properties={}):
"""Constructor for the CreateSubscriptionGroupRequest class"""
# Initialize members of the class
self.subscription_group = subscription_group
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -53,5 +57,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
subscription_group = CreateSubscriptionGroup.from_dictionary(dictionary.get('subscription_group')) if dictionary.get('subscription_group') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(subscription_group)
+ return cls(subscription_group,
+ dictionary)
diff --git a/advancedbilling/models/create_subscription_request.py b/advancedbilling/models/create_subscription_request.py
index 1595b4f..282576c 100644
--- a/advancedbilling/models/create_subscription_request.py
+++ b/advancedbilling/models/create_subscription_request.py
@@ -26,12 +26,16 @@ class CreateSubscriptionRequest(object):
}
def __init__(self,
- subscription=None):
+ subscription=None,
+ additional_properties={}):
"""Constructor for the CreateSubscriptionRequest class"""
# Initialize members of the class
self.subscription = subscription
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
subscription = CreateSubscription.from_dictionary(dictionary.get('subscription')) if dictionary.get('subscription') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(subscription)
+ return cls(subscription,
+ dictionary)
diff --git a/advancedbilling/models/create_usage.py b/advancedbilling/models/create_usage.py
index d0041df..71b40f2 100644
--- a/advancedbilling/models/create_usage.py
+++ b/advancedbilling/models/create_usage.py
@@ -47,7 +47,8 @@ def __init__(self,
quantity=APIHelper.SKIP,
price_point_id=APIHelper.SKIP,
memo=APIHelper.SKIP,
- billing_schedule=APIHelper.SKIP):
+ billing_schedule=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the CreateUsage class"""
# Initialize members of the class
@@ -60,6 +61,9 @@ def __init__(self,
if billing_schedule is not APIHelper.SKIP:
self.billing_schedule = billing_schedule
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -83,8 +87,13 @@ def from_dictionary(cls,
price_point_id = dictionary.get("price_point_id") if dictionary.get("price_point_id") else APIHelper.SKIP
memo = dictionary.get("memo") if dictionary.get("memo") else APIHelper.SKIP
billing_schedule = BillingSchedule.from_dictionary(dictionary.get('billing_schedule')) if 'billing_schedule' in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(quantity,
price_point_id,
memo,
- billing_schedule)
+ billing_schedule,
+ dictionary)
diff --git a/advancedbilling/models/create_usage_request.py b/advancedbilling/models/create_usage_request.py
index d050e91..a746027 100644
--- a/advancedbilling/models/create_usage_request.py
+++ b/advancedbilling/models/create_usage_request.py
@@ -26,12 +26,16 @@ class CreateUsageRequest(object):
}
def __init__(self,
- usage=None):
+ usage=None,
+ additional_properties={}):
"""Constructor for the CreateUsageRequest class"""
# Initialize members of the class
self.usage = usage
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
usage = CreateUsage.from_dictionary(dictionary.get('usage')) if dictionary.get('usage') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(usage)
+ return cls(usage,
+ dictionary)
diff --git a/advancedbilling/models/created_prepayment.py b/advancedbilling/models/created_prepayment.py
index bccd63a..2d50d07 100644
--- a/advancedbilling/models/created_prepayment.py
+++ b/advancedbilling/models/created_prepayment.py
@@ -54,7 +54,8 @@ def __init__(self,
memo=APIHelper.SKIP,
created_at=APIHelper.SKIP,
starting_balance_in_cents=APIHelper.SKIP,
- ending_balance_in_cents=APIHelper.SKIP):
+ ending_balance_in_cents=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the CreatedPrepayment class"""
# Initialize members of the class
@@ -73,6 +74,9 @@ def __init__(self,
if ending_balance_in_cents is not APIHelper.SKIP:
self.ending_balance_in_cents = ending_balance_in_cents
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -99,6 +103,10 @@ def from_dictionary(cls,
created_at = APIHelper.RFC3339DateTime.from_value(dictionary.get("created_at")).datetime if dictionary.get("created_at") else APIHelper.SKIP
starting_balance_in_cents = dictionary.get("starting_balance_in_cents") if dictionary.get("starting_balance_in_cents") else APIHelper.SKIP
ending_balance_in_cents = dictionary.get("ending_balance_in_cents") if dictionary.get("ending_balance_in_cents") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(id,
subscription_id,
@@ -106,4 +114,5 @@ def from_dictionary(cls,
memo,
created_at,
starting_balance_in_cents,
- ending_balance_in_cents)
+ ending_balance_in_cents,
+ dictionary)
diff --git a/advancedbilling/models/credit_account_balance_changed.py b/advancedbilling/models/credit_account_balance_changed.py
index 84702c8..b18a528 100644
--- a/advancedbilling/models/credit_account_balance_changed.py
+++ b/advancedbilling/models/credit_account_balance_changed.py
@@ -40,7 +40,8 @@ def __init__(self,
service_credit_account_balance_in_cents=None,
service_credit_balance_change_in_cents=None,
currency_code=None,
- at_time=None):
+ at_time=None,
+ additional_properties={}):
"""Constructor for the CreditAccountBalanceChanged class"""
# Initialize members of the class
@@ -50,6 +51,9 @@ def __init__(self,
self.currency_code = currency_code
self.at_time = APIHelper.apply_datetime_converter(at_time, APIHelper.RFC3339DateTime) if at_time else None
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -74,12 +78,17 @@ def from_dictionary(cls,
service_credit_balance_change_in_cents = dictionary.get("service_credit_balance_change_in_cents") if dictionary.get("service_credit_balance_change_in_cents") else None
currency_code = dictionary.get("currency_code") if dictionary.get("currency_code") else None
at_time = APIHelper.RFC3339DateTime.from_value(dictionary.get("at_time")).datetime if dictionary.get("at_time") else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(reason,
service_credit_account_balance_in_cents,
service_credit_balance_change_in_cents,
currency_code,
- at_time)
+ at_time,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/credit_card_attributes.py b/advancedbilling/models/credit_card_attributes.py
index 4b71a76..dfb7556 100644
--- a/advancedbilling/models/credit_card_attributes.py
+++ b/advancedbilling/models/credit_card_attributes.py
@@ -38,7 +38,8 @@ class CreditCardAttributes(object):
def __init__(self,
full_number=APIHelper.SKIP,
expiration_month=APIHelper.SKIP,
- expiration_year=APIHelper.SKIP):
+ expiration_year=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the CreditCardAttributes class"""
# Initialize members of the class
@@ -49,6 +50,9 @@ def __init__(self,
if expiration_year is not APIHelper.SKIP:
self.expiration_year = expiration_year
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -71,10 +75,15 @@ def from_dictionary(cls,
full_number = dictionary.get("full_number") if dictionary.get("full_number") else APIHelper.SKIP
expiration_month = dictionary.get("expiration_month") if dictionary.get("expiration_month") else APIHelper.SKIP
expiration_year = dictionary.get("expiration_year") if dictionary.get("expiration_year") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(full_number,
expiration_month,
- expiration_year)
+ expiration_year,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/credit_card_payment_profile.py b/advancedbilling/models/credit_card_payment_profile.py
index a7ce437..b053015 100644
--- a/advancedbilling/models/credit_card_payment_profile.py
+++ b/advancedbilling/models/credit_card_payment_profile.py
@@ -144,7 +144,8 @@ def __init__(self,
disabled=APIHelper.SKIP,
chargify_token=APIHelper.SKIP,
site_gateway_setting_id=APIHelper.SKIP,
- gateway_handle=APIHelper.SKIP):
+ gateway_handle=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the CreditCardPaymentProfile class"""
# Initialize members of the class
@@ -192,6 +193,9 @@ def __init__(self,
if gateway_handle is not APIHelper.SKIP:
self.gateway_handle = gateway_handle
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -233,6 +237,10 @@ def from_dictionary(cls,
chargify_token = dictionary.get("chargify_token") if dictionary.get("chargify_token") else APIHelper.SKIP
site_gateway_setting_id = dictionary.get("site_gateway_setting_id") if "site_gateway_setting_id" in dictionary.keys() else APIHelper.SKIP
gateway_handle = dictionary.get("gateway_handle") if "gateway_handle" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(masked_card_number,
id,
@@ -255,7 +263,8 @@ def from_dictionary(cls,
disabled,
chargify_token,
site_gateway_setting_id,
- gateway_handle)
+ gateway_handle,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/credit_note.py b/advancedbilling/models/credit_note.py
index 51345ec..90dd034 100644
--- a/advancedbilling/models/credit_note.py
+++ b/advancedbilling/models/credit_note.py
@@ -188,7 +188,8 @@ def __init__(self,
taxes=APIHelper.SKIP,
applications=APIHelper.SKIP,
refunds=APIHelper.SKIP,
- origin_invoices=APIHelper.SKIP):
+ origin_invoices=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the CreditNote class"""
# Initialize members of the class
@@ -247,6 +248,9 @@ def __init__(self,
if origin_invoices is not APIHelper.SKIP:
self.origin_invoices = origin_invoices
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -317,6 +321,10 @@ def from_dictionary(cls,
origin_invoices = [OriginInvoice.from_dictionary(x) for x in dictionary.get('origin_invoices')]
else:
origin_invoices = APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(uid,
site_id,
@@ -344,7 +352,8 @@ def from_dictionary(cls,
taxes,
applications,
refunds,
- origin_invoices)
+ origin_invoices,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/credit_note_1.py b/advancedbilling/models/credit_note_1.py
index 0e1d39a..23d70b2 100644
--- a/advancedbilling/models/credit_note_1.py
+++ b/advancedbilling/models/credit_note_1.py
@@ -185,7 +185,8 @@ def __init__(self,
taxes=APIHelper.SKIP,
applications=APIHelper.SKIP,
refunds=APIHelper.SKIP,
- origin_invoices=APIHelper.SKIP):
+ origin_invoices=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the CreditNote1 class"""
# Initialize members of the class
@@ -244,6 +245,9 @@ def __init__(self,
if origin_invoices is not APIHelper.SKIP:
self.origin_invoices = origin_invoices
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -314,6 +318,10 @@ def from_dictionary(cls,
origin_invoices = [OriginInvoice.from_dictionary(x) for x in dictionary.get('origin_invoices')]
else:
origin_invoices = APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(uid,
site_id,
@@ -341,7 +349,8 @@ def from_dictionary(cls,
taxes,
applications,
refunds,
- origin_invoices)
+ origin_invoices,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/credit_note_application.py b/advancedbilling/models/credit_note_application.py
index 71d1ad0..4e81d3c 100644
--- a/advancedbilling/models/credit_note_application.py
+++ b/advancedbilling/models/credit_note_application.py
@@ -46,7 +46,8 @@ def __init__(self,
transaction_time=APIHelper.SKIP,
invoice_uid=APIHelper.SKIP,
memo=APIHelper.SKIP,
- applied_amount=APIHelper.SKIP):
+ applied_amount=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the CreditNoteApplication class"""
# Initialize members of the class
@@ -61,6 +62,9 @@ def __init__(self,
if applied_amount is not APIHelper.SKIP:
self.applied_amount = applied_amount
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -85,12 +89,17 @@ def from_dictionary(cls,
invoice_uid = dictionary.get("invoice_uid") if dictionary.get("invoice_uid") else APIHelper.SKIP
memo = dictionary.get("memo") if dictionary.get("memo") else APIHelper.SKIP
applied_amount = dictionary.get("applied_amount") if dictionary.get("applied_amount") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(uid,
transaction_time,
invoice_uid,
memo,
- applied_amount)
+ applied_amount,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/credit_note_line_item.py b/advancedbilling/models/credit_note_line_item.py
index 7d87317..361fc20 100644
--- a/advancedbilling/models/credit_note_line_item.py
+++ b/advancedbilling/models/credit_note_line_item.py
@@ -145,7 +145,8 @@ def __init__(self,
component_id=APIHelper.SKIP,
price_point_id=APIHelper.SKIP,
billing_schedule_item_id=APIHelper.SKIP,
- custom_item=APIHelper.SKIP):
+ custom_item=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the CreditNoteLineItem class"""
# Initialize members of the class
@@ -186,6 +187,9 @@ def __init__(self,
if custom_item is not APIHelper.SKIP:
self.custom_item = custom_item
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -223,6 +227,10 @@ def from_dictionary(cls,
price_point_id = dictionary.get("price_point_id") if "price_point_id" in dictionary.keys() else APIHelper.SKIP
billing_schedule_item_id = dictionary.get("billing_schedule_item_id") if "billing_schedule_item_id" in dictionary.keys() else APIHelper.SKIP
custom_item = dictionary.get("custom_item") if "custom_item" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(uid,
title,
@@ -241,7 +249,8 @@ def from_dictionary(cls,
component_id,
price_point_id,
billing_schedule_item_id,
- custom_item)
+ custom_item,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/credit_scheme_request.py b/advancedbilling/models/credit_scheme_request.py
index 773a11c..4f4de33 100644
--- a/advancedbilling/models/credit_scheme_request.py
+++ b/advancedbilling/models/credit_scheme_request.py
@@ -25,12 +25,16 @@ class CreditSchemeRequest(object):
}
def __init__(self,
- credit_scheme=None):
+ credit_scheme=None,
+ additional_properties={}):
"""Constructor for the CreditSchemeRequest class"""
# Initialize members of the class
self.credit_scheme = credit_scheme
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -51,5 +55,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
credit_scheme = dictionary.get("credit_scheme") if dictionary.get("credit_scheme") else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(credit_scheme)
+ return cls(credit_scheme,
+ dictionary)
diff --git a/advancedbilling/models/currency_price.py b/advancedbilling/models/currency_price.py
index 9345abe..cdf1bd0 100644
--- a/advancedbilling/models/currency_price.py
+++ b/advancedbilling/models/currency_price.py
@@ -50,7 +50,8 @@ def __init__(self,
price=APIHelper.SKIP,
formatted_price=APIHelper.SKIP,
product_price_point_id=APIHelper.SKIP,
- role=APIHelper.SKIP):
+ role=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the CurrencyPrice class"""
# Initialize members of the class
@@ -67,6 +68,9 @@ def __init__(self,
if role is not APIHelper.SKIP:
self.role = role
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -92,10 +96,15 @@ def from_dictionary(cls,
formatted_price = dictionary.get("formatted_price") if dictionary.get("formatted_price") else APIHelper.SKIP
product_price_point_id = dictionary.get("product_price_point_id") if dictionary.get("product_price_point_id") else APIHelper.SKIP
role = dictionary.get("role") if dictionary.get("role") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(id,
currency,
price,
formatted_price,
product_price_point_id,
- role)
+ role,
+ dictionary)
diff --git a/advancedbilling/models/currency_prices_response.py b/advancedbilling/models/currency_prices_response.py
index 8acf267..1ab42a9 100644
--- a/advancedbilling/models/currency_prices_response.py
+++ b/advancedbilling/models/currency_prices_response.py
@@ -26,12 +26,16 @@ class CurrencyPricesResponse(object):
}
def __init__(self,
- currency_prices=None):
+ currency_prices=None,
+ additional_properties={}):
"""Constructor for the CurrencyPricesResponse class"""
# Initialize members of the class
self.currency_prices = currency_prices
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -54,5 +58,10 @@ def from_dictionary(cls,
currency_prices = None
if dictionary.get('currency_prices') is not None:
currency_prices = [CurrencyPrice.from_dictionary(x) for x in dictionary.get('currency_prices')]
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(currency_prices)
+ return cls(currency_prices,
+ dictionary)
diff --git a/advancedbilling/models/custom_field_value_change.py b/advancedbilling/models/custom_field_value_change.py
index 5b85a22..e2e1bc9 100644
--- a/advancedbilling/models/custom_field_value_change.py
+++ b/advancedbilling/models/custom_field_value_change.py
@@ -49,7 +49,8 @@ def __init__(self,
old_value=None,
new_value=None,
resource_type=None,
- resource_id=None):
+ resource_id=None,
+ additional_properties={}):
"""Constructor for the CustomFieldValueChange class"""
# Initialize members of the class
@@ -61,6 +62,9 @@ def __init__(self,
self.resource_type = resource_type
self.resource_id = resource_id
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -87,6 +91,10 @@ def from_dictionary(cls,
new_value = dictionary.get("new_value") if dictionary.get("new_value") else None
resource_type = dictionary.get("resource_type") if dictionary.get("resource_type") else None
resource_id = dictionary.get("resource_id") if dictionary.get("resource_id") else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(event_type,
metafield_name,
@@ -94,7 +102,8 @@ def from_dictionary(cls,
old_value,
new_value,
resource_type,
- resource_id)
+ resource_id,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/customer.py b/advancedbilling/models/customer.py
index 0650745..2695b36 100644
--- a/advancedbilling/models/customer.py
+++ b/advancedbilling/models/customer.py
@@ -174,7 +174,8 @@ def __init__(self,
vat_number=APIHelper.SKIP,
parent_id=APIHelper.SKIP,
locale=APIHelper.SKIP,
- default_subscription_group_uid=APIHelper.SKIP):
+ default_subscription_group_uid=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the Customer class"""
# Initialize members of the class
@@ -233,6 +234,9 @@ def __init__(self,
if default_subscription_group_uid is not APIHelper.SKIP:
self.default_subscription_group_uid = default_subscription_group_uid
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -288,6 +292,10 @@ def from_dictionary(cls,
parent_id = dictionary.get("parent_id") if "parent_id" in dictionary.keys() else APIHelper.SKIP
locale = dictionary.get("locale") if "locale" in dictionary.keys() else APIHelper.SKIP
default_subscription_group_uid = dictionary.get("default_subscription_group_uid") if "default_subscription_group_uid" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(first_name,
last_name,
@@ -315,7 +323,8 @@ def from_dictionary(cls,
vat_number,
parent_id,
locale,
- default_subscription_group_uid)
+ default_subscription_group_uid,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/customer_1.py b/advancedbilling/models/customer_1.py
index 3490525..04e178d 100644
--- a/advancedbilling/models/customer_1.py
+++ b/advancedbilling/models/customer_1.py
@@ -48,6 +48,7 @@ class Customer1(object):
]
_nullables = [
+ 'chargify_id',
'organization',
'vat_number',
'reference',
@@ -60,7 +61,8 @@ def __init__(self,
organization=APIHelper.SKIP,
email=APIHelper.SKIP,
vat_number=APIHelper.SKIP,
- reference=APIHelper.SKIP):
+ reference=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the Customer1 class"""
# Initialize members of the class
@@ -79,6 +81,9 @@ def __init__(self,
if reference is not APIHelper.SKIP:
self.reference = reference
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -98,13 +103,17 @@ def from_dictionary(cls,
return None
# Extract variables from the dictionary
- chargify_id = dictionary.get("chargify_id") if dictionary.get("chargify_id") else APIHelper.SKIP
+ chargify_id = dictionary.get("chargify_id") if "chargify_id" in dictionary.keys() else APIHelper.SKIP
first_name = dictionary.get("first_name") if dictionary.get("first_name") else APIHelper.SKIP
last_name = dictionary.get("last_name") if dictionary.get("last_name") else APIHelper.SKIP
organization = dictionary.get("organization") if "organization" in dictionary.keys() else APIHelper.SKIP
email = dictionary.get("email") if dictionary.get("email") else APIHelper.SKIP
vat_number = dictionary.get("vat_number") if "vat_number" in dictionary.keys() else APIHelper.SKIP
reference = dictionary.get("reference") if "reference" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(chargify_id,
first_name,
@@ -112,7 +121,8 @@ def from_dictionary(cls,
organization,
email,
vat_number,
- reference)
+ reference,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/customer_attributes.py b/advancedbilling/models/customer_attributes.py
index 9a4b6bd..fe6e6c2 100644
--- a/advancedbilling/models/customer_attributes.py
+++ b/advancedbilling/models/customer_attributes.py
@@ -132,7 +132,8 @@ def __init__(self,
tax_exempt=APIHelper.SKIP,
vat_number=APIHelper.SKIP,
metafields=APIHelper.SKIP,
- parent_id=APIHelper.SKIP):
+ parent_id=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the CustomerAttributes class"""
# Initialize members of the class
@@ -173,6 +174,9 @@ def __init__(self,
if parent_id is not APIHelper.SKIP:
self.parent_id = parent_id
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -210,6 +214,10 @@ def from_dictionary(cls,
vat_number = dictionary.get("vat_number") if dictionary.get("vat_number") else APIHelper.SKIP
metafields = dictionary.get("metafields") if dictionary.get("metafields") else APIHelper.SKIP
parent_id = dictionary.get("parent_id") if "parent_id" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(first_name,
last_name,
@@ -228,7 +236,8 @@ def from_dictionary(cls,
tax_exempt,
vat_number,
metafields,
- parent_id)
+ parent_id,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/customer_change.py b/advancedbilling/models/customer_change.py
index 40b5507..74b44dd 100644
--- a/advancedbilling/models/customer_change.py
+++ b/advancedbilling/models/customer_change.py
@@ -50,7 +50,8 @@ def __init__(self,
payer=APIHelper.SKIP,
shipping_address=APIHelper.SKIP,
billing_address=APIHelper.SKIP,
- custom_fields=APIHelper.SKIP):
+ custom_fields=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the CustomerChange class"""
# Initialize members of the class
@@ -63,6 +64,9 @@ def __init__(self,
if custom_fields is not APIHelper.SKIP:
self.custom_fields = custom_fields
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -99,8 +103,13 @@ def from_dictionary(cls,
custom_fields = APIHelper.deserialize_union_type(UnionTypeLookUp.get('CustomerChangeCustomFields'), dictionary.get('custom_fields'), False) if dictionary.get('custom_fields') is not None else None
else:
custom_fields = APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(payer,
shipping_address,
billing_address,
- custom_fields)
+ custom_fields,
+ dictionary)
diff --git a/advancedbilling/models/customer_changes_preview_response.py b/advancedbilling/models/customer_changes_preview_response.py
index 700aa80..82d5571 100644
--- a/advancedbilling/models/customer_changes_preview_response.py
+++ b/advancedbilling/models/customer_changes_preview_response.py
@@ -26,12 +26,16 @@ class CustomerChangesPreviewResponse(object):
}
def __init__(self,
- changes=None):
+ changes=None,
+ additional_properties={}):
"""Constructor for the CustomerChangesPreviewResponse class"""
# Initialize members of the class
self.changes = changes
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
changes = CustomerChange.from_dictionary(dictionary.get('changes')) if dictionary.get('changes') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(changes)
+ return cls(changes,
+ dictionary)
diff --git a/advancedbilling/models/customer_custom_fields_change.py b/advancedbilling/models/customer_custom_fields_change.py
index 71cf537..8667c41 100644
--- a/advancedbilling/models/customer_custom_fields_change.py
+++ b/advancedbilling/models/customer_custom_fields_change.py
@@ -30,13 +30,17 @@ class CustomerCustomFieldsChange(object):
def __init__(self,
before=None,
- after=None):
+ after=None,
+ additional_properties={}):
"""Constructor for the CustomerCustomFieldsChange class"""
# Initialize members of the class
self.before = before
self.after = after
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -62,9 +66,14 @@ def from_dictionary(cls,
after = None
if dictionary.get('after') is not None:
after = [InvoiceCustomField.from_dictionary(x) for x in dictionary.get('after')]
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(before,
- after)
+ after,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/customer_error.py b/advancedbilling/models/customer_error.py
index dc4b406..258d668 100644
--- a/advancedbilling/models/customer_error.py
+++ b/advancedbilling/models/customer_error.py
@@ -30,13 +30,17 @@ class CustomerError(object):
]
def __init__(self,
- customer=APIHelper.SKIP):
+ customer=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the CustomerError class"""
# Initialize members of the class
if customer is not APIHelper.SKIP:
self.customer = customer
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -57,8 +61,13 @@ def from_dictionary(cls,
# Extract variables from the dictionary
customer = dictionary.get("customer") if dictionary.get("customer") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(customer)
+ return cls(customer,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/customer_payer_change.py b/advancedbilling/models/customer_payer_change.py
index 42f70d2..01f10ba 100644
--- a/advancedbilling/models/customer_payer_change.py
+++ b/advancedbilling/models/customer_payer_change.py
@@ -30,13 +30,17 @@ class CustomerPayerChange(object):
def __init__(self,
before=None,
- after=None):
+ after=None,
+ additional_properties={}):
"""Constructor for the CustomerPayerChange class"""
# Initialize members of the class
self.before = before
self.after = after
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -58,9 +62,14 @@ def from_dictionary(cls,
# Extract variables from the dictionary
before = InvoicePayerChange.from_dictionary(dictionary.get('before')) if dictionary.get('before') else None
after = InvoicePayerChange.from_dictionary(dictionary.get('after')) if dictionary.get('after') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(before,
- after)
+ after,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/customer_response.py b/advancedbilling/models/customer_response.py
index 91c857e..2e239f6 100644
--- a/advancedbilling/models/customer_response.py
+++ b/advancedbilling/models/customer_response.py
@@ -26,12 +26,16 @@ class CustomerResponse(object):
}
def __init__(self,
- customer=None):
+ customer=None,
+ additional_properties={}):
"""Constructor for the CustomerResponse class"""
# Initialize members of the class
self.customer = customer
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
customer = Customer.from_dictionary(dictionary.get('customer')) if dictionary.get('customer') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(customer)
+ return cls(customer,
+ dictionary)
diff --git a/advancedbilling/models/deduct_service_credit.py b/advancedbilling/models/deduct_service_credit.py
index 0fcb197..de63ed8 100644
--- a/advancedbilling/models/deduct_service_credit.py
+++ b/advancedbilling/models/deduct_service_credit.py
@@ -29,13 +29,17 @@ class DeductServiceCredit(object):
def __init__(self,
amount=None,
- memo=None):
+ memo=None,
+ additional_properties={}):
"""Constructor for the DeductServiceCredit class"""
# Initialize members of the class
self.amount = amount
self.memo = memo
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -58,9 +62,14 @@ def from_dictionary(cls,
# Extract variables from the dictionary
amount = APIHelper.deserialize_union_type(UnionTypeLookUp.get('DeductServiceCreditAmount'), dictionary.get('amount'), False) if dictionary.get('amount') is not None else None
memo = dictionary.get("memo") if dictionary.get("memo") else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(amount,
- memo)
+ memo,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/deduct_service_credit_request.py b/advancedbilling/models/deduct_service_credit_request.py
index e7c07e7..81e0fdc 100644
--- a/advancedbilling/models/deduct_service_credit_request.py
+++ b/advancedbilling/models/deduct_service_credit_request.py
@@ -26,12 +26,16 @@ class DeductServiceCreditRequest(object):
}
def __init__(self,
- deduction=None):
+ deduction=None,
+ additional_properties={}):
"""Constructor for the DeductServiceCreditRequest class"""
# Initialize members of the class
self.deduction = deduction
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
deduction = DeductServiceCredit.from_dictionary(dictionary.get('deduction')) if dictionary.get('deduction') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(deduction)
+ return cls(deduction,
+ dictionary)
diff --git a/advancedbilling/models/delayed_cancellation_response.py b/advancedbilling/models/delayed_cancellation_response.py
index 56c2f8b..dec4810 100644
--- a/advancedbilling/models/delayed_cancellation_response.py
+++ b/advancedbilling/models/delayed_cancellation_response.py
@@ -30,13 +30,17 @@ class DelayedCancellationResponse(object):
]
def __init__(self,
- message=APIHelper.SKIP):
+ message=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the DelayedCancellationResponse class"""
# Initialize members of the class
if message is not APIHelper.SKIP:
self.message = message
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -57,5 +61,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
message = dictionary.get("message") if dictionary.get("message") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(message)
+ return cls(message,
+ dictionary)
diff --git a/advancedbilling/models/delete_subscription_group_response.py b/advancedbilling/models/delete_subscription_group_response.py
index dcd90ba..7defda2 100644
--- a/advancedbilling/models/delete_subscription_group_response.py
+++ b/advancedbilling/models/delete_subscription_group_response.py
@@ -34,7 +34,8 @@ class DeleteSubscriptionGroupResponse(object):
def __init__(self,
uid=APIHelper.SKIP,
- deleted=APIHelper.SKIP):
+ deleted=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the DeleteSubscriptionGroupResponse class"""
# Initialize members of the class
@@ -43,6 +44,9 @@ def __init__(self,
if deleted is not APIHelper.SKIP:
self.deleted = deleted
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -64,6 +68,11 @@ def from_dictionary(cls,
# Extract variables from the dictionary
uid = dictionary.get("uid") if dictionary.get("uid") else APIHelper.SKIP
deleted = dictionary.get("deleted") if "deleted" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(uid,
- deleted)
+ deleted,
+ dictionary)
diff --git a/advancedbilling/models/dunner_data.py b/advancedbilling/models/dunner_data.py
index 9cb3043..8171e79 100644
--- a/advancedbilling/models/dunner_data.py
+++ b/advancedbilling/models/dunner_data.py
@@ -41,7 +41,8 @@ def __init__(self,
revenue_at_risk_in_cents=None,
created_at=None,
attempts=None,
- last_attempted_at=None):
+ last_attempted_at=None,
+ additional_properties={}):
"""Constructor for the DunnerData class"""
# Initialize members of the class
@@ -52,6 +53,9 @@ def __init__(self,
self.attempts = attempts
self.last_attempted_at = APIHelper.apply_datetime_converter(last_attempted_at, APIHelper.RFC3339DateTime) if last_attempted_at else None
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -77,13 +81,18 @@ def from_dictionary(cls,
created_at = APIHelper.RFC3339DateTime.from_value(dictionary.get("created_at")).datetime if dictionary.get("created_at") else None
attempts = dictionary.get("attempts") if dictionary.get("attempts") else None
last_attempted_at = APIHelper.RFC3339DateTime.from_value(dictionary.get("last_attempted_at")).datetime if dictionary.get("last_attempted_at") else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(state,
subscription_id,
revenue_at_risk_in_cents,
created_at,
attempts,
- last_attempted_at)
+ last_attempted_at,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/dunning_step_data.py b/advancedbilling/models/dunning_step_data.py
index 35bfac9..8562611 100644
--- a/advancedbilling/models/dunning_step_data.py
+++ b/advancedbilling/models/dunning_step_data.py
@@ -59,7 +59,8 @@ def __init__(self,
send_sms=None,
email_body=APIHelper.SKIP,
email_subject=APIHelper.SKIP,
- sms_body=APIHelper.SKIP):
+ sms_body=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the DunningStepData class"""
# Initialize members of the class
@@ -75,6 +76,9 @@ def __init__(self,
if sms_body is not APIHelper.SKIP:
self.sms_body = sms_body
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -102,6 +106,10 @@ def from_dictionary(cls,
email_body = dictionary.get("email_body") if "email_body" in dictionary.keys() else APIHelper.SKIP
email_subject = dictionary.get("email_subject") if "email_subject" in dictionary.keys() else APIHelper.SKIP
sms_body = dictionary.get("sms_body") if "sms_body" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(day_threshold,
action,
@@ -110,7 +118,8 @@ def from_dictionary(cls,
send_sms,
email_body,
email_subject,
- sms_body)
+ sms_body,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/dunning_step_reached.py b/advancedbilling/models/dunning_step_reached.py
index e6bb2c3..c2b2871 100644
--- a/advancedbilling/models/dunning_step_reached.py
+++ b/advancedbilling/models/dunning_step_reached.py
@@ -34,7 +34,8 @@ class DunningStepReached(object):
def __init__(self,
dunner=None,
current_step=None,
- next_step=None):
+ next_step=None,
+ additional_properties={}):
"""Constructor for the DunningStepReached class"""
# Initialize members of the class
@@ -42,6 +43,9 @@ def __init__(self,
self.current_step = current_step
self.next_step = next_step
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -64,10 +68,15 @@ def from_dictionary(cls,
dunner = DunnerData.from_dictionary(dictionary.get('dunner')) if dictionary.get('dunner') else None
current_step = DunningStepData.from_dictionary(dictionary.get('current_step')) if dictionary.get('current_step') else None
next_step = DunningStepData.from_dictionary(dictionary.get('next_step')) if dictionary.get('next_step') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(dunner,
current_step,
- next_step)
+ next_step,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/ebb_component.py b/advancedbilling/models/ebb_component.py
index b705530..79d1a38 100644
--- a/advancedbilling/models/ebb_component.py
+++ b/advancedbilling/models/ebb_component.py
@@ -135,7 +135,8 @@ def __init__(self,
hide_date_range_on_invoice=APIHelper.SKIP,
price_in_cents=APIHelper.SKIP,
interval=APIHelper.SKIP,
- interval_unit=APIHelper.SKIP):
+ interval_unit=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the EBBComponent class"""
# Initialize members of the class
@@ -170,6 +171,9 @@ def __init__(self,
if interval_unit is not APIHelper.SKIP:
self.interval_unit = interval_unit
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -215,6 +219,10 @@ def from_dictionary(cls,
price_in_cents = dictionary.get("price_in_cents") if dictionary.get("price_in_cents") else APIHelper.SKIP
interval = dictionary.get("interval") if dictionary.get("interval") else APIHelper.SKIP
interval_unit = dictionary.get("interval_unit") if dictionary.get("interval_unit") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(name,
unit_name,
@@ -232,4 +240,5 @@ def from_dictionary(cls,
hide_date_range_on_invoice,
price_in_cents,
interval,
- interval_unit)
+ interval_unit,
+ dictionary)
diff --git a/advancedbilling/models/ebb_event.py b/advancedbilling/models/ebb_event.py
index 1aa9f0b..6eced44 100644
--- a/advancedbilling/models/ebb_event.py
+++ b/advancedbilling/models/ebb_event.py
@@ -31,13 +31,17 @@ class EBBEvent(object):
]
def __init__(self,
- chargify=APIHelper.SKIP):
+ chargify=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the EBBEvent class"""
# Initialize members of the class
if chargify is not APIHelper.SKIP:
self.chargify = chargify
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -58,5 +62,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
chargify = ChargifyEBB.from_dictionary(dictionary.get('chargify')) if 'chargify' in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(chargify)
+ return cls(chargify,
+ dictionary)
diff --git a/advancedbilling/models/enable_webhooks_request.py b/advancedbilling/models/enable_webhooks_request.py
index 4b546d6..4ff34c3 100644
--- a/advancedbilling/models/enable_webhooks_request.py
+++ b/advancedbilling/models/enable_webhooks_request.py
@@ -25,12 +25,16 @@ class EnableWebhooksRequest(object):
}
def __init__(self,
- webhooks_enabled=None):
+ webhooks_enabled=None,
+ additional_properties={}):
"""Constructor for the EnableWebhooksRequest class"""
# Initialize members of the class
self.webhooks_enabled = webhooks_enabled
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -51,5 +55,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
webhooks_enabled = dictionary.get("webhooks_enabled") if "webhooks_enabled" in dictionary.keys() else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(webhooks_enabled)
+ return cls(webhooks_enabled,
+ dictionary)
diff --git a/advancedbilling/models/enable_webhooks_response.py b/advancedbilling/models/enable_webhooks_response.py
index 87ba949..43dd361 100644
--- a/advancedbilling/models/enable_webhooks_response.py
+++ b/advancedbilling/models/enable_webhooks_response.py
@@ -30,13 +30,17 @@ class EnableWebhooksResponse(object):
]
def __init__(self,
- webhooks_enabled=APIHelper.SKIP):
+ webhooks_enabled=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the EnableWebhooksResponse class"""
# Initialize members of the class
if webhooks_enabled is not APIHelper.SKIP:
self.webhooks_enabled = webhooks_enabled
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -57,5 +61,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
webhooks_enabled = dictionary.get("webhooks_enabled") if "webhooks_enabled" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(webhooks_enabled)
+ return cls(webhooks_enabled,
+ dictionary)
diff --git a/advancedbilling/models/endpoint.py b/advancedbilling/models/endpoint.py
index 16becf7..a3fe695 100644
--- a/advancedbilling/models/endpoint.py
+++ b/advancedbilling/models/endpoint.py
@@ -46,7 +46,8 @@ def __init__(self,
url=APIHelper.SKIP,
site_id=APIHelper.SKIP,
status=APIHelper.SKIP,
- webhook_subscriptions=APIHelper.SKIP):
+ webhook_subscriptions=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the Endpoint class"""
# Initialize members of the class
@@ -61,6 +62,9 @@ def __init__(self,
if webhook_subscriptions is not APIHelper.SKIP:
self.webhook_subscriptions = webhook_subscriptions
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -85,9 +89,14 @@ def from_dictionary(cls,
site_id = dictionary.get("site_id") if dictionary.get("site_id") else APIHelper.SKIP
status = dictionary.get("status") if dictionary.get("status") else APIHelper.SKIP
webhook_subscriptions = dictionary.get("webhook_subscriptions") if dictionary.get("webhook_subscriptions") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(id,
url,
site_id,
status,
- webhook_subscriptions)
+ webhook_subscriptions,
+ dictionary)
diff --git a/advancedbilling/models/endpoint_response.py b/advancedbilling/models/endpoint_response.py
index 0b249ec..2869fa4 100644
--- a/advancedbilling/models/endpoint_response.py
+++ b/advancedbilling/models/endpoint_response.py
@@ -31,13 +31,17 @@ class EndpointResponse(object):
]
def __init__(self,
- endpoint=APIHelper.SKIP):
+ endpoint=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the EndpointResponse class"""
# Initialize members of the class
if endpoint is not APIHelper.SKIP:
self.endpoint = endpoint
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -58,5 +62,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
endpoint = Endpoint.from_dictionary(dictionary.get('endpoint')) if 'endpoint' in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(endpoint)
+ return cls(endpoint,
+ dictionary)
diff --git a/advancedbilling/models/errors.py b/advancedbilling/models/errors.py
index df160bd..d44179e 100644
--- a/advancedbilling/models/errors.py
+++ b/advancedbilling/models/errors.py
@@ -34,7 +34,8 @@ class Errors(object):
def __init__(self,
per_page=APIHelper.SKIP,
- price_point=APIHelper.SKIP):
+ price_point=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the Errors class"""
# Initialize members of the class
@@ -43,6 +44,9 @@ def __init__(self,
if price_point is not APIHelper.SKIP:
self.price_point = price_point
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -64,6 +68,11 @@ def from_dictionary(cls,
# Extract variables from the dictionary
per_page = dictionary.get("per_page") if dictionary.get("per_page") else APIHelper.SKIP
price_point = dictionary.get("price_point") if dictionary.get("price_point") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(per_page,
- price_point)
+ price_point,
+ dictionary)
diff --git a/advancedbilling/models/event.py b/advancedbilling/models/event.py
index 6130154..105b817 100644
--- a/advancedbilling/models/event.py
+++ b/advancedbilling/models/event.py
@@ -47,6 +47,7 @@ class Event(object):
_nullables = [
'subscription_id',
+ 'customer_id',
'event_specific_data',
]
@@ -57,7 +58,8 @@ def __init__(self,
subscription_id=None,
customer_id=None,
created_at=None,
- event_specific_data=None):
+ event_specific_data=None,
+ additional_properties={}):
"""Constructor for the Event class"""
# Initialize members of the class
@@ -69,6 +71,9 @@ def __init__(self,
self.created_at = APIHelper.apply_datetime_converter(created_at, APIHelper.RFC3339DateTime) if created_at else None
self.event_specific_data = event_specific_data
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -96,6 +101,10 @@ def from_dictionary(cls,
customer_id = dictionary.get("customer_id") if dictionary.get("customer_id") else None
created_at = APIHelper.RFC3339DateTime.from_value(dictionary.get("created_at")).datetime if dictionary.get("created_at") else None
event_specific_data = APIHelper.deserialize_union_type(UnionTypeLookUp.get('EventEventSpecificData'), dictionary.get('event_specific_data'), False) if dictionary.get('event_specific_data') is not None else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(id,
key,
@@ -103,7 +112,8 @@ def from_dictionary(cls,
subscription_id,
customer_id,
created_at,
- event_specific_data)
+ event_specific_data,
+ dictionary)
@classmethod
def validate(cls, dictionary):
@@ -125,7 +135,7 @@ def validate(cls, dictionary):
and APIHelper.is_valid_type(value=dictionary.key, type_callable=lambda value: isinstance(value, str)) \
and APIHelper.is_valid_type(value=dictionary.message, type_callable=lambda value: isinstance(value, str)) \
and APIHelper.is_valid_type(value=dictionary.subscription_id, type_callable=lambda value: isinstance(value, int), is_value_nullable=True) \
- and APIHelper.is_valid_type(value=dictionary.customer_id, type_callable=lambda value: isinstance(value, int)) \
+ and APIHelper.is_valid_type(value=dictionary.customer_id, type_callable=lambda value: isinstance(value, int), is_value_nullable=True) \
and APIHelper.is_valid_type(value=dictionary.created_at, type_callable=lambda value: isinstance(value, APIHelper.RFC3339DateTime)) \
and UnionTypeLookUp.get('EventEventSpecificData').validate(dictionary.event_specific_data).is_valid
@@ -136,6 +146,6 @@ def validate(cls, dictionary):
and APIHelper.is_valid_type(value=dictionary.get('key'), type_callable=lambda value: isinstance(value, str)) \
and APIHelper.is_valid_type(value=dictionary.get('message'), type_callable=lambda value: isinstance(value, str)) \
and APIHelper.is_valid_type(value=dictionary.get('subscription_id'), type_callable=lambda value: isinstance(value, int), is_value_nullable=True) \
- and APIHelper.is_valid_type(value=dictionary.get('customer_id'), type_callable=lambda value: isinstance(value, int)) \
+ and APIHelper.is_valid_type(value=dictionary.get('customer_id'), type_callable=lambda value: isinstance(value, int), is_value_nullable=True) \
and APIHelper.is_valid_type(value=dictionary.get('created_at'), type_callable=lambda value: isinstance(value, str)) \
and UnionTypeLookUp.get('EventEventSpecificData').validate(dictionary.get('event_specific_data')).is_valid
diff --git a/advancedbilling/models/event_based_billing_segment_error.py b/advancedbilling/models/event_based_billing_segment_error.py
index 8e53a71..47b86d7 100644
--- a/advancedbilling/models/event_based_billing_segment_error.py
+++ b/advancedbilling/models/event_based_billing_segment_error.py
@@ -29,12 +29,16 @@ class EventBasedBillingSegmentError(object):
}
def __init__(self,
- segments=None):
+ segments=None,
+ additional_properties={}):
"""Constructor for the EventBasedBillingSegmentError class"""
# Initialize members of the class
self.segments = segments
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -55,5 +59,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
segments = dictionary.get("segments") if dictionary.get("segments") else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(segments)
+ return cls(segments,
+ dictionary)
diff --git a/advancedbilling/models/event_response.py b/advancedbilling/models/event_response.py
index abacbd6..e7d8109 100644
--- a/advancedbilling/models/event_response.py
+++ b/advancedbilling/models/event_response.py
@@ -26,12 +26,16 @@ class EventResponse(object):
}
def __init__(self,
- event=None):
+ event=None,
+ additional_properties={}):
"""Constructor for the EventResponse class"""
# Initialize members of the class
self.event = event
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
event = Event.from_dictionary(dictionary.get('event')) if dictionary.get('event') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(event)
+ return cls(event,
+ dictionary)
diff --git a/advancedbilling/models/full_subscription_group_response.py b/advancedbilling/models/full_subscription_group_response.py
index 06982e2..c4388e7 100644
--- a/advancedbilling/models/full_subscription_group_response.py
+++ b/advancedbilling/models/full_subscription_group_response.py
@@ -78,7 +78,8 @@ def __init__(self,
cancel_at_end_of_period=APIHelper.SKIP,
current_billing_amount_in_cents=APIHelper.SKIP,
customer=APIHelper.SKIP,
- account_balances=APIHelper.SKIP):
+ account_balances=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the FullSubscriptionGroupResponse class"""
# Initialize members of the class
@@ -107,6 +108,9 @@ def __init__(self,
if account_balances is not APIHelper.SKIP:
self.account_balances = account_balances
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -138,6 +142,10 @@ def from_dictionary(cls,
current_billing_amount_in_cents = dictionary.get("current_billing_amount_in_cents") if dictionary.get("current_billing_amount_in_cents") else APIHelper.SKIP
customer = SubscriptionGroupCustomer.from_dictionary(dictionary.get('customer')) if 'customer' in dictionary.keys() else APIHelper.SKIP
account_balances = SubscriptionGroupBalances.from_dictionary(dictionary.get('account_balances')) if 'account_balances' in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(uid,
scheme,
@@ -150,4 +158,5 @@ def from_dictionary(cls,
cancel_at_end_of_period,
current_billing_amount_in_cents,
customer,
- account_balances)
+ account_balances,
+ dictionary)
diff --git a/advancedbilling/models/get_one_time_token_payment_profile.py b/advancedbilling/models/get_one_time_token_payment_profile.py
index 4bfacde..913a581 100644
--- a/advancedbilling/models/get_one_time_token_payment_profile.py
+++ b/advancedbilling/models/get_one_time_token_payment_profile.py
@@ -102,7 +102,8 @@ def __init__(self,
customer_id=APIHelper.SKIP,
billing_address_2=APIHelper.SKIP,
customer_vault_token=APIHelper.SKIP,
- gateway_handle=APIHelper.SKIP):
+ gateway_handle=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the GetOneTimeTokenPaymentProfile class"""
# Initialize members of the class
@@ -133,6 +134,9 @@ def __init__(self,
if gateway_handle is not APIHelper.SKIP:
self.gateway_handle = gateway_handle
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -173,6 +177,10 @@ def from_dictionary(cls,
billing_address_2 = dictionary.get("billing_address_2") if dictionary.get("billing_address_2") else APIHelper.SKIP
customer_vault_token = dictionary.get("customer_vault_token") if "customer_vault_token" in dictionary.keys() else APIHelper.SKIP
gateway_handle = dictionary.get("gateway_handle") if "gateway_handle" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(first_name,
last_name,
@@ -194,4 +202,5 @@ def from_dictionary(cls,
customer_id,
billing_address_2,
customer_vault_token,
- gateway_handle)
+ gateway_handle,
+ dictionary)
diff --git a/advancedbilling/models/get_one_time_token_request.py b/advancedbilling/models/get_one_time_token_request.py
index 233c1f1..fa2d478 100644
--- a/advancedbilling/models/get_one_time_token_request.py
+++ b/advancedbilling/models/get_one_time_token_request.py
@@ -27,12 +27,16 @@ class GetOneTimeTokenRequest(object):
}
def __init__(self,
- payment_profile=None):
+ payment_profile=None,
+ additional_properties={}):
"""Constructor for the GetOneTimeTokenRequest class"""
# Initialize members of the class
self.payment_profile = payment_profile
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -53,5 +57,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
payment_profile = GetOneTimeTokenPaymentProfile.from_dictionary(dictionary.get('payment_profile')) if dictionary.get('payment_profile') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(payment_profile)
+ return cls(payment_profile,
+ dictionary)
diff --git a/advancedbilling/models/group_billing.py b/advancedbilling/models/group_billing.py
index 163900a..e538da2 100644
--- a/advancedbilling/models/group_billing.py
+++ b/advancedbilling/models/group_billing.py
@@ -45,7 +45,8 @@ class GroupBilling(object):
def __init__(self,
accrue=False,
align_date=False,
- prorate=False):
+ prorate=False,
+ additional_properties={}):
"""Constructor for the GroupBilling class"""
# Initialize members of the class
@@ -53,6 +54,9 @@ def __init__(self,
self.align_date = align_date
self.prorate = prorate
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -75,10 +79,15 @@ def from_dictionary(cls,
accrue = dictionary.get("accrue") if dictionary.get("accrue") else False
align_date = dictionary.get("align_date") if dictionary.get("align_date") else False
prorate = dictionary.get("prorate") if dictionary.get("prorate") else False
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(accrue,
align_date,
- prorate)
+ prorate,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/group_settings.py b/advancedbilling/models/group_settings.py
index 851d2b6..ba30f7e 100644
--- a/advancedbilling/models/group_settings.py
+++ b/advancedbilling/models/group_settings.py
@@ -37,7 +37,8 @@ class GroupSettings(object):
def __init__(self,
target=None,
- billing=APIHelper.SKIP):
+ billing=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the GroupSettings class"""
# Initialize members of the class
@@ -45,6 +46,9 @@ def __init__(self,
if billing is not APIHelper.SKIP:
self.billing = billing
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -66,9 +70,14 @@ def from_dictionary(cls,
# Extract variables from the dictionary
target = GroupTarget.from_dictionary(dictionary.get('target')) if dictionary.get('target') else None
billing = GroupBilling.from_dictionary(dictionary.get('billing')) if 'billing' in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(target,
- billing)
+ billing,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/group_target.py b/advancedbilling/models/group_target.py
index 38b7f4d..14847f5 100644
--- a/advancedbilling/models/group_target.py
+++ b/advancedbilling/models/group_target.py
@@ -38,7 +38,8 @@ class GroupTarget(object):
def __init__(self,
mtype=None,
- id=APIHelper.SKIP):
+ id=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the GroupTarget class"""
# Initialize members of the class
@@ -46,6 +47,9 @@ def __init__(self,
if id is not APIHelper.SKIP:
self.id = id
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -67,9 +71,14 @@ def from_dictionary(cls,
# Extract variables from the dictionary
mtype = dictionary.get("type") if dictionary.get("type") else None
id = dictionary.get("id") if dictionary.get("id") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(mtype,
- id)
+ id,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/invoice.py b/advancedbilling/models/invoice.py
index 6daf604..0252e9a 100644
--- a/advancedbilling/models/invoice.py
+++ b/advancedbilling/models/invoice.py
@@ -313,7 +313,8 @@ def __init__(self,
custom_fields=APIHelper.SKIP,
display_settings=APIHelper.SKIP,
public_url=APIHelper.SKIP,
- previous_balance_data=APIHelper.SKIP):
+ previous_balance_data=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the Invoice class"""
# Initialize members of the class
@@ -421,6 +422,9 @@ def __init__(self,
if previous_balance_data is not APIHelper.SKIP:
self.previous_balance_data = previous_balance_data
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -523,6 +527,10 @@ def from_dictionary(cls,
display_settings = InvoiceDisplaySettings.from_dictionary(dictionary.get('display_settings')) if 'display_settings' in dictionary.keys() else APIHelper.SKIP
public_url = dictionary.get("public_url") if dictionary.get("public_url") else APIHelper.SKIP
previous_balance_data = InvoicePreviousBalance.from_dictionary(dictionary.get('previous_balance_data')) if 'previous_balance_data' in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(id,
uid,
@@ -575,7 +583,8 @@ def from_dictionary(cls,
custom_fields,
display_settings,
public_url,
- previous_balance_data)
+ previous_balance_data,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/invoice_address.py b/advancedbilling/models/invoice_address.py
index 3bac4d4..ace402b 100644
--- a/advancedbilling/models/invoice_address.py
+++ b/advancedbilling/models/invoice_address.py
@@ -59,7 +59,8 @@ def __init__(self,
city=APIHelper.SKIP,
state=APIHelper.SKIP,
zip=APIHelper.SKIP,
- country=APIHelper.SKIP):
+ country=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the InvoiceAddress class"""
# Initialize members of the class
@@ -76,6 +77,9 @@ def __init__(self,
if country is not APIHelper.SKIP:
self.country = country
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -101,13 +105,18 @@ def from_dictionary(cls,
state = dictionary.get("state") if "state" in dictionary.keys() else APIHelper.SKIP
zip = dictionary.get("zip") if "zip" in dictionary.keys() else APIHelper.SKIP
country = dictionary.get("country") if "country" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(street,
line_2,
city,
state,
zip,
- country)
+ country,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/invoice_balance_item.py b/advancedbilling/models/invoice_balance_item.py
index 08a5558..8a6d936 100644
--- a/advancedbilling/models/invoice_balance_item.py
+++ b/advancedbilling/models/invoice_balance_item.py
@@ -38,7 +38,8 @@ class InvoiceBalanceItem(object):
def __init__(self,
uid=APIHelper.SKIP,
number=APIHelper.SKIP,
- outstanding_amount=APIHelper.SKIP):
+ outstanding_amount=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the InvoiceBalanceItem class"""
# Initialize members of the class
@@ -49,6 +50,9 @@ def __init__(self,
if outstanding_amount is not APIHelper.SKIP:
self.outstanding_amount = outstanding_amount
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -71,10 +75,15 @@ def from_dictionary(cls,
uid = dictionary.get("uid") if dictionary.get("uid") else APIHelper.SKIP
number = dictionary.get("number") if dictionary.get("number") else APIHelper.SKIP
outstanding_amount = dictionary.get("outstanding_amount") if dictionary.get("outstanding_amount") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(uid,
number,
- outstanding_amount)
+ outstanding_amount,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/invoice_credit.py b/advancedbilling/models/invoice_credit.py
index 3242891..a552077 100644
--- a/advancedbilling/models/invoice_credit.py
+++ b/advancedbilling/models/invoice_credit.py
@@ -54,7 +54,8 @@ def __init__(self,
transaction_time=APIHelper.SKIP,
memo=APIHelper.SKIP,
original_amount=APIHelper.SKIP,
- applied_amount=APIHelper.SKIP):
+ applied_amount=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the InvoiceCredit class"""
# Initialize members of the class
@@ -73,6 +74,9 @@ def __init__(self,
if applied_amount is not APIHelper.SKIP:
self.applied_amount = applied_amount
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -99,6 +103,10 @@ def from_dictionary(cls,
memo = dictionary.get("memo") if dictionary.get("memo") else APIHelper.SKIP
original_amount = dictionary.get("original_amount") if dictionary.get("original_amount") else APIHelper.SKIP
applied_amount = dictionary.get("applied_amount") if dictionary.get("applied_amount") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(uid,
credit_note_number,
@@ -106,7 +114,8 @@ def from_dictionary(cls,
transaction_time,
memo,
original_amount,
- applied_amount)
+ applied_amount,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/invoice_custom_field.py b/advancedbilling/models/invoice_custom_field.py
index 390a7e3..e301c62 100644
--- a/advancedbilling/models/invoice_custom_field.py
+++ b/advancedbilling/models/invoice_custom_field.py
@@ -46,7 +46,8 @@ def __init__(self,
owner_type=APIHelper.SKIP,
name=APIHelper.SKIP,
value=APIHelper.SKIP,
- metadatum_id=APIHelper.SKIP):
+ metadatum_id=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the InvoiceCustomField class"""
# Initialize members of the class
@@ -61,6 +62,9 @@ def __init__(self,
if metadatum_id is not APIHelper.SKIP:
self.metadatum_id = metadatum_id
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -85,12 +89,17 @@ def from_dictionary(cls,
name = dictionary.get("name") if dictionary.get("name") else APIHelper.SKIP
value = dictionary.get("value") if dictionary.get("value") else APIHelper.SKIP
metadatum_id = dictionary.get("metadatum_id") if dictionary.get("metadatum_id") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(owner_id,
owner_type,
name,
value,
- metadatum_id)
+ metadatum_id,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/invoice_customer.py b/advancedbilling/models/invoice_customer.py
index bd6a5bb..fe8ba40 100644
--- a/advancedbilling/models/invoice_customer.py
+++ b/advancedbilling/models/invoice_customer.py
@@ -49,6 +49,7 @@ class InvoiceCustomer(object):
]
_nullables = [
+ 'chargify_id',
'organization',
'vat_number',
'reference',
@@ -61,7 +62,8 @@ def __init__(self,
organization=APIHelper.SKIP,
email=APIHelper.SKIP,
vat_number=APIHelper.SKIP,
- reference=APIHelper.SKIP):
+ reference=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the InvoiceCustomer class"""
# Initialize members of the class
@@ -80,6 +82,9 @@ def __init__(self,
if reference is not APIHelper.SKIP:
self.reference = reference
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -99,13 +104,17 @@ def from_dictionary(cls,
return None
# Extract variables from the dictionary
- chargify_id = dictionary.get("chargify_id") if dictionary.get("chargify_id") else APIHelper.SKIP
+ chargify_id = dictionary.get("chargify_id") if "chargify_id" in dictionary.keys() else APIHelper.SKIP
first_name = dictionary.get("first_name") if dictionary.get("first_name") else APIHelper.SKIP
last_name = dictionary.get("last_name") if dictionary.get("last_name") else APIHelper.SKIP
organization = dictionary.get("organization") if "organization" in dictionary.keys() else APIHelper.SKIP
email = dictionary.get("email") if dictionary.get("email") else APIHelper.SKIP
vat_number = dictionary.get("vat_number") if "vat_number" in dictionary.keys() else APIHelper.SKIP
reference = dictionary.get("reference") if "reference" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(chargify_id,
first_name,
@@ -113,7 +122,8 @@ def from_dictionary(cls,
organization,
email,
vat_number,
- reference)
+ reference,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/invoice_discount.py b/advancedbilling/models/invoice_discount.py
index 292823c..29214a5 100644
--- a/advancedbilling/models/invoice_discount.py
+++ b/advancedbilling/models/invoice_discount.py
@@ -21,9 +21,9 @@ class InvoiceDiscount(object):
title (str): TODO: type description here.
description (str): TODO: type description here.
code (str): TODO: type description here.
- source_type (str): TODO: type description here.
+ source_type (InvoiceDiscountSourceType): TODO: type description here.
source_id (int): TODO: type description here.
- discount_type (str): TODO: type description here.
+ discount_type (InvoiceDiscountType): TODO: type description here.
percentage (str): TODO: type description here.
eligible_amount (str): TODO: type description here.
discount_amount (str): TODO: type description here.
@@ -80,7 +80,8 @@ def __init__(self,
eligible_amount=APIHelper.SKIP,
discount_amount=APIHelper.SKIP,
transaction_id=APIHelper.SKIP,
- line_item_breakouts=APIHelper.SKIP):
+ line_item_breakouts=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the InvoiceDiscount class"""
# Initialize members of the class
@@ -109,6 +110,9 @@ def __init__(self,
if line_item_breakouts is not APIHelper.SKIP:
self.line_item_breakouts = line_item_breakouts
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -144,6 +148,10 @@ def from_dictionary(cls,
line_item_breakouts = [InvoiceDiscountBreakout.from_dictionary(x) for x in dictionary.get('line_item_breakouts')]
else:
line_item_breakouts = APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(uid,
title,
@@ -156,7 +164,8 @@ def from_dictionary(cls,
eligible_amount,
discount_amount,
transaction_id,
- line_item_breakouts)
+ line_item_breakouts,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/invoice_discount_breakout.py b/advancedbilling/models/invoice_discount_breakout.py
index db3954d..400dc4f 100644
--- a/advancedbilling/models/invoice_discount_breakout.py
+++ b/advancedbilling/models/invoice_discount_breakout.py
@@ -38,7 +38,8 @@ class InvoiceDiscountBreakout(object):
def __init__(self,
uid=APIHelper.SKIP,
eligible_amount=APIHelper.SKIP,
- discount_amount=APIHelper.SKIP):
+ discount_amount=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the InvoiceDiscountBreakout class"""
# Initialize members of the class
@@ -49,6 +50,9 @@ def __init__(self,
if discount_amount is not APIHelper.SKIP:
self.discount_amount = discount_amount
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -71,10 +75,15 @@ def from_dictionary(cls,
uid = dictionary.get("uid") if dictionary.get("uid") else APIHelper.SKIP
eligible_amount = dictionary.get("eligible_amount") if dictionary.get("eligible_amount") else APIHelper.SKIP
discount_amount = dictionary.get("discount_amount") if dictionary.get("discount_amount") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(uid,
eligible_amount,
- discount_amount)
+ discount_amount,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/invoice_discount_source_type.py b/advancedbilling/models/invoice_discount_source_type.py
new file mode 100644
index 0000000..5c6616d
--- /dev/null
+++ b/advancedbilling/models/invoice_discount_source_type.py
@@ -0,0 +1,41 @@
+# -*- coding: utf-8 -*-
+
+"""
+advanced_billing
+
+This file was automatically generated for Maxio by APIMATIC v3.0 (
+ https://www.apimatic.io ).
+"""
+
+
+class InvoiceDiscountSourceType(object):
+
+ """Implementation of the 'Invoice Discount Source Type' enum.
+
+ TODO: type enum description here.
+
+ Attributes:
+ COUPON: TODO: type description here.
+ REFERRAL: TODO: type description here.
+ ENUM_AD HOC COUPON: TODO: type description here.
+
+ """
+ _all_values = ['Coupon', 'Referral', 'Ad Hoc Coupon']
+ COUPON = 'Coupon'
+
+ REFERRAL = 'Referral'
+
+ ENUM_AD_HOC_COUPON = 'Ad Hoc Coupon'
+
+ @classmethod
+ def validate(cls, value):
+ """Validates value contains in enum
+
+ Args:
+ value: the value to be validated
+
+ Returns:
+ boolean : if value is valid enum values.
+
+ """
+ return value in cls._all_values
diff --git a/advancedbilling/models/invoice_discount_type.py b/advancedbilling/models/invoice_discount_type.py
new file mode 100644
index 0000000..38575ca
--- /dev/null
+++ b/advancedbilling/models/invoice_discount_type.py
@@ -0,0 +1,41 @@
+# -*- coding: utf-8 -*-
+
+"""
+advanced_billing
+
+This file was automatically generated for Maxio by APIMATIC v3.0 (
+ https://www.apimatic.io ).
+"""
+
+
+class InvoiceDiscountType(object):
+
+ """Implementation of the 'Invoice Discount Type' enum.
+
+ TODO: type enum description here.
+
+ Attributes:
+ PERCENTAGE: TODO: type description here.
+ FLAT_AMOUNT: TODO: type description here.
+ ROLLOVER: TODO: type description here.
+
+ """
+ _all_values = ['percentage', 'flat_amount', 'rollover']
+ PERCENTAGE = 'percentage'
+
+ FLAT_AMOUNT = 'flat_amount'
+
+ ROLLOVER = 'rollover'
+
+ @classmethod
+ def validate(cls, value):
+ """Validates value contains in enum
+
+ Args:
+ value: the value to be validated
+
+ Returns:
+ boolean : if value is valid enum values.
+
+ """
+ return value in cls._all_values
diff --git a/advancedbilling/models/invoice_display_settings.py b/advancedbilling/models/invoice_display_settings.py
index 4711351..9377db8 100644
--- a/advancedbilling/models/invoice_display_settings.py
+++ b/advancedbilling/models/invoice_display_settings.py
@@ -34,7 +34,8 @@ class InvoiceDisplaySettings(object):
def __init__(self,
hide_zero_subtotal_lines=APIHelper.SKIP,
- include_discounts_on_lines=APIHelper.SKIP):
+ include_discounts_on_lines=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the InvoiceDisplaySettings class"""
# Initialize members of the class
@@ -43,6 +44,9 @@ def __init__(self,
if include_discounts_on_lines is not APIHelper.SKIP:
self.include_discounts_on_lines = include_discounts_on_lines
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -64,9 +68,14 @@ def from_dictionary(cls,
# Extract variables from the dictionary
hide_zero_subtotal_lines = dictionary.get("hide_zero_subtotal_lines") if "hide_zero_subtotal_lines" in dictionary.keys() else APIHelper.SKIP
include_discounts_on_lines = dictionary.get("include_discounts_on_lines") if "include_discounts_on_lines" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(hide_zero_subtotal_lines,
- include_discounts_on_lines)
+ include_discounts_on_lines,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/invoice_event.py b/advancedbilling/models/invoice_event.py
index ec9e2af..b8da226 100644
--- a/advancedbilling/models/invoice_event.py
+++ b/advancedbilling/models/invoice_event.py
@@ -53,7 +53,8 @@ def __init__(self,
event_type=APIHelper.SKIP,
event_data=APIHelper.SKIP,
timestamp=APIHelper.SKIP,
- invoice=APIHelper.SKIP):
+ invoice=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the InvoiceEvent class"""
# Initialize members of the class
@@ -68,6 +69,9 @@ def __init__(self,
if invoice is not APIHelper.SKIP:
self.invoice = invoice
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -93,9 +97,14 @@ def from_dictionary(cls,
event_data = APIHelper.deserialize_union_type(UnionTypeLookUp.get('InvoiceEventEventData'), dictionary.get('event_data'), False) if dictionary.get('event_data') is not None else APIHelper.SKIP
timestamp = APIHelper.RFC3339DateTime.from_value(dictionary.get("timestamp")).datetime if dictionary.get("timestamp") else APIHelper.SKIP
invoice = Invoice.from_dictionary(dictionary.get('invoice')) if 'invoice' in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(id,
event_type,
event_data,
timestamp,
- invoice)
+ invoice,
+ dictionary)
diff --git a/advancedbilling/models/invoice_event_data.py b/advancedbilling/models/invoice_event_data.py
index 0cb956c..12c1ad5 100644
--- a/advancedbilling/models/invoice_event_data.py
+++ b/advancedbilling/models/invoice_event_data.py
@@ -199,7 +199,8 @@ def __init__(self,
refund_amount=APIHelper.SKIP,
refund_id=APIHelper.SKIP,
is_advance_invoice=APIHelper.SKIP,
- reason=APIHelper.SKIP):
+ reason=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the InvoiceEventData class"""
# Initialize members of the class
@@ -268,6 +269,9 @@ def __init__(self,
if reason is not APIHelper.SKIP:
self.reason = reason
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -324,6 +328,10 @@ def from_dictionary(cls,
refund_id = dictionary.get("refund_id") if dictionary.get("refund_id") else APIHelper.SKIP
is_advance_invoice = dictionary.get("is_advance_invoice") if "is_advance_invoice" in dictionary.keys() else APIHelper.SKIP
reason = dictionary.get("reason") if dictionary.get("reason") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(uid,
credit_note_number,
@@ -356,4 +364,5 @@ def from_dictionary(cls,
refund_amount,
refund_id,
is_advance_invoice,
- reason)
+ reason,
+ dictionary)
diff --git a/advancedbilling/models/invoice_event_payment.py b/advancedbilling/models/invoice_event_payment.py
index ededae2..7cb7bbf 100644
--- a/advancedbilling/models/invoice_event_payment.py
+++ b/advancedbilling/models/invoice_event_payment.py
@@ -76,7 +76,8 @@ def __init__(self,
details=APIHelper.SKIP,
kind=APIHelper.SKIP,
memo=APIHelper.SKIP,
- email=APIHelper.SKIP):
+ email=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the InvoiceEventPayment class"""
# Initialize members of the class
@@ -102,6 +103,9 @@ def __init__(self,
if email is not APIHelper.SKIP:
self.email = email
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -132,6 +136,10 @@ def from_dictionary(cls,
kind = dictionary.get("kind") if dictionary.get("kind") else APIHelper.SKIP
memo = dictionary.get("memo") if "memo" in dictionary.keys() else APIHelper.SKIP
email = dictionary.get("email") if dictionary.get("email") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(mtype,
masked_account_number,
@@ -143,4 +151,5 @@ def from_dictionary(cls,
details,
kind,
memo,
- email)
+ email,
+ dictionary)
diff --git a/advancedbilling/models/invoice_event_payment_1.py b/advancedbilling/models/invoice_event_payment_1.py
index 8806922..8ce809c 100644
--- a/advancedbilling/models/invoice_event_payment_1.py
+++ b/advancedbilling/models/invoice_event_payment_1.py
@@ -68,7 +68,8 @@ def __init__(self,
email=None,
mtype='Invoice Event Payment1',
card_expiration=APIHelper.SKIP,
- last_four=APIHelper.SKIP):
+ last_four=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the InvoiceEventPayment1 class"""
# Initialize members of the class
@@ -86,6 +87,9 @@ def __init__(self,
self.memo = memo
self.email = email
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -116,6 +120,10 @@ def from_dictionary(cls,
mtype = dictionary.get("type") if dictionary.get("type") else 'Invoice Event Payment1'
card_expiration = dictionary.get("card_expiration") if dictionary.get("card_expiration") else APIHelper.SKIP
last_four = dictionary.get("last_four") if "last_four" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(masked_account_number,
masked_routing_number,
@@ -127,4 +135,5 @@ def from_dictionary(cls,
email,
mtype,
card_expiration,
- last_four)
+ last_four,
+ dictionary)
diff --git a/advancedbilling/models/invoice_issued.py b/advancedbilling/models/invoice_issued.py
index 12d36c9..9f9bb3e 100644
--- a/advancedbilling/models/invoice_issued.py
+++ b/advancedbilling/models/invoice_issued.py
@@ -73,7 +73,8 @@ def __init__(self,
status_amount=None,
product_name=None,
consolidation_level=None,
- line_items=None):
+ line_items=None,
+ additional_properties={}):
"""Constructor for the InvoiceIssued class"""
# Initialize members of the class
@@ -93,6 +94,9 @@ def __init__(self,
self.consolidation_level = consolidation_level
self.line_items = line_items
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -129,6 +133,10 @@ def from_dictionary(cls,
line_items = None
if dictionary.get('line_items') is not None:
line_items = [InvoiceLineItemEventData.from_dictionary(x) for x in dictionary.get('line_items')]
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(uid,
number,
@@ -144,7 +152,8 @@ def from_dictionary(cls,
status_amount,
product_name,
consolidation_level,
- line_items)
+ line_items,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/invoice_line_item.py b/advancedbilling/models/invoice_line_item.py
index 6e9003b..bfc3065 100644
--- a/advancedbilling/models/invoice_line_item.py
+++ b/advancedbilling/models/invoice_line_item.py
@@ -93,6 +93,7 @@ class InvoiceLineItem(object):
product_price_point_id (int): The price point ID of the line item's
product
custom_item (bool): TODO: type description here.
+ kind (str): TODO: type description here.
"""
@@ -118,7 +119,8 @@ class InvoiceLineItem(object):
"hide": 'hide',
"component_cost_data": 'component_cost_data',
"product_price_point_id": 'product_price_point_id',
- "custom_item": 'custom_item'
+ "custom_item": 'custom_item',
+ "kind": 'kind'
}
_optionals = [
@@ -143,6 +145,7 @@ class InvoiceLineItem(object):
'component_cost_data',
'product_price_point_id',
'custom_item',
+ 'kind',
]
_nullables = [
@@ -175,7 +178,9 @@ def __init__(self,
hide=APIHelper.SKIP,
component_cost_data=APIHelper.SKIP,
product_price_point_id=APIHelper.SKIP,
- custom_item=APIHelper.SKIP):
+ custom_item=APIHelper.SKIP,
+ kind=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the InvoiceLineItem class"""
# Initialize members of the class
@@ -221,6 +226,11 @@ def __init__(self,
self.product_price_point_id = product_price_point_id
if custom_item is not APIHelper.SKIP:
self.custom_item = custom_item
+ if kind is not APIHelper.SKIP:
+ self.kind = kind
+
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
@classmethod
def from_dictionary(cls,
@@ -266,6 +276,11 @@ def from_dictionary(cls,
component_cost_data = APIHelper.SKIP
product_price_point_id = dictionary.get("product_price_point_id") if "product_price_point_id" in dictionary.keys() else APIHelper.SKIP
custom_item = dictionary.get("custom_item") if "custom_item" in dictionary.keys() else APIHelper.SKIP
+ kind = dictionary.get("kind") if dictionary.get("kind") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(uid,
title,
@@ -287,7 +302,9 @@ def from_dictionary(cls,
hide,
component_cost_data,
product_price_point_id,
- custom_item)
+ custom_item,
+ kind,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/invoice_line_item_component_cost_data.py b/advancedbilling/models/invoice_line_item_component_cost_data.py
index b814a2c..0875359 100644
--- a/advancedbilling/models/invoice_line_item_component_cost_data.py
+++ b/advancedbilling/models/invoice_line_item_component_cost_data.py
@@ -31,13 +31,17 @@ class InvoiceLineItemComponentCostData(object):
]
def __init__(self,
- rates=APIHelper.SKIP):
+ rates=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the InvoiceLineItemComponentCostData class"""
# Initialize members of the class
if rates is not APIHelper.SKIP:
self.rates = rates
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -62,8 +66,13 @@ def from_dictionary(cls,
rates = [ComponentCostData.from_dictionary(x) for x in dictionary.get('rates')]
else:
rates = APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(rates)
+ return cls(rates,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/invoice_line_item_event_data.py b/advancedbilling/models/invoice_line_item_event_data.py
index 52255f7..617737b 100644
--- a/advancedbilling/models/invoice_line_item_event_data.py
+++ b/advancedbilling/models/invoice_line_item_event_data.py
@@ -119,7 +119,8 @@ def __init__(self,
price_point_id=APIHelper.SKIP,
component_id=APIHelper.SKIP,
billing_schedule_item_id=APIHelper.SKIP,
- custom_item=APIHelper.SKIP):
+ custom_item=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the InvoiceLineItemEventData class"""
# Initialize members of the class
@@ -164,6 +165,9 @@ def __init__(self,
if custom_item is not APIHelper.SKIP:
self.custom_item = custom_item
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -207,6 +211,10 @@ def from_dictionary(cls,
component_id = dictionary.get("component_id") if "component_id" in dictionary.keys() else APIHelper.SKIP
billing_schedule_item_id = dictionary.get("billing_schedule_item_id") if "billing_schedule_item_id" in dictionary.keys() else APIHelper.SKIP
custom_item = dictionary.get("custom_item") if "custom_item" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(uid,
title,
@@ -227,7 +235,8 @@ def from_dictionary(cls,
price_point_id,
component_id,
billing_schedule_item_id,
- custom_item)
+ custom_item,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/invoice_line_item_pricing_detail.py b/advancedbilling/models/invoice_line_item_pricing_detail.py
index 2edc9d0..f8c267e 100644
--- a/advancedbilling/models/invoice_line_item_pricing_detail.py
+++ b/advancedbilling/models/invoice_line_item_pricing_detail.py
@@ -34,7 +34,8 @@ class InvoiceLineItemPricingDetail(object):
def __init__(self,
label=APIHelper.SKIP,
- amount=APIHelper.SKIP):
+ amount=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the InvoiceLineItemPricingDetail class"""
# Initialize members of the class
@@ -43,6 +44,9 @@ def __init__(self,
if amount is not APIHelper.SKIP:
self.amount = amount
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -64,9 +68,14 @@ def from_dictionary(cls,
# Extract variables from the dictionary
label = dictionary.get("label") if dictionary.get("label") else APIHelper.SKIP
amount = dictionary.get("amount") if dictionary.get("amount") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(label,
- amount)
+ amount,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/invoice_payer.py b/advancedbilling/models/invoice_payer.py
index eb1cb42..ee7fa36 100644
--- a/advancedbilling/models/invoice_payer.py
+++ b/advancedbilling/models/invoice_payer.py
@@ -55,7 +55,8 @@ def __init__(self,
last_name=APIHelper.SKIP,
organization=APIHelper.SKIP,
email=APIHelper.SKIP,
- vat_number=APIHelper.SKIP):
+ vat_number=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the InvoicePayer class"""
# Initialize members of the class
@@ -72,6 +73,9 @@ def __init__(self,
if vat_number is not APIHelper.SKIP:
self.vat_number = vat_number
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -97,13 +101,18 @@ def from_dictionary(cls,
organization = dictionary.get("organization") if "organization" in dictionary.keys() else APIHelper.SKIP
email = dictionary.get("email") if dictionary.get("email") else APIHelper.SKIP
vat_number = dictionary.get("vat_number") if "vat_number" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(chargify_id,
first_name,
last_name,
organization,
email,
- vat_number)
+ vat_number,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/invoice_payer_change.py b/advancedbilling/models/invoice_payer_change.py
index 63f4af7..7293545 100644
--- a/advancedbilling/models/invoice_payer_change.py
+++ b/advancedbilling/models/invoice_payer_change.py
@@ -42,7 +42,8 @@ def __init__(self,
first_name=APIHelper.SKIP,
last_name=APIHelper.SKIP,
organization=APIHelper.SKIP,
- email=APIHelper.SKIP):
+ email=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the InvoicePayerChange class"""
# Initialize members of the class
@@ -55,6 +56,9 @@ def __init__(self,
if email is not APIHelper.SKIP:
self.email = email
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -78,11 +82,16 @@ def from_dictionary(cls,
last_name = dictionary.get("last_name") if dictionary.get("last_name") else APIHelper.SKIP
organization = dictionary.get("organization") if dictionary.get("organization") else APIHelper.SKIP
email = dictionary.get("email") if dictionary.get("email") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(first_name,
last_name,
organization,
- email)
+ email,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/invoice_payment.py b/advancedbilling/models/invoice_payment.py
index 5e33d92..d142132 100644
--- a/advancedbilling/models/invoice_payment.py
+++ b/advancedbilling/models/invoice_payment.py
@@ -73,7 +73,8 @@ def __init__(self,
prepayment=APIHelper.SKIP,
gateway_handle=APIHelper.SKIP,
gateway_used=APIHelper.SKIP,
- gateway_transaction_id=APIHelper.SKIP):
+ gateway_transaction_id=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the InvoicePayment class"""
# Initialize members of the class
@@ -98,6 +99,9 @@ def __init__(self,
if gateway_transaction_id is not APIHelper.SKIP:
self.gateway_transaction_id = gateway_transaction_id
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -127,6 +131,10 @@ def from_dictionary(cls,
gateway_handle = dictionary.get("gateway_handle") if "gateway_handle" in dictionary.keys() else APIHelper.SKIP
gateway_used = dictionary.get("gateway_used") if dictionary.get("gateway_used") else APIHelper.SKIP
gateway_transaction_id = dictionary.get("gateway_transaction_id") if "gateway_transaction_id" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(transaction_time,
memo,
@@ -137,7 +145,8 @@ def from_dictionary(cls,
prepayment,
gateway_handle,
gateway_used,
- gateway_transaction_id)
+ gateway_transaction_id,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/invoice_payment_application.py b/advancedbilling/models/invoice_payment_application.py
index 00101bc..4831cab 100644
--- a/advancedbilling/models/invoice_payment_application.py
+++ b/advancedbilling/models/invoice_payment_application.py
@@ -40,7 +40,8 @@ class InvoicePaymentApplication(object):
def __init__(self,
invoice_uid=APIHelper.SKIP,
application_uid=APIHelper.SKIP,
- applied_amount=APIHelper.SKIP):
+ applied_amount=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the InvoicePaymentApplication class"""
# Initialize members of the class
@@ -51,6 +52,9 @@ def __init__(self,
if applied_amount is not APIHelper.SKIP:
self.applied_amount = applied_amount
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -73,7 +77,12 @@ def from_dictionary(cls,
invoice_uid = dictionary.get("invoice_uid") if dictionary.get("invoice_uid") else APIHelper.SKIP
application_uid = dictionary.get("application_uid") if dictionary.get("application_uid") else APIHelper.SKIP
applied_amount = dictionary.get("applied_amount") if dictionary.get("applied_amount") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(invoice_uid,
application_uid,
- applied_amount)
+ applied_amount,
+ dictionary)
diff --git a/advancedbilling/models/invoice_payment_method.py b/advancedbilling/models/invoice_payment_method.py
index 072e5ba..49300e4 100644
--- a/advancedbilling/models/invoice_payment_method.py
+++ b/advancedbilling/models/invoice_payment_method.py
@@ -62,7 +62,8 @@ def __init__(self,
card_brand=APIHelper.SKIP,
card_expiration=APIHelper.SKIP,
last_four=APIHelper.SKIP,
- masked_card_number=APIHelper.SKIP):
+ masked_card_number=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the InvoicePaymentMethod class"""
# Initialize members of the class
@@ -83,6 +84,9 @@ def __init__(self,
if masked_card_number is not APIHelper.SKIP:
self.masked_card_number = masked_card_number
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -110,6 +114,10 @@ def from_dictionary(cls,
card_expiration = dictionary.get("card_expiration") if dictionary.get("card_expiration") else APIHelper.SKIP
last_four = dictionary.get("last_four") if "last_four" in dictionary.keys() else APIHelper.SKIP
masked_card_number = dictionary.get("masked_card_number") if dictionary.get("masked_card_number") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(details,
kind,
@@ -118,7 +126,8 @@ def from_dictionary(cls,
card_brand,
card_expiration,
last_four,
- masked_card_number)
+ masked_card_number,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/invoice_pre_payment.py b/advancedbilling/models/invoice_pre_payment.py
index 6750904..392f0bf 100644
--- a/advancedbilling/models/invoice_pre_payment.py
+++ b/advancedbilling/models/invoice_pre_payment.py
@@ -41,7 +41,8 @@ class InvoicePrePayment(object):
def __init__(self,
subscription_id=APIHelper.SKIP,
amount_in_cents=APIHelper.SKIP,
- ending_balance_in_cents=APIHelper.SKIP):
+ ending_balance_in_cents=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the InvoicePrePayment class"""
# Initialize members of the class
@@ -52,6 +53,9 @@ def __init__(self,
if ending_balance_in_cents is not APIHelper.SKIP:
self.ending_balance_in_cents = ending_balance_in_cents
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -74,10 +78,15 @@ def from_dictionary(cls,
subscription_id = dictionary.get("subscription_id") if dictionary.get("subscription_id") else APIHelper.SKIP
amount_in_cents = dictionary.get("amount_in_cents") if dictionary.get("amount_in_cents") else APIHelper.SKIP
ending_balance_in_cents = dictionary.get("ending_balance_in_cents") if dictionary.get("ending_balance_in_cents") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(subscription_id,
amount_in_cents,
- ending_balance_in_cents)
+ ending_balance_in_cents,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/invoice_previous_balance.py b/advancedbilling/models/invoice_previous_balance.py
index d3105a1..1d219be 100644
--- a/advancedbilling/models/invoice_previous_balance.py
+++ b/advancedbilling/models/invoice_previous_balance.py
@@ -35,7 +35,8 @@ class InvoicePreviousBalance(object):
def __init__(self,
captured_at=APIHelper.SKIP,
- invoices=APIHelper.SKIP):
+ invoices=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the InvoicePreviousBalance class"""
# Initialize members of the class
@@ -44,6 +45,9 @@ def __init__(self,
if invoices is not APIHelper.SKIP:
self.invoices = invoices
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -69,9 +73,14 @@ def from_dictionary(cls,
invoices = [InvoiceBalanceItem.from_dictionary(x) for x in dictionary.get('invoices')]
else:
invoices = APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(captured_at,
- invoices)
+ invoices,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/invoice_refund.py b/advancedbilling/models/invoice_refund.py
index 6b8d49a..ce51d19 100644
--- a/advancedbilling/models/invoice_refund.py
+++ b/advancedbilling/models/invoice_refund.py
@@ -64,7 +64,8 @@ def __init__(self,
applied_amount=APIHelper.SKIP,
gateway_transaction_id=APIHelper.SKIP,
gateway_used=APIHelper.SKIP,
- gateway_handle=APIHelper.SKIP):
+ gateway_handle=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the InvoiceRefund class"""
# Initialize members of the class
@@ -85,6 +86,9 @@ def __init__(self,
if gateway_handle is not APIHelper.SKIP:
self.gateway_handle = gateway_handle
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -112,6 +116,10 @@ def from_dictionary(cls,
gateway_transaction_id = dictionary.get("gateway_transaction_id") if "gateway_transaction_id" in dictionary.keys() else APIHelper.SKIP
gateway_used = dictionary.get("gateway_used") if dictionary.get("gateway_used") else APIHelper.SKIP
gateway_handle = dictionary.get("gateway_handle") if "gateway_handle" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(transaction_id,
payment_id,
@@ -120,7 +128,8 @@ def from_dictionary(cls,
applied_amount,
gateway_transaction_id,
gateway_used,
- gateway_handle)
+ gateway_handle,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/invoice_response.py b/advancedbilling/models/invoice_response.py
index f6b9aff..86a7d44 100644
--- a/advancedbilling/models/invoice_response.py
+++ b/advancedbilling/models/invoice_response.py
@@ -26,12 +26,16 @@ class InvoiceResponse(object):
}
def __init__(self,
- invoice=None):
+ invoice=None,
+ additional_properties={}):
"""Constructor for the InvoiceResponse class"""
# Initialize members of the class
self.invoice = invoice
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
invoice = Invoice.from_dictionary(dictionary.get('invoice')) if dictionary.get('invoice') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(invoice)
+ return cls(invoice,
+ dictionary)
diff --git a/advancedbilling/models/invoice_seller.py b/advancedbilling/models/invoice_seller.py
index 11f651f..df6af6e 100644
--- a/advancedbilling/models/invoice_seller.py
+++ b/advancedbilling/models/invoice_seller.py
@@ -48,7 +48,8 @@ def __init__(self,
name=APIHelper.SKIP,
address=APIHelper.SKIP,
phone=APIHelper.SKIP,
- logo_url=APIHelper.SKIP):
+ logo_url=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the InvoiceSeller class"""
# Initialize members of the class
@@ -61,6 +62,9 @@ def __init__(self,
if logo_url is not APIHelper.SKIP:
self.logo_url = logo_url
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -84,11 +88,16 @@ def from_dictionary(cls,
address = InvoiceAddress.from_dictionary(dictionary.get('address')) if 'address' in dictionary.keys() else APIHelper.SKIP
phone = dictionary.get("phone") if dictionary.get("phone") else APIHelper.SKIP
logo_url = dictionary.get("logo_url") if "logo_url" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(name,
address,
phone,
- logo_url)
+ logo_url,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/invoice_tax.py b/advancedbilling/models/invoice_tax.py
index 2a72197..69d26c7 100644
--- a/advancedbilling/models/invoice_tax.py
+++ b/advancedbilling/models/invoice_tax.py
@@ -21,7 +21,8 @@ class InvoiceTax(object):
uid (str): TODO: type description here.
title (str): TODO: type description here.
description (str): TODO: type description here.
- source_type (str): TODO: type description here.
+ source_type (ProformaInvoiceTaxSourceType): TODO: type description
+ here.
source_id (int): TODO: type description here.
percentage (str): TODO: type description here.
taxable_amount (str): TODO: type description here.
@@ -78,7 +79,8 @@ def __init__(self,
tax_amount=APIHelper.SKIP,
transaction_id=APIHelper.SKIP,
line_item_breakouts=APIHelper.SKIP,
- tax_component_breakouts=APIHelper.SKIP):
+ tax_component_breakouts=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the InvoiceTax class"""
# Initialize members of the class
@@ -105,6 +107,9 @@ def __init__(self,
if tax_component_breakouts is not APIHelper.SKIP:
self.tax_component_breakouts = tax_component_breakouts
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -143,6 +148,10 @@ def from_dictionary(cls,
tax_component_breakouts = [InvoiceTaxComponentBreakout.from_dictionary(x) for x in dictionary.get('tax_component_breakouts')]
else:
tax_component_breakouts = APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(uid,
title,
@@ -154,7 +163,8 @@ def from_dictionary(cls,
tax_amount,
transaction_id,
line_item_breakouts,
- tax_component_breakouts)
+ tax_component_breakouts,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/invoice_tax_breakout.py b/advancedbilling/models/invoice_tax_breakout.py
index bfce36b..5582b60 100644
--- a/advancedbilling/models/invoice_tax_breakout.py
+++ b/advancedbilling/models/invoice_tax_breakout.py
@@ -19,6 +19,7 @@ class InvoiceTaxBreakout(object):
uid (str): TODO: type description here.
taxable_amount (str): TODO: type description here.
tax_amount (str): TODO: type description here.
+ tax_exempt_amount (str): TODO: type description here.
"""
@@ -26,19 +27,23 @@ class InvoiceTaxBreakout(object):
_names = {
"uid": 'uid',
"taxable_amount": 'taxable_amount',
- "tax_amount": 'tax_amount'
+ "tax_amount": 'tax_amount',
+ "tax_exempt_amount": 'tax_exempt_amount'
}
_optionals = [
'uid',
'taxable_amount',
'tax_amount',
+ 'tax_exempt_amount',
]
def __init__(self,
uid=APIHelper.SKIP,
taxable_amount=APIHelper.SKIP,
- tax_amount=APIHelper.SKIP):
+ tax_amount=APIHelper.SKIP,
+ tax_exempt_amount=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the InvoiceTaxBreakout class"""
# Initialize members of the class
@@ -48,6 +53,11 @@ def __init__(self,
self.taxable_amount = taxable_amount
if tax_amount is not APIHelper.SKIP:
self.tax_amount = tax_amount
+ if tax_exempt_amount is not APIHelper.SKIP:
+ self.tax_exempt_amount = tax_exempt_amount
+
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
@classmethod
def from_dictionary(cls,
@@ -71,10 +81,17 @@ def from_dictionary(cls,
uid = dictionary.get("uid") if dictionary.get("uid") else APIHelper.SKIP
taxable_amount = dictionary.get("taxable_amount") if dictionary.get("taxable_amount") else APIHelper.SKIP
tax_amount = dictionary.get("tax_amount") if dictionary.get("tax_amount") else APIHelper.SKIP
+ tax_exempt_amount = dictionary.get("tax_exempt_amount") if dictionary.get("tax_exempt_amount") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(uid,
taxable_amount,
- tax_amount)
+ tax_amount,
+ tax_exempt_amount,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/invoice_tax_component_breakout.py b/advancedbilling/models/invoice_tax_component_breakout.py
index 2f7edd3..024b619 100644
--- a/advancedbilling/models/invoice_tax_component_breakout.py
+++ b/advancedbilling/models/invoice_tax_component_breakout.py
@@ -42,7 +42,8 @@ def __init__(self,
tax_rule_id=APIHelper.SKIP,
percentage=APIHelper.SKIP,
country_code=APIHelper.SKIP,
- subdivision_code=APIHelper.SKIP):
+ subdivision_code=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the InvoiceTaxComponentBreakout class"""
# Initialize members of the class
@@ -55,6 +56,9 @@ def __init__(self,
if subdivision_code is not APIHelper.SKIP:
self.subdivision_code = subdivision_code
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -78,11 +82,16 @@ def from_dictionary(cls,
percentage = dictionary.get("percentage") if dictionary.get("percentage") else APIHelper.SKIP
country_code = dictionary.get("country_code") if dictionary.get("country_code") else APIHelper.SKIP
subdivision_code = dictionary.get("subdivision_code") if dictionary.get("subdivision_code") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(tax_rule_id,
percentage,
country_code,
- subdivision_code)
+ subdivision_code,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/issue_advance_invoice_request.py b/advancedbilling/models/issue_advance_invoice_request.py
index d0c32c7..9814e5f 100644
--- a/advancedbilling/models/issue_advance_invoice_request.py
+++ b/advancedbilling/models/issue_advance_invoice_request.py
@@ -30,13 +30,17 @@ class IssueAdvanceInvoiceRequest(object):
]
def __init__(self,
- force=APIHelper.SKIP):
+ force=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the IssueAdvanceInvoiceRequest class"""
# Initialize members of the class
if force is not APIHelper.SKIP:
self.force = force
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -57,5 +61,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
force = dictionary.get("force") if "force" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(force)
+ return cls(force,
+ dictionary)
diff --git a/advancedbilling/models/issue_invoice_event_data.py b/advancedbilling/models/issue_invoice_event_data.py
index e895795..ce3c0bf 100644
--- a/advancedbilling/models/issue_invoice_event_data.py
+++ b/advancedbilling/models/issue_invoice_event_data.py
@@ -58,7 +58,8 @@ def __init__(self,
from_status=None,
to_status=None,
due_amount=None,
- total_amount=None):
+ total_amount=None,
+ additional_properties={}):
"""Constructor for the IssueInvoiceEventData class"""
# Initialize members of the class
@@ -68,6 +69,9 @@ def __init__(self,
self.due_amount = due_amount
self.total_amount = total_amount
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -92,12 +96,17 @@ def from_dictionary(cls,
to_status = dictionary.get("to_status") if dictionary.get("to_status") else None
due_amount = dictionary.get("due_amount") if dictionary.get("due_amount") else None
total_amount = dictionary.get("total_amount") if dictionary.get("total_amount") else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(consolidation_level,
from_status,
to_status,
due_amount,
- total_amount)
+ total_amount,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/issue_invoice_request.py b/advancedbilling/models/issue_invoice_request.py
index b7b31b7..3825415 100644
--- a/advancedbilling/models/issue_invoice_request.py
+++ b/advancedbilling/models/issue_invoice_request.py
@@ -43,12 +43,16 @@ class IssueInvoiceRequest(object):
]
def __init__(self,
- on_failed_payment='leave_open_invoice'):
+ on_failed_payment='leave_open_invoice',
+ additional_properties={}):
"""Constructor for the IssueInvoiceRequest class"""
# Initialize members of the class
self.on_failed_payment = on_failed_payment
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -69,5 +73,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
on_failed_payment = dictionary.get("on_failed_payment") if dictionary.get("on_failed_payment") else 'leave_open_invoice'
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(on_failed_payment)
+ return cls(on_failed_payment,
+ dictionary)
diff --git a/advancedbilling/models/issue_service_credit.py b/advancedbilling/models/issue_service_credit.py
index 8140255..7db330f 100644
--- a/advancedbilling/models/issue_service_credit.py
+++ b/advancedbilling/models/issue_service_credit.py
@@ -29,13 +29,17 @@ class IssueServiceCredit(object):
def __init__(self,
amount=None,
- memo=None):
+ memo=None,
+ additional_properties={}):
"""Constructor for the IssueServiceCredit class"""
# Initialize members of the class
self.amount = amount
self.memo = memo
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -58,9 +62,14 @@ def from_dictionary(cls,
# Extract variables from the dictionary
amount = APIHelper.deserialize_union_type(UnionTypeLookUp.get('IssueServiceCreditAmount'), dictionary.get('amount'), False) if dictionary.get('amount') is not None else None
memo = dictionary.get("memo") if dictionary.get("memo") else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(amount,
- memo)
+ memo,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/issue_service_credit_request.py b/advancedbilling/models/issue_service_credit_request.py
index 7bc5499..828609c 100644
--- a/advancedbilling/models/issue_service_credit_request.py
+++ b/advancedbilling/models/issue_service_credit_request.py
@@ -26,12 +26,16 @@ class IssueServiceCreditRequest(object):
}
def __init__(self,
- service_credit=None):
+ service_credit=None,
+ additional_properties={}):
"""Constructor for the IssueServiceCreditRequest class"""
# Initialize members of the class
self.service_credit = service_credit
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
service_credit = IssueServiceCredit.from_dictionary(dictionary.get('service_credit')) if dictionary.get('service_credit') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(service_credit)
+ return cls(service_credit,
+ dictionary)
diff --git a/advancedbilling/models/item_price_point_changed.py b/advancedbilling/models/item_price_point_changed.py
index d10a2a4..4bdd45a 100644
--- a/advancedbilling/models/item_price_point_changed.py
+++ b/advancedbilling/models/item_price_point_changed.py
@@ -44,7 +44,8 @@ def __init__(self,
item_handle=None,
item_name=None,
previous_price_point=None,
- current_price_point=None):
+ current_price_point=None,
+ additional_properties={}):
"""Constructor for the ItemPricePointChanged class"""
# Initialize members of the class
@@ -55,6 +56,9 @@ def __init__(self,
self.previous_price_point = previous_price_point
self.current_price_point = current_price_point
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -80,13 +84,18 @@ def from_dictionary(cls,
item_name = dictionary.get("item_name") if dictionary.get("item_name") else None
previous_price_point = ItemPricePointData.from_dictionary(dictionary.get('previous_price_point')) if dictionary.get('previous_price_point') else None
current_price_point = ItemPricePointData.from_dictionary(dictionary.get('current_price_point')) if dictionary.get('current_price_point') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(item_id,
item_type,
item_handle,
item_name,
previous_price_point,
- current_price_point)
+ current_price_point,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/item_price_point_data.py b/advancedbilling/models/item_price_point_data.py
index 219b3fd..46a2b46 100644
--- a/advancedbilling/models/item_price_point_data.py
+++ b/advancedbilling/models/item_price_point_data.py
@@ -38,7 +38,8 @@ class ItemPricePointData(object):
def __init__(self,
id=APIHelper.SKIP,
handle=APIHelper.SKIP,
- name=APIHelper.SKIP):
+ name=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the ItemPricePointData class"""
# Initialize members of the class
@@ -49,6 +50,9 @@ def __init__(self,
if name is not APIHelper.SKIP:
self.name = name
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -71,10 +75,15 @@ def from_dictionary(cls,
id = dictionary.get("id") if dictionary.get("id") else APIHelper.SKIP
handle = dictionary.get("handle") if dictionary.get("handle") else APIHelper.SKIP
name = dictionary.get("name") if dictionary.get("name") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(id,
handle,
- name)
+ name,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/list_components_price_points_response.py b/advancedbilling/models/list_components_price_points_response.py
index 6caca16..97873b2 100644
--- a/advancedbilling/models/list_components_price_points_response.py
+++ b/advancedbilling/models/list_components_price_points_response.py
@@ -27,12 +27,16 @@ class ListComponentsPricePointsResponse(object):
}
def __init__(self,
- price_points=None):
+ price_points=None,
+ additional_properties={}):
"""Constructor for the ListComponentsPricePointsResponse class"""
# Initialize members of the class
self.price_points = price_points
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -55,5 +59,10 @@ def from_dictionary(cls,
price_points = None
if dictionary.get('price_points') is not None:
price_points = [ComponentPricePoint.from_dictionary(x) for x in dictionary.get('price_points')]
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(price_points)
+ return cls(price_points,
+ dictionary)
diff --git a/advancedbilling/models/list_credit_notes_response.py b/advancedbilling/models/list_credit_notes_response.py
index 5e5d99a..fc373ab 100644
--- a/advancedbilling/models/list_credit_notes_response.py
+++ b/advancedbilling/models/list_credit_notes_response.py
@@ -26,12 +26,16 @@ class ListCreditNotesResponse(object):
}
def __init__(self,
- credit_notes=None):
+ credit_notes=None,
+ additional_properties={}):
"""Constructor for the ListCreditNotesResponse class"""
# Initialize members of the class
self.credit_notes = credit_notes
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -54,5 +58,10 @@ def from_dictionary(cls,
credit_notes = None
if dictionary.get('credit_notes') is not None:
credit_notes = [CreditNote.from_dictionary(x) for x in dictionary.get('credit_notes')]
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(credit_notes)
+ return cls(credit_notes,
+ dictionary)
diff --git a/advancedbilling/models/list_invoice_events_response.py b/advancedbilling/models/list_invoice_events_response.py
index 85dc71e..4d1f493 100644
--- a/advancedbilling/models/list_invoice_events_response.py
+++ b/advancedbilling/models/list_invoice_events_response.py
@@ -43,7 +43,8 @@ def __init__(self,
events=APIHelper.SKIP,
page=APIHelper.SKIP,
per_page=APIHelper.SKIP,
- total_pages=APIHelper.SKIP):
+ total_pages=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the ListInvoiceEventsResponse class"""
# Initialize members of the class
@@ -56,6 +57,9 @@ def __init__(self,
if total_pages is not APIHelper.SKIP:
self.total_pages = total_pages
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -83,8 +87,13 @@ def from_dictionary(cls,
page = dictionary.get("page") if dictionary.get("page") else APIHelper.SKIP
per_page = dictionary.get("per_page") if dictionary.get("per_page") else APIHelper.SKIP
total_pages = dictionary.get("total_pages") if dictionary.get("total_pages") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(events,
page,
per_page,
- total_pages)
+ total_pages,
+ dictionary)
diff --git a/advancedbilling/models/list_invoices_response.py b/advancedbilling/models/list_invoices_response.py
index 8c34dee..fef624f 100644
--- a/advancedbilling/models/list_invoices_response.py
+++ b/advancedbilling/models/list_invoices_response.py
@@ -26,12 +26,16 @@ class ListInvoicesResponse(object):
}
def __init__(self,
- invoices=None):
+ invoices=None,
+ additional_properties={}):
"""Constructor for the ListInvoicesResponse class"""
# Initialize members of the class
self.invoices = invoices
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -54,5 +58,10 @@ def from_dictionary(cls,
invoices = None
if dictionary.get('invoices') is not None:
invoices = [Invoice.from_dictionary(x) for x in dictionary.get('invoices')]
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(invoices)
+ return cls(invoices,
+ dictionary)
diff --git a/advancedbilling/models/list_metafields_response.py b/advancedbilling/models/list_metafields_response.py
index ce0bd15..cb45a42 100644
--- a/advancedbilling/models/list_metafields_response.py
+++ b/advancedbilling/models/list_metafields_response.py
@@ -47,7 +47,8 @@ def __init__(self,
current_page=APIHelper.SKIP,
total_pages=APIHelper.SKIP,
per_page=APIHelper.SKIP,
- metafields=APIHelper.SKIP):
+ metafields=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the ListMetafieldsResponse class"""
# Initialize members of the class
@@ -62,6 +63,9 @@ def __init__(self,
if metafields is not APIHelper.SKIP:
self.metafields = metafields
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -90,9 +94,14 @@ def from_dictionary(cls,
metafields = [Metafield.from_dictionary(x) for x in dictionary.get('metafields')]
else:
metafields = APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(total_count,
current_page,
total_pages,
per_page,
- metafields)
+ metafields,
+ dictionary)
diff --git a/advancedbilling/models/list_mrr_response.py b/advancedbilling/models/list_mrr_response.py
index 87a0a26..24325c0 100644
--- a/advancedbilling/models/list_mrr_response.py
+++ b/advancedbilling/models/list_mrr_response.py
@@ -26,12 +26,16 @@ class ListMRRResponse(object):
}
def __init__(self,
- mrr=None):
+ mrr=None,
+ additional_properties={}):
"""Constructor for the ListMRRResponse class"""
# Initialize members of the class
self.mrr = mrr
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
mrr = ListMRRResponseResult.from_dictionary(dictionary.get('mrr')) if dictionary.get('mrr') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(mrr)
+ return cls(mrr,
+ dictionary)
diff --git a/advancedbilling/models/list_mrr_response_result.py b/advancedbilling/models/list_mrr_response_result.py
index 571679d..9c04d4f 100644
--- a/advancedbilling/models/list_mrr_response_result.py
+++ b/advancedbilling/models/list_mrr_response_result.py
@@ -55,7 +55,8 @@ def __init__(self,
total_entries=APIHelper.SKIP,
currency=APIHelper.SKIP,
currency_symbol=APIHelper.SKIP,
- movements=APIHelper.SKIP):
+ movements=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the ListMRRResponseResult class"""
# Initialize members of the class
@@ -74,6 +75,9 @@ def __init__(self,
if movements is not APIHelper.SKIP:
self.movements = movements
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -104,6 +108,10 @@ def from_dictionary(cls,
movements = [Movement.from_dictionary(x) for x in dictionary.get('movements')]
else:
movements = APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(page,
per_page,
@@ -111,4 +119,5 @@ def from_dictionary(cls,
total_entries,
currency,
currency_symbol,
- movements)
+ movements,
+ dictionary)
diff --git a/advancedbilling/models/list_offers_response.py b/advancedbilling/models/list_offers_response.py
index 8e88ee4..2101c48 100644
--- a/advancedbilling/models/list_offers_response.py
+++ b/advancedbilling/models/list_offers_response.py
@@ -31,13 +31,17 @@ class ListOffersResponse(object):
]
def __init__(self,
- offers=APIHelper.SKIP):
+ offers=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the ListOffersResponse class"""
# Initialize members of the class
if offers is not APIHelper.SKIP:
self.offers = offers
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -62,5 +66,10 @@ def from_dictionary(cls,
offers = [Offer.from_dictionary(x) for x in dictionary.get('offers')]
else:
offers = APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(offers)
+ return cls(offers,
+ dictionary)
diff --git a/advancedbilling/models/list_product_price_points_response.py b/advancedbilling/models/list_product_price_points_response.py
index 7866534..8f7556f 100644
--- a/advancedbilling/models/list_product_price_points_response.py
+++ b/advancedbilling/models/list_product_price_points_response.py
@@ -26,12 +26,16 @@ class ListProductPricePointsResponse(object):
}
def __init__(self,
- price_points=None):
+ price_points=None,
+ additional_properties={}):
"""Constructor for the ListProductPricePointsResponse class"""
# Initialize members of the class
self.price_points = price_points
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -54,5 +58,10 @@ def from_dictionary(cls,
price_points = None
if dictionary.get('price_points') is not None:
price_points = [ProductPricePoint.from_dictionary(x) for x in dictionary.get('price_points')]
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(price_points)
+ return cls(price_points,
+ dictionary)
diff --git a/advancedbilling/models/list_proforma_invoices_meta.py b/advancedbilling/models/list_proforma_invoices_meta.py
index 2d52b68..9e786b0 100644
--- a/advancedbilling/models/list_proforma_invoices_meta.py
+++ b/advancedbilling/models/list_proforma_invoices_meta.py
@@ -42,7 +42,8 @@ def __init__(self,
total_count=APIHelper.SKIP,
current_page=APIHelper.SKIP,
total_pages=APIHelper.SKIP,
- status_code=APIHelper.SKIP):
+ status_code=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the ListProformaInvoicesMeta class"""
# Initialize members of the class
@@ -55,6 +56,9 @@ def __init__(self,
if status_code is not APIHelper.SKIP:
self.status_code = status_code
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -78,8 +82,13 @@ def from_dictionary(cls,
current_page = dictionary.get("current_page") if dictionary.get("current_page") else APIHelper.SKIP
total_pages = dictionary.get("total_pages") if dictionary.get("total_pages") else APIHelper.SKIP
status_code = dictionary.get("status_code") if dictionary.get("status_code") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(total_count,
current_page,
total_pages,
- status_code)
+ status_code,
+ dictionary)
diff --git a/advancedbilling/models/list_proforma_invoices_response.py b/advancedbilling/models/list_proforma_invoices_response.py
index 251f764..e9cbfd5 100644
--- a/advancedbilling/models/list_proforma_invoices_response.py
+++ b/advancedbilling/models/list_proforma_invoices_response.py
@@ -37,7 +37,8 @@ class ListProformaInvoicesResponse(object):
def __init__(self,
proforma_invoices=APIHelper.SKIP,
- meta=APIHelper.SKIP):
+ meta=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the ListProformaInvoicesResponse class"""
# Initialize members of the class
@@ -46,6 +47,9 @@ def __init__(self,
if meta is not APIHelper.SKIP:
self.meta = meta
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -71,6 +75,11 @@ def from_dictionary(cls,
else:
proforma_invoices = APIHelper.SKIP
meta = ListProformaInvoicesMeta.from_dictionary(dictionary.get('meta')) if 'meta' in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(proforma_invoices,
- meta)
+ meta,
+ dictionary)
diff --git a/advancedbilling/models/list_public_keys_meta.py b/advancedbilling/models/list_public_keys_meta.py
index def52f3..6f9032d 100644
--- a/advancedbilling/models/list_public_keys_meta.py
+++ b/advancedbilling/models/list_public_keys_meta.py
@@ -42,7 +42,8 @@ def __init__(self,
total_count=APIHelper.SKIP,
current_page=APIHelper.SKIP,
total_pages=APIHelper.SKIP,
- per_page=APIHelper.SKIP):
+ per_page=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the ListPublicKeysMeta class"""
# Initialize members of the class
@@ -55,6 +56,9 @@ def __init__(self,
if per_page is not APIHelper.SKIP:
self.per_page = per_page
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -78,8 +82,13 @@ def from_dictionary(cls,
current_page = dictionary.get("current_page") if dictionary.get("current_page") else APIHelper.SKIP
total_pages = dictionary.get("total_pages") if dictionary.get("total_pages") else APIHelper.SKIP
per_page = dictionary.get("per_page") if dictionary.get("per_page") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(total_count,
current_page,
total_pages,
- per_page)
+ per_page,
+ dictionary)
diff --git a/advancedbilling/models/list_public_keys_response.py b/advancedbilling/models/list_public_keys_response.py
index 342afc3..e4f2b81 100644
--- a/advancedbilling/models/list_public_keys_response.py
+++ b/advancedbilling/models/list_public_keys_response.py
@@ -36,7 +36,8 @@ class ListPublicKeysResponse(object):
def __init__(self,
chargify_js_keys=APIHelper.SKIP,
- meta=APIHelper.SKIP):
+ meta=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the ListPublicKeysResponse class"""
# Initialize members of the class
@@ -45,6 +46,9 @@ def __init__(self,
if meta is not APIHelper.SKIP:
self.meta = meta
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -70,6 +74,11 @@ def from_dictionary(cls,
else:
chargify_js_keys = APIHelper.SKIP
meta = ListPublicKeysMeta.from_dictionary(dictionary.get('meta')) if 'meta' in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(chargify_js_keys,
- meta)
+ meta,
+ dictionary)
diff --git a/advancedbilling/models/list_sale_rep_item.py b/advancedbilling/models/list_sale_rep_item.py
index 460d3f6..f520754 100644
--- a/advancedbilling/models/list_sale_rep_item.py
+++ b/advancedbilling/models/list_sale_rep_item.py
@@ -47,7 +47,8 @@ def __init__(self,
full_name=APIHelper.SKIP,
subscriptions_count=APIHelper.SKIP,
mrr_data=APIHelper.SKIP,
- test_mode=APIHelper.SKIP):
+ test_mode=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the ListSaleRepItem class"""
# Initialize members of the class
@@ -62,6 +63,9 @@ def __init__(self,
if test_mode is not APIHelper.SKIP:
self.test_mode = test_mode
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -86,9 +90,14 @@ def from_dictionary(cls,
subscriptions_count = dictionary.get("subscriptions_count") if dictionary.get("subscriptions_count") else APIHelper.SKIP
mrr_data = SaleRepItemMrr.from_dictionary(dictionary.get('mrr_data')) if 'mrr_data' in dictionary.keys() else APIHelper.SKIP
test_mode = dictionary.get("test_mode") if "test_mode" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(id,
full_name,
subscriptions_count,
mrr_data,
- test_mode)
+ test_mode,
+ dictionary)
diff --git a/advancedbilling/models/list_segments_response.py b/advancedbilling/models/list_segments_response.py
index 4798a06..1e4dad6 100644
--- a/advancedbilling/models/list_segments_response.py
+++ b/advancedbilling/models/list_segments_response.py
@@ -31,13 +31,17 @@ class ListSegmentsResponse(object):
]
def __init__(self,
- segments=APIHelper.SKIP):
+ segments=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the ListSegmentsResponse class"""
# Initialize members of the class
if segments is not APIHelper.SKIP:
self.segments = segments
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -62,5 +66,10 @@ def from_dictionary(cls,
segments = [Segment.from_dictionary(x) for x in dictionary.get('segments')]
else:
segments = APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(segments)
+ return cls(segments,
+ dictionary)
diff --git a/advancedbilling/models/list_subcription_group_prepayment_item.py b/advancedbilling/models/list_subcription_group_prepayment_item.py
index c0fe2e2..70f8299 100644
--- a/advancedbilling/models/list_subcription_group_prepayment_item.py
+++ b/advancedbilling/models/list_subcription_group_prepayment_item.py
@@ -62,7 +62,8 @@ def __init__(self,
external=APIHelper.SKIP,
memo=APIHelper.SKIP,
payment_type=APIHelper.SKIP,
- created_at=APIHelper.SKIP):
+ created_at=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the ListSubcriptionGroupPrepaymentItem class"""
# Initialize members of the class
@@ -85,6 +86,9 @@ def __init__(self,
if created_at is not APIHelper.SKIP:
self.created_at = APIHelper.apply_datetime_converter(created_at, APIHelper.RFC3339DateTime) if created_at else None
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -113,6 +117,10 @@ def from_dictionary(cls,
memo = dictionary.get("memo") if dictionary.get("memo") else APIHelper.SKIP
payment_type = dictionary.get("payment_type") if dictionary.get("payment_type") else APIHelper.SKIP
created_at = APIHelper.RFC3339DateTime.from_value(dictionary.get("created_at")).datetime if dictionary.get("created_at") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(id,
subscription_group_uid,
@@ -122,4 +130,5 @@ def from_dictionary(cls,
external,
memo,
payment_type,
- created_at)
+ created_at,
+ dictionary)
diff --git a/advancedbilling/models/list_subscription_components_response.py b/advancedbilling/models/list_subscription_components_response.py
index c343e28..1b76c1f 100644
--- a/advancedbilling/models/list_subscription_components_response.py
+++ b/advancedbilling/models/list_subscription_components_response.py
@@ -27,12 +27,16 @@ class ListSubscriptionComponentsResponse(object):
}
def __init__(self,
- subscriptions_components=None):
+ subscriptions_components=None,
+ additional_properties={}):
"""Constructor for the ListSubscriptionComponentsResponse class"""
# Initialize members of the class
self.subscriptions_components = subscriptions_components
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -55,5 +59,10 @@ def from_dictionary(cls,
subscriptions_components = None
if dictionary.get('subscriptions_components') is not None:
subscriptions_components = [SubscriptionComponent.from_dictionary(x) for x in dictionary.get('subscriptions_components')]
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(subscriptions_components)
+ return cls(subscriptions_components,
+ dictionary)
diff --git a/advancedbilling/models/list_subscription_group_prepayment.py b/advancedbilling/models/list_subscription_group_prepayment.py
index 860298b..c26983e 100644
--- a/advancedbilling/models/list_subscription_group_prepayment.py
+++ b/advancedbilling/models/list_subscription_group_prepayment.py
@@ -27,12 +27,16 @@ class ListSubscriptionGroupPrepayment(object):
}
def __init__(self,
- prepayment=None):
+ prepayment=None,
+ additional_properties={}):
"""Constructor for the ListSubscriptionGroupPrepayment class"""
# Initialize members of the class
self.prepayment = prepayment
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -53,5 +57,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
prepayment = ListSubcriptionGroupPrepaymentItem.from_dictionary(dictionary.get('prepayment')) if dictionary.get('prepayment') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(prepayment)
+ return cls(prepayment,
+ dictionary)
diff --git a/advancedbilling/models/list_subscription_group_prepayment_response.py b/advancedbilling/models/list_subscription_group_prepayment_response.py
index c05277f..9fb523e 100644
--- a/advancedbilling/models/list_subscription_group_prepayment_response.py
+++ b/advancedbilling/models/list_subscription_group_prepayment_response.py
@@ -27,12 +27,16 @@ class ListSubscriptionGroupPrepaymentResponse(object):
}
def __init__(self,
- prepayments=None):
+ prepayments=None,
+ additional_properties={}):
"""Constructor for the ListSubscriptionGroupPrepaymentResponse class"""
# Initialize members of the class
self.prepayments = prepayments
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -55,5 +59,10 @@ def from_dictionary(cls,
prepayments = None
if dictionary.get('prepayments') is not None:
prepayments = [ListSubscriptionGroupPrepayment.from_dictionary(x) for x in dictionary.get('prepayments')]
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(prepayments)
+ return cls(prepayments,
+ dictionary)
diff --git a/advancedbilling/models/list_subscription_groups_item.py b/advancedbilling/models/list_subscription_groups_item.py
index 647bedf..baa7e33 100644
--- a/advancedbilling/models/list_subscription_groups_item.py
+++ b/advancedbilling/models/list_subscription_groups_item.py
@@ -68,7 +68,8 @@ def __init__(self,
next_assessment_at=APIHelper.SKIP,
state=APIHelper.SKIP,
cancel_at_end_of_period=APIHelper.SKIP,
- account_balances=APIHelper.SKIP):
+ account_balances=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the ListSubscriptionGroupsItem class"""
# Initialize members of the class
@@ -93,6 +94,9 @@ def __init__(self,
if account_balances is not APIHelper.SKIP:
self.account_balances = account_balances
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -122,6 +126,10 @@ def from_dictionary(cls,
state = dictionary.get("state") if dictionary.get("state") else APIHelper.SKIP
cancel_at_end_of_period = dictionary.get("cancel_at_end_of_period") if "cancel_at_end_of_period" in dictionary.keys() else APIHelper.SKIP
account_balances = SubscriptionGroupBalances.from_dictionary(dictionary.get('account_balances')) if 'account_balances' in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(uid,
scheme,
@@ -132,4 +140,5 @@ def from_dictionary(cls,
next_assessment_at,
state,
cancel_at_end_of_period,
- account_balances)
+ account_balances,
+ dictionary)
diff --git a/advancedbilling/models/list_subscription_groups_meta.py b/advancedbilling/models/list_subscription_groups_meta.py
index d5e2316..42eef34 100644
--- a/advancedbilling/models/list_subscription_groups_meta.py
+++ b/advancedbilling/models/list_subscription_groups_meta.py
@@ -34,7 +34,8 @@ class ListSubscriptionGroupsMeta(object):
def __init__(self,
current_page=APIHelper.SKIP,
- total_count=APIHelper.SKIP):
+ total_count=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the ListSubscriptionGroupsMeta class"""
# Initialize members of the class
@@ -43,6 +44,9 @@ def __init__(self,
if total_count is not APIHelper.SKIP:
self.total_count = total_count
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -64,6 +68,11 @@ def from_dictionary(cls,
# Extract variables from the dictionary
current_page = dictionary.get("current_page") if dictionary.get("current_page") else APIHelper.SKIP
total_count = dictionary.get("total_count") if dictionary.get("total_count") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(current_page,
- total_count)
+ total_count,
+ dictionary)
diff --git a/advancedbilling/models/list_subscription_groups_response.py b/advancedbilling/models/list_subscription_groups_response.py
index d1c20e1..f32ef6d 100644
--- a/advancedbilling/models/list_subscription_groups_response.py
+++ b/advancedbilling/models/list_subscription_groups_response.py
@@ -37,7 +37,8 @@ class ListSubscriptionGroupsResponse(object):
def __init__(self,
subscription_groups=APIHelper.SKIP,
- meta=APIHelper.SKIP):
+ meta=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the ListSubscriptionGroupsResponse class"""
# Initialize members of the class
@@ -46,6 +47,9 @@ def __init__(self,
if meta is not APIHelper.SKIP:
self.meta = meta
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -71,6 +75,11 @@ def from_dictionary(cls,
else:
subscription_groups = APIHelper.SKIP
meta = ListSubscriptionGroupsMeta.from_dictionary(dictionary.get('meta')) if 'meta' in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(subscription_groups,
- meta)
+ meta,
+ dictionary)
diff --git a/advancedbilling/models/metadata.py b/advancedbilling/models/metadata.py
index 5a73a8e..07e0cbe 100644
--- a/advancedbilling/models/metadata.py
+++ b/advancedbilling/models/metadata.py
@@ -58,7 +58,8 @@ def __init__(self,
resource_id=APIHelper.SKIP,
name=APIHelper.SKIP,
deleted_at=APIHelper.SKIP,
- metafield_id=APIHelper.SKIP):
+ metafield_id=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the Metadata class"""
# Initialize members of the class
@@ -75,6 +76,9 @@ def __init__(self,
if metafield_id is not APIHelper.SKIP:
self.metafield_id = metafield_id
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -103,10 +107,15 @@ def from_dictionary(cls,
else:
deleted_at = APIHelper.SKIP
metafield_id = dictionary.get("metafield_id") if "metafield_id" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(id,
value,
resource_id,
name,
deleted_at,
- metafield_id)
+ metafield_id,
+ dictionary)
diff --git a/advancedbilling/models/metafield.py b/advancedbilling/models/metafield.py
index 1651b71..587d8e5 100644
--- a/advancedbilling/models/metafield.py
+++ b/advancedbilling/models/metafield.py
@@ -63,7 +63,8 @@ def __init__(self,
scope=APIHelper.SKIP,
data_count=APIHelper.SKIP,
input_type=APIHelper.SKIP,
- enum=APIHelper.SKIP):
+ enum=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the Metafield class"""
# Initialize members of the class
@@ -80,6 +81,9 @@ def __init__(self,
if enum is not APIHelper.SKIP:
self.enum = enum
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -109,10 +113,15 @@ def from_dictionary(cls,
enum = APIHelper.deserialize_union_type(UnionTypeLookUp.get('MetafieldEnum'), dictionary.get('enum'), False) if dictionary.get('enum') is not None else None
else:
enum = APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(id,
name,
scope,
data_count,
input_type,
- enum)
+ enum,
+ dictionary)
diff --git a/advancedbilling/models/metafield_scope.py b/advancedbilling/models/metafield_scope.py
index 039c438..4919ddd 100644
--- a/advancedbilling/models/metafield_scope.py
+++ b/advancedbilling/models/metafield_scope.py
@@ -62,7 +62,8 @@ def __init__(self,
portal=APIHelper.SKIP,
public_show=APIHelper.SKIP,
public_edit=APIHelper.SKIP,
- hosted=APIHelper.SKIP):
+ hosted=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the MetafieldScope class"""
# Initialize members of the class
@@ -81,6 +82,9 @@ def __init__(self,
if hosted is not APIHelper.SKIP:
self.hosted = hosted
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -107,6 +111,10 @@ def from_dictionary(cls,
public_show = dictionary.get("public_show") if dictionary.get("public_show") else APIHelper.SKIP
public_edit = dictionary.get("public_edit") if dictionary.get("public_edit") else APIHelper.SKIP
hosted = dictionary.get("hosted") if dictionary.get("hosted") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(csv,
invoices,
@@ -114,7 +122,8 @@ def from_dictionary(cls,
portal,
public_show,
public_edit,
- hosted)
+ hosted,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/metered_component.py b/advancedbilling/models/metered_component.py
index d7bf416..89000c5 100644
--- a/advancedbilling/models/metered_component.py
+++ b/advancedbilling/models/metered_component.py
@@ -145,7 +145,8 @@ def __init__(self,
allow_fractional_quantities=APIHelper.SKIP,
public_signup_page_ids=APIHelper.SKIP,
interval=APIHelper.SKIP,
- interval_unit=APIHelper.SKIP):
+ interval_unit=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the MeteredComponent class"""
# Initialize members of the class
@@ -185,6 +186,9 @@ def __init__(self,
if interval_unit is not APIHelper.SKIP:
self.interval_unit = interval_unit
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -232,6 +236,10 @@ def from_dictionary(cls,
public_signup_page_ids = dictionary.get("public_signup_page_ids") if dictionary.get("public_signup_page_ids") else APIHelper.SKIP
interval = dictionary.get("interval") if dictionary.get("interval") else APIHelper.SKIP
interval_unit = dictionary.get("interval_unit") if dictionary.get("interval_unit") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(name,
unit_name,
@@ -251,4 +259,5 @@ def from_dictionary(cls,
allow_fractional_quantities,
public_signup_page_ids,
interval,
- interval_unit)
+ interval_unit,
+ dictionary)
diff --git a/advancedbilling/models/metered_usage.py b/advancedbilling/models/metered_usage.py
index 1ed8821..346de39 100644
--- a/advancedbilling/models/metered_usage.py
+++ b/advancedbilling/models/metered_usage.py
@@ -41,7 +41,8 @@ def __init__(self,
usage_quantity=None,
component_id=None,
component_handle=None,
- memo=None):
+ memo=None,
+ additional_properties={}):
"""Constructor for the MeteredUsage class"""
# Initialize members of the class
@@ -52,6 +53,9 @@ def __init__(self,
self.component_handle = component_handle
self.memo = memo
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -77,13 +81,18 @@ def from_dictionary(cls,
component_id = dictionary.get("component_id") if dictionary.get("component_id") else None
component_handle = dictionary.get("component_handle") if dictionary.get("component_handle") else None
memo = dictionary.get("memo") if dictionary.get("memo") else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(previous_unit_balance,
new_unit_balance,
usage_quantity,
component_id,
component_handle,
- memo)
+ memo,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/movement.py b/advancedbilling/models/movement.py
index 14d158f..1d64b6f 100644
--- a/advancedbilling/models/movement.py
+++ b/advancedbilling/models/movement.py
@@ -64,7 +64,8 @@ def __init__(self,
breakouts=APIHelper.SKIP,
line_items=APIHelper.SKIP,
subscription_id=APIHelper.SKIP,
- subscriber_name=APIHelper.SKIP):
+ subscriber_name=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the Movement class"""
# Initialize members of the class
@@ -87,6 +88,9 @@ def __init__(self,
if subscriber_name is not APIHelper.SKIP:
self.subscriber_name = subscriber_name
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -119,6 +123,10 @@ def from_dictionary(cls,
line_items = APIHelper.SKIP
subscription_id = dictionary.get("subscription_id") if dictionary.get("subscription_id") else APIHelper.SKIP
subscriber_name = dictionary.get("subscriber_name") if dictionary.get("subscriber_name") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(timestamp,
amount_in_cents,
@@ -128,4 +136,5 @@ def from_dictionary(cls,
breakouts,
line_items,
subscription_id,
- subscriber_name)
+ subscriber_name,
+ dictionary)
diff --git a/advancedbilling/models/movement_line_item.py b/advancedbilling/models/movement_line_item.py
index 0832ca1..51cd76d 100644
--- a/advancedbilling/models/movement_line_item.py
+++ b/advancedbilling/models/movement_line_item.py
@@ -66,7 +66,8 @@ def __init__(self,
mrr_movements=APIHelper.SKIP,
quantity=APIHelper.SKIP,
prev_quantity=APIHelper.SKIP,
- recurring=APIHelper.SKIP):
+ recurring=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the MovementLineItem class"""
# Initialize members of the class
@@ -89,6 +90,9 @@ def __init__(self,
if recurring is not APIHelper.SKIP:
self.recurring = recurring
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -121,6 +125,10 @@ def from_dictionary(cls,
quantity = dictionary.get("quantity") if dictionary.get("quantity") else APIHelper.SKIP
prev_quantity = dictionary.get("prev_quantity") if dictionary.get("prev_quantity") else APIHelper.SKIP
recurring = dictionary.get("recurring") if "recurring" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(product_id,
component_id,
@@ -130,4 +138,5 @@ def from_dictionary(cls,
mrr_movements,
quantity,
prev_quantity,
- recurring)
+ recurring,
+ dictionary)
diff --git a/advancedbilling/models/mrr.py b/advancedbilling/models/mrr.py
index 2053949..c41eeef 100644
--- a/advancedbilling/models/mrr.py
+++ b/advancedbilling/models/mrr.py
@@ -51,7 +51,8 @@ def __init__(self,
currency=APIHelper.SKIP,
currency_symbol=APIHelper.SKIP,
breakouts=APIHelper.SKIP,
- at_time=APIHelper.SKIP):
+ at_time=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the MRR class"""
# Initialize members of the class
@@ -68,6 +69,9 @@ def __init__(self,
if at_time is not APIHelper.SKIP:
self.at_time = APIHelper.apply_datetime_converter(at_time, APIHelper.RFC3339DateTime) if at_time else None
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -93,10 +97,15 @@ def from_dictionary(cls,
currency_symbol = dictionary.get("currency_symbol") if dictionary.get("currency_symbol") else APIHelper.SKIP
breakouts = Breakouts.from_dictionary(dictionary.get('breakouts')) if 'breakouts' in dictionary.keys() else APIHelper.SKIP
at_time = APIHelper.RFC3339DateTime.from_value(dictionary.get("at_time")).datetime if dictionary.get("at_time") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(amount_in_cents,
amount_formatted,
currency,
currency_symbol,
breakouts,
- at_time)
+ at_time,
+ dictionary)
diff --git a/advancedbilling/models/mrr_movement.py b/advancedbilling/models/mrr_movement.py
index 4685fb9..a685bdb 100644
--- a/advancedbilling/models/mrr_movement.py
+++ b/advancedbilling/models/mrr_movement.py
@@ -42,7 +42,8 @@ def __init__(self,
amount=APIHelper.SKIP,
category=APIHelper.SKIP,
subscriber_delta=APIHelper.SKIP,
- lead_delta=APIHelper.SKIP):
+ lead_delta=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the MRRMovement class"""
# Initialize members of the class
@@ -55,6 +56,9 @@ def __init__(self,
if lead_delta is not APIHelper.SKIP:
self.lead_delta = lead_delta
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -78,8 +82,13 @@ def from_dictionary(cls,
category = dictionary.get("category") if dictionary.get("category") else APIHelper.SKIP
subscriber_delta = dictionary.get("subscriber_delta") if dictionary.get("subscriber_delta") else APIHelper.SKIP
lead_delta = dictionary.get("lead_delta") if dictionary.get("lead_delta") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(amount,
category,
subscriber_delta,
- lead_delta)
+ lead_delta,
+ dictionary)
diff --git a/advancedbilling/models/mrr_response.py b/advancedbilling/models/mrr_response.py
index 8a08bbb..d8e88f1 100644
--- a/advancedbilling/models/mrr_response.py
+++ b/advancedbilling/models/mrr_response.py
@@ -26,12 +26,16 @@ class MRRResponse(object):
}
def __init__(self,
- mrr=None):
+ mrr=None,
+ additional_properties={}):
"""Constructor for the MRRResponse class"""
# Initialize members of the class
self.mrr = mrr
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
mrr = MRR.from_dictionary(dictionary.get('mrr')) if dictionary.get('mrr') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(mrr)
+ return cls(mrr,
+ dictionary)
diff --git a/advancedbilling/models/multi_invoice_payment.py b/advancedbilling/models/multi_invoice_payment.py
index 2c7cbf4..867f402 100644
--- a/advancedbilling/models/multi_invoice_payment.py
+++ b/advancedbilling/models/multi_invoice_payment.py
@@ -45,7 +45,8 @@ def __init__(self,
transaction_id=APIHelper.SKIP,
total_amount=APIHelper.SKIP,
currency_code=APIHelper.SKIP,
- applications=APIHelper.SKIP):
+ applications=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the MultiInvoicePayment class"""
# Initialize members of the class
@@ -58,6 +59,9 @@ def __init__(self,
if applications is not APIHelper.SKIP:
self.applications = applications
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -85,8 +89,13 @@ def from_dictionary(cls,
applications = [InvoicePaymentApplication.from_dictionary(x) for x in dictionary.get('applications')]
else:
applications = APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(transaction_id,
total_amount,
currency_code,
- applications)
+ applications,
+ dictionary)
diff --git a/advancedbilling/models/multi_invoice_payment_response.py b/advancedbilling/models/multi_invoice_payment_response.py
index 57bae5a..c960457 100644
--- a/advancedbilling/models/multi_invoice_payment_response.py
+++ b/advancedbilling/models/multi_invoice_payment_response.py
@@ -26,12 +26,16 @@ class MultiInvoicePaymentResponse(object):
}
def __init__(self,
- payment=None):
+ payment=None,
+ additional_properties={}):
"""Constructor for the MultiInvoicePaymentResponse class"""
# Initialize members of the class
self.payment = payment
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
payment = MultiInvoicePayment.from_dictionary(dictionary.get('payment')) if dictionary.get('payment') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(payment)
+ return cls(payment,
+ dictionary)
diff --git a/advancedbilling/models/nested_subscription_group.py b/advancedbilling/models/nested_subscription_group.py
index b81d6a9..baa8e5c 100644
--- a/advancedbilling/models/nested_subscription_group.py
+++ b/advancedbilling/models/nested_subscription_group.py
@@ -45,7 +45,8 @@ def __init__(self,
uid=APIHelper.SKIP,
scheme=APIHelper.SKIP,
primary_subscription_id=APIHelper.SKIP,
- primary=APIHelper.SKIP):
+ primary=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the NestedSubscriptionGroup class"""
# Initialize members of the class
@@ -58,6 +59,9 @@ def __init__(self,
if primary is not APIHelper.SKIP:
self.primary = primary
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -81,11 +85,16 @@ def from_dictionary(cls,
scheme = dictionary.get("scheme") if dictionary.get("scheme") else APIHelper.SKIP
primary_subscription_id = dictionary.get("primary_subscription_id") if dictionary.get("primary_subscription_id") else APIHelper.SKIP
primary = dictionary.get("primary") if "primary" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(uid,
scheme,
primary_subscription_id,
- primary)
+ primary,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/net_terms.py b/advancedbilling/models/net_terms.py
index 480e7c1..60a8a6b 100644
--- a/advancedbilling/models/net_terms.py
+++ b/advancedbilling/models/net_terms.py
@@ -47,7 +47,8 @@ def __init__(self,
automatic_net_terms=0,
remittance_net_terms=0,
net_terms_on_remittance_signups_enabled=False,
- custom_net_terms_enabled=False):
+ custom_net_terms_enabled=False,
+ additional_properties={}):
"""Constructor for the NetTerms class"""
# Initialize members of the class
@@ -57,6 +58,9 @@ def __init__(self,
self.net_terms_on_remittance_signups_enabled = net_terms_on_remittance_signups_enabled
self.custom_net_terms_enabled = custom_net_terms_enabled
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -81,9 +85,14 @@ def from_dictionary(cls,
remittance_net_terms = dictionary.get("remittance_net_terms") if dictionary.get("remittance_net_terms") else 0
net_terms_on_remittance_signups_enabled = dictionary.get("net_terms_on_remittance_signups_enabled") if dictionary.get("net_terms_on_remittance_signups_enabled") else False
custom_net_terms_enabled = dictionary.get("custom_net_terms_enabled") if dictionary.get("custom_net_terms_enabled") else False
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(default_net_terms,
automatic_net_terms,
remittance_net_terms,
net_terms_on_remittance_signups_enabled,
- custom_net_terms_enabled)
+ custom_net_terms_enabled,
+ dictionary)
diff --git a/advancedbilling/models/offer.py b/advancedbilling/models/offer.py
index bd4b0e4..297efeb 100644
--- a/advancedbilling/models/offer.py
+++ b/advancedbilling/models/offer.py
@@ -111,7 +111,8 @@ def __init__(self,
product_name=APIHelper.SKIP,
product_price_point_name=APIHelper.SKIP,
product_price_in_cents=APIHelper.SKIP,
- offer_signup_pages=APIHelper.SKIP):
+ offer_signup_pages=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the Offer class"""
# Initialize members of the class
@@ -154,6 +155,9 @@ def __init__(self,
if offer_signup_pages is not APIHelper.SKIP:
self.offer_signup_pages = offer_signup_pages
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -207,6 +211,10 @@ def from_dictionary(cls,
offer_signup_pages = [OfferSignupPage.from_dictionary(x) for x in dictionary.get('offer_signup_pages')]
else:
offer_signup_pages = APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(id,
site_id,
@@ -226,4 +234,5 @@ def from_dictionary(cls,
product_name,
product_price_point_name,
product_price_in_cents,
- offer_signup_pages)
+ offer_signup_pages,
+ dictionary)
diff --git a/advancedbilling/models/offer_discount.py b/advancedbilling/models/offer_discount.py
index 04714a8..e3fa202 100644
--- a/advancedbilling/models/offer_discount.py
+++ b/advancedbilling/models/offer_discount.py
@@ -38,7 +38,8 @@ class OfferDiscount(object):
def __init__(self,
coupon_code=APIHelper.SKIP,
coupon_id=APIHelper.SKIP,
- coupon_name=APIHelper.SKIP):
+ coupon_name=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the OfferDiscount class"""
# Initialize members of the class
@@ -49,6 +50,9 @@ def __init__(self,
if coupon_name is not APIHelper.SKIP:
self.coupon_name = coupon_name
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -71,7 +75,12 @@ def from_dictionary(cls,
coupon_code = dictionary.get("coupon_code") if dictionary.get("coupon_code") else APIHelper.SKIP
coupon_id = dictionary.get("coupon_id") if dictionary.get("coupon_id") else APIHelper.SKIP
coupon_name = dictionary.get("coupon_name") if dictionary.get("coupon_name") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(coupon_code,
coupon_id,
- coupon_name)
+ coupon_name,
+ dictionary)
diff --git a/advancedbilling/models/offer_item.py b/advancedbilling/models/offer_item.py
index edfb120..fe62c84 100644
--- a/advancedbilling/models/offer_item.py
+++ b/advancedbilling/models/offer_item.py
@@ -72,7 +72,8 @@ def __init__(self,
price_point_name=APIHelper.SKIP,
currency_prices=APIHelper.SKIP,
interval=APIHelper.SKIP,
- interval_unit=APIHelper.SKIP):
+ interval_unit=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the OfferItem class"""
# Initialize members of the class
@@ -97,6 +98,9 @@ def __init__(self,
if interval_unit is not APIHelper.SKIP:
self.interval_unit = interval_unit
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -130,6 +134,10 @@ def from_dictionary(cls,
currency_prices = APIHelper.SKIP
interval = dictionary.get("interval") if dictionary.get("interval") else APIHelper.SKIP
interval_unit = dictionary.get("interval_unit") if dictionary.get("interval_unit") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(component_id,
price_point_id,
@@ -140,4 +148,5 @@ def from_dictionary(cls,
price_point_name,
currency_prices,
interval,
- interval_unit)
+ interval_unit,
+ dictionary)
diff --git a/advancedbilling/models/offer_response.py b/advancedbilling/models/offer_response.py
index 0669e83..a1b4b79 100644
--- a/advancedbilling/models/offer_response.py
+++ b/advancedbilling/models/offer_response.py
@@ -31,13 +31,17 @@ class OfferResponse(object):
]
def __init__(self,
- offer=APIHelper.SKIP):
+ offer=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the OfferResponse class"""
# Initialize members of the class
if offer is not APIHelper.SKIP:
self.offer = offer
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -58,5 +62,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
offer = Offer.from_dictionary(dictionary.get('offer')) if 'offer' in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(offer)
+ return cls(offer,
+ dictionary)
diff --git a/advancedbilling/models/offer_signup_page.py b/advancedbilling/models/offer_signup_page.py
index efe6e35..008e8b8 100644
--- a/advancedbilling/models/offer_signup_page.py
+++ b/advancedbilling/models/offer_signup_page.py
@@ -50,7 +50,8 @@ def __init__(self,
enabled=APIHelper.SKIP,
return_url=APIHelper.SKIP,
return_params=APIHelper.SKIP,
- url=APIHelper.SKIP):
+ url=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the OfferSignupPage class"""
# Initialize members of the class
@@ -67,6 +68,9 @@ def __init__(self,
if url is not APIHelper.SKIP:
self.url = url
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -92,10 +96,15 @@ def from_dictionary(cls,
return_url = dictionary.get("return_url") if dictionary.get("return_url") else APIHelper.SKIP
return_params = dictionary.get("return_params") if dictionary.get("return_params") else APIHelper.SKIP
url = dictionary.get("url") if dictionary.get("url") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(id,
nickname,
enabled,
return_url,
return_params,
- url)
+ url,
+ dictionary)
diff --git a/advancedbilling/models/on_off_component.py b/advancedbilling/models/on_off_component.py
index f4f4b72..f22a123 100644
--- a/advancedbilling/models/on_off_component.py
+++ b/advancedbilling/models/on_off_component.py
@@ -133,7 +133,8 @@ def __init__(self,
allow_fractional_quantities=APIHelper.SKIP,
public_signup_page_ids=APIHelper.SKIP,
interval=APIHelper.SKIP,
- interval_unit=APIHelper.SKIP):
+ interval_unit=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the OnOffComponent class"""
# Initialize members of the class
@@ -171,6 +172,9 @@ def __init__(self,
if interval_unit is not APIHelper.SKIP:
self.interval_unit = interval_unit
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -216,6 +220,10 @@ def from_dictionary(cls,
public_signup_page_ids = dictionary.get("public_signup_page_ids") if dictionary.get("public_signup_page_ids") else APIHelper.SKIP
interval = dictionary.get("interval") if dictionary.get("interval") else APIHelper.SKIP
interval_unit = dictionary.get("interval_unit") if dictionary.get("interval_unit") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(name,
description,
@@ -233,4 +241,5 @@ def from_dictionary(cls,
allow_fractional_quantities,
public_signup_page_ids,
interval,
- interval_unit)
+ interval_unit,
+ dictionary)
diff --git a/advancedbilling/models/organization_address.py b/advancedbilling/models/organization_address.py
index 5b01685..bfa87ac 100644
--- a/advancedbilling/models/organization_address.py
+++ b/advancedbilling/models/organization_address.py
@@ -69,7 +69,8 @@ def __init__(self,
zip=APIHelper.SKIP,
country=APIHelper.SKIP,
name=APIHelper.SKIP,
- phone=APIHelper.SKIP):
+ phone=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the OrganizationAddress class"""
# Initialize members of the class
@@ -90,6 +91,9 @@ def __init__(self,
if phone is not APIHelper.SKIP:
self.phone = phone
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -117,6 +121,10 @@ def from_dictionary(cls,
country = dictionary.get("country") if "country" in dictionary.keys() else APIHelper.SKIP
name = dictionary.get("name") if "name" in dictionary.keys() else APIHelper.SKIP
phone = dictionary.get("phone") if "phone" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(street,
line_2,
@@ -125,4 +133,5 @@ def from_dictionary(cls,
zip,
country,
name,
- phone)
+ phone,
+ dictionary)
diff --git a/advancedbilling/models/origin_invoice.py b/advancedbilling/models/origin_invoice.py
index 3e3964d..1bef10e 100644
--- a/advancedbilling/models/origin_invoice.py
+++ b/advancedbilling/models/origin_invoice.py
@@ -34,7 +34,8 @@ class OriginInvoice(object):
def __init__(self,
uid=APIHelper.SKIP,
- number=APIHelper.SKIP):
+ number=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the OriginInvoice class"""
# Initialize members of the class
@@ -43,6 +44,9 @@ def __init__(self,
if number is not APIHelper.SKIP:
self.number = number
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -64,9 +68,14 @@ def from_dictionary(cls,
# Extract variables from the dictionary
uid = dictionary.get("uid") if dictionary.get("uid") else APIHelper.SKIP
number = dictionary.get("number") if dictionary.get("number") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(uid,
- number)
+ number,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/overage_pricing.py b/advancedbilling/models/overage_pricing.py
index 9af34a6..18bf298 100644
--- a/advancedbilling/models/overage_pricing.py
+++ b/advancedbilling/models/overage_pricing.py
@@ -38,7 +38,8 @@ class OveragePricing(object):
def __init__(self,
pricing_scheme=None,
- prices=APIHelper.SKIP):
+ prices=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the OveragePricing class"""
# Initialize members of the class
@@ -46,6 +47,9 @@ def __init__(self,
if prices is not APIHelper.SKIP:
self.prices = prices
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -71,9 +75,14 @@ def from_dictionary(cls,
prices = [Price.from_dictionary(x) for x in dictionary.get('prices')]
else:
prices = APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(pricing_scheme,
- prices)
+ prices,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/override_subscription.py b/advancedbilling/models/override_subscription.py
index 6f3a046..021a98c 100644
--- a/advancedbilling/models/override_subscription.py
+++ b/advancedbilling/models/override_subscription.py
@@ -61,7 +61,8 @@ def __init__(self,
canceled_at=APIHelper.SKIP,
cancellation_message=APIHelper.SKIP,
expires_at=APIHelper.SKIP,
- current_period_starts_at=APIHelper.SKIP):
+ current_period_starts_at=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the OverrideSubscription class"""
# Initialize members of the class
@@ -76,6 +77,9 @@ def __init__(self,
if current_period_starts_at is not APIHelper.SKIP:
self.current_period_starts_at = APIHelper.apply_datetime_converter(current_period_starts_at, APIHelper.RFC3339DateTime) if current_period_starts_at else None
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -100,9 +104,14 @@ def from_dictionary(cls,
cancellation_message = dictionary.get("cancellation_message") if dictionary.get("cancellation_message") else APIHelper.SKIP
expires_at = APIHelper.RFC3339DateTime.from_value(dictionary.get("expires_at")).datetime if dictionary.get("expires_at") else APIHelper.SKIP
current_period_starts_at = APIHelper.RFC3339DateTime.from_value(dictionary.get("current_period_starts_at")).datetime if dictionary.get("current_period_starts_at") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(activated_at,
canceled_at,
cancellation_message,
expires_at,
- current_period_starts_at)
+ current_period_starts_at,
+ dictionary)
diff --git a/advancedbilling/models/override_subscription_request.py b/advancedbilling/models/override_subscription_request.py
index f16a701..77a7f45 100644
--- a/advancedbilling/models/override_subscription_request.py
+++ b/advancedbilling/models/override_subscription_request.py
@@ -26,12 +26,16 @@ class OverrideSubscriptionRequest(object):
}
def __init__(self,
- subscription=None):
+ subscription=None,
+ additional_properties={}):
"""Constructor for the OverrideSubscriptionRequest class"""
# Initialize members of the class
self.subscription = subscription
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
subscription = OverrideSubscription.from_dictionary(dictionary.get('subscription')) if dictionary.get('subscription') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(subscription)
+ return cls(subscription,
+ dictionary)
diff --git a/advancedbilling/models/paginated_metadata.py b/advancedbilling/models/paginated_metadata.py
index cd714fd..1530f75 100644
--- a/advancedbilling/models/paginated_metadata.py
+++ b/advancedbilling/models/paginated_metadata.py
@@ -47,7 +47,8 @@ def __init__(self,
current_page=APIHelper.SKIP,
total_pages=APIHelper.SKIP,
per_page=APIHelper.SKIP,
- metadata=APIHelper.SKIP):
+ metadata=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the PaginatedMetadata class"""
# Initialize members of the class
@@ -62,6 +63,9 @@ def __init__(self,
if metadata is not APIHelper.SKIP:
self.metadata = metadata
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -90,9 +94,14 @@ def from_dictionary(cls,
metadata = [Metadata.from_dictionary(x) for x in dictionary.get('metadata')]
else:
metadata = APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(total_count,
current_page,
total_pages,
per_page,
- metadata)
+ metadata,
+ dictionary)
diff --git a/advancedbilling/models/paid_invoice.py b/advancedbilling/models/paid_invoice.py
index f9ffce7..63a0a10 100644
--- a/advancedbilling/models/paid_invoice.py
+++ b/advancedbilling/models/paid_invoice.py
@@ -46,7 +46,8 @@ def __init__(self,
invoice_id=APIHelper.SKIP,
status=APIHelper.SKIP,
due_amount=APIHelper.SKIP,
- paid_amount=APIHelper.SKIP):
+ paid_amount=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the PaidInvoice class"""
# Initialize members of the class
@@ -59,6 +60,9 @@ def __init__(self,
if paid_amount is not APIHelper.SKIP:
self.paid_amount = paid_amount
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -82,11 +86,16 @@ def from_dictionary(cls,
status = dictionary.get("status") if dictionary.get("status") else APIHelper.SKIP
due_amount = dictionary.get("due_amount") if dictionary.get("due_amount") else APIHelper.SKIP
paid_amount = dictionary.get("paid_amount") if dictionary.get("paid_amount") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(invoice_id,
status,
due_amount,
- paid_amount)
+ paid_amount,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/pause_request.py b/advancedbilling/models/pause_request.py
index 9b0defe..914880e 100644
--- a/advancedbilling/models/pause_request.py
+++ b/advancedbilling/models/pause_request.py
@@ -31,13 +31,17 @@ class PauseRequest(object):
]
def __init__(self,
- hold=APIHelper.SKIP):
+ hold=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the PauseRequest class"""
# Initialize members of the class
if hold is not APIHelper.SKIP:
self.hold = hold
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -58,5 +62,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
hold = AutoResume.from_dictionary(dictionary.get('hold')) if 'hold' in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(hold)
+ return cls(hold,
+ dictionary)
diff --git a/advancedbilling/models/payer_attributes.py b/advancedbilling/models/payer_attributes.py
index 7575a58..1d3cb56 100644
--- a/advancedbilling/models/payer_attributes.py
+++ b/advancedbilling/models/payer_attributes.py
@@ -101,7 +101,8 @@ def __init__(self,
vat_number=APIHelper.SKIP,
tax_exempt=APIHelper.SKIP,
tax_exempt_reason=APIHelper.SKIP,
- metafields=APIHelper.SKIP):
+ metafields=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the PayerAttributes class"""
# Initialize members of the class
@@ -142,6 +143,9 @@ def __init__(self,
if metafields is not APIHelper.SKIP:
self.metafields = metafields
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -179,6 +183,10 @@ def from_dictionary(cls,
tax_exempt = dictionary.get("tax_exempt") if dictionary.get("tax_exempt") else APIHelper.SKIP
tax_exempt_reason = dictionary.get("tax_exempt_reason") if dictionary.get("tax_exempt_reason") else APIHelper.SKIP
metafields = dictionary.get("metafields") if dictionary.get("metafields") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(first_name,
last_name,
@@ -197,7 +205,8 @@ def from_dictionary(cls,
vat_number,
tax_exempt,
tax_exempt_reason,
- metafields)
+ metafields,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/payer_error.py b/advancedbilling/models/payer_error.py
index afcd1f6..6ab1746 100644
--- a/advancedbilling/models/payer_error.py
+++ b/advancedbilling/models/payer_error.py
@@ -38,7 +38,8 @@ class PayerError(object):
def __init__(self,
last_name=APIHelper.SKIP,
first_name=APIHelper.SKIP,
- email=APIHelper.SKIP):
+ email=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the PayerError class"""
# Initialize members of the class
@@ -49,6 +50,9 @@ def __init__(self,
if email is not APIHelper.SKIP:
self.email = email
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -71,7 +75,12 @@ def from_dictionary(cls,
last_name = dictionary.get("last_name") if dictionary.get("last_name") else APIHelper.SKIP
first_name = dictionary.get("first_name") if dictionary.get("first_name") else APIHelper.SKIP
email = dictionary.get("email") if dictionary.get("email") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(last_name,
first_name,
- email)
+ email,
+ dictionary)
diff --git a/advancedbilling/models/payment_collection_method_changed.py b/advancedbilling/models/payment_collection_method_changed.py
index e86bf4d..e2a9a4a 100644
--- a/advancedbilling/models/payment_collection_method_changed.py
+++ b/advancedbilling/models/payment_collection_method_changed.py
@@ -29,13 +29,17 @@ class PaymentCollectionMethodChanged(object):
def __init__(self,
previous_value=None,
- current_value=None):
+ current_value=None,
+ additional_properties={}):
"""Constructor for the PaymentCollectionMethodChanged class"""
# Initialize members of the class
self.previous_value = previous_value
self.current_value = current_value
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -57,9 +61,14 @@ def from_dictionary(cls,
# Extract variables from the dictionary
previous_value = dictionary.get("previous_value") if dictionary.get("previous_value") else None
current_value = dictionary.get("current_value") if dictionary.get("current_value") else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(previous_value,
- current_value)
+ current_value,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/payment_for_allocation.py b/advancedbilling/models/payment_for_allocation.py
index 2be74b4..2e9a5ee 100644
--- a/advancedbilling/models/payment_for_allocation.py
+++ b/advancedbilling/models/payment_for_allocation.py
@@ -42,7 +42,8 @@ def __init__(self,
id=APIHelper.SKIP,
amount_in_cents=APIHelper.SKIP,
success=APIHelper.SKIP,
- memo=APIHelper.SKIP):
+ memo=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the PaymentForAllocation class"""
# Initialize members of the class
@@ -55,6 +56,9 @@ def __init__(self,
if memo is not APIHelper.SKIP:
self.memo = memo
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -78,11 +82,16 @@ def from_dictionary(cls,
amount_in_cents = dictionary.get("amount_in_cents") if dictionary.get("amount_in_cents") else APIHelper.SKIP
success = dictionary.get("success") if "success" in dictionary.keys() else APIHelper.SKIP
memo = dictionary.get("memo") if dictionary.get("memo") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(id,
amount_in_cents,
success,
- memo)
+ memo,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/payment_method_apple_pay.py b/advancedbilling/models/payment_method_apple_pay.py
index 7ce5e0e..2ef1fe4 100644
--- a/advancedbilling/models/payment_method_apple_pay.py
+++ b/advancedbilling/models/payment_method_apple_pay.py
@@ -27,12 +27,16 @@ class PaymentMethodApplePay(object):
}
def __init__(self,
- mtype=None):
+ mtype=None,
+ additional_properties={}):
"""Constructor for the PaymentMethodApplePay class"""
# Initialize members of the class
self.mtype = mtype
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -53,8 +57,13 @@ def from_dictionary(cls,
# Extract variables from the dictionary
mtype = dictionary.get("type") if dictionary.get("type") else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(mtype)
+ return cls(mtype,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/payment_method_bank_account.py b/advancedbilling/models/payment_method_bank_account.py
index 7cdeee6..4e57446 100644
--- a/advancedbilling/models/payment_method_bank_account.py
+++ b/advancedbilling/models/payment_method_bank_account.py
@@ -33,7 +33,8 @@ class PaymentMethodBankAccount(object):
def __init__(self,
masked_account_number=None,
masked_routing_number=None,
- mtype=None):
+ mtype=None,
+ additional_properties={}):
"""Constructor for the PaymentMethodBankAccount class"""
# Initialize members of the class
@@ -41,6 +42,9 @@ def __init__(self,
self.masked_routing_number = masked_routing_number
self.mtype = mtype
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -63,10 +67,15 @@ def from_dictionary(cls,
masked_account_number = dictionary.get("masked_account_number") if dictionary.get("masked_account_number") else None
masked_routing_number = dictionary.get("masked_routing_number") if dictionary.get("masked_routing_number") else None
mtype = dictionary.get("type") if dictionary.get("type") else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(masked_account_number,
masked_routing_number,
- mtype)
+ mtype,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/payment_method_credit_card.py b/advancedbilling/models/payment_method_credit_card.py
index 32da11d..36ac70a 100644
--- a/advancedbilling/models/payment_method_credit_card.py
+++ b/advancedbilling/models/payment_method_credit_card.py
@@ -48,7 +48,8 @@ def __init__(self,
masked_card_number=None,
mtype=None,
card_expiration=APIHelper.SKIP,
- last_four=APIHelper.SKIP):
+ last_four=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the PaymentMethodCreditCard class"""
# Initialize members of the class
@@ -60,6 +61,9 @@ def __init__(self,
self.masked_card_number = masked_card_number
self.mtype = mtype
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -84,12 +88,17 @@ def from_dictionary(cls,
mtype = dictionary.get("type") if dictionary.get("type") else None
card_expiration = dictionary.get("card_expiration") if dictionary.get("card_expiration") else APIHelper.SKIP
last_four = dictionary.get("last_four") if "last_four" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(card_brand,
masked_card_number,
mtype,
card_expiration,
- last_four)
+ last_four,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/payment_method_external.py b/advancedbilling/models/payment_method_external.py
index 1695b93..3261681 100644
--- a/advancedbilling/models/payment_method_external.py
+++ b/advancedbilling/models/payment_method_external.py
@@ -41,7 +41,8 @@ def __init__(self,
details=None,
kind=None,
memo=None,
- mtype=None):
+ mtype=None,
+ additional_properties={}):
"""Constructor for the PaymentMethodExternal class"""
# Initialize members of the class
@@ -50,6 +51,9 @@ def __init__(self,
self.memo = memo
self.mtype = mtype
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -73,11 +77,16 @@ def from_dictionary(cls,
kind = dictionary.get("kind") if dictionary.get("kind") else None
memo = dictionary.get("memo") if dictionary.get("memo") else None
mtype = dictionary.get("type") if dictionary.get("type") else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(details,
kind,
memo,
- mtype)
+ mtype,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/payment_method_paypal.py b/advancedbilling/models/payment_method_paypal.py
index 665f907..430683e 100644
--- a/advancedbilling/models/payment_method_paypal.py
+++ b/advancedbilling/models/payment_method_paypal.py
@@ -30,13 +30,17 @@ class PaymentMethodPaypal(object):
def __init__(self,
email=None,
- mtype=None):
+ mtype=None,
+ additional_properties={}):
"""Constructor for the PaymentMethodPaypal class"""
# Initialize members of the class
self.email = email
self.mtype = mtype
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -58,9 +62,14 @@ def from_dictionary(cls,
# Extract variables from the dictionary
email = dictionary.get("email") if dictionary.get("email") else None
mtype = dictionary.get("type") if dictionary.get("type") else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(email,
- mtype)
+ mtype,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/payment_profile_attributes.py b/advancedbilling/models/payment_profile_attributes.py
index 1cee29e..663bea8 100644
--- a/advancedbilling/models/payment_profile_attributes.py
+++ b/advancedbilling/models/payment_profile_attributes.py
@@ -190,7 +190,8 @@ def __init__(self,
payment_method_nonce=APIHelper.SKIP,
gateway_handle=APIHelper.SKIP,
cvv=APIHelper.SKIP,
- last_four=APIHelper.SKIP):
+ last_four=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the PaymentProfileAttributes class"""
# Initialize members of the class
@@ -245,6 +246,9 @@ def __init__(self,
if last_four is not APIHelper.SKIP:
self.last_four = last_four
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -290,6 +294,10 @@ def from_dictionary(cls,
gateway_handle = dictionary.get("gateway_handle") if dictionary.get("gateway_handle") else APIHelper.SKIP
cvv = dictionary.get("cvv") if dictionary.get("cvv") else APIHelper.SKIP
last_four = dictionary.get("last_four") if dictionary.get("last_four") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(chargify_token,
id,
@@ -315,7 +323,8 @@ def from_dictionary(cls,
payment_method_nonce,
gateway_handle,
cvv,
- last_four)
+ last_four,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/payment_profile_response.py b/advancedbilling/models/payment_profile_response.py
index 5e8cef2..350eeac 100644
--- a/advancedbilling/models/payment_profile_response.py
+++ b/advancedbilling/models/payment_profile_response.py
@@ -27,12 +27,16 @@ class PaymentProfileResponse(object):
}
def __init__(self,
- payment_profile=None):
+ payment_profile=None,
+ additional_properties={}):
"""Constructor for the PaymentProfileResponse class"""
# Initialize members of the class
self.payment_profile = payment_profile
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -54,8 +58,13 @@ def from_dictionary(cls,
# Extract variables from the dictionary
payment_profile = APIHelper.deserialize_union_type(UnionTypeLookUp.get('PaymentProfileResponsePaymentProfile'), dictionary.get('payment_profile'), False) if dictionary.get('payment_profile') is not None else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(payment_profile)
+ return cls(payment_profile,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/payment_related_events.py b/advancedbilling/models/payment_related_events.py
index 3d95faf..4919f42 100644
--- a/advancedbilling/models/payment_related_events.py
+++ b/advancedbilling/models/payment_related_events.py
@@ -29,13 +29,17 @@ class PaymentRelatedEvents(object):
def __init__(self,
product_id=None,
- account_transaction_id=None):
+ account_transaction_id=None,
+ additional_properties={}):
"""Constructor for the PaymentRelatedEvents class"""
# Initialize members of the class
self.product_id = product_id
self.account_transaction_id = account_transaction_id
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -57,9 +61,14 @@ def from_dictionary(cls,
# Extract variables from the dictionary
product_id = dictionary.get("product_id") if dictionary.get("product_id") else None
account_transaction_id = dictionary.get("account_transaction_id") if dictionary.get("account_transaction_id") else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(product_id,
- account_transaction_id)
+ account_transaction_id,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/pending_cancellation_change.py b/advancedbilling/models/pending_cancellation_change.py
index 58e56f9..ed4192b 100644
--- a/advancedbilling/models/pending_cancellation_change.py
+++ b/advancedbilling/models/pending_cancellation_change.py
@@ -29,13 +29,17 @@ class PendingCancellationChange(object):
def __init__(self,
cancellation_state=None,
- cancels_at=None):
+ cancels_at=None,
+ additional_properties={}):
"""Constructor for the PendingCancellationChange class"""
# Initialize members of the class
self.cancellation_state = cancellation_state
self.cancels_at = APIHelper.apply_datetime_converter(cancels_at, APIHelper.RFC3339DateTime) if cancels_at else None
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -57,9 +61,14 @@ def from_dictionary(cls,
# Extract variables from the dictionary
cancellation_state = dictionary.get("cancellation_state") if dictionary.get("cancellation_state") else None
cancels_at = APIHelper.RFC3339DateTime.from_value(dictionary.get("cancels_at")).datetime if dictionary.get("cancels_at") else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(cancellation_state,
- cancels_at)
+ cancels_at,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/portal_management_link.py b/advancedbilling/models/portal_management_link.py
index 9b189fa..6a358c7 100644
--- a/advancedbilling/models/portal_management_link.py
+++ b/advancedbilling/models/portal_management_link.py
@@ -54,7 +54,8 @@ def __init__(self,
created_at=APIHelper.SKIP,
new_link_available_at=APIHelper.SKIP,
expires_at=APIHelper.SKIP,
- last_invite_sent_at=APIHelper.SKIP):
+ last_invite_sent_at=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the PortalManagementLink class"""
# Initialize members of the class
@@ -71,6 +72,9 @@ def __init__(self,
if last_invite_sent_at is not APIHelper.SKIP:
self.last_invite_sent_at = APIHelper.apply_datetime_converter(last_invite_sent_at, APIHelper.RFC3339DateTime) if last_invite_sent_at else None
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -99,10 +103,15 @@ def from_dictionary(cls,
last_invite_sent_at = APIHelper.RFC3339DateTime.from_value(dictionary.get("last_invite_sent_at")).datetime if dictionary.get("last_invite_sent_at") else None
else:
last_invite_sent_at = APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(url,
fetch_count,
created_at,
new_link_available_at,
expires_at,
- last_invite_sent_at)
+ last_invite_sent_at,
+ dictionary)
diff --git a/advancedbilling/models/prepaid_component_price_point.py b/advancedbilling/models/prepaid_component_price_point.py
index 150eb67..9a9590a 100644
--- a/advancedbilling/models/prepaid_component_price_point.py
+++ b/advancedbilling/models/prepaid_component_price_point.py
@@ -51,7 +51,8 @@ def __init__(self,
handle=APIHelper.SKIP,
pricing_scheme=APIHelper.SKIP,
prices=APIHelper.SKIP,
- overage_pricing=APIHelper.SKIP):
+ overage_pricing=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the PrepaidComponentPricePoint class"""
# Initialize members of the class
@@ -66,6 +67,9 @@ def __init__(self,
if overage_pricing is not APIHelper.SKIP:
self.overage_pricing = overage_pricing
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -94,12 +98,17 @@ def from_dictionary(cls,
else:
prices = APIHelper.SKIP
overage_pricing = OveragePricing.from_dictionary(dictionary.get('overage_pricing')) if 'overage_pricing' in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(name,
handle,
pricing_scheme,
prices,
- overage_pricing)
+ overage_pricing,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/prepaid_configuration.py b/advancedbilling/models/prepaid_configuration.py
index f54a620..2d118e9 100644
--- a/advancedbilling/models/prepaid_configuration.py
+++ b/advancedbilling/models/prepaid_configuration.py
@@ -48,7 +48,8 @@ def __init__(self,
initial_funding_amount_in_cents=APIHelper.SKIP,
replenish_to_amount_in_cents=APIHelper.SKIP,
auto_replenish=APIHelper.SKIP,
- replenish_threshold_amount_in_cents=APIHelper.SKIP):
+ replenish_threshold_amount_in_cents=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the PrepaidConfiguration class"""
# Initialize members of the class
@@ -63,6 +64,9 @@ def __init__(self,
if replenish_threshold_amount_in_cents is not APIHelper.SKIP:
self.replenish_threshold_amount_in_cents = replenish_threshold_amount_in_cents
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -87,12 +91,17 @@ def from_dictionary(cls,
replenish_to_amount_in_cents = dictionary.get("replenish_to_amount_in_cents") if dictionary.get("replenish_to_amount_in_cents") else APIHelper.SKIP
auto_replenish = dictionary.get("auto_replenish") if "auto_replenish" in dictionary.keys() else APIHelper.SKIP
replenish_threshold_amount_in_cents = dictionary.get("replenish_threshold_amount_in_cents") if dictionary.get("replenish_threshold_amount_in_cents") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(id,
initial_funding_amount_in_cents,
replenish_to_amount_in_cents,
auto_replenish,
- replenish_threshold_amount_in_cents)
+ replenish_threshold_amount_in_cents,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/prepaid_configuration_response.py b/advancedbilling/models/prepaid_configuration_response.py
index 598469d..2a20cfe 100644
--- a/advancedbilling/models/prepaid_configuration_response.py
+++ b/advancedbilling/models/prepaid_configuration_response.py
@@ -27,12 +27,16 @@ class PrepaidConfigurationResponse(object):
}
def __init__(self,
- prepaid_configuration=None):
+ prepaid_configuration=None,
+ additional_properties={}):
"""Constructor for the PrepaidConfigurationResponse class"""
# Initialize members of the class
self.prepaid_configuration = prepaid_configuration
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -53,5 +57,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
prepaid_configuration = PrepaidConfiguration.from_dictionary(dictionary.get('prepaid_configuration')) if dictionary.get('prepaid_configuration') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(prepaid_configuration)
+ return cls(prepaid_configuration,
+ dictionary)
diff --git a/advancedbilling/models/prepaid_subscription_balance_changed.py b/advancedbilling/models/prepaid_subscription_balance_changed.py
index feb52e9..5a12b38 100644
--- a/advancedbilling/models/prepaid_subscription_balance_changed.py
+++ b/advancedbilling/models/prepaid_subscription_balance_changed.py
@@ -38,7 +38,8 @@ def __init__(self,
reason=None,
current_account_balance_in_cents=None,
prepayment_account_balance_in_cents=None,
- current_usage_amount_in_cents=None):
+ current_usage_amount_in_cents=None,
+ additional_properties={}):
"""Constructor for the PrepaidSubscriptionBalanceChanged class"""
# Initialize members of the class
@@ -47,6 +48,9 @@ def __init__(self,
self.prepayment_account_balance_in_cents = prepayment_account_balance_in_cents
self.current_usage_amount_in_cents = current_usage_amount_in_cents
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -70,11 +74,16 @@ def from_dictionary(cls,
current_account_balance_in_cents = dictionary.get("current_account_balance_in_cents") if dictionary.get("current_account_balance_in_cents") else None
prepayment_account_balance_in_cents = dictionary.get("prepayment_account_balance_in_cents") if dictionary.get("prepayment_account_balance_in_cents") else None
current_usage_amount_in_cents = dictionary.get("current_usage_amount_in_cents") if dictionary.get("current_usage_amount_in_cents") else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(reason,
current_account_balance_in_cents,
prepayment_account_balance_in_cents,
- current_usage_amount_in_cents)
+ current_usage_amount_in_cents,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/prepaid_usage.py b/advancedbilling/models/prepaid_usage.py
index de164d0..6cdf946 100644
--- a/advancedbilling/models/prepaid_usage.py
+++ b/advancedbilling/models/prepaid_usage.py
@@ -55,7 +55,8 @@ def __init__(self,
component_id=None,
component_handle=None,
memo=None,
- allocation_details=None):
+ allocation_details=None,
+ additional_properties={}):
"""Constructor for the PrepaidUsage class"""
# Initialize members of the class
@@ -70,6 +71,9 @@ def __init__(self,
self.memo = memo
self.allocation_details = allocation_details
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -101,6 +105,10 @@ def from_dictionary(cls,
allocation_details = None
if dictionary.get('allocation_details') is not None:
allocation_details = [PrepaidUsageAllocationDetail.from_dictionary(x) for x in dictionary.get('allocation_details')]
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(previous_unit_balance,
previous_overage_unit_balance,
@@ -111,7 +119,8 @@ def from_dictionary(cls,
component_id,
component_handle,
memo,
- allocation_details)
+ allocation_details,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/prepaid_usage_allocation_detail.py b/advancedbilling/models/prepaid_usage_allocation_detail.py
index 79e80ea..a347453 100644
--- a/advancedbilling/models/prepaid_usage_allocation_detail.py
+++ b/advancedbilling/models/prepaid_usage_allocation_detail.py
@@ -38,7 +38,8 @@ class PrepaidUsageAllocationDetail(object):
def __init__(self,
allocation_id=APIHelper.SKIP,
charge_id=APIHelper.SKIP,
- usage_quantity=APIHelper.SKIP):
+ usage_quantity=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the PrepaidUsageAllocationDetail class"""
# Initialize members of the class
@@ -49,6 +50,9 @@ def __init__(self,
if usage_quantity is not APIHelper.SKIP:
self.usage_quantity = usage_quantity
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -71,10 +75,15 @@ def from_dictionary(cls,
allocation_id = dictionary.get("allocation_id") if dictionary.get("allocation_id") else APIHelper.SKIP
charge_id = dictionary.get("charge_id") if dictionary.get("charge_id") else APIHelper.SKIP
usage_quantity = dictionary.get("usage_quantity") if dictionary.get("usage_quantity") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(allocation_id,
charge_id,
- usage_quantity)
+ usage_quantity,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/prepaid_usage_component.py b/advancedbilling/models/prepaid_usage_component.py
index f9b5f7b..226929e 100644
--- a/advancedbilling/models/prepaid_usage_component.py
+++ b/advancedbilling/models/prepaid_usage_component.py
@@ -160,7 +160,8 @@ def __init__(self,
expiration_interval_unit=APIHelper.SKIP,
display_on_hosted_page=APIHelper.SKIP,
allow_fractional_quantities=APIHelper.SKIP,
- public_signup_page_ids=APIHelper.SKIP):
+ public_signup_page_ids=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the PrepaidUsageComponent class"""
# Initialize members of the class
@@ -208,6 +209,9 @@ def __init__(self,
if public_signup_page_ids is not APIHelper.SKIP:
self.public_signup_page_ids = public_signup_page_ids
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -258,6 +262,10 @@ def from_dictionary(cls,
display_on_hosted_page = dictionary.get("display_on_hosted_page") if "display_on_hosted_page" in dictionary.keys() else APIHelper.SKIP
allow_fractional_quantities = dictionary.get("allow_fractional_quantities") if "allow_fractional_quantities" in dictionary.keys() else APIHelper.SKIP
public_signup_page_ids = dictionary.get("public_signup_page_ids") if dictionary.get("public_signup_page_ids") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(name,
unit_name,
@@ -280,4 +288,5 @@ def from_dictionary(cls,
expiration_interval_unit,
display_on_hosted_page,
allow_fractional_quantities,
- public_signup_page_ids)
+ public_signup_page_ids,
+ dictionary)
diff --git a/advancedbilling/models/prepayment.py b/advancedbilling/models/prepayment.py
index ed28003..26d36b4 100644
--- a/advancedbilling/models/prepayment.py
+++ b/advancedbilling/models/prepayment.py
@@ -59,7 +59,8 @@ def __init__(self,
created_at=None,
refunded_amount_in_cents=APIHelper.SKIP,
details=APIHelper.SKIP,
- payment_type=APIHelper.SKIP):
+ payment_type=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the Prepayment class"""
# Initialize members of the class
@@ -77,6 +78,9 @@ def __init__(self,
self.payment_type = payment_type
self.created_at = APIHelper.apply_datetime_converter(created_at, APIHelper.RFC3339DateTime) if created_at else None
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -106,6 +110,10 @@ def from_dictionary(cls,
refunded_amount_in_cents = dictionary.get("refunded_amount_in_cents") if dictionary.get("refunded_amount_in_cents") else APIHelper.SKIP
details = dictionary.get("details") if dictionary.get("details") else APIHelper.SKIP
payment_type = dictionary.get("payment_type") if dictionary.get("payment_type") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(id,
subscription_id,
@@ -116,4 +124,5 @@ def from_dictionary(cls,
created_at,
refunded_amount_in_cents,
details,
- payment_type)
+ payment_type,
+ dictionary)
diff --git a/advancedbilling/models/prepayment_account_balance_changed.py b/advancedbilling/models/prepayment_account_balance_changed.py
index 5ef54ac..158490c 100644
--- a/advancedbilling/models/prepayment_account_balance_changed.py
+++ b/advancedbilling/models/prepayment_account_balance_changed.py
@@ -37,7 +37,8 @@ def __init__(self,
reason=None,
prepayment_account_balance_in_cents=None,
prepayment_balance_change_in_cents=None,
- currency_code=None):
+ currency_code=None,
+ additional_properties={}):
"""Constructor for the PrepaymentAccountBalanceChanged class"""
# Initialize members of the class
@@ -46,6 +47,9 @@ def __init__(self,
self.prepayment_balance_change_in_cents = prepayment_balance_change_in_cents
self.currency_code = currency_code
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -69,11 +73,16 @@ def from_dictionary(cls,
prepayment_account_balance_in_cents = dictionary.get("prepayment_account_balance_in_cents") if dictionary.get("prepayment_account_balance_in_cents") else None
prepayment_balance_change_in_cents = dictionary.get("prepayment_balance_change_in_cents") if dictionary.get("prepayment_balance_change_in_cents") else None
currency_code = dictionary.get("currency_code") if dictionary.get("currency_code") else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(reason,
prepayment_account_balance_in_cents,
prepayment_balance_change_in_cents,
- currency_code)
+ currency_code,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/prepayment_aggregated_error.py b/advancedbilling/models/prepayment_aggregated_error.py
index b918887..9f9784f 100644
--- a/advancedbilling/models/prepayment_aggregated_error.py
+++ b/advancedbilling/models/prepayment_aggregated_error.py
@@ -38,7 +38,8 @@ class PrepaymentAggregatedError(object):
def __init__(self,
amount_in_cents=APIHelper.SKIP,
base=APIHelper.SKIP,
- external=APIHelper.SKIP):
+ external=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the PrepaymentAggregatedError class"""
# Initialize members of the class
@@ -49,6 +50,9 @@ def __init__(self,
if external is not APIHelper.SKIP:
self.external = external
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -71,7 +75,12 @@ def from_dictionary(cls,
amount_in_cents = dictionary.get("amount_in_cents") if dictionary.get("amount_in_cents") else APIHelper.SKIP
base = dictionary.get("base") if dictionary.get("base") else APIHelper.SKIP
external = dictionary.get("external") if dictionary.get("external") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(amount_in_cents,
base,
- external)
+ external,
+ dictionary)
diff --git a/advancedbilling/models/prepayment_response.py b/advancedbilling/models/prepayment_response.py
index 9055582..f989f9e 100644
--- a/advancedbilling/models/prepayment_response.py
+++ b/advancedbilling/models/prepayment_response.py
@@ -26,12 +26,16 @@ class PrepaymentResponse(object):
}
def __init__(self,
- prepayment=None):
+ prepayment=None,
+ additional_properties={}):
"""Constructor for the PrepaymentResponse class"""
# Initialize members of the class
self.prepayment = prepayment
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
prepayment = Prepayment.from_dictionary(dictionary.get('prepayment')) if dictionary.get('prepayment') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(prepayment)
+ return cls(prepayment,
+ dictionary)
diff --git a/advancedbilling/models/prepayments_response.py b/advancedbilling/models/prepayments_response.py
index 1d73e6b..8270a56 100644
--- a/advancedbilling/models/prepayments_response.py
+++ b/advancedbilling/models/prepayments_response.py
@@ -31,13 +31,17 @@ class PrepaymentsResponse(object):
]
def __init__(self,
- prepayments=APIHelper.SKIP):
+ prepayments=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the PrepaymentsResponse class"""
# Initialize members of the class
if prepayments is not APIHelper.SKIP:
self.prepayments = prepayments
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -62,5 +66,10 @@ def from_dictionary(cls,
prepayments = [Prepayment.from_dictionary(x) for x in dictionary.get('prepayments')]
else:
prepayments = APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(prepayments)
+ return cls(prepayments,
+ dictionary)
diff --git a/advancedbilling/models/preview_allocations_request.py b/advancedbilling/models/preview_allocations_request.py
index 7fa288a..892dd2c 100644
--- a/advancedbilling/models/preview_allocations_request.py
+++ b/advancedbilling/models/preview_allocations_request.py
@@ -57,7 +57,8 @@ def __init__(self,
allocations=None,
effective_proration_date=APIHelper.SKIP,
upgrade_charge=APIHelper.SKIP,
- downgrade_credit=APIHelper.SKIP):
+ downgrade_credit=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the PreviewAllocationsRequest class"""
# Initialize members of the class
@@ -69,6 +70,9 @@ def __init__(self,
if downgrade_credit is not APIHelper.SKIP:
self.downgrade_credit = downgrade_credit
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -94,8 +98,13 @@ def from_dictionary(cls,
effective_proration_date = dateutil.parser.parse(dictionary.get('effective_proration_date')).date() if dictionary.get('effective_proration_date') else APIHelper.SKIP
upgrade_charge = dictionary.get("upgrade_charge") if "upgrade_charge" in dictionary.keys() else APIHelper.SKIP
downgrade_credit = dictionary.get("downgrade_credit") if "downgrade_credit" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(allocations,
effective_proration_date,
upgrade_charge,
- downgrade_credit)
+ downgrade_credit,
+ dictionary)
diff --git a/advancedbilling/models/price.py b/advancedbilling/models/price.py
index 64c3a56..e0e7596 100644
--- a/advancedbilling/models/price.py
+++ b/advancedbilling/models/price.py
@@ -41,7 +41,8 @@ class Price(object):
def __init__(self,
starting_quantity=None,
unit_price=None,
- ending_quantity=APIHelper.SKIP):
+ ending_quantity=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the Price class"""
# Initialize members of the class
@@ -50,6 +51,9 @@ def __init__(self,
self.ending_quantity = ending_quantity
self.unit_price = unit_price
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -76,10 +80,15 @@ def from_dictionary(cls,
ending_quantity = APIHelper.deserialize_union_type(UnionTypeLookUp.get('PriceEndingQuantity'), dictionary.get('ending_quantity'), False) if dictionary.get('ending_quantity') is not None else None
else:
ending_quantity = APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(starting_quantity,
unit_price,
- ending_quantity)
+ ending_quantity,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/price_point.py b/advancedbilling/models/price_point.py
index 974a922..af5bbcf 100644
--- a/advancedbilling/models/price_point.py
+++ b/advancedbilling/models/price_point.py
@@ -96,7 +96,8 @@ def __init__(self,
rollover_prepaid_remainder=APIHelper.SKIP,
renew_prepaid_allocation=APIHelper.SKIP,
expiration_interval=APIHelper.SKIP,
- expiration_interval_unit=APIHelper.SKIP):
+ expiration_interval_unit=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the PricePoint class"""
# Initialize members of the class
@@ -126,6 +127,9 @@ def __init__(self,
if expiration_interval_unit is not APIHelper.SKIP:
self.expiration_interval_unit = expiration_interval_unit
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -162,6 +166,10 @@ def from_dictionary(cls,
renew_prepaid_allocation = dictionary.get("renew_prepaid_allocation") if "renew_prepaid_allocation" in dictionary.keys() else APIHelper.SKIP
expiration_interval = dictionary.get("expiration_interval") if dictionary.get("expiration_interval") else APIHelper.SKIP
expiration_interval_unit = dictionary.get("expiration_interval_unit") if dictionary.get("expiration_interval_unit") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(name,
handle,
@@ -175,4 +183,5 @@ def from_dictionary(cls,
rollover_prepaid_remainder,
renew_prepaid_allocation,
expiration_interval,
- expiration_interval_unit)
+ expiration_interval_unit,
+ dictionary)
diff --git a/advancedbilling/models/product.py b/advancedbilling/models/product.py
index ccbc2f7..5fea91a 100644
--- a/advancedbilling/models/product.py
+++ b/advancedbilling/models/product.py
@@ -232,7 +232,8 @@ def __init__(self,
use_site_exchange_rate=APIHelper.SKIP,
item_category=APIHelper.SKIP,
product_price_point_id=APIHelper.SKIP,
- product_price_point_handle=APIHelper.SKIP):
+ product_price_point_handle=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the Product class"""
# Initialize members of the class
@@ -311,6 +312,9 @@ def __init__(self,
if product_price_point_handle is not APIHelper.SKIP:
self.product_price_point_handle = product_price_point_handle
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -381,6 +385,10 @@ def from_dictionary(cls,
item_category = dictionary.get("item_category") if "item_category" in dictionary.keys() else APIHelper.SKIP
product_price_point_id = dictionary.get("product_price_point_id") if dictionary.get("product_price_point_id") else APIHelper.SKIP
product_price_point_handle = dictionary.get("product_price_point_handle") if "product_price_point_handle" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(id,
name,
@@ -418,7 +426,8 @@ def from_dictionary(cls,
use_site_exchange_rate,
item_category,
product_price_point_id,
- product_price_point_handle)
+ product_price_point_handle,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/product_family.py b/advancedbilling/models/product_family.py
index e031f93..e476946 100644
--- a/advancedbilling/models/product_family.py
+++ b/advancedbilling/models/product_family.py
@@ -59,7 +59,8 @@ def __init__(self,
accounting_code=APIHelper.SKIP,
description=APIHelper.SKIP,
created_at=APIHelper.SKIP,
- updated_at=APIHelper.SKIP):
+ updated_at=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the ProductFamily class"""
# Initialize members of the class
@@ -78,6 +79,9 @@ def __init__(self,
if updated_at is not APIHelper.SKIP:
self.updated_at = APIHelper.apply_datetime_converter(updated_at, APIHelper.RFC3339DateTime) if updated_at else None
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -104,6 +108,10 @@ def from_dictionary(cls,
description = dictionary.get("description") if "description" in dictionary.keys() else APIHelper.SKIP
created_at = APIHelper.RFC3339DateTime.from_value(dictionary.get("created_at")).datetime if dictionary.get("created_at") else APIHelper.SKIP
updated_at = APIHelper.RFC3339DateTime.from_value(dictionary.get("updated_at")).datetime if dictionary.get("updated_at") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(id,
name,
@@ -111,7 +119,8 @@ def from_dictionary(cls,
accounting_code,
description,
created_at,
- updated_at)
+ updated_at,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/product_family_response.py b/advancedbilling/models/product_family_response.py
index 7557409..e26f1fc 100644
--- a/advancedbilling/models/product_family_response.py
+++ b/advancedbilling/models/product_family_response.py
@@ -31,13 +31,17 @@ class ProductFamilyResponse(object):
]
def __init__(self,
- product_family=APIHelper.SKIP):
+ product_family=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the ProductFamilyResponse class"""
# Initialize members of the class
if product_family is not APIHelper.SKIP:
self.product_family = product_family
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -58,5 +62,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
product_family = ProductFamily.from_dictionary(dictionary.get('product_family')) if 'product_family' in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(product_family)
+ return cls(product_family,
+ dictionary)
diff --git a/advancedbilling/models/product_price_point.py b/advancedbilling/models/product_price_point.py
index 9d21261..99d1cc1 100644
--- a/advancedbilling/models/product_price_point.py
+++ b/advancedbilling/models/product_price_point.py
@@ -152,7 +152,8 @@ def __init__(self,
mtype=APIHelper.SKIP,
tax_included=APIHelper.SKIP,
subscription_id=APIHelper.SKIP,
- currency_prices=APIHelper.SKIP):
+ currency_prices=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the ProductPricePoint class"""
# Initialize members of the class
@@ -205,6 +206,9 @@ def __init__(self,
if currency_prices is not APIHelper.SKIP:
self.currency_prices = currency_prices
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -255,6 +259,10 @@ def from_dictionary(cls,
currency_prices = [CurrencyPrice.from_dictionary(x) for x in dictionary.get('currency_prices')]
else:
currency_prices = APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(id,
name,
@@ -279,4 +287,5 @@ def from_dictionary(cls,
mtype,
tax_included,
subscription_id,
- currency_prices)
+ currency_prices,
+ dictionary)
diff --git a/advancedbilling/models/product_price_point_errors.py b/advancedbilling/models/product_price_point_errors.py
index 72893df..e14b06b 100644
--- a/advancedbilling/models/product_price_point_errors.py
+++ b/advancedbilling/models/product_price_point_errors.py
@@ -50,7 +50,8 @@ def __init__(self,
interval_unit=APIHelper.SKIP,
name=APIHelper.SKIP,
price=APIHelper.SKIP,
- price_in_cents=APIHelper.SKIP):
+ price_in_cents=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the ProductPricePointErrors class"""
# Initialize members of the class
@@ -67,6 +68,9 @@ def __init__(self,
if price_in_cents is not APIHelper.SKIP:
self.price_in_cents = price_in_cents
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -92,10 +96,15 @@ def from_dictionary(cls,
name = dictionary.get("name") if dictionary.get("name") else APIHelper.SKIP
price = dictionary.get("price") if dictionary.get("price") else APIHelper.SKIP
price_in_cents = dictionary.get("price_in_cents") if dictionary.get("price_in_cents") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(price_point,
interval,
interval_unit,
name,
price,
- price_in_cents)
+ price_in_cents,
+ dictionary)
diff --git a/advancedbilling/models/product_price_point_response.py b/advancedbilling/models/product_price_point_response.py
index 5fc0377..bbd094e 100644
--- a/advancedbilling/models/product_price_point_response.py
+++ b/advancedbilling/models/product_price_point_response.py
@@ -26,12 +26,16 @@ class ProductPricePointResponse(object):
}
def __init__(self,
- price_point=None):
+ price_point=None,
+ additional_properties={}):
"""Constructor for the ProductPricePointResponse class"""
# Initialize members of the class
self.price_point = price_point
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
price_point = ProductPricePoint.from_dictionary(dictionary.get('price_point')) if dictionary.get('price_point') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(price_point)
+ return cls(price_point,
+ dictionary)
diff --git a/advancedbilling/models/product_response.py b/advancedbilling/models/product_response.py
index ea6d745..fcf82da 100644
--- a/advancedbilling/models/product_response.py
+++ b/advancedbilling/models/product_response.py
@@ -26,12 +26,16 @@ class ProductResponse(object):
}
def __init__(self,
- product=None):
+ product=None,
+ additional_properties={}):
"""Constructor for the ProductResponse class"""
# Initialize members of the class
self.product = product
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
product = Product.from_dictionary(dictionary.get('product')) if dictionary.get('product') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(product)
+ return cls(product,
+ dictionary)
diff --git a/advancedbilling/models/proforma_error.py b/advancedbilling/models/proforma_error.py
index 7714b3b..a8ebfc2 100644
--- a/advancedbilling/models/proforma_error.py
+++ b/advancedbilling/models/proforma_error.py
@@ -32,13 +32,17 @@ class ProformaError(object):
]
def __init__(self,
- subscription=APIHelper.SKIP):
+ subscription=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the ProformaError class"""
# Initialize members of the class
if subscription is not APIHelper.SKIP:
self.subscription = subscription
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -59,5 +63,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
subscription = BaseStringError.from_dictionary(dictionary.get('subscription')) if 'subscription' in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(subscription)
+ return cls(subscription,
+ dictionary)
diff --git a/advancedbilling/models/proforma_invoice.py b/advancedbilling/models/proforma_invoice.py
index e5a167c..5b55fa4 100644
--- a/advancedbilling/models/proforma_invoice.py
+++ b/advancedbilling/models/proforma_invoice.py
@@ -35,14 +35,29 @@ class ProformaInvoice(object):
sequence_number (int): TODO: type description here.
created_at (datetime): TODO: type description here.
delivery_date (date): TODO: type description here.
- status (str): TODO: type description here.
- collection_method (str): TODO: type description here.
+ status (ProformaInvoiceStatus): TODO: type description here.
+ collection_method (CollectionMethod): The type of payment collection
+ to be used in the subscription. For legacy Statements Architecture
+ valid options are - `invoice`, `automatic`. For current
+ Relationship Invoicing Architecture valid options are -
+ `remittance`, `automatic`, `prepaid`.
payment_instructions (str): TODO: type description here.
currency (str): TODO: type description here.
- consolidation_level (str): TODO: type description here.
+ consolidation_level (InvoiceConsolidationLevel): Consolidation level
+ of the invoice, which is applicable to invoice consolidation. It
+ will hold one of the following values: * "none": A normal invoice
+ with no consolidation. * "child": An invoice segment which has
+ been combined into a consolidated invoice. * "parent": A
+ consolidated invoice, whose contents are composed of invoice
+ segments. "Parent" invoices do not have lines of their own, but
+ they have subtotals and totals which aggregate the member invoice
+ segments. See also the [invoice consolidation
+ documentation](https://chargify.zendesk.com/hc/en-us/articles/44077
+ 46391835).
product_name (str): TODO: type description here.
product_family_name (str): TODO: type description here.
- role (str): TODO: type description here.
+ role (ProformaInvoiceRole): 'proforma' value is deprecated in favor of
+ proforma_adhoc and proforma_automatic
seller (InvoiceSeller): Information about the seller (merchant) listed
on the masthead of the invoice.
customer (InvoiceCustomer): Information about the customer who is
@@ -150,6 +165,8 @@ class ProformaInvoice(object):
]
_nullables = [
+ 'customer_id',
+ 'subscription_id',
'number',
'sequence_number',
'public_url',
@@ -165,7 +182,7 @@ def __init__(self,
created_at=APIHelper.SKIP,
delivery_date=APIHelper.SKIP,
status=APIHelper.SKIP,
- collection_method=APIHelper.SKIP,
+ collection_method='automatic',
payment_instructions=APIHelper.SKIP,
currency=APIHelper.SKIP,
consolidation_level=APIHelper.SKIP,
@@ -191,7 +208,8 @@ def __init__(self,
credits=APIHelper.SKIP,
payments=APIHelper.SKIP,
custom_fields=APIHelper.SKIP,
- public_url=APIHelper.SKIP):
+ public_url=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the ProformaInvoice class"""
# Initialize members of the class
@@ -213,8 +231,7 @@ def __init__(self,
self.delivery_date = delivery_date
if status is not APIHelper.SKIP:
self.status = status
- if collection_method is not APIHelper.SKIP:
- self.collection_method = collection_method
+ self.collection_method = collection_method
if payment_instructions is not APIHelper.SKIP:
self.payment_instructions = payment_instructions
if currency is not APIHelper.SKIP:
@@ -268,6 +285,9 @@ def __init__(self,
if public_url is not APIHelper.SKIP:
self.public_url = public_url
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -289,14 +309,14 @@ def from_dictionary(cls,
# Extract variables from the dictionary
uid = dictionary.get("uid") if dictionary.get("uid") else APIHelper.SKIP
site_id = dictionary.get("site_id") if dictionary.get("site_id") else APIHelper.SKIP
- customer_id = dictionary.get("customer_id") if dictionary.get("customer_id") else APIHelper.SKIP
- subscription_id = dictionary.get("subscription_id") if dictionary.get("subscription_id") else APIHelper.SKIP
+ customer_id = dictionary.get("customer_id") if "customer_id" in dictionary.keys() else APIHelper.SKIP
+ subscription_id = dictionary.get("subscription_id") if "subscription_id" in dictionary.keys() else APIHelper.SKIP
number = dictionary.get("number") if "number" in dictionary.keys() else APIHelper.SKIP
sequence_number = dictionary.get("sequence_number") if "sequence_number" in dictionary.keys() else APIHelper.SKIP
created_at = APIHelper.RFC3339DateTime.from_value(dictionary.get("created_at")).datetime if dictionary.get("created_at") else APIHelper.SKIP
delivery_date = dateutil.parser.parse(dictionary.get('delivery_date')).date() if dictionary.get('delivery_date') else APIHelper.SKIP
status = dictionary.get("status") if dictionary.get("status") else APIHelper.SKIP
- collection_method = dictionary.get("collection_method") if dictionary.get("collection_method") else APIHelper.SKIP
+ collection_method = dictionary.get("collection_method") if dictionary.get("collection_method") else 'automatic'
payment_instructions = dictionary.get("payment_instructions") if dictionary.get("payment_instructions") else APIHelper.SKIP
currency = dictionary.get("currency") if dictionary.get("currency") else APIHelper.SKIP
consolidation_level = dictionary.get("consolidation_level") if dictionary.get("consolidation_level") else APIHelper.SKIP
@@ -347,6 +367,10 @@ def from_dictionary(cls,
else:
custom_fields = APIHelper.SKIP
public_url = dictionary.get("public_url") if "public_url" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(uid,
site_id,
@@ -383,4 +407,5 @@ def from_dictionary(cls,
credits,
payments,
custom_fields,
- public_url)
+ public_url,
+ dictionary)
diff --git a/advancedbilling/models/proforma_invoice_credit.py b/advancedbilling/models/proforma_invoice_credit.py
index f27632c..078ff0a 100644
--- a/advancedbilling/models/proforma_invoice_credit.py
+++ b/advancedbilling/models/proforma_invoice_credit.py
@@ -42,7 +42,8 @@ def __init__(self,
uid=APIHelper.SKIP,
memo=APIHelper.SKIP,
original_amount=APIHelper.SKIP,
- applied_amount=APIHelper.SKIP):
+ applied_amount=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the ProformaInvoiceCredit class"""
# Initialize members of the class
@@ -55,6 +56,9 @@ def __init__(self,
if applied_amount is not APIHelper.SKIP:
self.applied_amount = applied_amount
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -78,8 +82,13 @@ def from_dictionary(cls,
memo = dictionary.get("memo") if dictionary.get("memo") else APIHelper.SKIP
original_amount = dictionary.get("original_amount") if dictionary.get("original_amount") else APIHelper.SKIP
applied_amount = dictionary.get("applied_amount") if dictionary.get("applied_amount") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(uid,
memo,
original_amount,
- applied_amount)
+ applied_amount,
+ dictionary)
diff --git a/advancedbilling/models/proforma_invoice_discount.py b/advancedbilling/models/proforma_invoice_discount.py
index 9e343a9..fb625d5 100644
--- a/advancedbilling/models/proforma_invoice_discount.py
+++ b/advancedbilling/models/proforma_invoice_discount.py
@@ -7,7 +7,7 @@
https://www.apimatic.io ).
"""
from advancedbilling.api_helper import APIHelper
-from advancedbilling.models.proforma_invoice_discount_breakout import ProformaInvoiceDiscountBreakout
+from advancedbilling.models.invoice_discount_breakout import InvoiceDiscountBreakout
class ProformaInvoiceDiscount(object):
@@ -17,19 +17,24 @@ class ProformaInvoiceDiscount(object):
TODO: type model description here.
Attributes:
+ uid (str): TODO: type description here.
title (str): TODO: type description here.
- source_type (str): TODO: type description here.
- discount_type (str): TODO: type description here.
+ code (str): TODO: type description here.
+ source_type (ProformaInvoiceDiscountSourceType): TODO: type
+ description here.
+ discount_type (InvoiceDiscountType): TODO: type description here.
eligible_amount (str): TODO: type description here.
discount_amount (str): TODO: type description here.
- line_item_breakouts (List[ProformaInvoiceDiscountBreakout]): TODO:
- type description here.
+ line_item_breakouts (List[InvoiceDiscountBreakout]): TODO: type
+ description here.
"""
# Create a mapping from Model property names to API property names
_names = {
+ "uid": 'uid',
"title": 'title',
+ "code": 'code',
"source_type": 'source_type',
"discount_type": 'discount_type',
"eligible_amount": 'eligible_amount',
@@ -38,7 +43,9 @@ class ProformaInvoiceDiscount(object):
}
_optionals = [
+ 'uid',
'title',
+ 'code',
'source_type',
'discount_type',
'eligible_amount',
@@ -47,17 +54,24 @@ class ProformaInvoiceDiscount(object):
]
def __init__(self,
+ uid=APIHelper.SKIP,
title=APIHelper.SKIP,
+ code=APIHelper.SKIP,
source_type=APIHelper.SKIP,
discount_type=APIHelper.SKIP,
eligible_amount=APIHelper.SKIP,
discount_amount=APIHelper.SKIP,
- line_item_breakouts=APIHelper.SKIP):
+ line_item_breakouts=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the ProformaInvoiceDiscount class"""
# Initialize members of the class
+ if uid is not APIHelper.SKIP:
+ self.uid = uid
if title is not APIHelper.SKIP:
self.title = title
+ if code is not APIHelper.SKIP:
+ self.code = code
if source_type is not APIHelper.SKIP:
self.source_type = source_type
if discount_type is not APIHelper.SKIP:
@@ -69,6 +83,9 @@ def __init__(self,
if line_item_breakouts is not APIHelper.SKIP:
self.line_item_breakouts = line_item_breakouts
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -88,20 +105,29 @@ def from_dictionary(cls,
return None
# Extract variables from the dictionary
+ uid = dictionary.get("uid") if dictionary.get("uid") else APIHelper.SKIP
title = dictionary.get("title") if dictionary.get("title") else APIHelper.SKIP
+ code = dictionary.get("code") if dictionary.get("code") else APIHelper.SKIP
source_type = dictionary.get("source_type") if dictionary.get("source_type") else APIHelper.SKIP
discount_type = dictionary.get("discount_type") if dictionary.get("discount_type") else APIHelper.SKIP
eligible_amount = dictionary.get("eligible_amount") if dictionary.get("eligible_amount") else APIHelper.SKIP
discount_amount = dictionary.get("discount_amount") if dictionary.get("discount_amount") else APIHelper.SKIP
line_item_breakouts = None
if dictionary.get('line_item_breakouts') is not None:
- line_item_breakouts = [ProformaInvoiceDiscountBreakout.from_dictionary(x) for x in dictionary.get('line_item_breakouts')]
+ line_item_breakouts = [InvoiceDiscountBreakout.from_dictionary(x) for x in dictionary.get('line_item_breakouts')]
else:
line_item_breakouts = APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(title,
+ return cls(uid,
+ title,
+ code,
source_type,
discount_type,
eligible_amount,
discount_amount,
- line_item_breakouts)
+ line_item_breakouts,
+ dictionary)
diff --git a/advancedbilling/models/proforma_invoice_discount_breakout.py b/advancedbilling/models/proforma_invoice_discount_breakout.py
deleted file mode 100644
index 028f02f..0000000
--- a/advancedbilling/models/proforma_invoice_discount_breakout.py
+++ /dev/null
@@ -1,69 +0,0 @@
-# -*- coding: utf-8 -*-
-
-"""
-advanced_billing
-
-This file was automatically generated for Maxio by APIMATIC v3.0 (
- https://www.apimatic.io ).
-"""
-from advancedbilling.api_helper import APIHelper
-
-
-class ProformaInvoiceDiscountBreakout(object):
-
- """Implementation of the 'Proforma Invoice Discount Breakout' model.
-
- TODO: type model description here.
-
- Attributes:
- eligible_amount (str): TODO: type description here.
- discount_amount (str): TODO: type description here.
-
- """
-
- # Create a mapping from Model property names to API property names
- _names = {
- "eligible_amount": 'eligible_amount',
- "discount_amount": 'discount_amount'
- }
-
- _optionals = [
- 'eligible_amount',
- 'discount_amount',
- ]
-
- def __init__(self,
- eligible_amount=APIHelper.SKIP,
- discount_amount=APIHelper.SKIP):
- """Constructor for the ProformaInvoiceDiscountBreakout class"""
-
- # Initialize members of the class
- if eligible_amount is not APIHelper.SKIP:
- self.eligible_amount = eligible_amount
- if discount_amount is not APIHelper.SKIP:
- self.discount_amount = discount_amount
-
- @classmethod
- def from_dictionary(cls,
- dictionary):
- """Creates an instance of this model from a dictionary
-
- Args:
- dictionary (dictionary): A dictionary representation of the object
- as obtained from the deserialization of the server's response. The
- keys MUST match property names in the API description.
-
- Returns:
- object: An instance of this structure class.
-
- """
-
- if dictionary is None:
- return None
-
- # Extract variables from the dictionary
- eligible_amount = dictionary.get("eligible_amount") if dictionary.get("eligible_amount") else APIHelper.SKIP
- discount_amount = dictionary.get("discount_amount") if dictionary.get("discount_amount") else APIHelper.SKIP
- # Return an object of this model
- return cls(eligible_amount,
- discount_amount)
diff --git a/advancedbilling/models/proforma_invoice_discount_source_type.py b/advancedbilling/models/proforma_invoice_discount_source_type.py
new file mode 100644
index 0000000..966e26a
--- /dev/null
+++ b/advancedbilling/models/proforma_invoice_discount_source_type.py
@@ -0,0 +1,25 @@
+# -*- coding: utf-8 -*-
+
+"""
+advanced_billing
+
+This file was automatically generated for Maxio by APIMATIC v3.0 (
+ https://www.apimatic.io ).
+"""
+
+
+class ProformaInvoiceDiscountSourceType(object):
+
+ """Implementation of the 'Proforma Invoice Discount Source Type' enum.
+
+ TODO: type enum description here.
+
+ Attributes:
+ COUPON: TODO: type description here.
+ REFERRAL: TODO: type description here.
+
+ """
+ COUPON = 'Coupon'
+
+ REFERRAL = 'Referral'
+
diff --git a/advancedbilling/models/proforma_invoice_issued.py b/advancedbilling/models/proforma_invoice_issued.py
index 7468fbf..8d49a8b 100644
--- a/advancedbilling/models/proforma_invoice_issued.py
+++ b/advancedbilling/models/proforma_invoice_issued.py
@@ -61,7 +61,8 @@ def __init__(self,
tax_amount=None,
total_amount=None,
product_name=None,
- line_items=None):
+ line_items=None,
+ additional_properties={}):
"""Constructor for the ProformaInvoiceIssued class"""
# Initialize members of the class
@@ -77,6 +78,9 @@ def __init__(self,
self.product_name = product_name
self.line_items = line_items
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -109,6 +113,10 @@ def from_dictionary(cls,
line_items = None
if dictionary.get('line_items') is not None:
line_items = [InvoiceLineItemEventData.from_dictionary(x) for x in dictionary.get('line_items')]
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(uid,
number,
@@ -120,7 +128,8 @@ def from_dictionary(cls,
tax_amount,
total_amount,
product_name,
- line_items)
+ line_items,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/proforma_invoice_payment.py b/advancedbilling/models/proforma_invoice_payment.py
index cd78b3b..e277cbe 100644
--- a/advancedbilling/models/proforma_invoice_payment.py
+++ b/advancedbilling/models/proforma_invoice_payment.py
@@ -42,7 +42,8 @@ def __init__(self,
memo=APIHelper.SKIP,
original_amount=APIHelper.SKIP,
applied_amount=APIHelper.SKIP,
- prepayment=APIHelper.SKIP):
+ prepayment=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the ProformaInvoicePayment class"""
# Initialize members of the class
@@ -55,6 +56,9 @@ def __init__(self,
if prepayment is not APIHelper.SKIP:
self.prepayment = prepayment
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -78,8 +82,13 @@ def from_dictionary(cls,
original_amount = dictionary.get("original_amount") if dictionary.get("original_amount") else APIHelper.SKIP
applied_amount = dictionary.get("applied_amount") if dictionary.get("applied_amount") else APIHelper.SKIP
prepayment = dictionary.get("prepayment") if "prepayment" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(memo,
original_amount,
applied_amount,
- prepayment)
+ prepayment,
+ dictionary)
diff --git a/advancedbilling/models/proforma_invoice_preview.py b/advancedbilling/models/proforma_invoice_preview.py
deleted file mode 100644
index 4544170..0000000
--- a/advancedbilling/models/proforma_invoice_preview.py
+++ /dev/null
@@ -1,386 +0,0 @@
-# -*- coding: utf-8 -*-
-
-"""
-advanced_billing
-
-This file was automatically generated for Maxio by APIMATIC v3.0 (
- https://www.apimatic.io ).
-"""
-import dateutil.parser
-
-from advancedbilling.api_helper import APIHelper
-from advancedbilling.models.invoice_address import InvoiceAddress
-from advancedbilling.models.invoice_custom_field import InvoiceCustomField
-from advancedbilling.models.invoice_customer import InvoiceCustomer
-from advancedbilling.models.invoice_line_item import InvoiceLineItem
-from advancedbilling.models.invoice_seller import InvoiceSeller
-from advancedbilling.models.proforma_invoice_credit import ProformaInvoiceCredit
-from advancedbilling.models.proforma_invoice_discount import ProformaInvoiceDiscount
-from advancedbilling.models.proforma_invoice_payment import ProformaInvoicePayment
-from advancedbilling.models.proforma_invoice_tax import ProformaInvoiceTax
-
-
-class ProformaInvoicePreview(object):
-
- """Implementation of the 'Proforma Invoice Preview' model.
-
- TODO: type model description here.
-
- Attributes:
- uid (str): TODO: type description here.
- site_id (int): TODO: type description here.
- customer_id (int): TODO: type description here.
- subscription_id (int): TODO: type description here.
- number (str): TODO: type description here.
- sequence_number (int): TODO: type description here.
- created_at (datetime): TODO: type description here.
- delivery_date (date): TODO: type description here.
- status (str): TODO: type description here.
- collection_method (str): TODO: type description here.
- payment_instructions (str): TODO: type description here.
- currency (str): TODO: type description here.
- consolidation_level (str): TODO: type description here.
- product_name (str): TODO: type description here.
- product_family_name (str): TODO: type description here.
- role (str): TODO: type description here.
- seller (InvoiceSeller): Information about the seller (merchant) listed
- on the masthead of the invoice.
- customer (InvoiceCustomer): Information about the customer who is
- owner or recipient the invoiced subscription.
- memo (str): TODO: type description here.
- billing_address (InvoiceAddress): TODO: type description here.
- shipping_address (InvoiceAddress): TODO: type description here.
- subtotal_amount (str): TODO: type description here.
- discount_amount (str): TODO: type description here.
- tax_amount (str): TODO: type description here.
- total_amount (str): TODO: type description here.
- credit_amount (str): TODO: type description here.
- paid_amount (str): TODO: type description here.
- refund_amount (str): TODO: type description here.
- due_amount (str): TODO: type description here.
- line_items (List[InvoiceLineItem]): TODO: type description here.
- discounts (List[ProformaInvoiceDiscount]): TODO: type description
- here.
- taxes (List[ProformaInvoiceTax]): TODO: type description here.
- credits (List[ProformaInvoiceCredit]): TODO: type description here.
- payments (List[ProformaInvoicePayment]): TODO: type description here.
- custom_fields (List[InvoiceCustomField]): TODO: type description
- here.
- public_url (str): TODO: type description here.
-
- """
-
- # Create a mapping from Model property names to API property names
- _names = {
- "uid": 'uid',
- "site_id": 'site_id',
- "customer_id": 'customer_id',
- "subscription_id": 'subscription_id',
- "number": 'number',
- "sequence_number": 'sequence_number',
- "created_at": 'created_at',
- "delivery_date": 'delivery_date',
- "status": 'status',
- "collection_method": 'collection_method',
- "payment_instructions": 'payment_instructions',
- "currency": 'currency',
- "consolidation_level": 'consolidation_level',
- "product_name": 'product_name',
- "product_family_name": 'product_family_name',
- "role": 'role',
- "seller": 'seller',
- "customer": 'customer',
- "memo": 'memo',
- "billing_address": 'billing_address',
- "shipping_address": 'shipping_address',
- "subtotal_amount": 'subtotal_amount',
- "discount_amount": 'discount_amount',
- "tax_amount": 'tax_amount',
- "total_amount": 'total_amount',
- "credit_amount": 'credit_amount',
- "paid_amount": 'paid_amount',
- "refund_amount": 'refund_amount',
- "due_amount": 'due_amount',
- "line_items": 'line_items',
- "discounts": 'discounts',
- "taxes": 'taxes',
- "credits": 'credits',
- "payments": 'payments',
- "custom_fields": 'custom_fields',
- "public_url": 'public_url'
- }
-
- _optionals = [
- 'uid',
- 'site_id',
- 'customer_id',
- 'subscription_id',
- 'number',
- 'sequence_number',
- 'created_at',
- 'delivery_date',
- 'status',
- 'collection_method',
- 'payment_instructions',
- 'currency',
- 'consolidation_level',
- 'product_name',
- 'product_family_name',
- 'role',
- 'seller',
- 'customer',
- 'memo',
- 'billing_address',
- 'shipping_address',
- 'subtotal_amount',
- 'discount_amount',
- 'tax_amount',
- 'total_amount',
- 'credit_amount',
- 'paid_amount',
- 'refund_amount',
- 'due_amount',
- 'line_items',
- 'discounts',
- 'taxes',
- 'credits',
- 'payments',
- 'custom_fields',
- 'public_url',
- ]
-
- _nullables = [
- 'number',
- 'sequence_number',
- 'public_url',
- ]
-
- def __init__(self,
- uid=APIHelper.SKIP,
- site_id=APIHelper.SKIP,
- customer_id=APIHelper.SKIP,
- subscription_id=APIHelper.SKIP,
- number=APIHelper.SKIP,
- sequence_number=APIHelper.SKIP,
- created_at=APIHelper.SKIP,
- delivery_date=APIHelper.SKIP,
- status=APIHelper.SKIP,
- collection_method=APIHelper.SKIP,
- payment_instructions=APIHelper.SKIP,
- currency=APIHelper.SKIP,
- consolidation_level=APIHelper.SKIP,
- product_name=APIHelper.SKIP,
- product_family_name=APIHelper.SKIP,
- role=APIHelper.SKIP,
- seller=APIHelper.SKIP,
- customer=APIHelper.SKIP,
- memo=APIHelper.SKIP,
- billing_address=APIHelper.SKIP,
- shipping_address=APIHelper.SKIP,
- subtotal_amount=APIHelper.SKIP,
- discount_amount=APIHelper.SKIP,
- tax_amount=APIHelper.SKIP,
- total_amount=APIHelper.SKIP,
- credit_amount=APIHelper.SKIP,
- paid_amount=APIHelper.SKIP,
- refund_amount=APIHelper.SKIP,
- due_amount=APIHelper.SKIP,
- line_items=APIHelper.SKIP,
- discounts=APIHelper.SKIP,
- taxes=APIHelper.SKIP,
- credits=APIHelper.SKIP,
- payments=APIHelper.SKIP,
- custom_fields=APIHelper.SKIP,
- public_url=APIHelper.SKIP):
- """Constructor for the ProformaInvoicePreview class"""
-
- # Initialize members of the class
- if uid is not APIHelper.SKIP:
- self.uid = uid
- if site_id is not APIHelper.SKIP:
- self.site_id = site_id
- if customer_id is not APIHelper.SKIP:
- self.customer_id = customer_id
- if subscription_id is not APIHelper.SKIP:
- self.subscription_id = subscription_id
- if number is not APIHelper.SKIP:
- self.number = number
- if sequence_number is not APIHelper.SKIP:
- self.sequence_number = sequence_number
- if created_at is not APIHelper.SKIP:
- self.created_at = APIHelper.apply_datetime_converter(created_at, APIHelper.RFC3339DateTime) if created_at else None
- if delivery_date is not APIHelper.SKIP:
- self.delivery_date = delivery_date
- if status is not APIHelper.SKIP:
- self.status = status
- if collection_method is not APIHelper.SKIP:
- self.collection_method = collection_method
- if payment_instructions is not APIHelper.SKIP:
- self.payment_instructions = payment_instructions
- if currency is not APIHelper.SKIP:
- self.currency = currency
- if consolidation_level is not APIHelper.SKIP:
- self.consolidation_level = consolidation_level
- if product_name is not APIHelper.SKIP:
- self.product_name = product_name
- if product_family_name is not APIHelper.SKIP:
- self.product_family_name = product_family_name
- if role is not APIHelper.SKIP:
- self.role = role
- if seller is not APIHelper.SKIP:
- self.seller = seller
- if customer is not APIHelper.SKIP:
- self.customer = customer
- if memo is not APIHelper.SKIP:
- self.memo = memo
- if billing_address is not APIHelper.SKIP:
- self.billing_address = billing_address
- if shipping_address is not APIHelper.SKIP:
- self.shipping_address = shipping_address
- if subtotal_amount is not APIHelper.SKIP:
- self.subtotal_amount = subtotal_amount
- if discount_amount is not APIHelper.SKIP:
- self.discount_amount = discount_amount
- if tax_amount is not APIHelper.SKIP:
- self.tax_amount = tax_amount
- if total_amount is not APIHelper.SKIP:
- self.total_amount = total_amount
- if credit_amount is not APIHelper.SKIP:
- self.credit_amount = credit_amount
- if paid_amount is not APIHelper.SKIP:
- self.paid_amount = paid_amount
- if refund_amount is not APIHelper.SKIP:
- self.refund_amount = refund_amount
- if due_amount is not APIHelper.SKIP:
- self.due_amount = due_amount
- if line_items is not APIHelper.SKIP:
- self.line_items = line_items
- if discounts is not APIHelper.SKIP:
- self.discounts = discounts
- if taxes is not APIHelper.SKIP:
- self.taxes = taxes
- if credits is not APIHelper.SKIP:
- self.credits = credits
- if payments is not APIHelper.SKIP:
- self.payments = payments
- if custom_fields is not APIHelper.SKIP:
- self.custom_fields = custom_fields
- if public_url is not APIHelper.SKIP:
- self.public_url = public_url
-
- @classmethod
- def from_dictionary(cls,
- dictionary):
- """Creates an instance of this model from a dictionary
-
- Args:
- dictionary (dictionary): A dictionary representation of the object
- as obtained from the deserialization of the server's response. The
- keys MUST match property names in the API description.
-
- Returns:
- object: An instance of this structure class.
-
- """
-
- if dictionary is None:
- return None
-
- # Extract variables from the dictionary
- uid = dictionary.get("uid") if dictionary.get("uid") else APIHelper.SKIP
- site_id = dictionary.get("site_id") if dictionary.get("site_id") else APIHelper.SKIP
- customer_id = dictionary.get("customer_id") if dictionary.get("customer_id") else APIHelper.SKIP
- subscription_id = dictionary.get("subscription_id") if dictionary.get("subscription_id") else APIHelper.SKIP
- number = dictionary.get("number") if "number" in dictionary.keys() else APIHelper.SKIP
- sequence_number = dictionary.get("sequence_number") if "sequence_number" in dictionary.keys() else APIHelper.SKIP
- created_at = APIHelper.RFC3339DateTime.from_value(dictionary.get("created_at")).datetime if dictionary.get("created_at") else APIHelper.SKIP
- delivery_date = dateutil.parser.parse(dictionary.get('delivery_date')).date() if dictionary.get('delivery_date') else APIHelper.SKIP
- status = dictionary.get("status") if dictionary.get("status") else APIHelper.SKIP
- collection_method = dictionary.get("collection_method") if dictionary.get("collection_method") else APIHelper.SKIP
- payment_instructions = dictionary.get("payment_instructions") if dictionary.get("payment_instructions") else APIHelper.SKIP
- currency = dictionary.get("currency") if dictionary.get("currency") else APIHelper.SKIP
- consolidation_level = dictionary.get("consolidation_level") if dictionary.get("consolidation_level") else APIHelper.SKIP
- product_name = dictionary.get("product_name") if dictionary.get("product_name") else APIHelper.SKIP
- product_family_name = dictionary.get("product_family_name") if dictionary.get("product_family_name") else APIHelper.SKIP
- role = dictionary.get("role") if dictionary.get("role") else APIHelper.SKIP
- seller = InvoiceSeller.from_dictionary(dictionary.get('seller')) if 'seller' in dictionary.keys() else APIHelper.SKIP
- customer = InvoiceCustomer.from_dictionary(dictionary.get('customer')) if 'customer' in dictionary.keys() else APIHelper.SKIP
- memo = dictionary.get("memo") if dictionary.get("memo") else APIHelper.SKIP
- billing_address = InvoiceAddress.from_dictionary(dictionary.get('billing_address')) if 'billing_address' in dictionary.keys() else APIHelper.SKIP
- shipping_address = InvoiceAddress.from_dictionary(dictionary.get('shipping_address')) if 'shipping_address' in dictionary.keys() else APIHelper.SKIP
- subtotal_amount = dictionary.get("subtotal_amount") if dictionary.get("subtotal_amount") else APIHelper.SKIP
- discount_amount = dictionary.get("discount_amount") if dictionary.get("discount_amount") else APIHelper.SKIP
- tax_amount = dictionary.get("tax_amount") if dictionary.get("tax_amount") else APIHelper.SKIP
- total_amount = dictionary.get("total_amount") if dictionary.get("total_amount") else APIHelper.SKIP
- credit_amount = dictionary.get("credit_amount") if dictionary.get("credit_amount") else APIHelper.SKIP
- paid_amount = dictionary.get("paid_amount") if dictionary.get("paid_amount") else APIHelper.SKIP
- refund_amount = dictionary.get("refund_amount") if dictionary.get("refund_amount") else APIHelper.SKIP
- due_amount = dictionary.get("due_amount") if dictionary.get("due_amount") else APIHelper.SKIP
- line_items = None
- if dictionary.get('line_items') is not None:
- line_items = [InvoiceLineItem.from_dictionary(x) for x in dictionary.get('line_items')]
- else:
- line_items = APIHelper.SKIP
- discounts = None
- if dictionary.get('discounts') is not None:
- discounts = [ProformaInvoiceDiscount.from_dictionary(x) for x in dictionary.get('discounts')]
- else:
- discounts = APIHelper.SKIP
- taxes = None
- if dictionary.get('taxes') is not None:
- taxes = [ProformaInvoiceTax.from_dictionary(x) for x in dictionary.get('taxes')]
- else:
- taxes = APIHelper.SKIP
- credits = None
- if dictionary.get('credits') is not None:
- credits = [ProformaInvoiceCredit.from_dictionary(x) for x in dictionary.get('credits')]
- else:
- credits = APIHelper.SKIP
- payments = None
- if dictionary.get('payments') is not None:
- payments = [ProformaInvoicePayment.from_dictionary(x) for x in dictionary.get('payments')]
- else:
- payments = APIHelper.SKIP
- custom_fields = None
- if dictionary.get('custom_fields') is not None:
- custom_fields = [InvoiceCustomField.from_dictionary(x) for x in dictionary.get('custom_fields')]
- else:
- custom_fields = APIHelper.SKIP
- public_url = dictionary.get("public_url") if "public_url" in dictionary.keys() else APIHelper.SKIP
- # Return an object of this model
- return cls(uid,
- site_id,
- customer_id,
- subscription_id,
- number,
- sequence_number,
- created_at,
- delivery_date,
- status,
- collection_method,
- payment_instructions,
- currency,
- consolidation_level,
- product_name,
- product_family_name,
- role,
- seller,
- customer,
- memo,
- billing_address,
- shipping_address,
- subtotal_amount,
- discount_amount,
- tax_amount,
- total_amount,
- credit_amount,
- paid_amount,
- refund_amount,
- due_amount,
- line_items,
- discounts,
- taxes,
- credits,
- payments,
- custom_fields,
- public_url)
diff --git a/advancedbilling/models/proforma_invoice_role.py b/advancedbilling/models/proforma_invoice_role.py
new file mode 100644
index 0000000..54b26f0
--- /dev/null
+++ b/advancedbilling/models/proforma_invoice_role.py
@@ -0,0 +1,32 @@
+# -*- coding: utf-8 -*-
+
+"""
+advanced_billing
+
+This file was automatically generated for Maxio by APIMATIC v3.0 (
+ https://www.apimatic.io ).
+"""
+
+
+class ProformaInvoiceRole(object):
+
+ """Implementation of the 'Proforma Invoice Role' enum.
+
+ 'proforma' value is deprecated in favor of proforma_adhoc and
+ proforma_automatic
+
+ Attributes:
+ UNSET: TODO: type description here.
+ PROFORMA: TODO: type description here.
+ PROFORMA_ADHOC: TODO: type description here.
+ PROFORMA_AUTOMATIC: TODO: type description here.
+
+ """
+ UNSET = 'unset'
+
+ PROFORMA = 'proforma'
+
+ PROFORMA_ADHOC = 'proforma_adhoc'
+
+ PROFORMA_AUTOMATIC = 'proforma_automatic'
+
diff --git a/advancedbilling/models/proforma_invoice_status.py b/advancedbilling/models/proforma_invoice_status.py
new file mode 100644
index 0000000..1ce02bb
--- /dev/null
+++ b/advancedbilling/models/proforma_invoice_status.py
@@ -0,0 +1,28 @@
+# -*- coding: utf-8 -*-
+
+"""
+advanced_billing
+
+This file was automatically generated for Maxio by APIMATIC v3.0 (
+ https://www.apimatic.io ).
+"""
+
+
+class ProformaInvoiceStatus(object):
+
+ """Implementation of the 'Proforma Invoice Status' enum.
+
+ TODO: type enum description here.
+
+ Attributes:
+ DRAFT: TODO: type description here.
+ VOIDED: TODO: type description here.
+ ARCHIVED: TODO: type description here.
+
+ """
+ DRAFT = 'draft'
+
+ VOIDED = 'voided'
+
+ ARCHIVED = 'archived'
+
diff --git a/advancedbilling/models/proforma_invoice_tax.py b/advancedbilling/models/proforma_invoice_tax.py
index 0d3362f..24b1360 100644
--- a/advancedbilling/models/proforma_invoice_tax.py
+++ b/advancedbilling/models/proforma_invoice_tax.py
@@ -7,7 +7,7 @@
https://www.apimatic.io ).
"""
from advancedbilling.api_helper import APIHelper
-from advancedbilling.models.proforma_invoice_tax_breakout import ProformaInvoiceTaxBreakout
+from advancedbilling.models.invoice_tax_breakout import InvoiceTaxBreakout
class ProformaInvoiceTax(object):
@@ -19,12 +19,13 @@ class ProformaInvoiceTax(object):
Attributes:
uid (str): TODO: type description here.
title (str): TODO: type description here.
- source_type (str): TODO: type description here.
+ source_type (ProformaInvoiceTaxSourceType): TODO: type description
+ here.
percentage (str): TODO: type description here.
taxable_amount (str): TODO: type description here.
tax_amount (str): TODO: type description here.
- line_item_breakouts (List[ProformaInvoiceTaxBreakout]): TODO: type
- description here.
+ line_item_breakouts (List[InvoiceTaxBreakout]): TODO: type description
+ here.
"""
@@ -56,7 +57,8 @@ def __init__(self,
percentage=APIHelper.SKIP,
taxable_amount=APIHelper.SKIP,
tax_amount=APIHelper.SKIP,
- line_item_breakouts=APIHelper.SKIP):
+ line_item_breakouts=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the ProformaInvoiceTax class"""
# Initialize members of the class
@@ -75,6 +77,9 @@ def __init__(self,
if line_item_breakouts is not APIHelper.SKIP:
self.line_item_breakouts = line_item_breakouts
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -102,9 +107,13 @@ def from_dictionary(cls,
tax_amount = dictionary.get("tax_amount") if dictionary.get("tax_amount") else APIHelper.SKIP
line_item_breakouts = None
if dictionary.get('line_item_breakouts') is not None:
- line_item_breakouts = [ProformaInvoiceTaxBreakout.from_dictionary(x) for x in dictionary.get('line_item_breakouts')]
+ line_item_breakouts = [InvoiceTaxBreakout.from_dictionary(x) for x in dictionary.get('line_item_breakouts')]
else:
line_item_breakouts = APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(uid,
title,
@@ -112,4 +121,5 @@ def from_dictionary(cls,
percentage,
taxable_amount,
tax_amount,
- line_item_breakouts)
+ line_item_breakouts,
+ dictionary)
diff --git a/advancedbilling/models/proforma_invoice_tax_breakout.py b/advancedbilling/models/proforma_invoice_tax_breakout.py
deleted file mode 100644
index 954867a..0000000
--- a/advancedbilling/models/proforma_invoice_tax_breakout.py
+++ /dev/null
@@ -1,69 +0,0 @@
-# -*- coding: utf-8 -*-
-
-"""
-advanced_billing
-
-This file was automatically generated for Maxio by APIMATIC v3.0 (
- https://www.apimatic.io ).
-"""
-from advancedbilling.api_helper import APIHelper
-
-
-class ProformaInvoiceTaxBreakout(object):
-
- """Implementation of the 'Proforma Invoice Tax Breakout' model.
-
- TODO: type model description here.
-
- Attributes:
- taxable_amount (str): TODO: type description here.
- tax_amount (str): TODO: type description here.
-
- """
-
- # Create a mapping from Model property names to API property names
- _names = {
- "taxable_amount": 'taxable_amount',
- "tax_amount": 'tax_amount'
- }
-
- _optionals = [
- 'taxable_amount',
- 'tax_amount',
- ]
-
- def __init__(self,
- taxable_amount=APIHelper.SKIP,
- tax_amount=APIHelper.SKIP):
- """Constructor for the ProformaInvoiceTaxBreakout class"""
-
- # Initialize members of the class
- if taxable_amount is not APIHelper.SKIP:
- self.taxable_amount = taxable_amount
- if tax_amount is not APIHelper.SKIP:
- self.tax_amount = tax_amount
-
- @classmethod
- def from_dictionary(cls,
- dictionary):
- """Creates an instance of this model from a dictionary
-
- Args:
- dictionary (dictionary): A dictionary representation of the object
- as obtained from the deserialization of the server's response. The
- keys MUST match property names in the API description.
-
- Returns:
- object: An instance of this structure class.
-
- """
-
- if dictionary is None:
- return None
-
- # Extract variables from the dictionary
- taxable_amount = dictionary.get("taxable_amount") if dictionary.get("taxable_amount") else APIHelper.SKIP
- tax_amount = dictionary.get("tax_amount") if dictionary.get("tax_amount") else APIHelper.SKIP
- # Return an object of this model
- return cls(taxable_amount,
- tax_amount)
diff --git a/advancedbilling/models/proforma_invoice_tax_source_type.py b/advancedbilling/models/proforma_invoice_tax_source_type.py
new file mode 100644
index 0000000..dd7e387
--- /dev/null
+++ b/advancedbilling/models/proforma_invoice_tax_source_type.py
@@ -0,0 +1,38 @@
+# -*- coding: utf-8 -*-
+
+"""
+advanced_billing
+
+This file was automatically generated for Maxio by APIMATIC v3.0 (
+ https://www.apimatic.io ).
+"""
+
+
+class ProformaInvoiceTaxSourceType(object):
+
+ """Implementation of the 'Proforma Invoice Tax Source Type' enum.
+
+ TODO: type enum description here.
+
+ Attributes:
+ TAX: TODO: type description here.
+ AVALARA: TODO: type description here.
+
+ """
+ _all_values = ['Tax', 'Avalara']
+ TAX = 'Tax'
+
+ AVALARA = 'Avalara'
+
+ @classmethod
+ def validate(cls, value):
+ """Validates value contains in enum
+
+ Args:
+ value: the value to be validated
+
+ Returns:
+ boolean : if value is valid enum values.
+
+ """
+ return value in cls._all_values
diff --git a/advancedbilling/models/proration.py b/advancedbilling/models/proration.py
index eeb3ebb..32843c4 100644
--- a/advancedbilling/models/proration.py
+++ b/advancedbilling/models/proration.py
@@ -31,13 +31,17 @@ class Proration(object):
]
def __init__(self,
- preserve_period=APIHelper.SKIP):
+ preserve_period=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the Proration class"""
# Initialize members of the class
if preserve_period is not APIHelper.SKIP:
self.preserve_period = preserve_period
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -58,5 +62,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
preserve_period = dictionary.get("preserve_period") if "preserve_period" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(preserve_period)
+ return cls(preserve_period,
+ dictionary)
diff --git a/advancedbilling/models/public_key.py b/advancedbilling/models/public_key.py
index 501e115..13e5705 100644
--- a/advancedbilling/models/public_key.py
+++ b/advancedbilling/models/public_key.py
@@ -38,7 +38,8 @@ class PublicKey(object):
def __init__(self,
public_key=APIHelper.SKIP,
requires_security_token=APIHelper.SKIP,
- created_at=APIHelper.SKIP):
+ created_at=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the PublicKey class"""
# Initialize members of the class
@@ -49,6 +50,9 @@ def __init__(self,
if created_at is not APIHelper.SKIP:
self.created_at = APIHelper.apply_datetime_converter(created_at, APIHelper.RFC3339DateTime) if created_at else None
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -71,7 +75,12 @@ def from_dictionary(cls,
public_key = dictionary.get("public_key") if dictionary.get("public_key") else APIHelper.SKIP
requires_security_token = dictionary.get("requires_security_token") if "requires_security_token" in dictionary.keys() else APIHelper.SKIP
created_at = APIHelper.RFC3339DateTime.from_value(dictionary.get("created_at")).datetime if dictionary.get("created_at") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(public_key,
requires_security_token,
- created_at)
+ created_at,
+ dictionary)
diff --git a/advancedbilling/models/public_signup_page.py b/advancedbilling/models/public_signup_page.py
index 1a009c4..94c6586 100644
--- a/advancedbilling/models/public_signup_page.py
+++ b/advancedbilling/models/public_signup_page.py
@@ -50,7 +50,8 @@ def __init__(self,
id=APIHelper.SKIP,
return_url=APIHelper.SKIP,
return_params=APIHelper.SKIP,
- url=APIHelper.SKIP):
+ url=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the PublicSignupPage class"""
# Initialize members of the class
@@ -63,6 +64,9 @@ def __init__(self,
if url is not APIHelper.SKIP:
self.url = url
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -86,11 +90,16 @@ def from_dictionary(cls,
return_url = dictionary.get("return_url") if "return_url" in dictionary.keys() else APIHelper.SKIP
return_params = dictionary.get("return_params") if "return_params" in dictionary.keys() else APIHelper.SKIP
url = dictionary.get("url") if dictionary.get("url") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(id,
return_url,
return_params,
- url)
+ url,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/quantity_based_component.py b/advancedbilling/models/quantity_based_component.py
index d0f5489..e1caa3b 100644
--- a/advancedbilling/models/quantity_based_component.py
+++ b/advancedbilling/models/quantity_based_component.py
@@ -149,7 +149,8 @@ def __init__(self,
allow_fractional_quantities=APIHelper.SKIP,
public_signup_page_ids=APIHelper.SKIP,
interval=APIHelper.SKIP,
- interval_unit=APIHelper.SKIP):
+ interval_unit=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the QuantityBasedComponent class"""
# Initialize members of the class
@@ -191,6 +192,9 @@ def __init__(self,
if interval_unit is not APIHelper.SKIP:
self.interval_unit = interval_unit
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -239,6 +243,10 @@ def from_dictionary(cls,
public_signup_page_ids = dictionary.get("public_signup_page_ids") if dictionary.get("public_signup_page_ids") else APIHelper.SKIP
interval = dictionary.get("interval") if dictionary.get("interval") else APIHelper.SKIP
interval_unit = dictionary.get("interval_unit") if dictionary.get("interval_unit") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(name,
unit_name,
@@ -259,4 +267,5 @@ def from_dictionary(cls,
allow_fractional_quantities,
public_signup_page_ids,
interval,
- interval_unit)
+ interval_unit,
+ dictionary)
diff --git a/advancedbilling/models/reactivate_subscription_group_request.py b/advancedbilling/models/reactivate_subscription_group_request.py
index dc56056..0e4050f 100644
--- a/advancedbilling/models/reactivate_subscription_group_request.py
+++ b/advancedbilling/models/reactivate_subscription_group_request.py
@@ -34,7 +34,8 @@ class ReactivateSubscriptionGroupRequest(object):
def __init__(self,
resume=APIHelper.SKIP,
- resume_members=APIHelper.SKIP):
+ resume_members=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the ReactivateSubscriptionGroupRequest class"""
# Initialize members of the class
@@ -43,6 +44,9 @@ def __init__(self,
if resume_members is not APIHelper.SKIP:
self.resume_members = resume_members
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -64,6 +68,11 @@ def from_dictionary(cls,
# Extract variables from the dictionary
resume = dictionary.get("resume") if "resume" in dictionary.keys() else APIHelper.SKIP
resume_members = dictionary.get("resume_members") if "resume_members" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(resume,
- resume_members)
+ resume_members,
+ dictionary)
diff --git a/advancedbilling/models/reactivate_subscription_group_response.py b/advancedbilling/models/reactivate_subscription_group_response.py
index c5da558..fb79d61 100644
--- a/advancedbilling/models/reactivate_subscription_group_response.py
+++ b/advancedbilling/models/reactivate_subscription_group_response.py
@@ -62,7 +62,8 @@ def __init__(self,
primary_subscription_id=APIHelper.SKIP,
next_assessment_at=APIHelper.SKIP,
state=APIHelper.SKIP,
- cancel_at_end_of_period=APIHelper.SKIP):
+ cancel_at_end_of_period=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the ReactivateSubscriptionGroupResponse class"""
# Initialize members of the class
@@ -85,6 +86,9 @@ def __init__(self,
if cancel_at_end_of_period is not APIHelper.SKIP:
self.cancel_at_end_of_period = cancel_at_end_of_period
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -113,6 +117,10 @@ def from_dictionary(cls,
next_assessment_at = APIHelper.RFC3339DateTime.from_value(dictionary.get("next_assessment_at")).datetime if dictionary.get("next_assessment_at") else APIHelper.SKIP
state = dictionary.get("state") if dictionary.get("state") else APIHelper.SKIP
cancel_at_end_of_period = dictionary.get("cancel_at_end_of_period") if "cancel_at_end_of_period" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(uid,
scheme,
@@ -122,4 +130,5 @@ def from_dictionary(cls,
primary_subscription_id,
next_assessment_at,
state,
- cancel_at_end_of_period)
+ cancel_at_end_of_period,
+ dictionary)
diff --git a/advancedbilling/models/reactivate_subscription_request.py b/advancedbilling/models/reactivate_subscription_request.py
index d84a18e..fe8c315 100644
--- a/advancedbilling/models/reactivate_subscription_request.py
+++ b/advancedbilling/models/reactivate_subscription_request.py
@@ -62,7 +62,8 @@ def __init__(self,
preserve_balance=APIHelper.SKIP,
coupon_code=APIHelper.SKIP,
use_credits_and_prepayments=APIHelper.SKIP,
- resume=APIHelper.SKIP):
+ resume=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the ReactivateSubscriptionRequest class"""
# Initialize members of the class
@@ -79,6 +80,9 @@ def __init__(self,
if resume is not APIHelper.SKIP:
self.resume = resume
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -105,10 +109,15 @@ def from_dictionary(cls,
coupon_code = dictionary.get("coupon_code") if dictionary.get("coupon_code") else APIHelper.SKIP
use_credits_and_prepayments = dictionary.get("use_credits_and_prepayments") if "use_credits_and_prepayments" in dictionary.keys() else APIHelper.SKIP
resume = APIHelper.deserialize_union_type(UnionTypeLookUp.get('ReactivateSubscriptionRequestResume'), dictionary.get('resume'), False) if dictionary.get('resume') is not None else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(calendar_billing,
include_trial,
preserve_balance,
coupon_code,
use_credits_and_prepayments,
- resume)
+ resume,
+ dictionary)
diff --git a/advancedbilling/models/reactivation_billing.py b/advancedbilling/models/reactivation_billing.py
index ddd04c0..b54f7f4 100644
--- a/advancedbilling/models/reactivation_billing.py
+++ b/advancedbilling/models/reactivation_billing.py
@@ -36,12 +36,16 @@ class ReactivationBilling(object):
]
def __init__(self,
- reactivation_charge='prorated'):
+ reactivation_charge='prorated',
+ additional_properties={}):
"""Constructor for the ReactivationBilling class"""
# Initialize members of the class
self.reactivation_charge = reactivation_charge
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -62,8 +66,13 @@ def from_dictionary(cls,
# Extract variables from the dictionary
reactivation_charge = dictionary.get("reactivation_charge") if dictionary.get("reactivation_charge") else 'prorated'
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(reactivation_charge)
+ return cls(reactivation_charge,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/reason_code.py b/advancedbilling/models/reason_code.py
index 92baa6b..1bccc5e 100644
--- a/advancedbilling/models/reason_code.py
+++ b/advancedbilling/models/reason_code.py
@@ -54,7 +54,8 @@ def __init__(self,
description=APIHelper.SKIP,
position=APIHelper.SKIP,
created_at=APIHelper.SKIP,
- updated_at=APIHelper.SKIP):
+ updated_at=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the ReasonCode class"""
# Initialize members of the class
@@ -73,6 +74,9 @@ def __init__(self,
if updated_at is not APIHelper.SKIP:
self.updated_at = APIHelper.apply_datetime_converter(updated_at, APIHelper.RFC3339DateTime) if updated_at else None
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -99,6 +103,10 @@ def from_dictionary(cls,
position = dictionary.get("position") if dictionary.get("position") else APIHelper.SKIP
created_at = APIHelper.RFC3339DateTime.from_value(dictionary.get("created_at")).datetime if dictionary.get("created_at") else APIHelper.SKIP
updated_at = APIHelper.RFC3339DateTime.from_value(dictionary.get("updated_at")).datetime if dictionary.get("updated_at") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(id,
site_id,
@@ -106,4 +114,5 @@ def from_dictionary(cls,
description,
position,
created_at,
- updated_at)
+ updated_at,
+ dictionary)
diff --git a/advancedbilling/models/reason_code_response.py b/advancedbilling/models/reason_code_response.py
index 1038ade..5ce86c6 100644
--- a/advancedbilling/models/reason_code_response.py
+++ b/advancedbilling/models/reason_code_response.py
@@ -26,12 +26,16 @@ class ReasonCodeResponse(object):
}
def __init__(self,
- reason_code=None):
+ reason_code=None,
+ additional_properties={}):
"""Constructor for the ReasonCodeResponse class"""
# Initialize members of the class
self.reason_code = reason_code
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
reason_code = ReasonCode.from_dictionary(dictionary.get('reason_code')) if dictionary.get('reason_code') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(reason_code)
+ return cls(reason_code,
+ dictionary)
diff --git a/advancedbilling/models/reason_codes_json_response.py b/advancedbilling/models/reason_codes_json_response.py
index 94897f2..0b3bdd1 100644
--- a/advancedbilling/models/reason_codes_json_response.py
+++ b/advancedbilling/models/reason_codes_json_response.py
@@ -30,13 +30,17 @@ class ReasonCodesJsonResponse(object):
]
def __init__(self,
- ok=APIHelper.SKIP):
+ ok=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the ReasonCodesJsonResponse class"""
# Initialize members of the class
if ok is not APIHelper.SKIP:
self.ok = ok
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -57,5 +61,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
ok = dictionary.get("ok") if dictionary.get("ok") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(ok)
+ return cls(ok,
+ dictionary)
diff --git a/advancedbilling/models/record_payment_request.py b/advancedbilling/models/record_payment_request.py
index 587273e..6d91491 100644
--- a/advancedbilling/models/record_payment_request.py
+++ b/advancedbilling/models/record_payment_request.py
@@ -26,12 +26,16 @@ class RecordPaymentRequest(object):
}
def __init__(self,
- payment=None):
+ payment=None,
+ additional_properties={}):
"""Constructor for the RecordPaymentRequest class"""
# Initialize members of the class
self.payment = payment
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
payment = CreatePayment.from_dictionary(dictionary.get('payment')) if dictionary.get('payment') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(payment)
+ return cls(payment,
+ dictionary)
diff --git a/advancedbilling/models/record_payment_response.py b/advancedbilling/models/record_payment_response.py
index 9f352e5..8f0bdc1 100644
--- a/advancedbilling/models/record_payment_response.py
+++ b/advancedbilling/models/record_payment_response.py
@@ -39,7 +39,8 @@ class RecordPaymentResponse(object):
def __init__(self,
paid_invoices=APIHelper.SKIP,
- prepayment=APIHelper.SKIP):
+ prepayment=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the RecordPaymentResponse class"""
# Initialize members of the class
@@ -48,6 +49,9 @@ def __init__(self,
if prepayment is not APIHelper.SKIP:
self.prepayment = prepayment
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -77,6 +81,11 @@ def from_dictionary(cls,
prepayment = APIHelper.deserialize_union_type(UnionTypeLookUp.get('RecordPaymentResponsePrepayment'), dictionary.get('prepayment'), False) if dictionary.get('prepayment') is not None else None
else:
prepayment = APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(paid_invoices,
- prepayment)
+ prepayment,
+ dictionary)
diff --git a/advancedbilling/models/referral_code.py b/advancedbilling/models/referral_code.py
index c82467a..d7523c0 100644
--- a/advancedbilling/models/referral_code.py
+++ b/advancedbilling/models/referral_code.py
@@ -42,7 +42,8 @@ def __init__(self,
id=APIHelper.SKIP,
site_id=APIHelper.SKIP,
subscription_id=APIHelper.SKIP,
- code=APIHelper.SKIP):
+ code=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the ReferralCode class"""
# Initialize members of the class
@@ -55,6 +56,9 @@ def __init__(self,
if code is not APIHelper.SKIP:
self.code = code
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -78,8 +82,13 @@ def from_dictionary(cls,
site_id = dictionary.get("site_id") if dictionary.get("site_id") else APIHelper.SKIP
subscription_id = dictionary.get("subscription_id") if dictionary.get("subscription_id") else APIHelper.SKIP
code = dictionary.get("code") if dictionary.get("code") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(id,
site_id,
subscription_id,
- code)
+ code,
+ dictionary)
diff --git a/advancedbilling/models/referral_validation_response.py b/advancedbilling/models/referral_validation_response.py
index 95d4aa7..cb7901d 100644
--- a/advancedbilling/models/referral_validation_response.py
+++ b/advancedbilling/models/referral_validation_response.py
@@ -31,13 +31,17 @@ class ReferralValidationResponse(object):
]
def __init__(self,
- referral_code=APIHelper.SKIP):
+ referral_code=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the ReferralValidationResponse class"""
# Initialize members of the class
if referral_code is not APIHelper.SKIP:
self.referral_code = referral_code
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -58,5 +62,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
referral_code = ReferralCode.from_dictionary(dictionary.get('referral_code')) if 'referral_code' in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(referral_code)
+ return cls(referral_code,
+ dictionary)
diff --git a/advancedbilling/models/refund.py b/advancedbilling/models/refund.py
index 1049159..5a29226 100644
--- a/advancedbilling/models/refund.py
+++ b/advancedbilling/models/refund.py
@@ -62,7 +62,8 @@ def __init__(self,
external=APIHelper.SKIP,
apply_credit=APIHelper.SKIP,
void_invoice=APIHelper.SKIP,
- segment_uids=APIHelper.SKIP):
+ segment_uids=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the Refund class"""
# Initialize members of the class
@@ -81,6 +82,9 @@ def __init__(self,
if segment_uids is not APIHelper.SKIP:
self.segment_uids = segment_uids
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -108,6 +112,10 @@ def from_dictionary(cls,
apply_credit = dictionary.get("apply_credit") if "apply_credit" in dictionary.keys() else APIHelper.SKIP
void_invoice = dictionary.get("void_invoice") if "void_invoice" in dictionary.keys() else APIHelper.SKIP
segment_uids = APIHelper.deserialize_union_type(UnionTypeLookUp.get('RefundSegmentUids'), dictionary.get('segment_uids'), False) if dictionary.get('segment_uids') is not None else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(amount,
memo,
@@ -115,4 +123,5 @@ def from_dictionary(cls,
external,
apply_credit,
void_invoice,
- segment_uids)
+ segment_uids,
+ dictionary)
diff --git a/advancedbilling/models/refund_consolidated_invoice.py b/advancedbilling/models/refund_consolidated_invoice.py
index 3d76cab..e856ad8 100644
--- a/advancedbilling/models/refund_consolidated_invoice.py
+++ b/advancedbilling/models/refund_consolidated_invoice.py
@@ -52,7 +52,8 @@ def __init__(self,
segment_uids=None,
external=APIHelper.SKIP,
apply_credit=APIHelper.SKIP,
- amount=APIHelper.SKIP):
+ amount=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the RefundConsolidatedInvoice class"""
# Initialize members of the class
@@ -66,6 +67,9 @@ def __init__(self,
if amount is not APIHelper.SKIP:
self.amount = amount
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -92,13 +96,18 @@ def from_dictionary(cls,
external = dictionary.get("external") if "external" in dictionary.keys() else APIHelper.SKIP
apply_credit = dictionary.get("apply_credit") if "apply_credit" in dictionary.keys() else APIHelper.SKIP
amount = dictionary.get("amount") if dictionary.get("amount") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(memo,
payment_id,
segment_uids,
external,
apply_credit,
- amount)
+ amount,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/refund_invoice.py b/advancedbilling/models/refund_invoice.py
index 8b8468a..dc6af8e 100644
--- a/advancedbilling/models/refund_invoice.py
+++ b/advancedbilling/models/refund_invoice.py
@@ -53,7 +53,8 @@ def __init__(self,
payment_id=None,
external=APIHelper.SKIP,
apply_credit=APIHelper.SKIP,
- void_invoice=APIHelper.SKIP):
+ void_invoice=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the RefundInvoice class"""
# Initialize members of the class
@@ -67,6 +68,9 @@ def __init__(self,
if void_invoice is not APIHelper.SKIP:
self.void_invoice = void_invoice
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -92,13 +96,18 @@ def from_dictionary(cls,
external = dictionary.get("external") if "external" in dictionary.keys() else APIHelper.SKIP
apply_credit = dictionary.get("apply_credit") if "apply_credit" in dictionary.keys() else APIHelper.SKIP
void_invoice = dictionary.get("void_invoice") if "void_invoice" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(amount,
memo,
payment_id,
external,
apply_credit,
- void_invoice)
+ void_invoice,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/refund_invoice_event_data.py b/advancedbilling/models/refund_invoice_event_data.py
index cba8889..68463c2 100644
--- a/advancedbilling/models/refund_invoice_event_data.py
+++ b/advancedbilling/models/refund_invoice_event_data.py
@@ -69,7 +69,8 @@ def __init__(self,
transaction_time=None,
consolidation_level=APIHelper.SKIP,
memo=APIHelper.SKIP,
- original_amount=APIHelper.SKIP):
+ original_amount=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the RefundInvoiceEventData class"""
# Initialize members of the class
@@ -86,6 +87,9 @@ def __init__(self,
self.refund_id = refund_id
self.transaction_time = APIHelper.apply_datetime_converter(transaction_time, APIHelper.RFC3339DateTime) if transaction_time else None
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -114,6 +118,10 @@ def from_dictionary(cls,
consolidation_level = dictionary.get("consolidation_level") if dictionary.get("consolidation_level") else APIHelper.SKIP
memo = dictionary.get("memo") if dictionary.get("memo") else APIHelper.SKIP
original_amount = dictionary.get("original_amount") if dictionary.get("original_amount") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(apply_credit,
credit_note_attributes,
@@ -123,7 +131,8 @@ def from_dictionary(cls,
transaction_time,
consolidation_level,
memo,
- original_amount)
+ original_amount,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/refund_invoice_request.py b/advancedbilling/models/refund_invoice_request.py
index 45b44cc..cd7e263 100644
--- a/advancedbilling/models/refund_invoice_request.py
+++ b/advancedbilling/models/refund_invoice_request.py
@@ -27,12 +27,16 @@ class RefundInvoiceRequest(object):
}
def __init__(self,
- refund=None):
+ refund=None,
+ additional_properties={}):
"""Constructor for the RefundInvoiceRequest class"""
# Initialize members of the class
self.refund = refund
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -54,8 +58,13 @@ def from_dictionary(cls,
# Extract variables from the dictionary
refund = APIHelper.deserialize_union_type(UnionTypeLookUp.get('RefundInvoiceRequestRefund'), dictionary.get('refund'), False) if dictionary.get('refund') is not None else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(refund)
+ return cls(refund,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/refund_prepayment.py b/advancedbilling/models/refund_prepayment.py
index 3ca40ad..3cb2774 100644
--- a/advancedbilling/models/refund_prepayment.py
+++ b/advancedbilling/models/refund_prepayment.py
@@ -44,7 +44,8 @@ def __init__(self,
amount_in_cents=None,
amount=None,
memo=None,
- external=APIHelper.SKIP):
+ external=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the RefundPrepayment class"""
# Initialize members of the class
@@ -54,6 +55,9 @@ def __init__(self,
if external is not APIHelper.SKIP:
self.external = external
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -78,11 +82,16 @@ def from_dictionary(cls,
amount = APIHelper.deserialize_union_type(UnionTypeLookUp.get('RefundPrepaymentAmount'), dictionary.get('amount'), False) if dictionary.get('amount') is not None else None
memo = dictionary.get("memo") if dictionary.get("memo") else None
external = dictionary.get("external") if "external" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(amount_in_cents,
amount,
memo,
- external)
+ external,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/refund_prepayment_aggregated_error.py b/advancedbilling/models/refund_prepayment_aggregated_error.py
index 53a09d9..727b3e7 100644
--- a/advancedbilling/models/refund_prepayment_aggregated_error.py
+++ b/advancedbilling/models/refund_prepayment_aggregated_error.py
@@ -31,13 +31,17 @@ class RefundPrepaymentAggregatedError(object):
]
def __init__(self,
- refund=APIHelper.SKIP):
+ refund=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the RefundPrepaymentAggregatedError class"""
# Initialize members of the class
if refund is not APIHelper.SKIP:
self.refund = refund
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -58,5 +62,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
refund = PrepaymentAggregatedError.from_dictionary(dictionary.get('refund')) if 'refund' in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(refund)
+ return cls(refund,
+ dictionary)
diff --git a/advancedbilling/models/refund_prepayment_base_refund_error.py b/advancedbilling/models/refund_prepayment_base_refund_error.py
index a752c8c..18c50b0 100644
--- a/advancedbilling/models/refund_prepayment_base_refund_error.py
+++ b/advancedbilling/models/refund_prepayment_base_refund_error.py
@@ -31,13 +31,17 @@ class RefundPrepaymentBaseRefundError(object):
]
def __init__(self,
- refund=APIHelper.SKIP):
+ refund=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the RefundPrepaymentBaseRefundError class"""
# Initialize members of the class
if refund is not APIHelper.SKIP:
self.refund = refund
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -58,5 +62,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
refund = BaseRefundError.from_dictionary(dictionary.get('refund')) if 'refund' in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(refund)
+ return cls(refund,
+ dictionary)
diff --git a/advancedbilling/models/refund_prepayment_request.py b/advancedbilling/models/refund_prepayment_request.py
index 5a39e7a..c591ca1 100644
--- a/advancedbilling/models/refund_prepayment_request.py
+++ b/advancedbilling/models/refund_prepayment_request.py
@@ -26,12 +26,16 @@ class RefundPrepaymentRequest(object):
}
def __init__(self,
- refund=None):
+ refund=None,
+ additional_properties={}):
"""Constructor for the RefundPrepaymentRequest class"""
# Initialize members of the class
self.refund = refund
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
refund = RefundPrepayment.from_dictionary(dictionary.get('refund')) if dictionary.get('refund') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(refund)
+ return cls(refund,
+ dictionary)
diff --git a/advancedbilling/models/refund_success.py b/advancedbilling/models/refund_success.py
index 3c33ccc..0e1d68b 100644
--- a/advancedbilling/models/refund_success.py
+++ b/advancedbilling/models/refund_success.py
@@ -32,7 +32,8 @@ class RefundSuccess(object):
def __init__(self,
refund_id=None,
gateway_transaction_id=None,
- product_id=None):
+ product_id=None,
+ additional_properties={}):
"""Constructor for the RefundSuccess class"""
# Initialize members of the class
@@ -40,6 +41,9 @@ def __init__(self,
self.gateway_transaction_id = gateway_transaction_id
self.product_id = product_id
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -62,10 +66,15 @@ def from_dictionary(cls,
refund_id = dictionary.get("refund_id") if dictionary.get("refund_id") else None
gateway_transaction_id = dictionary.get("gateway_transaction_id") if dictionary.get("gateway_transaction_id") else None
product_id = dictionary.get("product_id") if dictionary.get("product_id") else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(refund_id,
gateway_transaction_id,
- product_id)
+ product_id,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/remove_payment_event_data.py b/advancedbilling/models/remove_payment_event_data.py
index 70e3607..952310b 100644
--- a/advancedbilling/models/remove_payment_event_data.py
+++ b/advancedbilling/models/remove_payment_event_data.py
@@ -54,7 +54,8 @@ def __init__(self,
transaction_time=None,
payment_method=None,
prepayment=None,
- original_amount=APIHelper.SKIP):
+ original_amount=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the RemovePaymentEventData class"""
# Initialize members of the class
@@ -67,6 +68,9 @@ def __init__(self,
self.payment_method = payment_method
self.prepayment = prepayment
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -94,6 +98,10 @@ def from_dictionary(cls,
payment_method = APIHelper.deserialize_union_type(UnionTypeLookUp.get('Invoice-Event-Payment'), dictionary.get('payment_method'), False) if dictionary.get('payment_method') is not None else None
prepayment = dictionary.get("prepayment") if "prepayment" in dictionary.keys() else None
original_amount = dictionary.get("original_amount") if dictionary.get("original_amount") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(transaction_id,
memo,
@@ -101,7 +109,8 @@ def from_dictionary(cls,
transaction_time,
payment_method,
prepayment,
- original_amount)
+ original_amount,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/renewal_preview.py b/advancedbilling/models/renewal_preview.py
index 7bcc729..4353a2a 100644
--- a/advancedbilling/models/renewal_preview.py
+++ b/advancedbilling/models/renewal_preview.py
@@ -77,7 +77,8 @@ def __init__(self,
existing_balance_in_cents=APIHelper.SKIP,
total_amount_due_in_cents=APIHelper.SKIP,
uncalculated_taxes=APIHelper.SKIP,
- line_items=APIHelper.SKIP):
+ line_items=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the RenewalPreview class"""
# Initialize members of the class
@@ -100,6 +101,9 @@ def __init__(self,
if line_items is not APIHelper.SKIP:
self.line_items = line_items
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -132,6 +136,10 @@ def from_dictionary(cls,
line_items = [RenewalPreviewLineItem.from_dictionary(x) for x in dictionary.get('line_items')]
else:
line_items = APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(next_assessment_at,
subtotal_in_cents,
@@ -141,4 +149,5 @@ def from_dictionary(cls,
existing_balance_in_cents,
total_amount_due_in_cents,
uncalculated_taxes,
- line_items)
+ line_items,
+ dictionary)
diff --git a/advancedbilling/models/renewal_preview_component.py b/advancedbilling/models/renewal_preview_component.py
index 3f11f8f..0e14b50 100644
--- a/advancedbilling/models/renewal_preview_component.py
+++ b/advancedbilling/models/renewal_preview_component.py
@@ -47,7 +47,8 @@ class RenewalPreviewComponent(object):
def __init__(self,
component_id=APIHelper.SKIP,
quantity=APIHelper.SKIP,
- price_point_id=APIHelper.SKIP):
+ price_point_id=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the RenewalPreviewComponent class"""
# Initialize members of the class
@@ -58,6 +59,9 @@ def __init__(self,
if price_point_id is not APIHelper.SKIP:
self.price_point_id = price_point_id
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -81,7 +85,12 @@ def from_dictionary(cls,
component_id = APIHelper.deserialize_union_type(UnionTypeLookUp.get('RenewalPreviewComponentComponentId'), dictionary.get('component_id'), False) if dictionary.get('component_id') is not None else APIHelper.SKIP
quantity = dictionary.get("quantity") if dictionary.get("quantity") else APIHelper.SKIP
price_point_id = APIHelper.deserialize_union_type(UnionTypeLookUp.get('RenewalPreviewComponentPricePointId'), dictionary.get('price_point_id'), False) if dictionary.get('price_point_id') is not None else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(component_id,
quantity,
- price_point_id)
+ price_point_id,
+ dictionary)
diff --git a/advancedbilling/models/renewal_preview_line_item.py b/advancedbilling/models/renewal_preview_line_item.py
index 2f310ee..dd91bcb 100644
--- a/advancedbilling/models/renewal_preview_line_item.py
+++ b/advancedbilling/models/renewal_preview_line_item.py
@@ -83,7 +83,8 @@ def __init__(self,
component_name=APIHelper.SKIP,
product_handle=APIHelper.SKIP,
period_range_start=APIHelper.SKIP,
- period_range_end=APIHelper.SKIP):
+ period_range_end=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the RenewalPreviewLineItem class"""
# Initialize members of the class
@@ -116,6 +117,9 @@ def __init__(self,
if period_range_end is not APIHelper.SKIP:
self.period_range_end = period_range_end
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -149,6 +153,10 @@ def from_dictionary(cls,
product_handle = dictionary.get("product_handle") if dictionary.get("product_handle") else APIHelper.SKIP
period_range_start = dictionary.get("period_range_start") if dictionary.get("period_range_start") else APIHelper.SKIP
period_range_end = dictionary.get("period_range_end") if dictionary.get("period_range_end") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(transaction_type,
kind,
@@ -163,4 +171,5 @@ def from_dictionary(cls,
component_name,
product_handle,
period_range_start,
- period_range_end)
+ period_range_end,
+ dictionary)
diff --git a/advancedbilling/models/renewal_preview_request.py b/advancedbilling/models/renewal_preview_request.py
index fa7e6a8..47aeb32 100644
--- a/advancedbilling/models/renewal_preview_request.py
+++ b/advancedbilling/models/renewal_preview_request.py
@@ -36,13 +36,17 @@ class RenewalPreviewRequest(object):
]
def __init__(self,
- components=APIHelper.SKIP):
+ components=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the RenewalPreviewRequest class"""
# Initialize members of the class
if components is not APIHelper.SKIP:
self.components = components
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -67,5 +71,10 @@ def from_dictionary(cls,
components = [RenewalPreviewComponent.from_dictionary(x) for x in dictionary.get('components')]
else:
components = APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(components)
+ return cls(components,
+ dictionary)
diff --git a/advancedbilling/models/renewal_preview_response.py b/advancedbilling/models/renewal_preview_response.py
index 8f8f07d..6b0918b 100644
--- a/advancedbilling/models/renewal_preview_response.py
+++ b/advancedbilling/models/renewal_preview_response.py
@@ -26,12 +26,16 @@ class RenewalPreviewResponse(object):
}
def __init__(self,
- renewal_preview=None):
+ renewal_preview=None,
+ additional_properties={}):
"""Constructor for the RenewalPreviewResponse class"""
# Initialize members of the class
self.renewal_preview = renewal_preview
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
renewal_preview = RenewalPreview.from_dictionary(dictionary.get('renewal_preview')) if dictionary.get('renewal_preview') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(renewal_preview)
+ return cls(renewal_preview,
+ dictionary)
diff --git a/advancedbilling/models/replay_webhooks_request.py b/advancedbilling/models/replay_webhooks_request.py
index cbae89f..da6259b 100644
--- a/advancedbilling/models/replay_webhooks_request.py
+++ b/advancedbilling/models/replay_webhooks_request.py
@@ -25,12 +25,16 @@ class ReplayWebhooksRequest(object):
}
def __init__(self,
- ids=None):
+ ids=None,
+ additional_properties={}):
"""Constructor for the ReplayWebhooksRequest class"""
# Initialize members of the class
self.ids = ids
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -51,5 +55,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
ids = dictionary.get("ids") if dictionary.get("ids") else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(ids)
+ return cls(ids,
+ dictionary)
diff --git a/advancedbilling/models/replay_webhooks_response.py b/advancedbilling/models/replay_webhooks_response.py
index 8c5c7b6..b2ec845 100644
--- a/advancedbilling/models/replay_webhooks_response.py
+++ b/advancedbilling/models/replay_webhooks_response.py
@@ -30,13 +30,17 @@ class ReplayWebhooksResponse(object):
]
def __init__(self,
- status=APIHelper.SKIP):
+ status=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the ReplayWebhooksResponse class"""
# Initialize members of the class
if status is not APIHelper.SKIP:
self.status = status
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -57,5 +61,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
status = dictionary.get("status") if dictionary.get("status") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(status)
+ return cls(status,
+ dictionary)
diff --git a/advancedbilling/models/resent_invitation.py b/advancedbilling/models/resent_invitation.py
index b4b3eee..82352e6 100644
--- a/advancedbilling/models/resent_invitation.py
+++ b/advancedbilling/models/resent_invitation.py
@@ -42,7 +42,8 @@ def __init__(self,
last_sent_at=APIHelper.SKIP,
last_accepted_at=APIHelper.SKIP,
send_invite_link_text=APIHelper.SKIP,
- uninvited_count=APIHelper.SKIP):
+ uninvited_count=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the ResentInvitation class"""
# Initialize members of the class
@@ -55,6 +56,9 @@ def __init__(self,
if uninvited_count is not APIHelper.SKIP:
self.uninvited_count = uninvited_count
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -78,8 +82,13 @@ def from_dictionary(cls,
last_accepted_at = dictionary.get("last_accepted_at") if dictionary.get("last_accepted_at") else APIHelper.SKIP
send_invite_link_text = dictionary.get("send_invite_link_text") if dictionary.get("send_invite_link_text") else APIHelper.SKIP
uninvited_count = dictionary.get("uninvited_count") if dictionary.get("uninvited_count") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(last_sent_at,
last_accepted_at,
send_invite_link_text,
- uninvited_count)
+ uninvited_count,
+ dictionary)
diff --git a/advancedbilling/models/resume_options.py b/advancedbilling/models/resume_options.py
index 5cfac79..5fe30a8 100644
--- a/advancedbilling/models/resume_options.py
+++ b/advancedbilling/models/resume_options.py
@@ -39,7 +39,8 @@ class ResumeOptions(object):
def __init__(self,
require_resume=APIHelper.SKIP,
- forgive_balance=APIHelper.SKIP):
+ forgive_balance=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the ResumeOptions class"""
# Initialize members of the class
@@ -48,6 +49,9 @@ def __init__(self,
if forgive_balance is not APIHelper.SKIP:
self.forgive_balance = forgive_balance
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -69,9 +73,14 @@ def from_dictionary(cls,
# Extract variables from the dictionary
require_resume = dictionary.get("require_resume") if "require_resume" in dictionary.keys() else APIHelper.SKIP
forgive_balance = dictionary.get("forgive_balance") if "forgive_balance" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(require_resume,
- forgive_balance)
+ forgive_balance,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/revoked_invitation.py b/advancedbilling/models/revoked_invitation.py
index 622f6a2..4616e18 100644
--- a/advancedbilling/models/revoked_invitation.py
+++ b/advancedbilling/models/revoked_invitation.py
@@ -38,7 +38,8 @@ class RevokedInvitation(object):
def __init__(self,
last_sent_at=APIHelper.SKIP,
last_accepted_at=APIHelper.SKIP,
- uninvited_count=APIHelper.SKIP):
+ uninvited_count=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the RevokedInvitation class"""
# Initialize members of the class
@@ -49,6 +50,9 @@ def __init__(self,
if uninvited_count is not APIHelper.SKIP:
self.uninvited_count = uninvited_count
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -71,7 +75,12 @@ def from_dictionary(cls,
last_sent_at = dictionary.get("last_sent_at") if dictionary.get("last_sent_at") else APIHelper.SKIP
last_accepted_at = dictionary.get("last_accepted_at") if dictionary.get("last_accepted_at") else APIHelper.SKIP
uninvited_count = dictionary.get("uninvited_count") if dictionary.get("uninvited_count") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(last_sent_at,
last_accepted_at,
- uninvited_count)
+ uninvited_count,
+ dictionary)
diff --git a/advancedbilling/models/sale_rep.py b/advancedbilling/models/sale_rep.py
index 6a334f1..745dd3a 100644
--- a/advancedbilling/models/sale_rep.py
+++ b/advancedbilling/models/sale_rep.py
@@ -48,7 +48,8 @@ def __init__(self,
full_name=APIHelper.SKIP,
subscriptions_count=APIHelper.SKIP,
test_mode=APIHelper.SKIP,
- subscriptions=APIHelper.SKIP):
+ subscriptions=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the SaleRep class"""
# Initialize members of the class
@@ -63,6 +64,9 @@ def __init__(self,
if subscriptions is not APIHelper.SKIP:
self.subscriptions = subscriptions
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -91,9 +95,14 @@ def from_dictionary(cls,
subscriptions = [SaleRepSubscription.from_dictionary(x) for x in dictionary.get('subscriptions')]
else:
subscriptions = APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(id,
full_name,
subscriptions_count,
test_mode,
- subscriptions)
+ subscriptions,
+ dictionary)
diff --git a/advancedbilling/models/sale_rep_item_mrr.py b/advancedbilling/models/sale_rep_item_mrr.py
index 23b9dc4..38148b9 100644
--- a/advancedbilling/models/sale_rep_item_mrr.py
+++ b/advancedbilling/models/sale_rep_item_mrr.py
@@ -38,7 +38,8 @@ class SaleRepItemMrr(object):
def __init__(self,
mrr=APIHelper.SKIP,
usage=APIHelper.SKIP,
- recurring=APIHelper.SKIP):
+ recurring=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the SaleRepItemMrr class"""
# Initialize members of the class
@@ -49,6 +50,9 @@ def __init__(self,
if recurring is not APIHelper.SKIP:
self.recurring = recurring
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -71,7 +75,12 @@ def from_dictionary(cls,
mrr = dictionary.get("mrr") if dictionary.get("mrr") else APIHelper.SKIP
usage = dictionary.get("usage") if dictionary.get("usage") else APIHelper.SKIP
recurring = dictionary.get("recurring") if dictionary.get("recurring") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(mrr,
usage,
- recurring)
+ recurring,
+ dictionary)
diff --git a/advancedbilling/models/sale_rep_settings.py b/advancedbilling/models/sale_rep_settings.py
index 2301bbf..6fa4192 100644
--- a/advancedbilling/models/sale_rep_settings.py
+++ b/advancedbilling/models/sale_rep_settings.py
@@ -54,7 +54,8 @@ def __init__(self,
site_name=APIHelper.SKIP,
subscription_mrr=APIHelper.SKIP,
sales_rep_id=APIHelper.SKIP,
- sales_rep_name=APIHelper.SKIP):
+ sales_rep_name=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the SaleRepSettings class"""
# Initialize members of the class
@@ -73,6 +74,9 @@ def __init__(self,
if sales_rep_name is not APIHelper.SKIP:
self.sales_rep_name = sales_rep_name
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -99,6 +103,10 @@ def from_dictionary(cls,
subscription_mrr = dictionary.get("subscription_mrr") if dictionary.get("subscription_mrr") else APIHelper.SKIP
sales_rep_id = dictionary.get("sales_rep_id") if dictionary.get("sales_rep_id") else APIHelper.SKIP
sales_rep_name = dictionary.get("sales_rep_name") if dictionary.get("sales_rep_name") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(customer_name,
subscription_id,
@@ -106,4 +114,5 @@ def from_dictionary(cls,
site_name,
subscription_mrr,
sales_rep_id,
- sales_rep_name)
+ sales_rep_name,
+ dictionary)
diff --git a/advancedbilling/models/sale_rep_subscription.py b/advancedbilling/models/sale_rep_subscription.py
index c9a2e07..a0dfc2c 100644
--- a/advancedbilling/models/sale_rep_subscription.py
+++ b/advancedbilling/models/sale_rep_subscription.py
@@ -70,7 +70,8 @@ def __init__(self,
usage=APIHelper.SKIP,
recurring=APIHelper.SKIP,
last_payment=APIHelper.SKIP,
- churn_date=APIHelper.SKIP):
+ churn_date=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the SaleRepSubscription class"""
# Initialize members of the class
@@ -95,6 +96,9 @@ def __init__(self,
if churn_date is not APIHelper.SKIP:
self.churn_date = churn_date
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -124,6 +128,10 @@ def from_dictionary(cls,
recurring = dictionary.get("recurring") if dictionary.get("recurring") else APIHelper.SKIP
last_payment = dictionary.get("last_payment") if dictionary.get("last_payment") else APIHelper.SKIP
churn_date = dictionary.get("churn_date") if "churn_date" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(id,
site_name,
@@ -134,4 +142,5 @@ def from_dictionary(cls,
usage,
recurring,
last_payment,
- churn_date)
+ churn_date,
+ dictionary)
diff --git a/advancedbilling/models/segment.py b/advancedbilling/models/segment.py
index f1fda1f..2bf6fae 100644
--- a/advancedbilling/models/segment.py
+++ b/advancedbilling/models/segment.py
@@ -82,7 +82,8 @@ def __init__(self,
segment_property_4_value=APIHelper.SKIP,
created_at=APIHelper.SKIP,
updated_at=APIHelper.SKIP,
- prices=APIHelper.SKIP):
+ prices=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the Segment class"""
# Initialize members of the class
@@ -111,6 +112,9 @@ def __init__(self,
if prices is not APIHelper.SKIP:
self.prices = prices
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -147,6 +151,10 @@ def from_dictionary(cls,
prices = [SegmentPrice.from_dictionary(x) for x in dictionary.get('prices')]
else:
prices = APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(id,
component_id,
@@ -159,4 +167,5 @@ def from_dictionary(cls,
segment_property_4_value,
created_at,
updated_at,
- prices)
+ prices,
+ dictionary)
diff --git a/advancedbilling/models/segment_price.py b/advancedbilling/models/segment_price.py
index 7194db7..72ca948 100644
--- a/advancedbilling/models/segment_price.py
+++ b/advancedbilling/models/segment_price.py
@@ -62,7 +62,8 @@ def __init__(self,
unit_price=APIHelper.SKIP,
price_point_id=APIHelper.SKIP,
formatted_unit_price=APIHelper.SKIP,
- segment_id=APIHelper.SKIP):
+ segment_id=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the SegmentPrice class"""
# Initialize members of the class
@@ -83,6 +84,9 @@ def __init__(self,
if segment_id is not APIHelper.SKIP:
self.segment_id = segment_id
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -110,6 +114,10 @@ def from_dictionary(cls,
price_point_id = dictionary.get("price_point_id") if dictionary.get("price_point_id") else APIHelper.SKIP
formatted_unit_price = dictionary.get("formatted_unit_price") if dictionary.get("formatted_unit_price") else APIHelper.SKIP
segment_id = dictionary.get("segment_id") if dictionary.get("segment_id") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(id,
component_id,
@@ -118,7 +126,8 @@ def from_dictionary(cls,
unit_price,
price_point_id,
formatted_unit_price,
- segment_id)
+ segment_id,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/segment_response.py b/advancedbilling/models/segment_response.py
index 3cec819..a2bb32c 100644
--- a/advancedbilling/models/segment_response.py
+++ b/advancedbilling/models/segment_response.py
@@ -31,13 +31,17 @@ class SegmentResponse(object):
]
def __init__(self,
- segment=APIHelper.SKIP):
+ segment=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the SegmentResponse class"""
# Initialize members of the class
if segment is not APIHelper.SKIP:
self.segment = segment
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -58,5 +62,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
segment = Segment.from_dictionary(dictionary.get('segment')) if 'segment' in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(segment)
+ return cls(segment,
+ dictionary)
diff --git a/advancedbilling/models/seller.py b/advancedbilling/models/seller.py
index 6bda1f2..54c844b 100644
--- a/advancedbilling/models/seller.py
+++ b/advancedbilling/models/seller.py
@@ -47,7 +47,8 @@ def __init__(self,
name=APIHelper.SKIP,
address=APIHelper.SKIP,
phone=APIHelper.SKIP,
- logo_url=APIHelper.SKIP):
+ logo_url=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the Seller class"""
# Initialize members of the class
@@ -60,6 +61,9 @@ def __init__(self,
if logo_url is not APIHelper.SKIP:
self.logo_url = logo_url
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -83,11 +87,16 @@ def from_dictionary(cls,
address = InvoiceAddress.from_dictionary(dictionary.get('address')) if 'address' in dictionary.keys() else APIHelper.SKIP
phone = dictionary.get("phone") if dictionary.get("phone") else APIHelper.SKIP
logo_url = dictionary.get("logo_url") if "logo_url" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(name,
address,
phone,
- logo_url)
+ logo_url,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/send_invoice_request.py b/advancedbilling/models/send_invoice_request.py
index e878277..a1eea4f 100644
--- a/advancedbilling/models/send_invoice_request.py
+++ b/advancedbilling/models/send_invoice_request.py
@@ -38,7 +38,8 @@ class SendInvoiceRequest(object):
def __init__(self,
recipient_emails=APIHelper.SKIP,
cc_recipient_emails=APIHelper.SKIP,
- bcc_recipient_emails=APIHelper.SKIP):
+ bcc_recipient_emails=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the SendInvoiceRequest class"""
# Initialize members of the class
@@ -49,6 +50,9 @@ def __init__(self,
if bcc_recipient_emails is not APIHelper.SKIP:
self.bcc_recipient_emails = bcc_recipient_emails
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -71,7 +75,12 @@ def from_dictionary(cls,
recipient_emails = dictionary.get("recipient_emails") if dictionary.get("recipient_emails") else APIHelper.SKIP
cc_recipient_emails = dictionary.get("cc_recipient_emails") if dictionary.get("cc_recipient_emails") else APIHelper.SKIP
bcc_recipient_emails = dictionary.get("bcc_recipient_emails") if dictionary.get("bcc_recipient_emails") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(recipient_emails,
cc_recipient_emails,
- bcc_recipient_emails)
+ bcc_recipient_emails,
+ dictionary)
diff --git a/advancedbilling/models/service_credit.py b/advancedbilling/models/service_credit.py
index 30ea4d3..e555f46 100644
--- a/advancedbilling/models/service_credit.py
+++ b/advancedbilling/models/service_credit.py
@@ -47,7 +47,8 @@ def __init__(self,
amount_in_cents=APIHelper.SKIP,
ending_balance_in_cents=APIHelper.SKIP,
entry_type=APIHelper.SKIP,
- memo=APIHelper.SKIP):
+ memo=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the ServiceCredit class"""
# Initialize members of the class
@@ -62,6 +63,9 @@ def __init__(self,
if memo is not APIHelper.SKIP:
self.memo = memo
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -86,9 +90,14 @@ def from_dictionary(cls,
ending_balance_in_cents = dictionary.get("ending_balance_in_cents") if dictionary.get("ending_balance_in_cents") else APIHelper.SKIP
entry_type = dictionary.get("entry_type") if dictionary.get("entry_type") else APIHelper.SKIP
memo = dictionary.get("memo") if dictionary.get("memo") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(id,
amount_in_cents,
ending_balance_in_cents,
entry_type,
- memo)
+ memo,
+ dictionary)
diff --git a/advancedbilling/models/service_credit_response.py b/advancedbilling/models/service_credit_response.py
index 7df7226..6a9c368 100644
--- a/advancedbilling/models/service_credit_response.py
+++ b/advancedbilling/models/service_credit_response.py
@@ -26,12 +26,16 @@ class ServiceCreditResponse(object):
}
def __init__(self,
- service_credit=None):
+ service_credit=None,
+ additional_properties={}):
"""Constructor for the ServiceCreditResponse class"""
# Initialize members of the class
self.service_credit = service_credit
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
service_credit = ServiceCredit.from_dictionary(dictionary.get('service_credit')) if dictionary.get('service_credit') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(service_credit)
+ return cls(service_credit,
+ dictionary)
diff --git a/advancedbilling/models/shipping_address.py b/advancedbilling/models/shipping_address.py
index 2087e47..c854468 100644
--- a/advancedbilling/models/shipping_address.py
+++ b/advancedbilling/models/shipping_address.py
@@ -59,7 +59,8 @@ def __init__(self,
city=APIHelper.SKIP,
state=APIHelper.SKIP,
zip=APIHelper.SKIP,
- country=APIHelper.SKIP):
+ country=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the ShippingAddress class"""
# Initialize members of the class
@@ -76,6 +77,9 @@ def __init__(self,
if country is not APIHelper.SKIP:
self.country = country
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -101,13 +105,18 @@ def from_dictionary(cls,
state = dictionary.get("state") if "state" in dictionary.keys() else APIHelper.SKIP
zip = dictionary.get("zip") if "zip" in dictionary.keys() else APIHelper.SKIP
country = dictionary.get("country") if "country" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(street,
line_2,
city,
state,
zip,
- country)
+ country,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/signup_proforma_preview.py b/advancedbilling/models/signup_proforma_preview.py
index 560343b..bbbe4f6 100644
--- a/advancedbilling/models/signup_proforma_preview.py
+++ b/advancedbilling/models/signup_proforma_preview.py
@@ -36,7 +36,8 @@ class SignupProformaPreview(object):
def __init__(self,
current_proforma_invoice=APIHelper.SKIP,
- next_proforma_invoice=APIHelper.SKIP):
+ next_proforma_invoice=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the SignupProformaPreview class"""
# Initialize members of the class
@@ -45,6 +46,9 @@ def __init__(self,
if next_proforma_invoice is not APIHelper.SKIP:
self.next_proforma_invoice = next_proforma_invoice
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -66,6 +70,11 @@ def from_dictionary(cls,
# Extract variables from the dictionary
current_proforma_invoice = ProformaInvoice.from_dictionary(dictionary.get('current_proforma_invoice')) if 'current_proforma_invoice' in dictionary.keys() else APIHelper.SKIP
next_proforma_invoice = ProformaInvoice.from_dictionary(dictionary.get('next_proforma_invoice')) if 'next_proforma_invoice' in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(current_proforma_invoice,
- next_proforma_invoice)
+ next_proforma_invoice,
+ dictionary)
diff --git a/advancedbilling/models/signup_proforma_preview_response.py b/advancedbilling/models/signup_proforma_preview_response.py
index 97f8221..13f7149 100644
--- a/advancedbilling/models/signup_proforma_preview_response.py
+++ b/advancedbilling/models/signup_proforma_preview_response.py
@@ -27,12 +27,16 @@ class SignupProformaPreviewResponse(object):
}
def __init__(self,
- proforma_invoice_preview=None):
+ proforma_invoice_preview=None,
+ additional_properties={}):
"""Constructor for the SignupProformaPreviewResponse class"""
# Initialize members of the class
self.proforma_invoice_preview = proforma_invoice_preview
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -53,5 +57,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
proforma_invoice_preview = SignupProformaPreview.from_dictionary(dictionary.get('proforma_invoice_preview')) if dictionary.get('proforma_invoice_preview') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(proforma_invoice_preview)
+ return cls(proforma_invoice_preview,
+ dictionary)
diff --git a/advancedbilling/models/site.py b/advancedbilling/models/site.py
index 2f170bc..d7d0c64 100644
--- a/advancedbilling/models/site.py
+++ b/advancedbilling/models/site.py
@@ -96,7 +96,8 @@ def __init__(self,
organization_address=APIHelper.SKIP,
tax_configuration=APIHelper.SKIP,
net_terms=APIHelper.SKIP,
- test=APIHelper.SKIP):
+ test=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the Site class"""
# Initialize members of the class
@@ -133,6 +134,9 @@ def __init__(self,
if test is not APIHelper.SKIP:
self.test = test
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -168,6 +172,10 @@ def from_dictionary(cls,
tax_configuration = TaxConfiguration.from_dictionary(dictionary.get('tax_configuration')) if 'tax_configuration' in dictionary.keys() else APIHelper.SKIP
net_terms = NetTerms.from_dictionary(dictionary.get('net_terms')) if 'net_terms' in dictionary.keys() else APIHelper.SKIP
test = dictionary.get("test") if "test" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(id,
name,
@@ -184,4 +192,5 @@ def from_dictionary(cls,
organization_address,
tax_configuration,
net_terms,
- test)
+ test,
+ dictionary)
diff --git a/advancedbilling/models/site_response.py b/advancedbilling/models/site_response.py
index 7467dce..c357f9b 100644
--- a/advancedbilling/models/site_response.py
+++ b/advancedbilling/models/site_response.py
@@ -26,12 +26,16 @@ class SiteResponse(object):
}
def __init__(self,
- site=None):
+ site=None,
+ additional_properties={}):
"""Constructor for the SiteResponse class"""
# Initialize members of the class
self.site = site
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
site = Site.from_dictionary(dictionary.get('site')) if dictionary.get('site') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(site)
+ return cls(site,
+ dictionary)
diff --git a/advancedbilling/models/site_statistics.py b/advancedbilling/models/site_statistics.py
index 668bfa6..5cdabae 100644
--- a/advancedbilling/models/site_statistics.py
+++ b/advancedbilling/models/site_statistics.py
@@ -70,7 +70,8 @@ def __init__(self,
total_active_subscriptions=APIHelper.SKIP,
total_past_due_subscriptions=APIHelper.SKIP,
total_unpaid_subscriptions=APIHelper.SKIP,
- total_dunning_subscriptions=APIHelper.SKIP):
+ total_dunning_subscriptions=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the SiteStatistics class"""
# Initialize members of the class
@@ -97,6 +98,9 @@ def __init__(self,
if total_dunning_subscriptions is not APIHelper.SKIP:
self.total_dunning_subscriptions = total_dunning_subscriptions
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -127,6 +131,10 @@ def from_dictionary(cls,
total_past_due_subscriptions = dictionary.get("total_past_due_subscriptions") if dictionary.get("total_past_due_subscriptions") else APIHelper.SKIP
total_unpaid_subscriptions = dictionary.get("total_unpaid_subscriptions") if dictionary.get("total_unpaid_subscriptions") else APIHelper.SKIP
total_dunning_subscriptions = dictionary.get("total_dunning_subscriptions") if dictionary.get("total_dunning_subscriptions") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(total_subscriptions,
subscriptions_today,
@@ -138,4 +146,5 @@ def from_dictionary(cls,
total_active_subscriptions,
total_past_due_subscriptions,
total_unpaid_subscriptions,
- total_dunning_subscriptions)
+ total_dunning_subscriptions,
+ dictionary)
diff --git a/advancedbilling/models/site_summary.py b/advancedbilling/models/site_summary.py
index 71d1f26..c384dd9 100644
--- a/advancedbilling/models/site_summary.py
+++ b/advancedbilling/models/site_summary.py
@@ -47,7 +47,8 @@ def __init__(self,
site_name=APIHelper.SKIP,
site_id=APIHelper.SKIP,
site_currency=APIHelper.SKIP,
- stats=APIHelper.SKIP):
+ stats=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the SiteSummary class"""
# Initialize members of the class
@@ -62,6 +63,9 @@ def __init__(self,
if stats is not APIHelper.SKIP:
self.stats = stats
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -86,9 +90,14 @@ def from_dictionary(cls,
site_id = dictionary.get("site_id") if dictionary.get("site_id") else APIHelper.SKIP
site_currency = dictionary.get("site_currency") if dictionary.get("site_currency") else APIHelper.SKIP
stats = SiteStatistics.from_dictionary(dictionary.get('stats')) if 'stats' in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(seller_name,
site_name,
site_id,
site_currency,
- stats)
+ stats,
+ dictionary)
diff --git a/advancedbilling/models/subscription.py b/advancedbilling/models/subscription.py
index c121a59..73667d0 100644
--- a/advancedbilling/models/subscription.py
+++ b/advancedbilling/models/subscription.py
@@ -460,7 +460,8 @@ def __init__(self,
credit_balance_in_cents=APIHelper.SKIP,
prepayment_balance_in_cents=APIHelper.SKIP,
prepaid_configuration=APIHelper.SKIP,
- self_service_page_token=APIHelper.SKIP):
+ self_service_page_token=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the Subscription class"""
# Initialize members of the class
@@ -588,6 +589,9 @@ def __init__(self,
if self_service_page_token is not APIHelper.SKIP:
self.self_service_page_token = self_service_page_token
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -701,6 +705,10 @@ def from_dictionary(cls,
prepayment_balance_in_cents = dictionary.get("prepayment_balance_in_cents") if dictionary.get("prepayment_balance_in_cents") else APIHelper.SKIP
prepaid_configuration = PrepaidConfiguration.from_dictionary(dictionary.get('prepaid_configuration')) if 'prepaid_configuration' in dictionary.keys() else APIHelper.SKIP
self_service_page_token = dictionary.get("self_service_page_token") if dictionary.get("self_service_page_token") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(id,
state,
@@ -763,4 +771,5 @@ def from_dictionary(cls,
credit_balance_in_cents,
prepayment_balance_in_cents,
prepaid_configuration,
- self_service_page_token)
+ self_service_page_token,
+ dictionary)
diff --git a/advancedbilling/models/subscription_component.py b/advancedbilling/models/subscription_component.py
index 6c7cf11..00abc90 100644
--- a/advancedbilling/models/subscription_component.py
+++ b/advancedbilling/models/subscription_component.py
@@ -180,7 +180,8 @@ def __init__(self,
subscription=APIHelper.SKIP,
display_on_hosted_page=APIHelper.SKIP,
interval=APIHelper.SKIP,
- interval_unit=APIHelper.SKIP):
+ interval_unit=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the SubscriptionComponent class"""
# Initialize members of the class
@@ -247,6 +248,9 @@ def __init__(self,
if interval_unit is not APIHelper.SKIP:
self.interval_unit = interval_unit
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -304,6 +308,10 @@ def from_dictionary(cls,
display_on_hosted_page = dictionary.get("display_on_hosted_page") if "display_on_hosted_page" in dictionary.keys() else APIHelper.SKIP
interval = dictionary.get("interval") if dictionary.get("interval") else APIHelper.SKIP
interval_unit = dictionary.get("interval_unit") if dictionary.get("interval_unit") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(id,
name,
@@ -335,4 +343,5 @@ def from_dictionary(cls,
subscription,
display_on_hosted_page,
interval,
- interval_unit)
+ interval_unit,
+ dictionary)
diff --git a/advancedbilling/models/subscription_component_allocation_error_item.py b/advancedbilling/models/subscription_component_allocation_error_item.py
index dd92641..17db022 100644
--- a/advancedbilling/models/subscription_component_allocation_error_item.py
+++ b/advancedbilling/models/subscription_component_allocation_error_item.py
@@ -34,7 +34,8 @@ class SubscriptionComponentAllocationErrorItem(object):
def __init__(self,
kind=APIHelper.SKIP,
- message=APIHelper.SKIP):
+ message=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the SubscriptionComponentAllocationErrorItem class"""
# Initialize members of the class
@@ -43,6 +44,9 @@ def __init__(self,
if message is not APIHelper.SKIP:
self.message = message
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -64,6 +68,11 @@ def from_dictionary(cls,
# Extract variables from the dictionary
kind = dictionary.get("kind") if dictionary.get("kind") else APIHelper.SKIP
message = dictionary.get("message") if dictionary.get("message") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(kind,
- message)
+ message,
+ dictionary)
diff --git a/advancedbilling/models/subscription_component_response.py b/advancedbilling/models/subscription_component_response.py
index cfc9a3a..6d0a687 100644
--- a/advancedbilling/models/subscription_component_response.py
+++ b/advancedbilling/models/subscription_component_response.py
@@ -31,13 +31,17 @@ class SubscriptionComponentResponse(object):
]
def __init__(self,
- component=APIHelper.SKIP):
+ component=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the SubscriptionComponentResponse class"""
# Initialize members of the class
if component is not APIHelper.SKIP:
self.component = component
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -58,5 +62,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
component = SubscriptionComponent.from_dictionary(dictionary.get('component')) if 'component' in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(component)
+ return cls(component,
+ dictionary)
diff --git a/advancedbilling/models/subscription_component_subscription.py b/advancedbilling/models/subscription_component_subscription.py
index 984c1f8..2a79c16 100644
--- a/advancedbilling/models/subscription_component_subscription.py
+++ b/advancedbilling/models/subscription_component_subscription.py
@@ -99,7 +99,8 @@ class SubscriptionComponentSubscription(object):
def __init__(self,
state=APIHelper.SKIP,
- updated_at=APIHelper.SKIP):
+ updated_at=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the SubscriptionComponentSubscription class"""
# Initialize members of the class
@@ -108,6 +109,9 @@ def __init__(self,
if updated_at is not APIHelper.SKIP:
self.updated_at = APIHelper.apply_datetime_converter(updated_at, APIHelper.RFC3339DateTime) if updated_at else None
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -129,9 +133,14 @@ def from_dictionary(cls,
# Extract variables from the dictionary
state = dictionary.get("state") if dictionary.get("state") else APIHelper.SKIP
updated_at = APIHelper.RFC3339DateTime.from_value(dictionary.get("updated_at")).datetime if dictionary.get("updated_at") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(state,
- updated_at)
+ updated_at,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/subscription_custom_price.py b/advancedbilling/models/subscription_custom_price.py
index 787be47..11808bc 100644
--- a/advancedbilling/models/subscription_custom_price.py
+++ b/advancedbilling/models/subscription_custom_price.py
@@ -79,7 +79,8 @@ def __init__(self,
initial_charge_after_trial=APIHelper.SKIP,
expiration_interval=APIHelper.SKIP,
expiration_interval_unit=APIHelper.SKIP,
- tax_included=APIHelper.SKIP):
+ tax_included=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the SubscriptionCustomPrice class"""
# Initialize members of the class
@@ -107,6 +108,9 @@ def __init__(self,
if tax_included is not APIHelper.SKIP:
self.tax_included = tax_included
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -140,6 +144,10 @@ def from_dictionary(cls,
expiration_interval = APIHelper.deserialize_union_type(UnionTypeLookUp.get('SubscriptionCustomPriceExpirationInterval'), dictionary.get('expiration_interval'), False) if dictionary.get('expiration_interval') is not None else APIHelper.SKIP
expiration_interval_unit = dictionary.get("expiration_interval_unit") if dictionary.get("expiration_interval_unit") else APIHelper.SKIP
tax_included = dictionary.get("tax_included") if "tax_included" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(price_in_cents,
interval,
@@ -153,7 +161,8 @@ def from_dictionary(cls,
initial_charge_after_trial,
expiration_interval,
expiration_interval_unit,
- tax_included)
+ tax_included,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/subscription_group.py b/advancedbilling/models/subscription_group.py
index 31642e9..63e2fe8 100644
--- a/advancedbilling/models/subscription_group.py
+++ b/advancedbilling/models/subscription_group.py
@@ -48,7 +48,8 @@ def __init__(self,
payment_profile=APIHelper.SKIP,
payment_collection_method=APIHelper.SKIP,
subscription_ids=APIHelper.SKIP,
- created_at=APIHelper.SKIP):
+ created_at=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the SubscriptionGroup class"""
# Initialize members of the class
@@ -63,6 +64,9 @@ def __init__(self,
if created_at is not APIHelper.SKIP:
self.created_at = APIHelper.apply_datetime_converter(created_at, APIHelper.RFC3339DateTime) if created_at else None
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -87,9 +91,14 @@ def from_dictionary(cls,
payment_collection_method = dictionary.get("payment_collection_method") if dictionary.get("payment_collection_method") else APIHelper.SKIP
subscription_ids = dictionary.get("subscription_ids") if dictionary.get("subscription_ids") else APIHelper.SKIP
created_at = APIHelper.RFC3339DateTime.from_value(dictionary.get("created_at")).datetime if dictionary.get("created_at") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(customer_id,
payment_profile,
payment_collection_method,
subscription_ids,
- created_at)
+ created_at,
+ dictionary)
diff --git a/advancedbilling/models/subscription_group_balances.py b/advancedbilling/models/subscription_group_balances.py
index 77b7563..eec90ce 100644
--- a/advancedbilling/models/subscription_group_balances.py
+++ b/advancedbilling/models/subscription_group_balances.py
@@ -43,7 +43,8 @@ def __init__(self,
prepayments=APIHelper.SKIP,
service_credits=APIHelper.SKIP,
open_invoices=APIHelper.SKIP,
- pending_discounts=APIHelper.SKIP):
+ pending_discounts=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the SubscriptionGroupBalances class"""
# Initialize members of the class
@@ -56,6 +57,9 @@ def __init__(self,
if pending_discounts is not APIHelper.SKIP:
self.pending_discounts = pending_discounts
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -79,8 +83,13 @@ def from_dictionary(cls,
service_credits = AccountBalance.from_dictionary(dictionary.get('service_credits')) if 'service_credits' in dictionary.keys() else APIHelper.SKIP
open_invoices = AccountBalance.from_dictionary(dictionary.get('open_invoices')) if 'open_invoices' in dictionary.keys() else APIHelper.SKIP
pending_discounts = AccountBalance.from_dictionary(dictionary.get('pending_discounts')) if 'pending_discounts' in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(prepayments,
service_credits,
open_invoices,
- pending_discounts)
+ pending_discounts,
+ dictionary)
diff --git a/advancedbilling/models/subscription_group_bank_account.py b/advancedbilling/models/subscription_group_bank_account.py
index cc87143..3a03349 100644
--- a/advancedbilling/models/subscription_group_bank_account.py
+++ b/advancedbilling/models/subscription_group_bank_account.py
@@ -102,7 +102,8 @@ def __init__(self,
billing_country=APIHelper.SKIP,
chargify_token=APIHelper.SKIP,
current_vault=APIHelper.SKIP,
- gateway_handle=APIHelper.SKIP):
+ gateway_handle=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the SubscriptionGroupBankAccount class"""
# Initialize members of the class
@@ -139,6 +140,9 @@ def __init__(self,
if gateway_handle is not APIHelper.SKIP:
self.gateway_handle = gateway_handle
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -174,6 +178,10 @@ def from_dictionary(cls,
chargify_token = dictionary.get("chargify_token") if dictionary.get("chargify_token") else APIHelper.SKIP
current_vault = dictionary.get("current_vault") if dictionary.get("current_vault") else APIHelper.SKIP
gateway_handle = dictionary.get("gateway_handle") if dictionary.get("gateway_handle") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(bank_name,
bank_account_number,
@@ -190,7 +198,8 @@ def from_dictionary(cls,
billing_country,
chargify_token,
current_vault,
- gateway_handle)
+ gateway_handle,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/subscription_group_component_custom_price.py b/advancedbilling/models/subscription_group_component_custom_price.py
index 9436cad..ba3a094 100644
--- a/advancedbilling/models/subscription_group_component_custom_price.py
+++ b/advancedbilling/models/subscription_group_component_custom_price.py
@@ -45,7 +45,8 @@ class SubscriptionGroupComponentCustomPrice(object):
def __init__(self,
pricing_scheme=APIHelper.SKIP,
prices=APIHelper.SKIP,
- overage_pricing=APIHelper.SKIP):
+ overage_pricing=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the SubscriptionGroupComponentCustomPrice class"""
# Initialize members of the class
@@ -56,6 +57,9 @@ def __init__(self,
if overage_pricing is not APIHelper.SKIP:
self.overage_pricing = overage_pricing
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -86,10 +90,15 @@ def from_dictionary(cls,
overage_pricing = [ComponentCustomPrice.from_dictionary(x) for x in dictionary.get('overage_pricing')]
else:
overage_pricing = APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(pricing_scheme,
prices,
- overage_pricing)
+ overage_pricing,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/subscription_group_credit_card.py b/advancedbilling/models/subscription_group_credit_card.py
index f81502a..d3e1799 100644
--- a/advancedbilling/models/subscription_group_credit_card.py
+++ b/advancedbilling/models/subscription_group_credit_card.py
@@ -107,7 +107,8 @@ def __init__(self,
card_type=APIHelper.SKIP,
customer_vault_token=APIHelper.SKIP,
cvv=APIHelper.SKIP,
- payment_type=APIHelper.SKIP):
+ payment_type=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the SubscriptionGroupCreditCard class"""
# Initialize members of the class
@@ -152,6 +153,9 @@ def __init__(self,
if payment_type is not APIHelper.SKIP:
self.payment_type = payment_type
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -192,6 +196,10 @@ def from_dictionary(cls,
customer_vault_token = dictionary.get("customer_vault_token") if dictionary.get("customer_vault_token") else APIHelper.SKIP
cvv = dictionary.get("cvv") if dictionary.get("cvv") else APIHelper.SKIP
payment_type = dictionary.get("payment_type") if dictionary.get("payment_type") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(full_number,
expiration_month,
@@ -212,7 +220,8 @@ def from_dictionary(cls,
card_type,
customer_vault_token,
cvv,
- payment_type)
+ payment_type,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/subscription_group_customer.py b/advancedbilling/models/subscription_group_customer.py
index 0d28cf6..914ece9 100644
--- a/advancedbilling/models/subscription_group_customer.py
+++ b/advancedbilling/models/subscription_group_customer.py
@@ -46,7 +46,8 @@ def __init__(self,
last_name=APIHelper.SKIP,
organization=APIHelper.SKIP,
email=APIHelper.SKIP,
- reference=APIHelper.SKIP):
+ reference=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the SubscriptionGroupCustomer class"""
# Initialize members of the class
@@ -61,6 +62,9 @@ def __init__(self,
if reference is not APIHelper.SKIP:
self.reference = reference
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -85,9 +89,14 @@ def from_dictionary(cls,
organization = dictionary.get("organization") if dictionary.get("organization") else APIHelper.SKIP
email = dictionary.get("email") if dictionary.get("email") else APIHelper.SKIP
reference = dictionary.get("reference") if dictionary.get("reference") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(first_name,
last_name,
organization,
email,
- reference)
+ reference,
+ dictionary)
diff --git a/advancedbilling/models/subscription_group_item.py b/advancedbilling/models/subscription_group_item.py
index d79a5a5..a0d018c 100644
--- a/advancedbilling/models/subscription_group_item.py
+++ b/advancedbilling/models/subscription_group_item.py
@@ -72,7 +72,8 @@ def __init__(self,
currency=APIHelper.SKIP,
coupon_code=APIHelper.SKIP,
total_revenue_in_cents=APIHelper.SKIP,
- balance_in_cents=APIHelper.SKIP):
+ balance_in_cents=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the SubscriptionGroupItem class"""
# Initialize members of the class
@@ -97,6 +98,9 @@ def __init__(self,
if balance_in_cents is not APIHelper.SKIP:
self.balance_in_cents = balance_in_cents
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -126,6 +130,10 @@ def from_dictionary(cls,
coupon_code = dictionary.get("coupon_code") if "coupon_code" in dictionary.keys() else APIHelper.SKIP
total_revenue_in_cents = dictionary.get("total_revenue_in_cents") if dictionary.get("total_revenue_in_cents") else APIHelper.SKIP
balance_in_cents = dictionary.get("balance_in_cents") if dictionary.get("balance_in_cents") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(id,
reference,
@@ -136,4 +144,5 @@ def from_dictionary(cls,
currency,
coupon_code,
total_revenue_in_cents,
- balance_in_cents)
+ balance_in_cents,
+ dictionary)
diff --git a/advancedbilling/models/subscription_group_member_error.py b/advancedbilling/models/subscription_group_member_error.py
index cd9b2a0..6d70d16 100644
--- a/advancedbilling/models/subscription_group_member_error.py
+++ b/advancedbilling/models/subscription_group_member_error.py
@@ -38,7 +38,8 @@ class SubscriptionGroupMemberError(object):
def __init__(self,
id=APIHelper.SKIP,
mtype=APIHelper.SKIP,
- message=APIHelper.SKIP):
+ message=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the SubscriptionGroupMemberError class"""
# Initialize members of the class
@@ -49,6 +50,9 @@ def __init__(self,
if message is not APIHelper.SKIP:
self.message = message
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -71,7 +75,12 @@ def from_dictionary(cls,
id = dictionary.get("id") if dictionary.get("id") else APIHelper.SKIP
mtype = dictionary.get("type") if dictionary.get("type") else APIHelper.SKIP
message = dictionary.get("message") if dictionary.get("message") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(id,
mtype,
- message)
+ message,
+ dictionary)
diff --git a/advancedbilling/models/subscription_group_payment_profile.py b/advancedbilling/models/subscription_group_payment_profile.py
index 2f2406f..03ac6d7 100644
--- a/advancedbilling/models/subscription_group_payment_profile.py
+++ b/advancedbilling/models/subscription_group_payment_profile.py
@@ -42,7 +42,8 @@ def __init__(self,
id=APIHelper.SKIP,
first_name=APIHelper.SKIP,
last_name=APIHelper.SKIP,
- masked_card_number=APIHelper.SKIP):
+ masked_card_number=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the SubscriptionGroupPaymentProfile class"""
# Initialize members of the class
@@ -55,6 +56,9 @@ def __init__(self,
if masked_card_number is not APIHelper.SKIP:
self.masked_card_number = masked_card_number
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -78,8 +82,13 @@ def from_dictionary(cls,
first_name = dictionary.get("first_name") if dictionary.get("first_name") else APIHelper.SKIP
last_name = dictionary.get("last_name") if dictionary.get("last_name") else APIHelper.SKIP
masked_card_number = dictionary.get("masked_card_number") if dictionary.get("masked_card_number") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(id,
first_name,
last_name,
- masked_card_number)
+ masked_card_number,
+ dictionary)
diff --git a/advancedbilling/models/subscription_group_prepayment.py b/advancedbilling/models/subscription_group_prepayment.py
index 70d53d8..e777563 100644
--- a/advancedbilling/models/subscription_group_prepayment.py
+++ b/advancedbilling/models/subscription_group_prepayment.py
@@ -35,7 +35,8 @@ def __init__(self,
amount=None,
details=None,
memo=None,
- method=None):
+ method=None,
+ additional_properties={}):
"""Constructor for the SubscriptionGroupPrepayment class"""
# Initialize members of the class
@@ -44,6 +45,9 @@ def __init__(self,
self.memo = memo
self.method = method
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -67,8 +71,13 @@ def from_dictionary(cls,
details = dictionary.get("details") if dictionary.get("details") else None
memo = dictionary.get("memo") if dictionary.get("memo") else None
method = dictionary.get("method") if dictionary.get("method") else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(amount,
details,
memo,
- method)
+ method,
+ dictionary)
diff --git a/advancedbilling/models/subscription_group_prepayment_request.py b/advancedbilling/models/subscription_group_prepayment_request.py
index 07fe87a..5c71ef3 100644
--- a/advancedbilling/models/subscription_group_prepayment_request.py
+++ b/advancedbilling/models/subscription_group_prepayment_request.py
@@ -27,12 +27,16 @@ class SubscriptionGroupPrepaymentRequest(object):
}
def __init__(self,
- prepayment=None):
+ prepayment=None,
+ additional_properties={}):
"""Constructor for the SubscriptionGroupPrepaymentRequest class"""
# Initialize members of the class
self.prepayment = prepayment
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -53,5 +57,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
prepayment = SubscriptionGroupPrepayment.from_dictionary(dictionary.get('prepayment')) if dictionary.get('prepayment') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(prepayment)
+ return cls(prepayment,
+ dictionary)
diff --git a/advancedbilling/models/subscription_group_prepayment_response.py b/advancedbilling/models/subscription_group_prepayment_response.py
index e24161c..cd7d916 100644
--- a/advancedbilling/models/subscription_group_prepayment_response.py
+++ b/advancedbilling/models/subscription_group_prepayment_response.py
@@ -47,7 +47,8 @@ def __init__(self,
amount_in_cents=APIHelper.SKIP,
ending_balance_in_cents=APIHelper.SKIP,
entry_type=APIHelper.SKIP,
- memo=APIHelper.SKIP):
+ memo=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the SubscriptionGroupPrepaymentResponse class"""
# Initialize members of the class
@@ -62,6 +63,9 @@ def __init__(self,
if memo is not APIHelper.SKIP:
self.memo = memo
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -86,9 +90,14 @@ def from_dictionary(cls,
ending_balance_in_cents = dictionary.get("ending_balance_in_cents") if dictionary.get("ending_balance_in_cents") else APIHelper.SKIP
entry_type = dictionary.get("entry_type") if dictionary.get("entry_type") else APIHelper.SKIP
memo = dictionary.get("memo") if dictionary.get("memo") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(id,
amount_in_cents,
ending_balance_in_cents,
entry_type,
- memo)
+ memo,
+ dictionary)
diff --git a/advancedbilling/models/subscription_group_response.py b/advancedbilling/models/subscription_group_response.py
index 0007035..d189bf3 100644
--- a/advancedbilling/models/subscription_group_response.py
+++ b/advancedbilling/models/subscription_group_response.py
@@ -26,12 +26,16 @@ class SubscriptionGroupResponse(object):
}
def __init__(self,
- subscription_group=None):
+ subscription_group=None,
+ additional_properties={}):
"""Constructor for the SubscriptionGroupResponse class"""
# Initialize members of the class
self.subscription_group = subscription_group
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
subscription_group = SubscriptionGroup.from_dictionary(dictionary.get('subscription_group')) if dictionary.get('subscription_group') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(subscription_group)
+ return cls(subscription_group,
+ dictionary)
diff --git a/advancedbilling/models/subscription_group_signup.py b/advancedbilling/models/subscription_group_signup.py
index 4c5e807..6820464 100644
--- a/advancedbilling/models/subscription_group_signup.py
+++ b/advancedbilling/models/subscription_group_signup.py
@@ -68,7 +68,8 @@ def __init__(self,
payment_collection_method='automatic',
payer_attributes=APIHelper.SKIP,
credit_card_attributes=APIHelper.SKIP,
- bank_account_attributes=APIHelper.SKIP):
+ bank_account_attributes=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the SubscriptionGroupSignup class"""
# Initialize members of the class
@@ -87,6 +88,9 @@ def __init__(self,
self.bank_account_attributes = bank_account_attributes
self.subscriptions = subscriptions
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -116,6 +120,10 @@ def from_dictionary(cls,
payer_attributes = PayerAttributes.from_dictionary(dictionary.get('payer_attributes')) if 'payer_attributes' in dictionary.keys() else APIHelper.SKIP
credit_card_attributes = SubscriptionGroupCreditCard.from_dictionary(dictionary.get('credit_card_attributes')) if 'credit_card_attributes' in dictionary.keys() else APIHelper.SKIP
bank_account_attributes = SubscriptionGroupBankAccount.from_dictionary(dictionary.get('bank_account_attributes')) if 'bank_account_attributes' in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(subscriptions,
payment_profile_id,
@@ -124,4 +132,5 @@ def from_dictionary(cls,
payment_collection_method,
payer_attributes,
credit_card_attributes,
- bank_account_attributes)
+ bank_account_attributes,
+ dictionary)
diff --git a/advancedbilling/models/subscription_group_signup_component.py b/advancedbilling/models/subscription_group_signup_component.py
index 0df4ca7..472e24c 100644
--- a/advancedbilling/models/subscription_group_signup_component.py
+++ b/advancedbilling/models/subscription_group_signup_component.py
@@ -50,7 +50,8 @@ def __init__(self,
allocated_quantity=APIHelper.SKIP,
unit_balance=APIHelper.SKIP,
price_point_id=APIHelper.SKIP,
- custom_price=APIHelper.SKIP):
+ custom_price=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the SubscriptionGroupSignupComponent class"""
# Initialize members of the class
@@ -65,6 +66,9 @@ def __init__(self,
if custom_price is not APIHelper.SKIP:
self.custom_price = custom_price
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -90,12 +94,17 @@ def from_dictionary(cls,
unit_balance = APIHelper.deserialize_union_type(UnionTypeLookUp.get('SubscriptionGroupSignupComponentUnitBalance'), dictionary.get('unit_balance'), False) if dictionary.get('unit_balance') is not None else APIHelper.SKIP
price_point_id = APIHelper.deserialize_union_type(UnionTypeLookUp.get('SubscriptionGroupSignupComponentPricePointId'), dictionary.get('price_point_id'), False) if dictionary.get('price_point_id') is not None else APIHelper.SKIP
custom_price = SubscriptionGroupComponentCustomPrice.from_dictionary(dictionary.get('custom_price')) if 'custom_price' in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(component_id,
allocated_quantity,
unit_balance,
price_point_id,
- custom_price)
+ custom_price,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/subscription_group_signup_error.py b/advancedbilling/models/subscription_group_signup_error.py
index fc4de0d..9cdfad7 100644
--- a/advancedbilling/models/subscription_group_signup_error.py
+++ b/advancedbilling/models/subscription_group_signup_error.py
@@ -54,7 +54,8 @@ def __init__(self,
payer=APIHelper.SKIP,
subscription_group=APIHelper.SKIP,
payment_profile_id=APIHelper.SKIP,
- payer_id=APIHelper.SKIP):
+ payer_id=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the SubscriptionGroupSignupError class"""
# Initialize members of the class
@@ -71,6 +72,9 @@ def __init__(self,
if payer_id is not APIHelper.SKIP:
self.payer_id = payer_id
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -96,10 +100,15 @@ def from_dictionary(cls,
subscription_group = dictionary.get("subscription_group") if dictionary.get("subscription_group") else APIHelper.SKIP
payment_profile_id = dictionary.get("payment_profile_id") if dictionary.get("payment_profile_id") else APIHelper.SKIP
payer_id = dictionary.get("payer_id") if dictionary.get("payer_id") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(subscriptions,
payer_reference,
payer,
subscription_group,
payment_profile_id,
- payer_id)
+ payer_id,
+ dictionary)
diff --git a/advancedbilling/models/subscription_group_signup_failure.py b/advancedbilling/models/subscription_group_signup_failure.py
index e934464..b70a50e 100644
--- a/advancedbilling/models/subscription_group_signup_failure.py
+++ b/advancedbilling/models/subscription_group_signup_failure.py
@@ -35,13 +35,17 @@ class SubscriptionGroupSignupFailure(object):
def __init__(self,
subscription_group=None,
- customer=None):
+ customer=None,
+ additional_properties={}):
"""Constructor for the SubscriptionGroupSignupFailure class"""
# Initialize members of the class
self.subscription_group = subscription_group
self.customer = customer
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -63,9 +67,14 @@ def from_dictionary(cls,
# Extract variables from the dictionary
subscription_group = SubscriptionGroupSignupFailureData.from_dictionary(dictionary.get('subscription_group')) if dictionary.get('subscription_group') else None
customer = dictionary.get("customer") if dictionary.get("customer") else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(subscription_group,
- customer)
+ customer,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/subscription_group_signup_failure_data.py b/advancedbilling/models/subscription_group_signup_failure_data.py
index e5744c8..4d97f30 100644
--- a/advancedbilling/models/subscription_group_signup_failure_data.py
+++ b/advancedbilling/models/subscription_group_signup_failure_data.py
@@ -65,7 +65,8 @@ def __init__(self,
payer_attributes=APIHelper.SKIP,
credit_card_attributes=APIHelper.SKIP,
bank_account_attributes=APIHelper.SKIP,
- subscriptions=APIHelper.SKIP):
+ subscriptions=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the SubscriptionGroupSignupFailureData class"""
# Initialize members of the class
@@ -86,6 +87,9 @@ def __init__(self,
if subscriptions is not APIHelper.SKIP:
self.subscriptions = subscriptions
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -117,6 +121,10 @@ def from_dictionary(cls,
subscriptions = [SubscriptionGroupSignupItem.from_dictionary(x) for x in dictionary.get('subscriptions')]
else:
subscriptions = APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(payer_id,
payer_reference,
@@ -125,7 +133,8 @@ def from_dictionary(cls,
payer_attributes,
credit_card_attributes,
bank_account_attributes,
- subscriptions)
+ subscriptions,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/subscription_group_signup_item.py b/advancedbilling/models/subscription_group_signup_item.py
index eb459d3..222c57e 100644
--- a/advancedbilling/models/subscription_group_signup_item.py
+++ b/advancedbilling/models/subscription_group_signup_item.py
@@ -103,7 +103,8 @@ def __init__(self,
components=APIHelper.SKIP,
custom_price=APIHelper.SKIP,
calendar_billing=APIHelper.SKIP,
- metafields=APIHelper.SKIP):
+ metafields=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the SubscriptionGroupSignupItem class"""
# Initialize members of the class
@@ -134,6 +135,9 @@ def __init__(self,
if metafields is not APIHelper.SKIP:
self.metafields = metafields
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -170,6 +174,10 @@ def from_dictionary(cls,
custom_price = SubscriptionCustomPrice.from_dictionary(dictionary.get('custom_price')) if 'custom_price' in dictionary.keys() else APIHelper.SKIP
calendar_billing = CalendarBilling.from_dictionary(dictionary.get('calendar_billing')) if 'calendar_billing' in dictionary.keys() else APIHelper.SKIP
metafields = dictionary.get("metafields") if dictionary.get("metafields") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(product_handle,
product_id,
@@ -183,7 +191,8 @@ def from_dictionary(cls,
components,
custom_price,
calendar_billing,
- metafields)
+ metafields,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/subscription_group_signup_request.py b/advancedbilling/models/subscription_group_signup_request.py
index 98ab113..c253c32 100644
--- a/advancedbilling/models/subscription_group_signup_request.py
+++ b/advancedbilling/models/subscription_group_signup_request.py
@@ -27,12 +27,16 @@ class SubscriptionGroupSignupRequest(object):
}
def __init__(self,
- subscription_group=None):
+ subscription_group=None,
+ additional_properties={}):
"""Constructor for the SubscriptionGroupSignupRequest class"""
# Initialize members of the class
self.subscription_group = subscription_group
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -53,5 +57,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
subscription_group = SubscriptionGroupSignup.from_dictionary(dictionary.get('subscription_group')) if dictionary.get('subscription_group') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(subscription_group)
+ return cls(subscription_group,
+ dictionary)
diff --git a/advancedbilling/models/subscription_group_signup_response.py b/advancedbilling/models/subscription_group_signup_response.py
index b351361..20763d7 100644
--- a/advancedbilling/models/subscription_group_signup_response.py
+++ b/advancedbilling/models/subscription_group_signup_response.py
@@ -76,7 +76,8 @@ def __init__(self,
state=APIHelper.SKIP,
cancel_at_end_of_period=APIHelper.SKIP,
subscriptions=APIHelper.SKIP,
- payment_collection_method='automatic'):
+ payment_collection_method='automatic',
+ additional_properties={}):
"""Constructor for the SubscriptionGroupSignupResponse class"""
# Initialize members of the class
@@ -102,6 +103,9 @@ def __init__(self,
self.subscriptions = subscriptions
self.payment_collection_method = payment_collection_method
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -136,6 +140,10 @@ def from_dictionary(cls,
else:
subscriptions = APIHelper.SKIP
payment_collection_method = dictionary.get("payment_collection_method") if dictionary.get("payment_collection_method") else 'automatic'
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(uid,
scheme,
@@ -147,4 +155,5 @@ def from_dictionary(cls,
state,
cancel_at_end_of_period,
subscriptions,
- payment_collection_method)
+ payment_collection_method,
+ dictionary)
diff --git a/advancedbilling/models/subscription_group_signup_success.py b/advancedbilling/models/subscription_group_signup_success.py
index 51e7639..15d15c8 100644
--- a/advancedbilling/models/subscription_group_signup_success.py
+++ b/advancedbilling/models/subscription_group_signup_success.py
@@ -32,13 +32,17 @@ class SubscriptionGroupSignupSuccess(object):
def __init__(self,
subscription_group=None,
- customer=None):
+ customer=None,
+ additional_properties={}):
"""Constructor for the SubscriptionGroupSignupSuccess class"""
# Initialize members of the class
self.subscription_group = subscription_group
self.customer = customer
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -60,9 +64,14 @@ def from_dictionary(cls,
# Extract variables from the dictionary
subscription_group = SubscriptionGroupSignupSuccessData.from_dictionary(dictionary.get('subscription_group')) if dictionary.get('subscription_group') else None
customer = Customer.from_dictionary(dictionary.get('customer')) if dictionary.get('customer') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(subscription_group,
- customer)
+ customer,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/subscription_group_signup_success_data.py b/advancedbilling/models/subscription_group_signup_success_data.py
index 939db6f..da1376a 100644
--- a/advancedbilling/models/subscription_group_signup_success_data.py
+++ b/advancedbilling/models/subscription_group_signup_success_data.py
@@ -50,7 +50,8 @@ def __init__(self,
primary_subscription_id=None,
next_assessment_at=None,
state=None,
- cancel_at_end_of_period=None):
+ cancel_at_end_of_period=None,
+ additional_properties={}):
"""Constructor for the SubscriptionGroupSignupSuccessData class"""
# Initialize members of the class
@@ -64,6 +65,9 @@ def __init__(self,
self.state = state
self.cancel_at_end_of_period = cancel_at_end_of_period
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -92,6 +96,10 @@ def from_dictionary(cls,
next_assessment_at = APIHelper.RFC3339DateTime.from_value(dictionary.get("next_assessment_at")).datetime if dictionary.get("next_assessment_at") else None
state = dictionary.get("state") if dictionary.get("state") else None
cancel_at_end_of_period = dictionary.get("cancel_at_end_of_period") if "cancel_at_end_of_period" in dictionary.keys() else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(uid,
scheme,
@@ -101,7 +109,8 @@ def from_dictionary(cls,
primary_subscription_id,
next_assessment_at,
state,
- cancel_at_end_of_period)
+ cancel_at_end_of_period,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/subscription_group_subscription_error.py b/advancedbilling/models/subscription_group_subscription_error.py
index dc92e9d..a031c1c 100644
--- a/advancedbilling/models/subscription_group_subscription_error.py
+++ b/advancedbilling/models/subscription_group_subscription_error.py
@@ -43,7 +43,8 @@ def __init__(self,
product=APIHelper.SKIP,
product_price_point_id=APIHelper.SKIP,
payment_profile=APIHelper.SKIP,
- payment_profile_chargify_token=APIHelper.SKIP):
+ payment_profile_chargify_token=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the SubscriptionGroupSubscriptionError class"""
# Initialize members of the class
@@ -56,6 +57,9 @@ def __init__(self,
if payment_profile_chargify_token is not APIHelper.SKIP:
self.payment_profile_chargify_token = payment_profile_chargify_token
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -79,8 +83,13 @@ def from_dictionary(cls,
product_price_point_id = dictionary.get("product_price_point_id") if dictionary.get("product_price_point_id") else APIHelper.SKIP
payment_profile = dictionary.get("payment_profile") if dictionary.get("payment_profile") else APIHelper.SKIP
payment_profile_chargify_token = dictionary.get("payment_profile.chargify_token") if dictionary.get("payment_profile.chargify_token") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(product,
product_price_point_id,
payment_profile,
- payment_profile_chargify_token)
+ payment_profile_chargify_token,
+ dictionary)
diff --git a/advancedbilling/models/subscription_group_update_error.py b/advancedbilling/models/subscription_group_update_error.py
index d97d86f..9433347 100644
--- a/advancedbilling/models/subscription_group_update_error.py
+++ b/advancedbilling/models/subscription_group_update_error.py
@@ -32,13 +32,17 @@ class SubscriptionGroupUpdateError(object):
]
def __init__(self,
- members=APIHelper.SKIP):
+ members=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the SubscriptionGroupUpdateError class"""
# Initialize members of the class
if members is not APIHelper.SKIP:
self.members = members
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -63,5 +67,10 @@ def from_dictionary(cls,
members = [SubscriptionGroupMemberError.from_dictionary(x) for x in dictionary.get('members')]
else:
members = APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(members)
+ return cls(members,
+ dictionary)
diff --git a/advancedbilling/models/subscription_included_coupon.py b/advancedbilling/models/subscription_included_coupon.py
index a9a3444..e26a64a 100644
--- a/advancedbilling/models/subscription_included_coupon.py
+++ b/advancedbilling/models/subscription_included_coupon.py
@@ -60,7 +60,8 @@ def __init__(self,
expires_at=APIHelper.SKIP,
recurring=APIHelper.SKIP,
amount_in_cents=APIHelper.SKIP,
- percentage=APIHelper.SKIP):
+ percentage=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the SubscriptionIncludedCoupon class"""
# Initialize members of the class
@@ -79,6 +80,9 @@ def __init__(self,
if percentage is not APIHelper.SKIP:
self.percentage = percentage
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -105,6 +109,10 @@ def from_dictionary(cls,
recurring = dictionary.get("recurring") if "recurring" in dictionary.keys() else APIHelper.SKIP
amount_in_cents = dictionary.get("amount_in_cents") if "amount_in_cents" in dictionary.keys() else APIHelper.SKIP
percentage = dictionary.get("percentage") if "percentage" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(code,
use_count,
@@ -112,7 +120,8 @@ def from_dictionary(cls,
expires_at,
recurring,
amount_in_cents,
- percentage)
+ percentage,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/subscription_migration_preview.py b/advancedbilling/models/subscription_migration_preview.py
index b6cf4d7..554f06c 100644
--- a/advancedbilling/models/subscription_migration_preview.py
+++ b/advancedbilling/models/subscription_migration_preview.py
@@ -48,7 +48,8 @@ def __init__(self,
prorated_adjustment_in_cents=APIHelper.SKIP,
charge_in_cents=APIHelper.SKIP,
payment_due_in_cents=APIHelper.SKIP,
- credit_applied_in_cents=APIHelper.SKIP):
+ credit_applied_in_cents=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the SubscriptionMigrationPreview class"""
# Initialize members of the class
@@ -61,6 +62,9 @@ def __init__(self,
if credit_applied_in_cents is not APIHelper.SKIP:
self.credit_applied_in_cents = credit_applied_in_cents
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -84,8 +88,13 @@ def from_dictionary(cls,
charge_in_cents = dictionary.get("charge_in_cents") if dictionary.get("charge_in_cents") else APIHelper.SKIP
payment_due_in_cents = dictionary.get("payment_due_in_cents") if dictionary.get("payment_due_in_cents") else APIHelper.SKIP
credit_applied_in_cents = dictionary.get("credit_applied_in_cents") if dictionary.get("credit_applied_in_cents") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(prorated_adjustment_in_cents,
charge_in_cents,
payment_due_in_cents,
- credit_applied_in_cents)
+ credit_applied_in_cents,
+ dictionary)
diff --git a/advancedbilling/models/subscription_migration_preview_options.py b/advancedbilling/models/subscription_migration_preview_options.py
index 7d358ff..1753b34 100644
--- a/advancedbilling/models/subscription_migration_preview_options.py
+++ b/advancedbilling/models/subscription_migration_preview_options.py
@@ -91,7 +91,8 @@ def __init__(self,
product_handle=APIHelper.SKIP,
product_price_point_handle=APIHelper.SKIP,
proration=APIHelper.SKIP,
- proration_date=APIHelper.SKIP):
+ proration_date=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the SubscriptionMigrationPreviewOptions class"""
# Initialize members of the class
@@ -112,6 +113,9 @@ def __init__(self,
if proration_date is not APIHelper.SKIP:
self.proration_date = APIHelper.apply_datetime_converter(proration_date, APIHelper.RFC3339DateTime) if proration_date else None
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -141,6 +145,10 @@ def from_dictionary(cls,
product_price_point_handle = dictionary.get("product_price_point_handle") if dictionary.get("product_price_point_handle") else APIHelper.SKIP
proration = Proration.from_dictionary(dictionary.get('proration')) if 'proration' in dictionary.keys() else APIHelper.SKIP
proration_date = APIHelper.RFC3339DateTime.from_value(dictionary.get("proration_date")).datetime if dictionary.get("proration_date") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(product_id,
product_price_point_id,
@@ -151,4 +159,5 @@ def from_dictionary(cls,
product_handle,
product_price_point_handle,
proration,
- proration_date)
+ proration_date,
+ dictionary)
diff --git a/advancedbilling/models/subscription_migration_preview_request.py b/advancedbilling/models/subscription_migration_preview_request.py
index 0010f4c..5c188e0 100644
--- a/advancedbilling/models/subscription_migration_preview_request.py
+++ b/advancedbilling/models/subscription_migration_preview_request.py
@@ -27,12 +27,16 @@ class SubscriptionMigrationPreviewRequest(object):
}
def __init__(self,
- migration=None):
+ migration=None,
+ additional_properties={}):
"""Constructor for the SubscriptionMigrationPreviewRequest class"""
# Initialize members of the class
self.migration = migration
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -53,5 +57,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
migration = SubscriptionMigrationPreviewOptions.from_dictionary(dictionary.get('migration')) if dictionary.get('migration') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(migration)
+ return cls(migration,
+ dictionary)
diff --git a/advancedbilling/models/subscription_migration_preview_response.py b/advancedbilling/models/subscription_migration_preview_response.py
index 5028a25..6b3fb49 100644
--- a/advancedbilling/models/subscription_migration_preview_response.py
+++ b/advancedbilling/models/subscription_migration_preview_response.py
@@ -27,12 +27,16 @@ class SubscriptionMigrationPreviewResponse(object):
}
def __init__(self,
- migration=None):
+ migration=None,
+ additional_properties={}):
"""Constructor for the SubscriptionMigrationPreviewResponse class"""
# Initialize members of the class
self.migration = migration
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -53,5 +57,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
migration = SubscriptionMigrationPreview.from_dictionary(dictionary.get('migration')) if dictionary.get('migration') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(migration)
+ return cls(migration,
+ dictionary)
diff --git a/advancedbilling/models/subscription_mrr.py b/advancedbilling/models/subscription_mrr.py
index b2b4866..20f9281 100644
--- a/advancedbilling/models/subscription_mrr.py
+++ b/advancedbilling/models/subscription_mrr.py
@@ -37,7 +37,8 @@ class SubscriptionMRR(object):
def __init__(self,
subscription_id=None,
mrr_amount_in_cents=None,
- breakouts=APIHelper.SKIP):
+ breakouts=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the SubscriptionMRR class"""
# Initialize members of the class
@@ -46,6 +47,9 @@ def __init__(self,
if breakouts is not APIHelper.SKIP:
self.breakouts = breakouts
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -68,7 +72,12 @@ def from_dictionary(cls,
subscription_id = dictionary.get("subscription_id") if dictionary.get("subscription_id") else None
mrr_amount_in_cents = dictionary.get("mrr_amount_in_cents") if dictionary.get("mrr_amount_in_cents") else None
breakouts = SubscriptionMRRBreakout.from_dictionary(dictionary.get('breakouts')) if 'breakouts' in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(subscription_id,
mrr_amount_in_cents,
- breakouts)
+ breakouts,
+ dictionary)
diff --git a/advancedbilling/models/subscription_mrr_breakout.py b/advancedbilling/models/subscription_mrr_breakout.py
index 9e0fb42..8279784 100644
--- a/advancedbilling/models/subscription_mrr_breakout.py
+++ b/advancedbilling/models/subscription_mrr_breakout.py
@@ -28,13 +28,17 @@ class SubscriptionMRRBreakout(object):
def __init__(self,
plan_amount_in_cents=None,
- usage_amount_in_cents=None):
+ usage_amount_in_cents=None,
+ additional_properties={}):
"""Constructor for the SubscriptionMRRBreakout class"""
# Initialize members of the class
self.plan_amount_in_cents = plan_amount_in_cents
self.usage_amount_in_cents = usage_amount_in_cents
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -56,6 +60,11 @@ def from_dictionary(cls,
# Extract variables from the dictionary
plan_amount_in_cents = dictionary.get("plan_amount_in_cents") if dictionary.get("plan_amount_in_cents") else None
usage_amount_in_cents = dictionary.get("usage_amount_in_cents") if dictionary.get("usage_amount_in_cents") else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(plan_amount_in_cents,
- usage_amount_in_cents)
+ usage_amount_in_cents,
+ dictionary)
diff --git a/advancedbilling/models/subscription_mrr_response.py b/advancedbilling/models/subscription_mrr_response.py
index 6af805f..8eff417 100644
--- a/advancedbilling/models/subscription_mrr_response.py
+++ b/advancedbilling/models/subscription_mrr_response.py
@@ -27,12 +27,16 @@ class SubscriptionMRRResponse(object):
}
def __init__(self,
- subscriptions_mrr=None):
+ subscriptions_mrr=None,
+ additional_properties={}):
"""Constructor for the SubscriptionMRRResponse class"""
# Initialize members of the class
self.subscriptions_mrr = subscriptions_mrr
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -55,5 +59,10 @@ def from_dictionary(cls,
subscriptions_mrr = None
if dictionary.get('subscriptions_mrr') is not None:
subscriptions_mrr = [SubscriptionMRR.from_dictionary(x) for x in dictionary.get('subscriptions_mrr')]
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(subscriptions_mrr)
+ return cls(subscriptions_mrr,
+ dictionary)
diff --git a/advancedbilling/models/subscription_note.py b/advancedbilling/models/subscription_note.py
index 62465c7..671f0cd 100644
--- a/advancedbilling/models/subscription_note.py
+++ b/advancedbilling/models/subscription_note.py
@@ -50,7 +50,8 @@ def __init__(self,
subscription_id=APIHelper.SKIP,
created_at=APIHelper.SKIP,
updated_at=APIHelper.SKIP,
- sticky=APIHelper.SKIP):
+ sticky=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the SubscriptionNote class"""
# Initialize members of the class
@@ -67,6 +68,9 @@ def __init__(self,
if sticky is not APIHelper.SKIP:
self.sticky = sticky
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -92,10 +96,15 @@ def from_dictionary(cls,
created_at = APIHelper.RFC3339DateTime.from_value(dictionary.get("created_at")).datetime if dictionary.get("created_at") else APIHelper.SKIP
updated_at = APIHelper.RFC3339DateTime.from_value(dictionary.get("updated_at")).datetime if dictionary.get("updated_at") else APIHelper.SKIP
sticky = dictionary.get("sticky") if "sticky" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(id,
body,
subscription_id,
created_at,
updated_at,
- sticky)
+ sticky,
+ dictionary)
diff --git a/advancedbilling/models/subscription_note_response.py b/advancedbilling/models/subscription_note_response.py
index 5f368e2..72d4ce5 100644
--- a/advancedbilling/models/subscription_note_response.py
+++ b/advancedbilling/models/subscription_note_response.py
@@ -26,12 +26,16 @@ class SubscriptionNoteResponse(object):
}
def __init__(self,
- note=None):
+ note=None,
+ additional_properties={}):
"""Constructor for the SubscriptionNoteResponse class"""
# Initialize members of the class
self.note = note
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
note = SubscriptionNote.from_dictionary(dictionary.get('note')) if dictionary.get('note') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(note)
+ return cls(note,
+ dictionary)
diff --git a/advancedbilling/models/subscription_preview.py b/advancedbilling/models/subscription_preview.py
index 3b95c46..89fec5b 100644
--- a/advancedbilling/models/subscription_preview.py
+++ b/advancedbilling/models/subscription_preview.py
@@ -36,7 +36,8 @@ class SubscriptionPreview(object):
def __init__(self,
current_billing_manifest=APIHelper.SKIP,
- next_billing_manifest=APIHelper.SKIP):
+ next_billing_manifest=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the SubscriptionPreview class"""
# Initialize members of the class
@@ -45,6 +46,9 @@ def __init__(self,
if next_billing_manifest is not APIHelper.SKIP:
self.next_billing_manifest = next_billing_manifest
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -66,6 +70,11 @@ def from_dictionary(cls,
# Extract variables from the dictionary
current_billing_manifest = BillingManifest.from_dictionary(dictionary.get('current_billing_manifest')) if 'current_billing_manifest' in dictionary.keys() else APIHelper.SKIP
next_billing_manifest = BillingManifest.from_dictionary(dictionary.get('next_billing_manifest')) if 'next_billing_manifest' in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(current_billing_manifest,
- next_billing_manifest)
+ next_billing_manifest,
+ dictionary)
diff --git a/advancedbilling/models/subscription_preview_response.py b/advancedbilling/models/subscription_preview_response.py
index 07e9aad..992489b 100644
--- a/advancedbilling/models/subscription_preview_response.py
+++ b/advancedbilling/models/subscription_preview_response.py
@@ -27,12 +27,16 @@ class SubscriptionPreviewResponse(object):
}
def __init__(self,
- subscription_preview=None):
+ subscription_preview=None,
+ additional_properties={}):
"""Constructor for the SubscriptionPreviewResponse class"""
# Initialize members of the class
self.subscription_preview = subscription_preview
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -53,5 +57,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
subscription_preview = SubscriptionPreview.from_dictionary(dictionary.get('subscription_preview')) if dictionary.get('subscription_preview') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(subscription_preview)
+ return cls(subscription_preview,
+ dictionary)
diff --git a/advancedbilling/models/subscription_product_change.py b/advancedbilling/models/subscription_product_change.py
index 93300a6..d2b2b11 100644
--- a/advancedbilling/models/subscription_product_change.py
+++ b/advancedbilling/models/subscription_product_change.py
@@ -29,13 +29,17 @@ class SubscriptionProductChange(object):
def __init__(self,
previous_product_id=None,
- new_product_id=None):
+ new_product_id=None,
+ additional_properties={}):
"""Constructor for the SubscriptionProductChange class"""
# Initialize members of the class
self.previous_product_id = previous_product_id
self.new_product_id = new_product_id
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -57,9 +61,14 @@ def from_dictionary(cls,
# Extract variables from the dictionary
previous_product_id = dictionary.get("previous_product_id") if dictionary.get("previous_product_id") else None
new_product_id = dictionary.get("new_product_id") if dictionary.get("new_product_id") else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(previous_product_id,
- new_product_id)
+ new_product_id,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/subscription_product_migration.py b/advancedbilling/models/subscription_product_migration.py
index e0a805b..2c827be 100644
--- a/advancedbilling/models/subscription_product_migration.py
+++ b/advancedbilling/models/subscription_product_migration.py
@@ -86,7 +86,8 @@ def __init__(self,
preserve_period=False,
product_handle=APIHelper.SKIP,
product_price_point_handle=APIHelper.SKIP,
- proration=APIHelper.SKIP):
+ proration=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the SubscriptionProductMigration class"""
# Initialize members of the class
@@ -105,6 +106,9 @@ def __init__(self,
if proration is not APIHelper.SKIP:
self.proration = proration
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -133,6 +137,10 @@ def from_dictionary(cls,
product_handle = dictionary.get("product_handle") if dictionary.get("product_handle") else APIHelper.SKIP
product_price_point_handle = dictionary.get("product_price_point_handle") if dictionary.get("product_price_point_handle") else APIHelper.SKIP
proration = Proration.from_dictionary(dictionary.get('proration')) if 'proration' in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(product_id,
product_price_point_id,
@@ -142,4 +150,5 @@ def from_dictionary(cls,
preserve_period,
product_handle,
product_price_point_handle,
- proration)
+ proration,
+ dictionary)
diff --git a/advancedbilling/models/subscription_product_migration_request.py b/advancedbilling/models/subscription_product_migration_request.py
index cd6611a..670670c 100644
--- a/advancedbilling/models/subscription_product_migration_request.py
+++ b/advancedbilling/models/subscription_product_migration_request.py
@@ -27,12 +27,16 @@ class SubscriptionProductMigrationRequest(object):
}
def __init__(self,
- migration=None):
+ migration=None,
+ additional_properties={}):
"""Constructor for the SubscriptionProductMigrationRequest class"""
# Initialize members of the class
self.migration = migration
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -53,5 +57,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
migration = SubscriptionProductMigration.from_dictionary(dictionary.get('migration')) if dictionary.get('migration') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(migration)
+ return cls(migration,
+ dictionary)
diff --git a/advancedbilling/models/subscription_response.py b/advancedbilling/models/subscription_response.py
index ba43dac..dd9501d 100644
--- a/advancedbilling/models/subscription_response.py
+++ b/advancedbilling/models/subscription_response.py
@@ -31,13 +31,17 @@ class SubscriptionResponse(object):
]
def __init__(self,
- subscription=APIHelper.SKIP):
+ subscription=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the SubscriptionResponse class"""
# Initialize members of the class
if subscription is not APIHelper.SKIP:
self.subscription = subscription
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -58,5 +62,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
subscription = Subscription.from_dictionary(dictionary.get('subscription')) if 'subscription' in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(subscription)
+ return cls(subscription,
+ dictionary)
diff --git a/advancedbilling/models/subscription_state_change.py b/advancedbilling/models/subscription_state_change.py
index 6da59da..37a1f11 100644
--- a/advancedbilling/models/subscription_state_change.py
+++ b/advancedbilling/models/subscription_state_change.py
@@ -29,13 +29,17 @@ class SubscriptionStateChange(object):
def __init__(self,
previous_subscription_state=None,
- new_subscription_state=None):
+ new_subscription_state=None,
+ additional_properties={}):
"""Constructor for the SubscriptionStateChange class"""
# Initialize members of the class
self.previous_subscription_state = previous_subscription_state
self.new_subscription_state = new_subscription_state
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -57,9 +61,14 @@ def from_dictionary(cls,
# Extract variables from the dictionary
previous_subscription_state = dictionary.get("previous_subscription_state") if dictionary.get("previous_subscription_state") else None
new_subscription_state = dictionary.get("new_subscription_state") if dictionary.get("new_subscription_state") else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(previous_subscription_state,
- new_subscription_state)
+ new_subscription_state,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/tax_configuration.py b/advancedbilling/models/tax_configuration.py
index 8874941..28e8e4d 100644
--- a/advancedbilling/models/tax_configuration.py
+++ b/advancedbilling/models/tax_configuration.py
@@ -43,7 +43,8 @@ class TaxConfiguration(object):
def __init__(self,
kind='custom',
destination_address=APIHelper.SKIP,
- fully_configured=False):
+ fully_configured=False,
+ additional_properties={}):
"""Constructor for the TaxConfiguration class"""
# Initialize members of the class
@@ -52,6 +53,9 @@ def __init__(self,
self.destination_address = destination_address
self.fully_configured = fully_configured
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -74,7 +78,12 @@ def from_dictionary(cls,
kind = dictionary.get("kind") if dictionary.get("kind") else 'custom'
destination_address = dictionary.get("destination_address") if dictionary.get("destination_address") else APIHelper.SKIP
fully_configured = dictionary.get("fully_configured") if dictionary.get("fully_configured") else False
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(kind,
destination_address,
- fully_configured)
+ fully_configured,
+ dictionary)
diff --git a/advancedbilling/models/too_many_management_link_requests.py b/advancedbilling/models/too_many_management_link_requests.py
index 76b4b3b..c4ed13d 100644
--- a/advancedbilling/models/too_many_management_link_requests.py
+++ b/advancedbilling/models/too_many_management_link_requests.py
@@ -29,13 +29,17 @@ class TooManyManagementLinkRequests(object):
def __init__(self,
error=None,
- new_link_available_at=None):
+ new_link_available_at=None,
+ additional_properties={}):
"""Constructor for the TooManyManagementLinkRequests class"""
# Initialize members of the class
self.error = error
self.new_link_available_at = APIHelper.apply_datetime_converter(new_link_available_at, APIHelper.RFC3339DateTime) if new_link_available_at else None
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -57,6 +61,11 @@ def from_dictionary(cls,
# Extract variables from the dictionary
error = dictionary.get("error") if dictionary.get("error") else None
new_link_available_at = APIHelper.RFC3339DateTime.from_value(dictionary.get("new_link_available_at")).datetime if dictionary.get("new_link_available_at") else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(error,
- new_link_available_at)
+ new_link_available_at,
+ dictionary)
diff --git a/advancedbilling/models/update_allocation_expiration_date.py b/advancedbilling/models/update_allocation_expiration_date.py
index 494e65a..9616af3 100644
--- a/advancedbilling/models/update_allocation_expiration_date.py
+++ b/advancedbilling/models/update_allocation_expiration_date.py
@@ -31,13 +31,17 @@ class UpdateAllocationExpirationDate(object):
]
def __init__(self,
- allocation=APIHelper.SKIP):
+ allocation=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the UpdateAllocationExpirationDate class"""
# Initialize members of the class
if allocation is not APIHelper.SKIP:
self.allocation = allocation
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -58,5 +62,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
allocation = AllocationExpirationDate.from_dictionary(dictionary.get('allocation')) if 'allocation' in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(allocation)
+ return cls(allocation,
+ dictionary)
diff --git a/advancedbilling/models/update_component.py b/advancedbilling/models/update_component.py
index 9f85672..0effba3 100644
--- a/advancedbilling/models/update_component.py
+++ b/advancedbilling/models/update_component.py
@@ -79,7 +79,8 @@ def __init__(self,
tax_code=APIHelper.SKIP,
item_category=APIHelper.SKIP,
display_on_hosted_page=APIHelper.SKIP,
- upgrade_charge=APIHelper.SKIP):
+ upgrade_charge=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the UpdateComponent class"""
# Initialize members of the class
@@ -102,6 +103,9 @@ def __init__(self,
if upgrade_charge is not APIHelper.SKIP:
self.upgrade_charge = upgrade_charge
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -130,6 +134,10 @@ def from_dictionary(cls,
item_category = dictionary.get("item_category") if "item_category" in dictionary.keys() else APIHelper.SKIP
display_on_hosted_page = dictionary.get("display_on_hosted_page") if "display_on_hosted_page" in dictionary.keys() else APIHelper.SKIP
upgrade_charge = dictionary.get("upgrade_charge") if "upgrade_charge" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(handle,
name,
@@ -139,4 +147,5 @@ def from_dictionary(cls,
tax_code,
item_category,
display_on_hosted_page,
- upgrade_charge)
+ upgrade_charge,
+ dictionary)
diff --git a/advancedbilling/models/update_component_price_point.py b/advancedbilling/models/update_component_price_point.py
index 0541a4b..765a45b 100644
--- a/advancedbilling/models/update_component_price_point.py
+++ b/advancedbilling/models/update_component_price_point.py
@@ -69,7 +69,8 @@ def __init__(self,
tax_included=APIHelper.SKIP,
interval=APIHelper.SKIP,
interval_unit=APIHelper.SKIP,
- prices=APIHelper.SKIP):
+ prices=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the UpdateComponentPricePoint class"""
# Initialize members of the class
@@ -90,6 +91,9 @@ def __init__(self,
if prices is not APIHelper.SKIP:
self.prices = prices
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -121,6 +125,10 @@ def from_dictionary(cls,
prices = [UpdatePrice.from_dictionary(x) for x in dictionary.get('prices')]
else:
prices = APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(name,
handle,
@@ -129,4 +137,5 @@ def from_dictionary(cls,
tax_included,
interval,
interval_unit,
- prices)
+ prices,
+ dictionary)
diff --git a/advancedbilling/models/update_component_price_point_request.py b/advancedbilling/models/update_component_price_point_request.py
index f486264..1d1d9a2 100644
--- a/advancedbilling/models/update_component_price_point_request.py
+++ b/advancedbilling/models/update_component_price_point_request.py
@@ -31,13 +31,17 @@ class UpdateComponentPricePointRequest(object):
]
def __init__(self,
- price_point=APIHelper.SKIP):
+ price_point=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the UpdateComponentPricePointRequest class"""
# Initialize members of the class
if price_point is not APIHelper.SKIP:
self.price_point = price_point
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -58,5 +62,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
price_point = UpdateComponentPricePoint.from_dictionary(dictionary.get('price_point')) if 'price_point' in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(price_point)
+ return cls(price_point,
+ dictionary)
diff --git a/advancedbilling/models/update_component_request.py b/advancedbilling/models/update_component_request.py
index 65bdfc3..0a8d2a4 100644
--- a/advancedbilling/models/update_component_request.py
+++ b/advancedbilling/models/update_component_request.py
@@ -26,12 +26,16 @@ class UpdateComponentRequest(object):
}
def __init__(self,
- component=None):
+ component=None,
+ additional_properties={}):
"""Constructor for the UpdateComponentRequest class"""
# Initialize members of the class
self.component = component
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
component = UpdateComponent.from_dictionary(dictionary.get('component')) if dictionary.get('component') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(component)
+ return cls(component,
+ dictionary)
diff --git a/advancedbilling/models/update_coupon_currency.py b/advancedbilling/models/update_coupon_currency.py
index 62ec223..6bc81eb 100644
--- a/advancedbilling/models/update_coupon_currency.py
+++ b/advancedbilling/models/update_coupon_currency.py
@@ -28,13 +28,17 @@ class UpdateCouponCurrency(object):
def __init__(self,
currency=None,
- price=None):
+ price=None,
+ additional_properties={}):
"""Constructor for the UpdateCouponCurrency class"""
# Initialize members of the class
self.currency = currency
self.price = price
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -56,6 +60,11 @@ def from_dictionary(cls,
# Extract variables from the dictionary
currency = dictionary.get("currency") if dictionary.get("currency") else None
price = dictionary.get("price") if dictionary.get("price") else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(currency,
- price)
+ price,
+ dictionary)
diff --git a/advancedbilling/models/update_currency_price.py b/advancedbilling/models/update_currency_price.py
index 2851293..1e4581e 100644
--- a/advancedbilling/models/update_currency_price.py
+++ b/advancedbilling/models/update_currency_price.py
@@ -28,13 +28,17 @@ class UpdateCurrencyPrice(object):
def __init__(self,
id=None,
- price=None):
+ price=None,
+ additional_properties={}):
"""Constructor for the UpdateCurrencyPrice class"""
# Initialize members of the class
self.id = id
self.price = price
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -56,6 +60,11 @@ def from_dictionary(cls,
# Extract variables from the dictionary
id = dictionary.get("id") if dictionary.get("id") else None
price = dictionary.get("price") if dictionary.get("price") else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(id,
- price)
+ price,
+ dictionary)
diff --git a/advancedbilling/models/update_currency_prices_request.py b/advancedbilling/models/update_currency_prices_request.py
index 8a7118e..39e8556 100644
--- a/advancedbilling/models/update_currency_prices_request.py
+++ b/advancedbilling/models/update_currency_prices_request.py
@@ -27,12 +27,16 @@ class UpdateCurrencyPricesRequest(object):
}
def __init__(self,
- currency_prices=None):
+ currency_prices=None,
+ additional_properties={}):
"""Constructor for the UpdateCurrencyPricesRequest class"""
# Initialize members of the class
self.currency_prices = currency_prices
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -55,5 +59,10 @@ def from_dictionary(cls,
currency_prices = None
if dictionary.get('currency_prices') is not None:
currency_prices = [UpdateCurrencyPrice.from_dictionary(x) for x in dictionary.get('currency_prices')]
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(currency_prices)
+ return cls(currency_prices,
+ dictionary)
diff --git a/advancedbilling/models/update_customer.py b/advancedbilling/models/update_customer.py
index dc4cc2c..e1ac99b 100644
--- a/advancedbilling/models/update_customer.py
+++ b/advancedbilling/models/update_customer.py
@@ -102,7 +102,8 @@ def __init__(self,
vat_number=APIHelper.SKIP,
tax_exempt=APIHelper.SKIP,
tax_exempt_reason=APIHelper.SKIP,
- parent_id=APIHelper.SKIP):
+ parent_id=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the UpdateCustomer class"""
# Initialize members of the class
@@ -143,6 +144,9 @@ def __init__(self,
if parent_id is not APIHelper.SKIP:
self.parent_id = parent_id
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -180,6 +184,10 @@ def from_dictionary(cls,
tax_exempt = dictionary.get("tax_exempt") if "tax_exempt" in dictionary.keys() else APIHelper.SKIP
tax_exempt_reason = dictionary.get("tax_exempt_reason") if dictionary.get("tax_exempt_reason") else APIHelper.SKIP
parent_id = dictionary.get("parent_id") if "parent_id" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(first_name,
last_name,
@@ -198,4 +206,5 @@ def from_dictionary(cls,
vat_number,
tax_exempt,
tax_exempt_reason,
- parent_id)
+ parent_id,
+ dictionary)
diff --git a/advancedbilling/models/update_customer_request.py b/advancedbilling/models/update_customer_request.py
index 822bbca..4d7e49a 100644
--- a/advancedbilling/models/update_customer_request.py
+++ b/advancedbilling/models/update_customer_request.py
@@ -26,12 +26,16 @@ class UpdateCustomerRequest(object):
}
def __init__(self,
- customer=None):
+ customer=None,
+ additional_properties={}):
"""Constructor for the UpdateCustomerRequest class"""
# Initialize members of the class
self.customer = customer
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
customer = UpdateCustomer.from_dictionary(dictionary.get('customer')) if dictionary.get('customer') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(customer)
+ return cls(customer,
+ dictionary)
diff --git a/advancedbilling/models/update_metadata.py b/advancedbilling/models/update_metadata.py
index 9a6dec9..5c6b237 100644
--- a/advancedbilling/models/update_metadata.py
+++ b/advancedbilling/models/update_metadata.py
@@ -38,7 +38,8 @@ class UpdateMetadata(object):
def __init__(self,
current_name=APIHelper.SKIP,
name=APIHelper.SKIP,
- value=APIHelper.SKIP):
+ value=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the UpdateMetadata class"""
# Initialize members of the class
@@ -49,6 +50,9 @@ def __init__(self,
if value is not APIHelper.SKIP:
self.value = value
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -71,7 +75,12 @@ def from_dictionary(cls,
current_name = dictionary.get("current_name") if dictionary.get("current_name") else APIHelper.SKIP
name = dictionary.get("name") if dictionary.get("name") else APIHelper.SKIP
value = dictionary.get("value") if dictionary.get("value") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(current_name,
name,
- value)
+ value,
+ dictionary)
diff --git a/advancedbilling/models/update_metadata_request.py b/advancedbilling/models/update_metadata_request.py
index c43811c..fcfbd13 100644
--- a/advancedbilling/models/update_metadata_request.py
+++ b/advancedbilling/models/update_metadata_request.py
@@ -31,13 +31,17 @@ class UpdateMetadataRequest(object):
]
def __init__(self,
- metadata=APIHelper.SKIP):
+ metadata=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the UpdateMetadataRequest class"""
# Initialize members of the class
if metadata is not APIHelper.SKIP:
self.metadata = metadata
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -58,5 +62,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
metadata = UpdateMetadata.from_dictionary(dictionary.get('metadata')) if 'metadata' in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(metadata)
+ return cls(metadata,
+ dictionary)
diff --git a/advancedbilling/models/update_metafield.py b/advancedbilling/models/update_metafield.py
index fdbcd8b..1cea1cb 100644
--- a/advancedbilling/models/update_metafield.py
+++ b/advancedbilling/models/update_metafield.py
@@ -55,7 +55,8 @@ def __init__(self,
name=APIHelper.SKIP,
scope=APIHelper.SKIP,
input_type=APIHelper.SKIP,
- enum=APIHelper.SKIP):
+ enum=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the UpdateMetafield class"""
# Initialize members of the class
@@ -70,6 +71,9 @@ def __init__(self,
if enum is not APIHelper.SKIP:
self.enum = enum
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -94,12 +98,17 @@ def from_dictionary(cls,
scope = MetafieldScope.from_dictionary(dictionary.get('scope')) if 'scope' in dictionary.keys() else APIHelper.SKIP
input_type = dictionary.get("input_type") if dictionary.get("input_type") else APIHelper.SKIP
enum = dictionary.get("enum") if dictionary.get("enum") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(current_name,
name,
scope,
input_type,
- enum)
+ enum,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/update_metafields_request.py b/advancedbilling/models/update_metafields_request.py
index c10c724..81a2b5c 100644
--- a/advancedbilling/models/update_metafields_request.py
+++ b/advancedbilling/models/update_metafields_request.py
@@ -31,13 +31,17 @@ class UpdateMetafieldsRequest(object):
]
def __init__(self,
- metafields=APIHelper.SKIP):
+ metafields=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the UpdateMetafieldsRequest class"""
# Initialize members of the class
if metafields is not APIHelper.SKIP:
self.metafields = metafields
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -59,5 +63,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
metafields = APIHelper.deserialize_union_type(UnionTypeLookUp.get('UpdateMetafieldsRequestMetafields'), dictionary.get('metafields'), False) if dictionary.get('metafields') is not None else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(metafields)
+ return cls(metafields,
+ dictionary)
diff --git a/advancedbilling/models/update_payment_profile.py b/advancedbilling/models/update_payment_profile.py
index 1694ba3..f149976 100644
--- a/advancedbilling/models/update_payment_profile.py
+++ b/advancedbilling/models/update_payment_profile.py
@@ -104,7 +104,8 @@ def __init__(self,
billing_state=APIHelper.SKIP,
billing_zip=APIHelper.SKIP,
billing_country=APIHelper.SKIP,
- billing_address_2=APIHelper.SKIP):
+ billing_address_2=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the UpdatePaymentProfile class"""
# Initialize members of the class
@@ -135,6 +136,9 @@ def __init__(self,
if billing_address_2 is not APIHelper.SKIP:
self.billing_address_2 = billing_address_2
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -167,6 +171,10 @@ def from_dictionary(cls,
billing_zip = dictionary.get("billing_zip") if dictionary.get("billing_zip") else APIHelper.SKIP
billing_country = dictionary.get("billing_country") if dictionary.get("billing_country") else APIHelper.SKIP
billing_address_2 = dictionary.get("billing_address_2") if "billing_address_2" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(first_name,
last_name,
@@ -180,4 +188,5 @@ def from_dictionary(cls,
billing_state,
billing_zip,
billing_country,
- billing_address_2)
+ billing_address_2,
+ dictionary)
diff --git a/advancedbilling/models/update_payment_profile_request.py b/advancedbilling/models/update_payment_profile_request.py
index 6bb45f8..3f63c85 100644
--- a/advancedbilling/models/update_payment_profile_request.py
+++ b/advancedbilling/models/update_payment_profile_request.py
@@ -26,12 +26,16 @@ class UpdatePaymentProfileRequest(object):
}
def __init__(self,
- payment_profile=None):
+ payment_profile=None,
+ additional_properties={}):
"""Constructor for the UpdatePaymentProfileRequest class"""
# Initialize members of the class
self.payment_profile = payment_profile
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
payment_profile = UpdatePaymentProfile.from_dictionary(dictionary.get('payment_profile')) if dictionary.get('payment_profile') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(payment_profile)
+ return cls(payment_profile,
+ dictionary)
diff --git a/advancedbilling/models/update_price.py b/advancedbilling/models/update_price.py
index 78f5ae3..3b2dfd8 100644
--- a/advancedbilling/models/update_price.py
+++ b/advancedbilling/models/update_price.py
@@ -47,7 +47,8 @@ def __init__(self,
ending_quantity=APIHelper.SKIP,
unit_price=APIHelper.SKIP,
destroy=APIHelper.SKIP,
- starting_quantity=APIHelper.SKIP):
+ starting_quantity=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the UpdatePrice class"""
# Initialize members of the class
@@ -62,6 +63,9 @@ def __init__(self,
if starting_quantity is not APIHelper.SKIP:
self.starting_quantity = starting_quantity
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -87,9 +91,14 @@ def from_dictionary(cls,
unit_price = APIHelper.deserialize_union_type(UnionTypeLookUp.get('UpdatePriceUnitPrice'), dictionary.get('unit_price'), False) if dictionary.get('unit_price') is not None else APIHelper.SKIP
destroy = dictionary.get("_destroy") if "_destroy" in dictionary.keys() else APIHelper.SKIP
starting_quantity = APIHelper.deserialize_union_type(UnionTypeLookUp.get('UpdatePriceStartingQuantity'), dictionary.get('starting_quantity'), False) if dictionary.get('starting_quantity') is not None else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(id,
ending_quantity,
unit_price,
destroy,
- starting_quantity)
+ starting_quantity,
+ dictionary)
diff --git a/advancedbilling/models/update_product_price_point.py b/advancedbilling/models/update_product_price_point.py
index d6f76b5..5100959 100644
--- a/advancedbilling/models/update_product_price_point.py
+++ b/advancedbilling/models/update_product_price_point.py
@@ -34,7 +34,8 @@ class UpdateProductPricePoint(object):
def __init__(self,
handle=APIHelper.SKIP,
- price_in_cents=APIHelper.SKIP):
+ price_in_cents=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the UpdateProductPricePoint class"""
# Initialize members of the class
@@ -43,6 +44,9 @@ def __init__(self,
if price_in_cents is not APIHelper.SKIP:
self.price_in_cents = price_in_cents
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -64,6 +68,11 @@ def from_dictionary(cls,
# Extract variables from the dictionary
handle = dictionary.get("handle") if dictionary.get("handle") else APIHelper.SKIP
price_in_cents = dictionary.get("price_in_cents") if dictionary.get("price_in_cents") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(handle,
- price_in_cents)
+ price_in_cents,
+ dictionary)
diff --git a/advancedbilling/models/update_product_price_point_request.py b/advancedbilling/models/update_product_price_point_request.py
index 5e25fc5..f684d24 100644
--- a/advancedbilling/models/update_product_price_point_request.py
+++ b/advancedbilling/models/update_product_price_point_request.py
@@ -26,12 +26,16 @@ class UpdateProductPricePointRequest(object):
}
def __init__(self,
- price_point=None):
+ price_point=None,
+ additional_properties={}):
"""Constructor for the UpdateProductPricePointRequest class"""
# Initialize members of the class
self.price_point = price_point
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
price_point = UpdateProductPricePoint.from_dictionary(dictionary.get('price_point')) if dictionary.get('price_point') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(price_point)
+ return cls(price_point,
+ dictionary)
diff --git a/advancedbilling/models/update_reason_code.py b/advancedbilling/models/update_reason_code.py
index a8f8a55..bb8810e 100644
--- a/advancedbilling/models/update_reason_code.py
+++ b/advancedbilling/models/update_reason_code.py
@@ -38,7 +38,8 @@ class UpdateReasonCode(object):
def __init__(self,
code=APIHelper.SKIP,
description=APIHelper.SKIP,
- position=APIHelper.SKIP):
+ position=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the UpdateReasonCode class"""
# Initialize members of the class
@@ -49,6 +50,9 @@ def __init__(self,
if position is not APIHelper.SKIP:
self.position = position
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -71,7 +75,12 @@ def from_dictionary(cls,
code = dictionary.get("code") if dictionary.get("code") else APIHelper.SKIP
description = dictionary.get("description") if dictionary.get("description") else APIHelper.SKIP
position = dictionary.get("position") if dictionary.get("position") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(code,
description,
- position)
+ position,
+ dictionary)
diff --git a/advancedbilling/models/update_reason_code_request.py b/advancedbilling/models/update_reason_code_request.py
index da47e9d..39c62cc 100644
--- a/advancedbilling/models/update_reason_code_request.py
+++ b/advancedbilling/models/update_reason_code_request.py
@@ -26,12 +26,16 @@ class UpdateReasonCodeRequest(object):
}
def __init__(self,
- reason_code=None):
+ reason_code=None,
+ additional_properties={}):
"""Constructor for the UpdateReasonCodeRequest class"""
# Initialize members of the class
self.reason_code = reason_code
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
reason_code = UpdateReasonCode.from_dictionary(dictionary.get('reason_code')) if dictionary.get('reason_code') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(reason_code)
+ return cls(reason_code,
+ dictionary)
diff --git a/advancedbilling/models/update_segment.py b/advancedbilling/models/update_segment.py
index 3e11046..bdd7970 100644
--- a/advancedbilling/models/update_segment.py
+++ b/advancedbilling/models/update_segment.py
@@ -38,7 +38,8 @@ class UpdateSegment(object):
def __init__(self,
pricing_scheme=None,
- prices=APIHelper.SKIP):
+ prices=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the UpdateSegment class"""
# Initialize members of the class
@@ -46,6 +47,9 @@ def __init__(self,
if prices is not APIHelper.SKIP:
self.prices = prices
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -71,6 +75,11 @@ def from_dictionary(cls,
prices = [CreateOrUpdateSegmentPrice.from_dictionary(x) for x in dictionary.get('prices')]
else:
prices = APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(pricing_scheme,
- prices)
+ prices,
+ dictionary)
diff --git a/advancedbilling/models/update_segment_request.py b/advancedbilling/models/update_segment_request.py
index 20fc493..464c684 100644
--- a/advancedbilling/models/update_segment_request.py
+++ b/advancedbilling/models/update_segment_request.py
@@ -26,12 +26,16 @@ class UpdateSegmentRequest(object):
}
def __init__(self,
- segment=None):
+ segment=None,
+ additional_properties={}):
"""Constructor for the UpdateSegmentRequest class"""
# Initialize members of the class
self.segment = segment
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
segment = UpdateSegment.from_dictionary(dictionary.get('segment')) if dictionary.get('segment') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(segment)
+ return cls(segment,
+ dictionary)
diff --git a/advancedbilling/models/update_subscription.py b/advancedbilling/models/update_subscription.py
index f2f23d4..96cae80 100644
--- a/advancedbilling/models/update_subscription.py
+++ b/advancedbilling/models/update_subscription.py
@@ -114,7 +114,8 @@ def __init__(self,
custom_price=APIHelper.SKIP,
components=APIHelper.SKIP,
dunning_communication_delay_enabled=APIHelper.SKIP,
- dunning_communication_delay_time_zone=APIHelper.SKIP):
+ dunning_communication_delay_time_zone=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the UpdateSubscription class"""
# Initialize members of the class
@@ -153,6 +154,9 @@ def __init__(self,
if dunning_communication_delay_time_zone is not APIHelper.SKIP:
self.dunning_communication_delay_time_zone = dunning_communication_delay_time_zone
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -194,6 +198,10 @@ def from_dictionary(cls,
components = APIHelper.SKIP
dunning_communication_delay_enabled = dictionary.get("dunning_communication_delay_enabled") if "dunning_communication_delay_enabled" in dictionary.keys() else APIHelper.SKIP
dunning_communication_delay_time_zone = dictionary.get("dunning_communication_delay_time_zone") if "dunning_communication_delay_time_zone" in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(credit_card_attributes,
product_handle,
@@ -211,4 +219,5 @@ def from_dictionary(cls,
custom_price,
components,
dunning_communication_delay_enabled,
- dunning_communication_delay_time_zone)
+ dunning_communication_delay_time_zone,
+ dictionary)
diff --git a/advancedbilling/models/update_subscription_component.py b/advancedbilling/models/update_subscription_component.py
index f247fa9..1f4a4e3 100644
--- a/advancedbilling/models/update_subscription_component.py
+++ b/advancedbilling/models/update_subscription_component.py
@@ -36,7 +36,8 @@ class UpdateSubscriptionComponent(object):
def __init__(self,
component_id=APIHelper.SKIP,
- custom_price=APIHelper.SKIP):
+ custom_price=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the UpdateSubscriptionComponent class"""
# Initialize members of the class
@@ -45,6 +46,9 @@ def __init__(self,
if custom_price is not APIHelper.SKIP:
self.custom_price = custom_price
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -66,9 +70,14 @@ def from_dictionary(cls,
# Extract variables from the dictionary
component_id = dictionary.get("component_id") if dictionary.get("component_id") else APIHelper.SKIP
custom_price = ComponentCustomPrice.from_dictionary(dictionary.get('custom_price')) if 'custom_price' in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(component_id,
- custom_price)
+ custom_price,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/update_subscription_group.py b/advancedbilling/models/update_subscription_group.py
index 7342397..ae08e61 100644
--- a/advancedbilling/models/update_subscription_group.py
+++ b/advancedbilling/models/update_subscription_group.py
@@ -30,13 +30,17 @@ class UpdateSubscriptionGroup(object):
]
def __init__(self,
- member_ids=APIHelper.SKIP):
+ member_ids=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the UpdateSubscriptionGroup class"""
# Initialize members of the class
if member_ids is not APIHelper.SKIP:
self.member_ids = member_ids
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -57,5 +61,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
member_ids = dictionary.get("member_ids") if dictionary.get("member_ids") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(member_ids)
+ return cls(member_ids,
+ dictionary)
diff --git a/advancedbilling/models/update_subscription_group_request.py b/advancedbilling/models/update_subscription_group_request.py
index 726372d..e8bdc2d 100644
--- a/advancedbilling/models/update_subscription_group_request.py
+++ b/advancedbilling/models/update_subscription_group_request.py
@@ -27,12 +27,16 @@ class UpdateSubscriptionGroupRequest(object):
}
def __init__(self,
- subscription_group=None):
+ subscription_group=None,
+ additional_properties={}):
"""Constructor for the UpdateSubscriptionGroupRequest class"""
# Initialize members of the class
self.subscription_group = subscription_group
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -53,5 +57,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
subscription_group = UpdateSubscriptionGroup.from_dictionary(dictionary.get('subscription_group')) if dictionary.get('subscription_group') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(subscription_group)
+ return cls(subscription_group,
+ dictionary)
diff --git a/advancedbilling/models/update_subscription_note.py b/advancedbilling/models/update_subscription_note.py
index eeacb4b..9fabd5f 100644
--- a/advancedbilling/models/update_subscription_note.py
+++ b/advancedbilling/models/update_subscription_note.py
@@ -28,13 +28,17 @@ class UpdateSubscriptionNote(object):
def __init__(self,
body=None,
- sticky=None):
+ sticky=None,
+ additional_properties={}):
"""Constructor for the UpdateSubscriptionNote class"""
# Initialize members of the class
self.body = body
self.sticky = sticky
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -56,6 +60,11 @@ def from_dictionary(cls,
# Extract variables from the dictionary
body = dictionary.get("body") if dictionary.get("body") else None
sticky = dictionary.get("sticky") if "sticky" in dictionary.keys() else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(body,
- sticky)
+ sticky,
+ dictionary)
diff --git a/advancedbilling/models/update_subscription_note_request.py b/advancedbilling/models/update_subscription_note_request.py
index 2819276..6873cad 100644
--- a/advancedbilling/models/update_subscription_note_request.py
+++ b/advancedbilling/models/update_subscription_note_request.py
@@ -26,12 +26,16 @@ class UpdateSubscriptionNoteRequest(object):
}
def __init__(self,
- note=None):
+ note=None,
+ additional_properties={}):
"""Constructor for the UpdateSubscriptionNoteRequest class"""
# Initialize members of the class
self.note = note
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
note = UpdateSubscriptionNote.from_dictionary(dictionary.get('note')) if dictionary.get('note') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(note)
+ return cls(note,
+ dictionary)
diff --git a/advancedbilling/models/update_subscription_request.py b/advancedbilling/models/update_subscription_request.py
index 864cca7..cedd3a2 100644
--- a/advancedbilling/models/update_subscription_request.py
+++ b/advancedbilling/models/update_subscription_request.py
@@ -26,12 +26,16 @@ class UpdateSubscriptionRequest(object):
}
def __init__(self,
- subscription=None):
+ subscription=None,
+ additional_properties={}):
"""Constructor for the UpdateSubscriptionRequest class"""
# Initialize members of the class
self.subscription = subscription
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
subscription = UpdateSubscription.from_dictionary(dictionary.get('subscription')) if dictionary.get('subscription') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(subscription)
+ return cls(subscription,
+ dictionary)
diff --git a/advancedbilling/models/upsert_prepaid_configuration.py b/advancedbilling/models/upsert_prepaid_configuration.py
index 1e22118..4ebf892 100644
--- a/advancedbilling/models/upsert_prepaid_configuration.py
+++ b/advancedbilling/models/upsert_prepaid_configuration.py
@@ -44,7 +44,8 @@ def __init__(self,
initial_funding_amount_in_cents=APIHelper.SKIP,
replenish_to_amount_in_cents=APIHelper.SKIP,
auto_replenish=APIHelper.SKIP,
- replenish_threshold_amount_in_cents=APIHelper.SKIP):
+ replenish_threshold_amount_in_cents=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the UpsertPrepaidConfiguration class"""
# Initialize members of the class
@@ -57,6 +58,9 @@ def __init__(self,
if replenish_threshold_amount_in_cents is not APIHelper.SKIP:
self.replenish_threshold_amount_in_cents = replenish_threshold_amount_in_cents
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -80,11 +84,16 @@ def from_dictionary(cls,
replenish_to_amount_in_cents = dictionary.get("replenish_to_amount_in_cents") if dictionary.get("replenish_to_amount_in_cents") else APIHelper.SKIP
auto_replenish = dictionary.get("auto_replenish") if "auto_replenish" in dictionary.keys() else APIHelper.SKIP
replenish_threshold_amount_in_cents = dictionary.get("replenish_threshold_amount_in_cents") if dictionary.get("replenish_threshold_amount_in_cents") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(initial_funding_amount_in_cents,
replenish_to_amount_in_cents,
auto_replenish,
- replenish_threshold_amount_in_cents)
+ replenish_threshold_amount_in_cents,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/upsert_prepaid_configuration_request.py b/advancedbilling/models/upsert_prepaid_configuration_request.py
index c421134..45a0b7b 100644
--- a/advancedbilling/models/upsert_prepaid_configuration_request.py
+++ b/advancedbilling/models/upsert_prepaid_configuration_request.py
@@ -27,12 +27,16 @@ class UpsertPrepaidConfigurationRequest(object):
}
def __init__(self,
- prepaid_configuration=None):
+ prepaid_configuration=None,
+ additional_properties={}):
"""Constructor for the UpsertPrepaidConfigurationRequest class"""
# Initialize members of the class
self.prepaid_configuration = prepaid_configuration
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -53,5 +57,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
prepaid_configuration = UpsertPrepaidConfiguration.from_dictionary(dictionary.get('prepaid_configuration')) if dictionary.get('prepaid_configuration') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(prepaid_configuration)
+ return cls(prepaid_configuration,
+ dictionary)
diff --git a/advancedbilling/models/usage.py b/advancedbilling/models/usage.py
index 11a2bf1..0212acc 100644
--- a/advancedbilling/models/usage.py
+++ b/advancedbilling/models/usage.py
@@ -62,7 +62,8 @@ def __init__(self,
overage_quantity=APIHelper.SKIP,
component_id=APIHelper.SKIP,
component_handle=APIHelper.SKIP,
- subscription_id=APIHelper.SKIP):
+ subscription_id=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the Usage class"""
# Initialize members of the class
@@ -85,6 +86,9 @@ def __init__(self,
if subscription_id is not APIHelper.SKIP:
self.subscription_id = subscription_id
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -114,6 +118,10 @@ def from_dictionary(cls,
component_id = dictionary.get("component_id") if dictionary.get("component_id") else APIHelper.SKIP
component_handle = dictionary.get("component_handle") if dictionary.get("component_handle") else APIHelper.SKIP
subscription_id = dictionary.get("subscription_id") if dictionary.get("subscription_id") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(id,
memo,
@@ -123,4 +131,5 @@ def from_dictionary(cls,
overage_quantity,
component_id,
component_handle,
- subscription_id)
+ subscription_id,
+ dictionary)
diff --git a/advancedbilling/models/usage_response.py b/advancedbilling/models/usage_response.py
index 622fafb..e381786 100644
--- a/advancedbilling/models/usage_response.py
+++ b/advancedbilling/models/usage_response.py
@@ -26,12 +26,16 @@ class UsageResponse(object):
}
def __init__(self,
- usage=None):
+ usage=None,
+ additional_properties={}):
"""Constructor for the UsageResponse class"""
# Initialize members of the class
self.usage = usage
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
usage = Usage.from_dictionary(dictionary.get('usage')) if dictionary.get('usage') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(usage)
+ return cls(usage,
+ dictionary)
diff --git a/advancedbilling/models/void_invoice.py b/advancedbilling/models/void_invoice.py
index 9ed485c..dd07da5 100644
--- a/advancedbilling/models/void_invoice.py
+++ b/advancedbilling/models/void_invoice.py
@@ -25,12 +25,16 @@ class VoidInvoice(object):
}
def __init__(self,
- reason=None):
+ reason=None,
+ additional_properties={}):
"""Constructor for the VoidInvoice class"""
# Initialize members of the class
self.reason = reason
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -51,5 +55,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
reason = dictionary.get("reason") if dictionary.get("reason") else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(reason)
+ return cls(reason,
+ dictionary)
diff --git a/advancedbilling/models/void_invoice_event_data.py b/advancedbilling/models/void_invoice_event_data.py
index 8861d74..fee36e9 100644
--- a/advancedbilling/models/void_invoice_event_data.py
+++ b/advancedbilling/models/void_invoice_event_data.py
@@ -51,7 +51,8 @@ def __init__(self,
applied_amount=None,
transaction_time=None,
is_advance_invoice=None,
- reason=None):
+ reason=None,
+ additional_properties={}):
"""Constructor for the VoidInvoiceEventData class"""
# Initialize members of the class
@@ -62,6 +63,9 @@ def __init__(self,
self.is_advance_invoice = is_advance_invoice
self.reason = reason
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -88,13 +92,18 @@ def from_dictionary(cls,
transaction_time = APIHelper.RFC3339DateTime.from_value(dictionary.get("transaction_time")).datetime if dictionary.get("transaction_time") else None
is_advance_invoice = dictionary.get("is_advance_invoice") if "is_advance_invoice" in dictionary.keys() else None
reason = dictionary.get("reason") if dictionary.get("reason") else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(credit_note_attributes,
memo,
applied_amount,
transaction_time,
is_advance_invoice,
- reason)
+ reason,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/void_invoice_request.py b/advancedbilling/models/void_invoice_request.py
index 2df8ff7..44b0f69 100644
--- a/advancedbilling/models/void_invoice_request.py
+++ b/advancedbilling/models/void_invoice_request.py
@@ -26,12 +26,16 @@ class VoidInvoiceRequest(object):
}
def __init__(self,
- void=None):
+ void=None,
+ additional_properties={}):
"""Constructor for the VoidInvoiceRequest class"""
# Initialize members of the class
self.void = void
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -52,5 +56,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
void = VoidInvoice.from_dictionary(dictionary.get('void')) if dictionary.get('void') else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(void)
+ return cls(void,
+ dictionary)
diff --git a/advancedbilling/models/void_remainder_event_data.py b/advancedbilling/models/void_remainder_event_data.py
index 1ca0c76..2fba2de 100644
--- a/advancedbilling/models/void_remainder_event_data.py
+++ b/advancedbilling/models/void_remainder_event_data.py
@@ -37,7 +37,8 @@ def __init__(self,
credit_note_attributes=None,
memo=None,
applied_amount=None,
- transaction_time=None):
+ transaction_time=None,
+ additional_properties={}):
"""Constructor for the VoidRemainderEventData class"""
# Initialize members of the class
@@ -46,6 +47,9 @@ def __init__(self,
self.applied_amount = applied_amount
self.transaction_time = APIHelper.apply_datetime_converter(transaction_time, APIHelper.RFC3339DateTime) if transaction_time else None
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -69,11 +73,16 @@ def from_dictionary(cls,
memo = dictionary.get("memo") if dictionary.get("memo") else None
applied_amount = dictionary.get("applied_amount") if dictionary.get("applied_amount") else None
transaction_time = APIHelper.RFC3339DateTime.from_value(dictionary.get("transaction_time")).datetime if dictionary.get("transaction_time") else None
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(credit_note_attributes,
memo,
applied_amount,
- transaction_time)
+ transaction_time,
+ dictionary)
@classmethod
def validate(cls, dictionary):
diff --git a/advancedbilling/models/webhook.py b/advancedbilling/models/webhook.py
index 9326692..82b81c8 100644
--- a/advancedbilling/models/webhook.py
+++ b/advancedbilling/models/webhook.py
@@ -95,7 +95,8 @@ def __init__(self,
successful=APIHelper.SKIP,
body=APIHelper.SKIP,
signature=APIHelper.SKIP,
- signature_hmac_sha_256=APIHelper.SKIP):
+ signature_hmac_sha_256=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the Webhook class"""
# Initialize members of the class
@@ -124,6 +125,9 @@ def __init__(self,
if signature_hmac_sha_256 is not APIHelper.SKIP:
self.signature_hmac_sha_256 = signature_hmac_sha_256
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -158,6 +162,10 @@ def from_dictionary(cls,
body = dictionary.get("body") if dictionary.get("body") else APIHelper.SKIP
signature = dictionary.get("signature") if dictionary.get("signature") else APIHelper.SKIP
signature_hmac_sha_256 = dictionary.get("signature_hmac_sha_256") if dictionary.get("signature_hmac_sha_256") else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
return cls(event,
id,
@@ -170,4 +178,5 @@ def from_dictionary(cls,
successful,
body,
signature,
- signature_hmac_sha_256)
+ signature_hmac_sha_256,
+ dictionary)
diff --git a/advancedbilling/models/webhook_response.py b/advancedbilling/models/webhook_response.py
index d879fa3..c32dd66 100644
--- a/advancedbilling/models/webhook_response.py
+++ b/advancedbilling/models/webhook_response.py
@@ -31,13 +31,17 @@ class WebhookResponse(object):
]
def __init__(self,
- webhook=APIHelper.SKIP):
+ webhook=APIHelper.SKIP,
+ additional_properties={}):
"""Constructor for the WebhookResponse class"""
# Initialize members of the class
if webhook is not APIHelper.SKIP:
self.webhook = webhook
+ # Add additional model properties to the instance
+ self.additional_properties = additional_properties
+
@classmethod
def from_dictionary(cls,
dictionary):
@@ -58,5 +62,10 @@ def from_dictionary(cls,
# Extract variables from the dictionary
webhook = Webhook.from_dictionary(dictionary.get('webhook')) if 'webhook' in dictionary.keys() else APIHelper.SKIP
+ # Clean out expected properties from dictionary
+ for key in cls._names.values():
+ if key in dictionary:
+ del dictionary[key]
# Return an object of this model
- return cls(webhook)
+ return cls(webhook,
+ dictionary)
diff --git a/advancedbilling/utilities/union_type_lookup.py b/advancedbilling/utilities/union_type_lookup.py
index 1d3782d..f244ffa 100644
--- a/advancedbilling/utilities/union_type_lookup.py
+++ b/advancedbilling/utilities/union_type_lookup.py
@@ -260,7 +260,7 @@ class UnionTypeLookUp:
is_nullable=True
)
),
- 'ComponentSPricePointAssignmentPricePoint': OneOf(
+ 'ComponentPricePointAssignmentPricePoint': OneOf(
[
LeafType(str),
LeafType(int)
diff --git a/doc/client.md b/doc/client.md
index b3ab6ad..9c77b3e 100644
--- a/doc/client.md
+++ b/doc/client.md
@@ -7,7 +7,7 @@ The following parameters are configurable for the API Client:
| --- | --- | --- |
| `subdomain` | `str` | The subdomain for your Chargify site.
*Default*: `'subdomain'` |
| `domain` | `str` | The Chargify server domain.
*Default*: `'chargify.com'` |
-| `environment` | Environment | The API environment.
**Default: `Environment.PRODUCTION`** |
+| `environment` | `Environment` | The API environment.
**Default: `Environment.PRODUCTION`** |
| `http_client_instance` | `HttpClient` | The Http Client passed from the sdk user for making requests |
| `override_http_client_configuration` | `bool` | The value which determines to override properties of the passed Http Client from the sdk user |
| `http_call_back` | `HttpCallBack` | The callback value that is invoked before and after an HTTP call is made to an endpoint |
diff --git a/doc/controllers/invoices.md b/doc/controllers/invoices.md
index a9de1ea..d1b1481 100644
--- a/doc/controllers/invoices.md
+++ b/doc/controllers/invoices.md
@@ -2916,7 +2916,7 @@ print(result)
],
"taxes": [
{
- "source_type": "enim",
+ "source_type": "Tax",
"line_item_breakouts": [
{
"uid": "in ipsum",
diff --git a/doc/controllers/proforma-invoices.md b/doc/controllers/proforma-invoices.md
index d50c993..7a4c0ef 100644
--- a/doc/controllers/proforma-invoices.md
+++ b/doc/controllers/proforma-invoices.md
@@ -70,7 +70,7 @@ By default, proforma invoices returned on the index will only include totals, no
```python
def list_subscription_group_proforma_invoices(self,
- uid)
+ options=dict())
```
## Parameters
@@ -78,17 +78,30 @@ def list_subscription_group_proforma_invoices(self,
| Parameter | Type | Tags | Description |
| --- | --- | --- | --- |
| `uid` | `str` | Template, Required | The uid of the subscription group |
+| `line_items` | `bool` | Query, Optional | Include line items data |
+| `discounts` | `bool` | Query, Optional | Include discounts data |
+| `taxes` | `bool` | Query, Optional | Include taxes data |
+| `credits` | `bool` | Query, Optional | Include credits data |
+| `payments` | `bool` | Query, Optional | Include payments data |
+| `custom_fields` | `bool` | Query, Optional | Include custom fields data |
## Response Type
-[`ProformaInvoice`](../../doc/models/proforma-invoice.md)
+[`ListProformaInvoicesResponse`](../../doc/models/list-proforma-invoices-response.md)
## Example Usage
```python
-uid = 'uid0'
-
-result = proforma_invoices_controller.list_subscription_group_proforma_invoices(uid)
+collect = {
+ 'uid': 'uid0',
+ 'line_items': False,
+ 'discounts': False,
+ 'taxes': False,
+ 'credits': False,
+ 'payments': False,
+ 'custom_fields': False
+}
+result = proforma_invoices_controller.list_subscription_group_proforma_invoices(collect)
print(result)
```
@@ -195,7 +208,7 @@ def list_proforma_invoices(self,
| `subscription_id` | `int` | Template, Required | The Chargify id of the subscription |
| `start_date` | `str` | Query, Optional | The beginning date range for the invoice's Due Date, in the YYYY-MM-DD format. |
| `end_date` | `str` | Query, Optional | The ending date range for the invoice's Due Date, in the YYYY-MM-DD format. |
-| `status` | [`InvoiceStatus`](../../doc/models/invoice-status.md) | Query, Optional | The current status of the invoice. Allowed Values: draft, open, paid, pending, voided |
+| `status` | [`ProformaInvoiceStatus`](../../doc/models/proforma-invoice-status.md) | Query, Optional | The current status of the invoice. Allowed Values: draft, open, paid, pending, voided |
| `page` | `int` | Query, Optional | Result records are organized in pages. By default, the first page of results is displayed. The page parameter specifies a page number of results to fetch. You can start navigating through the pages to consume the results. You do this by passing in a page parameter. Retrieve the next page by adding ?page=2 to the query string. If there are no results to return, then an empty result set will be returned.
Use in query `page=1`. |
| `per_page` | `int` | Query, Optional | This parameter indicates how many records to fetch in each request. Default value is 20. The maximum allowed values is 200; any per_page value over 200 will be changed to 200.
Use in query `per_page=200`. |
| `direction` | [`Direction`](../../doc/models/direction.md) | Query, Optional | The sort direction of the returned invoices. |
@@ -299,7 +312,7 @@ def preview_proforma_invoice(self,
## Response Type
-[`ProformaInvoicePreview`](../../doc/models/proforma-invoice-preview.md)
+[`ProformaInvoice`](../../doc/models/proforma-invoice.md)
## Example Usage
@@ -383,7 +396,7 @@ A product and customer first name, last name, and email are the minimum requirem
```python
def preview_signup_proforma_invoice(self,
- include_next_proforma_invoice=None,
+ include=None,
body=None)
```
@@ -391,7 +404,7 @@ def preview_signup_proforma_invoice(self,
| Parameter | Type | Tags | Description |
| --- | --- | --- | --- |
-| `include_next_proforma_invoice` | `str` | Query, Optional | Choose to include a proforma invoice preview for the first renewal |
+| `include` | [`CreateSignupProformaPreviewInclude`](../../doc/models/create-signup-proforma-preview-include.md) | Query, Optional | Choose to include a proforma invoice preview for the first renewal. Use in query `include=next_proforma_invoice`. |
| `body` | [`CreateSubscriptionRequest`](../../doc/models/create-subscription-request.md) | Body, Optional | - |
## Response Type
diff --git a/doc/controllers/subscription-components.md b/doc/controllers/subscription-components.md
index 5bd0c4b..313f621 100644
--- a/doc/controllers/subscription-components.md
+++ b/doc/controllers/subscription-components.md
@@ -195,28 +195,28 @@ def bulk_update_subscription_components_price_points(self,
| Parameter | Type | Tags | Description |
| --- | --- | --- | --- |
| `subscription_id` | `int` | Template, Required | The Chargify id of the subscription |
-| `body` | [`BulkComponentSPricePointAssignment`](../../doc/models/bulk-component-s-price-point-assignment.md) | Body, Optional | - |
+| `body` | [`BulkComponentsPricePointAssignment`](../../doc/models/bulk-components-price-point-assignment.md) | Body, Optional | - |
## Response Type
-[`BulkComponentSPricePointAssignment`](../../doc/models/bulk-component-s-price-point-assignment.md)
+[`BulkComponentsPricePointAssignment`](../../doc/models/bulk-components-price-point-assignment.md)
## Example Usage
```python
subscription_id = 222
-body = BulkComponentSPricePointAssignment(
+body = BulkComponentsPricePointAssignment(
components=[
- ComponentSPricePointAssignment(
+ ComponentPricePointAssignment(
component_id=997,
price_point=1022
),
- ComponentSPricePointAssignment(
+ ComponentPricePointAssignment(
component_id=998,
price_point='wholesale-handle'
),
- ComponentSPricePointAssignment(
+ ComponentPricePointAssignment(
component_id=999,
price_point='_default'
)
@@ -289,7 +289,7 @@ print(result)
```json
{
"subscription": {
- "id": -80293620,
+ "id": 80293620,
"state": "active",
"trial_started_at": null,
"trial_ended_at": null,
@@ -579,14 +579,28 @@ print(result)
[
{
"allocation": {
- "memo": "moving to 7",
- "timestamp": "2012-11-20T22:00:37Z",
- "quantity": 7,
- "previous_quantity": 3,
- "component_id": 11960,
- "subscription_id": 2585595,
- "proration_upgrade_scheme": "no-prorate",
- "proration_downgrade_scheme": "no-prorate"
+ "allocation_id": 2370199,
+ "component_id": 41028,
+ "subscription_id": 352827,
+ "quantity": 10,
+ "previous_quantity": 0,
+ "memo": "Recoding component allocation",
+ "timestamp": "2024-02-28T09:31:05Z",
+ "proration_upgrade_scheme": "full-price-attempt-capture",
+ "proration_downgrade_scheme": "no-prorate",
+ "price_point_id": 2957424,
+ "price_point_handle": "uuid:03190e20-b84a-013c-ca77-0286551bb34f",
+ "price_point_name": "Original",
+ "previous_price_point_id": 2957424,
+ "component_handle": "test-prepaid-component-4982065948",
+ "accrue_charge": false,
+ "upgrade_charge": "full",
+ "downgrade_credit": "none",
+ "created_at": "2024-02-28T04:31:05-05:00",
+ "initiate_dunning": false,
+ "expires_at": "2024-08-03T20:00:00-04:00",
+ "used_quantity": 5,
+ "charge_id": 11586076
}
},
{
@@ -943,6 +957,7 @@ print(result)
| HTTP Status Code | Error Description | Exception Class |
| --- | --- | --- |
+| 404 | Not Found | `APIException` |
| 422 | Unprocessable Entity (WebDAV) | [`SubscriptionComponentAllocationErrorException`](../../doc/models/subscription-component-allocation-error-exception.md) |
@@ -1005,6 +1020,7 @@ print(result)
| HTTP Status Code | Error Description | Exception Class |
| --- | --- | --- |
+| 404 | Not Found | `APIException` |
| 422 | Unprocessable Entity (WebDAV) | [`SubscriptionComponentAllocationErrorException`](../../doc/models/subscription-component-allocation-error-exception.md) |
diff --git a/doc/models/allocation.md b/doc/models/allocation.md
index 3342e14..70e7abb 100644
--- a/doc/models/allocation.md
+++ b/doc/models/allocation.md
@@ -31,6 +31,9 @@
| `upgrade_charge` | [`CreditType`](../../doc/models/credit-type.md) | Optional | The type of credit to be created when upgrading/downgrading. Defaults to the component and then site setting if one is not provided.
Available values: `full`, `prorated`, `none`. |
| `downgrade_credit` | [`CreditType`](../../doc/models/credit-type.md) | Optional | The type of credit to be created when upgrading/downgrading. Defaults to the component and then site setting if one is not provided.
Available values: `full`, `prorated`, `none`. |
| `payment` | [Payment for Allocation](../../doc/models/payment-for-allocation.md) \| None | Optional | This is a container for one-of cases. |
+| `expires_at` | `datetime` | Optional | - |
+| `used_quantity` | `long\|int` | Optional | - |
+| `charge_id` | `long\|int` | Optional | - |
## Example (as JSON)
diff --git a/doc/models/bulk-component-s-price-point-assignment.md b/doc/models/bulk-components-price-point-assignment.md
similarity index 51%
rename from doc/models/bulk-component-s-price-point-assignment.md
rename to doc/models/bulk-components-price-point-assignment.md
index 9e2d30f..fd88175 100644
--- a/doc/models/bulk-component-s-price-point-assignment.md
+++ b/doc/models/bulk-components-price-point-assignment.md
@@ -1,15 +1,15 @@
-# Bulk Component S Price Point Assignment
+# Bulk Components Price Point Assignment
## Structure
-`BulkComponentSPricePointAssignment`
+`BulkComponentsPricePointAssignment`
## Fields
| Name | Type | Tags | Description |
| --- | --- | --- | --- |
-| `components` | [`List[ComponentSPricePointAssignment]`](../../doc/models/component-s-price-point-assignment.md) | Optional | - |
+| `components` | [`List[ComponentPricePointAssignment]`](../../doc/models/component-price-point-assignment.md) | Optional | - |
## Example (as JSON)
diff --git a/doc/models/component-s-price-point-assignment.md b/doc/models/component-price-point-assignment.md
similarity index 68%
rename from doc/models/component-s-price-point-assignment.md
rename to doc/models/component-price-point-assignment.md
index c15e2df..79d4805 100644
--- a/doc/models/component-s-price-point-assignment.md
+++ b/doc/models/component-price-point-assignment.md
@@ -1,9 +1,9 @@
-# Component S Price Point Assignment
+# Component Price Point Assignment
## Structure
-`ComponentSPricePointAssignment`
+`ComponentPricePointAssignment`
## Fields
@@ -16,8 +16,8 @@
```json
{
- "component_id": 76,
- "price_point": "String1"
+ "component_id": 114,
+ "price_point": "String9"
}
```
diff --git a/doc/models/containers/component-s-price-point-assignment-price-point.md b/doc/models/containers/component-price-point-assignment-price-point.md
similarity index 61%
rename from doc/models/containers/component-s-price-point-assignment-price-point.md
rename to doc/models/containers/component-price-point-assignment-price-point.md
index 850c6ab..0a4d0fa 100644
--- a/doc/models/containers/component-s-price-point-assignment-price-point.md
+++ b/doc/models/containers/component-price-point-assignment-price-point.md
@@ -1,5 +1,5 @@
-# Component S Price Point Assignment Price Point
+# Component Price Point Assignment Price Point
## Data Type
diff --git a/doc/models/create-signup-proforma-preview-include.md b/doc/models/create-signup-proforma-preview-include.md
new file mode 100644
index 0000000..e652ba4
--- /dev/null
+++ b/doc/models/create-signup-proforma-preview-include.md
@@ -0,0 +1,19 @@
+
+# Create Signup Proforma Preview Include
+
+## Enumeration
+
+`CreateSignupProformaPreviewInclude`
+
+## Fields
+
+| Name |
+| --- |
+| `NEXT_PROFORMA_INVOICE` |
+
+## Example
+
+```
+next_proforma_invoice
+```
+
diff --git a/doc/models/invoice-discount-source-type.md b/doc/models/invoice-discount-source-type.md
new file mode 100644
index 0000000..7218f6c
--- /dev/null
+++ b/doc/models/invoice-discount-source-type.md
@@ -0,0 +1,15 @@
+
+# Invoice Discount Source Type
+
+## Enumeration
+
+`InvoiceDiscountSourceType`
+
+## Fields
+
+| Name |
+| --- |
+| `COUPON` |
+| `REFERRAL` |
+| `ENUM_AD_HOC_COUPON` |
+
diff --git a/doc/models/invoice-discount-type.md b/doc/models/invoice-discount-type.md
new file mode 100644
index 0000000..3e5355b
--- /dev/null
+++ b/doc/models/invoice-discount-type.md
@@ -0,0 +1,15 @@
+
+# Invoice Discount Type
+
+## Enumeration
+
+`InvoiceDiscountType`
+
+## Fields
+
+| Name |
+| --- |
+| `PERCENTAGE` |
+| `FLAT_AMOUNT` |
+| `ROLLOVER` |
+
diff --git a/doc/models/invoice-discount.md b/doc/models/invoice-discount.md
index e370e19..e0026ad 100644
--- a/doc/models/invoice-discount.md
+++ b/doc/models/invoice-discount.md
@@ -13,9 +13,9 @@
| `title` | `str` | Optional | - |
| `description` | `str` | Optional | - |
| `code` | `str` | Optional | - |
-| `source_type` | `str` | Optional | - |
+| `source_type` | [`InvoiceDiscountSourceType`](../../doc/models/invoice-discount-source-type.md) | Optional | - |
| `source_id` | `int` | Optional | - |
-| `discount_type` | `str` | Optional | - |
+| `discount_type` | [`InvoiceDiscountType`](../../doc/models/invoice-discount-type.md) | Optional | - |
| `percentage` | `str` | Optional | - |
| `eligible_amount` | `str` | Optional | - |
| `discount_amount` | `str` | Optional | - |
@@ -30,7 +30,7 @@
"title": "title4",
"description": "description0",
"code": "code8",
- "source_type": "source_type0"
+ "source_type": "Coupon"
}
```
diff --git a/doc/models/invoice-line-item.md b/doc/models/invoice-line-item.md
index e7a7e81..d5366e3 100644
--- a/doc/models/invoice-line-item.md
+++ b/doc/models/invoice-line-item.md
@@ -30,6 +30,7 @@
| `component_cost_data` | [Invoice Line Item Component Cost Data](../../doc/models/invoice-line-item-component-cost-data.md) \| None | Optional | This is a container for one-of cases. |
| `product_price_point_id` | `int` | Optional | The price point ID of the line item's product |
| `custom_item` | `bool` | Optional | - |
+| `kind` | `str` | Optional | - |
## Example (as JSON)
diff --git a/doc/models/invoice-tax-breakout.md b/doc/models/invoice-tax-breakout.md
index 4be30f2..2b030cb 100644
--- a/doc/models/invoice-tax-breakout.md
+++ b/doc/models/invoice-tax-breakout.md
@@ -12,6 +12,7 @@
| `uid` | `str` | Optional | - |
| `taxable_amount` | `str` | Optional | - |
| `tax_amount` | `str` | Optional | - |
+| `tax_exempt_amount` | `str` | Optional | - |
## Example (as JSON)
@@ -19,7 +20,8 @@
{
"uid": "uid2",
"taxable_amount": "taxable_amount6",
- "tax_amount": "tax_amount6"
+ "tax_amount": "tax_amount6",
+ "tax_exempt_amount": "tax_exempt_amount2"
}
```
diff --git a/doc/models/invoice-tax.md b/doc/models/invoice-tax.md
index 2760e19..be114da 100644
--- a/doc/models/invoice-tax.md
+++ b/doc/models/invoice-tax.md
@@ -12,7 +12,7 @@
| `uid` | `str` | Optional | - |
| `title` | `str` | Optional | - |
| `description` | `str` | Optional | - |
-| `source_type` | `str` | Optional | - |
+| `source_type` | [`ProformaInvoiceTaxSourceType`](../../doc/models/proforma-invoice-tax-source-type.md) | Optional | - |
| `source_id` | `int` | Optional | - |
| `percentage` | `str` | Optional | - |
| `taxable_amount` | `str` | Optional | - |
@@ -28,7 +28,7 @@
"uid": "uid8",
"title": "title6",
"description": "description2",
- "source_type": "source_type8",
+ "source_type": "Tax",
"source_id": 164
}
```
diff --git a/doc/models/proforma-invoice-discount-breakout.md b/doc/models/proforma-invoice-discount-breakout.md
deleted file mode 100644
index 0652311..0000000
--- a/doc/models/proforma-invoice-discount-breakout.md
+++ /dev/null
@@ -1,23 +0,0 @@
-
-# Proforma Invoice Discount Breakout
-
-## Structure
-
-`ProformaInvoiceDiscountBreakout`
-
-## Fields
-
-| Name | Type | Tags | Description |
-| --- | --- | --- | --- |
-| `eligible_amount` | `str` | Optional | **Constraints**: *Minimum Length*: `1` |
-| `discount_amount` | `str` | Optional | **Constraints**: *Minimum Length*: `1` |
-
-## Example (as JSON)
-
-```json
-{
- "eligible_amount": "eligible_amount6",
- "discount_amount": "discount_amount8"
-}
-```
-
diff --git a/doc/models/proforma-invoice-discount-source-type.md b/doc/models/proforma-invoice-discount-source-type.md
new file mode 100644
index 0000000..9ca7d08
--- /dev/null
+++ b/doc/models/proforma-invoice-discount-source-type.md
@@ -0,0 +1,14 @@
+
+# Proforma Invoice Discount Source Type
+
+## Enumeration
+
+`ProformaInvoiceDiscountSourceType`
+
+## Fields
+
+| Name |
+| --- |
+| `COUPON` |
+| `REFERRAL` |
+
diff --git a/doc/models/proforma-invoice-discount.md b/doc/models/proforma-invoice-discount.md
index bde7e1a..1ae1cd2 100644
--- a/doc/models/proforma-invoice-discount.md
+++ b/doc/models/proforma-invoice-discount.md
@@ -9,22 +9,24 @@
| Name | Type | Tags | Description |
| --- | --- | --- | --- |
+| `uid` | `str` | Optional | - |
| `title` | `str` | Optional | **Constraints**: *Minimum Length*: `1` |
-| `source_type` | `str` | Optional | **Constraints**: *Minimum Length*: `1` |
-| `discount_type` | `str` | Optional | **Constraints**: *Minimum Length*: `1` |
+| `code` | `str` | Optional | - |
+| `source_type` | [`ProformaInvoiceDiscountSourceType`](../../doc/models/proforma-invoice-discount-source-type.md) | Optional | - |
+| `discount_type` | [`InvoiceDiscountType`](../../doc/models/invoice-discount-type.md) | Optional | - |
| `eligible_amount` | `str` | Optional | **Constraints**: *Minimum Length*: `1` |
| `discount_amount` | `str` | Optional | **Constraints**: *Minimum Length*: `1` |
-| `line_item_breakouts` | [`List[ProformaInvoiceDiscountBreakout]`](../../doc/models/proforma-invoice-discount-breakout.md) | Optional | **Constraints**: *Minimum Items*: `1`, *Unique Items Required* |
+| `line_item_breakouts` | [`List[InvoiceDiscountBreakout]`](../../doc/models/invoice-discount-breakout.md) | Optional | **Constraints**: *Minimum Items*: `1`, *Unique Items Required* |
## Example (as JSON)
```json
{
+ "uid": "uid2",
"title": "title8",
- "source_type": "source_type2",
- "discount_type": "discount_type0",
- "eligible_amount": "eligible_amount4",
- "discount_amount": "discount_amount6"
+ "code": "code0",
+ "source_type": "Coupon",
+ "discount_type": "percentage"
}
```
diff --git a/doc/models/proforma-invoice-preview.md b/doc/models/proforma-invoice-preview.md
deleted file mode 100644
index 185e023..0000000
--- a/doc/models/proforma-invoice-preview.md
+++ /dev/null
@@ -1,60 +0,0 @@
-
-# Proforma Invoice Preview
-
-## Structure
-
-`ProformaInvoicePreview`
-
-## Fields
-
-| Name | Type | Tags | Description |
-| --- | --- | --- | --- |
-| `uid` | `str` | Optional | **Constraints**: *Minimum Length*: `1` |
-| `site_id` | `int` | Optional | - |
-| `customer_id` | `int` | Optional | - |
-| `subscription_id` | `int` | Optional | - |
-| `number` | `str` | Optional | - |
-| `sequence_number` | `int` | Optional | - |
-| `created_at` | `datetime` | Optional | - |
-| `delivery_date` | `date` | Optional | - |
-| `status` | `str` | Optional | **Constraints**: *Minimum Length*: `1` |
-| `collection_method` | `str` | Optional | **Constraints**: *Minimum Length*: `1` |
-| `payment_instructions` | `str` | Optional | **Constraints**: *Minimum Length*: `1` |
-| `currency` | `str` | Optional | **Constraints**: *Minimum Length*: `1` |
-| `consolidation_level` | `str` | Optional | **Constraints**: *Minimum Length*: `1` |
-| `product_name` | `str` | Optional | **Constraints**: *Minimum Length*: `1` |
-| `product_family_name` | `str` | Optional | **Constraints**: *Minimum Length*: `1` |
-| `role` | `str` | Optional | **Constraints**: *Minimum Length*: `1` |
-| `seller` | [`InvoiceSeller`](../../doc/models/invoice-seller.md) | Optional | Information about the seller (merchant) listed on the masthead of the invoice. |
-| `customer` | [`InvoiceCustomer`](../../doc/models/invoice-customer.md) | Optional | Information about the customer who is owner or recipient the invoiced subscription. |
-| `memo` | `str` | Optional | **Constraints**: *Minimum Length*: `1` |
-| `billing_address` | [`InvoiceAddress`](../../doc/models/invoice-address.md) | Optional | - |
-| `shipping_address` | [`InvoiceAddress`](../../doc/models/invoice-address.md) | Optional | - |
-| `subtotal_amount` | `str` | Optional | **Constraints**: *Minimum Length*: `1` |
-| `discount_amount` | `str` | Optional | **Constraints**: *Minimum Length*: `1` |
-| `tax_amount` | `str` | Optional | **Constraints**: *Minimum Length*: `1` |
-| `total_amount` | `str` | Optional | **Constraints**: *Minimum Length*: `1` |
-| `credit_amount` | `str` | Optional | **Constraints**: *Minimum Length*: `1` |
-| `paid_amount` | `str` | Optional | **Constraints**: *Minimum Length*: `1` |
-| `refund_amount` | `str` | Optional | **Constraints**: *Minimum Length*: `1` |
-| `due_amount` | `str` | Optional | **Constraints**: *Minimum Length*: `1` |
-| `line_items` | [`List[InvoiceLineItem]`](../../doc/models/invoice-line-item.md) | Optional | **Constraints**: *Minimum Items*: `1`, *Unique Items Required* |
-| `discounts` | [`List[ProformaInvoiceDiscount]`](../../doc/models/proforma-invoice-discount.md) | Optional | **Constraints**: *Minimum Items*: `1`, *Unique Items Required* |
-| `taxes` | [`List[ProformaInvoiceTax]`](../../doc/models/proforma-invoice-tax.md) | Optional | **Constraints**: *Minimum Items*: `1`, *Unique Items Required* |
-| `credits` | [`List[ProformaInvoiceCredit]`](../../doc/models/proforma-invoice-credit.md) | Optional | **Constraints**: *Minimum Items*: `1`, *Unique Items Required* |
-| `payments` | [`List[ProformaInvoicePayment]`](../../doc/models/proforma-invoice-payment.md) | Optional | **Constraints**: *Minimum Items*: `1`, *Unique Items Required* |
-| `custom_fields` | [`List[InvoiceCustomField]`](../../doc/models/invoice-custom-field.md) | Optional | **Constraints**: *Minimum Items*: `1`, *Unique Items Required* |
-| `public_url` | `str` | Optional | - |
-
-## Example (as JSON)
-
-```json
-{
- "uid": "uid2",
- "site_id": 214,
- "customer_id": 70,
- "subscription_id": 142,
- "number": "number0"
-}
-```
-
diff --git a/doc/models/proforma-invoice-role.md b/doc/models/proforma-invoice-role.md
new file mode 100644
index 0000000..1ccf553
--- /dev/null
+++ b/doc/models/proforma-invoice-role.md
@@ -0,0 +1,18 @@
+
+# Proforma Invoice Role
+
+'proforma' value is deprecated in favor of proforma_adhoc and proforma_automatic
+
+## Enumeration
+
+`ProformaInvoiceRole`
+
+## Fields
+
+| Name |
+| --- |
+| `UNSET` |
+| `PROFORMA` |
+| `PROFORMA_ADHOC` |
+| `PROFORMA_AUTOMATIC` |
+
diff --git a/doc/models/proforma-invoice-status.md b/doc/models/proforma-invoice-status.md
new file mode 100644
index 0000000..73e3dde
--- /dev/null
+++ b/doc/models/proforma-invoice-status.md
@@ -0,0 +1,15 @@
+
+# Proforma Invoice Status
+
+## Enumeration
+
+`ProformaInvoiceStatus`
+
+## Fields
+
+| Name |
+| --- |
+| `DRAFT` |
+| `VOIDED` |
+| `ARCHIVED` |
+
diff --git a/doc/models/proforma-invoice-tax-breakout.md b/doc/models/proforma-invoice-tax-breakout.md
deleted file mode 100644
index c7e0735..0000000
--- a/doc/models/proforma-invoice-tax-breakout.md
+++ /dev/null
@@ -1,23 +0,0 @@
-
-# Proforma Invoice Tax Breakout
-
-## Structure
-
-`ProformaInvoiceTaxBreakout`
-
-## Fields
-
-| Name | Type | Tags | Description |
-| --- | --- | --- | --- |
-| `taxable_amount` | `str` | Optional | **Constraints**: *Minimum Length*: `1` |
-| `tax_amount` | `str` | Optional | **Constraints**: *Minimum Length*: `1` |
-
-## Example (as JSON)
-
-```json
-{
- "taxable_amount": "taxable_amount8",
- "tax_amount": "tax_amount2"
-}
-```
-
diff --git a/doc/models/proforma-invoice-tax-source-type.md b/doc/models/proforma-invoice-tax-source-type.md
new file mode 100644
index 0000000..fab176d
--- /dev/null
+++ b/doc/models/proforma-invoice-tax-source-type.md
@@ -0,0 +1,14 @@
+
+# Proforma Invoice Tax Source Type
+
+## Enumeration
+
+`ProformaInvoiceTaxSourceType`
+
+## Fields
+
+| Name |
+| --- |
+| `TAX` |
+| `AVALARA` |
+
diff --git a/doc/models/proforma-invoice-tax.md b/doc/models/proforma-invoice-tax.md
index 7b30989..5be4ec6 100644
--- a/doc/models/proforma-invoice-tax.md
+++ b/doc/models/proforma-invoice-tax.md
@@ -11,11 +11,11 @@
| --- | --- | --- | --- |
| `uid` | `str` | Optional | **Constraints**: *Minimum Length*: `1` |
| `title` | `str` | Optional | **Constraints**: *Minimum Length*: `1` |
-| `source_type` | `str` | Optional | **Constraints**: *Minimum Length*: `1` |
+| `source_type` | [`ProformaInvoiceTaxSourceType`](../../doc/models/proforma-invoice-tax-source-type.md) | Optional | - |
| `percentage` | `str` | Optional | **Constraints**: *Minimum Length*: `1` |
| `taxable_amount` | `str` | Optional | **Constraints**: *Minimum Length*: `1` |
| `tax_amount` | `str` | Optional | **Constraints**: *Minimum Length*: `1` |
-| `line_item_breakouts` | [`List[ProformaInvoiceTaxBreakout]`](../../doc/models/proforma-invoice-tax-breakout.md) | Optional | **Constraints**: *Minimum Items*: `1`, *Unique Items Required* |
+| `line_item_breakouts` | [`List[InvoiceTaxBreakout]`](../../doc/models/invoice-tax-breakout.md) | Optional | **Constraints**: *Minimum Items*: `1`, *Unique Items Required* |
## Example (as JSON)
@@ -23,7 +23,7 @@
{
"uid": "uid8",
"title": "title4",
- "source_type": "source_type8",
+ "source_type": "Tax",
"percentage": "percentage6",
"taxable_amount": "taxable_amount2"
}
diff --git a/doc/models/proforma-invoice.md b/doc/models/proforma-invoice.md
index da46a66..7763bb3 100644
--- a/doc/models/proforma-invoice.md
+++ b/doc/models/proforma-invoice.md
@@ -17,14 +17,14 @@
| `sequence_number` | `int` | Optional | - |
| `created_at` | `datetime` | Optional | - |
| `delivery_date` | `date` | Optional | - |
-| `status` | `str` | Optional | - |
-| `collection_method` | `str` | Optional | - |
+| `status` | [`ProformaInvoiceStatus`](../../doc/models/proforma-invoice-status.md) | Optional | - |
+| `collection_method` | [`CollectionMethod`](../../doc/models/collection-method.md) | Optional | The type of payment collection to be used in the subscription. For legacy Statements Architecture valid options are - `invoice`, `automatic`. For current Relationship Invoicing Architecture valid options are - `remittance`, `automatic`, `prepaid`.
**Default**: `'automatic'` |
| `payment_instructions` | `str` | Optional | - |
| `currency` | `str` | Optional | - |
-| `consolidation_level` | `str` | Optional | - |
+| `consolidation_level` | [`InvoiceConsolidationLevel`](../../doc/models/invoice-consolidation-level.md) | Optional | Consolidation level of the invoice, which is applicable to invoice consolidation. It will hold one of the following values:
* "none": A normal invoice with no consolidation.
* "child": An invoice segment which has been combined into a consolidated invoice.
* "parent": A consolidated invoice, whose contents are composed of invoice segments.
"Parent" invoices do not have lines of their own, but they have subtotals and totals which aggregate the member invoice segments.
See also the [invoice consolidation documentation](https://chargify.zendesk.com/hc/en-us/articles/4407746391835). |
| `product_name` | `str` | Optional | - |
| `product_family_name` | `str` | Optional | - |
-| `role` | `str` | Optional | - |
+| `role` | [`ProformaInvoiceRole`](../../doc/models/proforma-invoice-role.md) | Optional | 'proforma' value is deprecated in favor of proforma_adhoc and proforma_automatic |
| `seller` | [`InvoiceSeller`](../../doc/models/invoice-seller.md) | Optional | Information about the seller (merchant) listed on the masthead of the invoice. |
| `customer` | [`InvoiceCustomer`](../../doc/models/invoice-customer.md) | Optional | Information about the customer who is owner or recipient the invoiced subscription. |
| `memo` | `str` | Optional | - |
@@ -50,6 +50,7 @@
```json
{
+ "collection_method": "automatic",
"uid": "uid6",
"site_id": 196,
"customer_id": 52,
diff --git a/tests/conftest.py b/tests/conftest.py
index b932136..9aea748 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -55,8 +55,6 @@ def client() -> AdvancedBillingClient:
yield client
- client.sites.clear_site()
-
@pytest.fixture(scope="session")
def unauthorized_client() -> AdvancedBillingClient: