diff --git a/advancedbilling/controllers/advance_invoice_controller.py b/advancedbilling/controllers/advance_invoice_controller.py index a882262e..c313f7f3 100644 --- a/advancedbilling/controllers/advance_invoice_controller.py +++ b/advancedbilling/controllers/advance_invoice_controller.py @@ -15,8 +15,6 @@ 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 apimatic_core.authentication.multiple.and_auth_group import And -from apimatic_core.authentication.multiple.or_auth_group import Or from advancedbilling.models.invoice import Invoice from advancedbilling.exceptions.api_exception import APIException from advancedbilling.exceptions.error_list_response_exception import ErrorListResponseException diff --git a/advancedbilling/controllers/api_exports_controller.py b/advancedbilling/controllers/api_exports_controller.py index 03388cd1..cebb7fef 100644 --- a/advancedbilling/controllers/api_exports_controller.py +++ b/advancedbilling/controllers/api_exports_controller.py @@ -15,8 +15,6 @@ 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 apimatic_core.authentication.multiple.and_auth_group import And -from apimatic_core.authentication.multiple.or_auth_group import Or from advancedbilling.models.proforma_invoice import ProformaInvoice from advancedbilling.models.invoice import Invoice from advancedbilling.models.subscription import Subscription diff --git a/advancedbilling/controllers/billing_portal_controller.py b/advancedbilling/controllers/billing_portal_controller.py index 8fdb1988..f5f05d4d 100644 --- a/advancedbilling/controllers/billing_portal_controller.py +++ b/advancedbilling/controllers/billing_portal_controller.py @@ -15,8 +15,6 @@ 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 apimatic_core.authentication.multiple.and_auth_group import And -from apimatic_core.authentication.multiple.or_auth_group import Or from advancedbilling.models.customer_response import CustomerResponse from advancedbilling.models.portal_management_link import PortalManagementLink from advancedbilling.models.resent_invitation import ResentInvitation diff --git a/advancedbilling/controllers/components_controller.py b/advancedbilling/controllers/components_controller.py index be19a40e..7759be16 100644 --- a/advancedbilling/controllers/components_controller.py +++ b/advancedbilling/controllers/components_controller.py @@ -16,8 +16,6 @@ from advancedbilling.http.http_method_enum import HttpMethodEnum from apimatic_core.types.array_serialization_format import SerializationFormats from apimatic_core.authentication.multiple.single_auth import Single -from apimatic_core.authentication.multiple.and_auth_group import And -from apimatic_core.authentication.multiple.or_auth_group import Or from advancedbilling.models.component_response import ComponentResponse from advancedbilling.models.component import Component from advancedbilling.models.component_price_point_response import ComponentPricePointResponse diff --git a/advancedbilling/controllers/coupons_controller.py b/advancedbilling/controllers/coupons_controller.py index 4610d930..f8612a68 100644 --- a/advancedbilling/controllers/coupons_controller.py +++ b/advancedbilling/controllers/coupons_controller.py @@ -16,8 +16,6 @@ from advancedbilling.http.http_method_enum import HttpMethodEnum from apimatic_core.types.array_serialization_format import SerializationFormats from apimatic_core.authentication.multiple.single_auth import Single -from apimatic_core.authentication.multiple.and_auth_group import And -from apimatic_core.authentication.multiple.or_auth_group import Or from advancedbilling.models.coupon_response import CouponResponse from advancedbilling.models.coupon_usage import CouponUsage from advancedbilling.models.coupon_currency_response import CouponCurrencyResponse diff --git a/advancedbilling/controllers/custom_fields_controller.py b/advancedbilling/controllers/custom_fields_controller.py index 315ef1a3..6cfcb597 100644 --- a/advancedbilling/controllers/custom_fields_controller.py +++ b/advancedbilling/controllers/custom_fields_controller.py @@ -16,8 +16,6 @@ from advancedbilling.http.http_method_enum import HttpMethodEnum from apimatic_core.types.array_serialization_format import SerializationFormats from apimatic_core.authentication.multiple.single_auth import Single -from apimatic_core.authentication.multiple.and_auth_group import And -from apimatic_core.authentication.multiple.or_auth_group import Or from advancedbilling.models.metafield import Metafield from advancedbilling.models.list_metafields_response import ListMetafieldsResponse from advancedbilling.models.metadata import Metadata diff --git a/advancedbilling/controllers/customers_controller.py b/advancedbilling/controllers/customers_controller.py index cfe75a7e..79ebd72f 100644 --- a/advancedbilling/controllers/customers_controller.py +++ b/advancedbilling/controllers/customers_controller.py @@ -15,8 +15,6 @@ 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 apimatic_core.authentication.multiple.and_auth_group import And -from apimatic_core.authentication.multiple.or_auth_group import Or from advancedbilling.models.customer_response import CustomerResponse from advancedbilling.models.subscription_response import SubscriptionResponse from advancedbilling.exceptions.customer_error_response_exception import CustomerErrorResponseException diff --git a/advancedbilling/controllers/events_based_billing_segments_controller.py b/advancedbilling/controllers/events_based_billing_segments_controller.py index ca6cd1d8..0ccd154a 100644 --- a/advancedbilling/controllers/events_based_billing_segments_controller.py +++ b/advancedbilling/controllers/events_based_billing_segments_controller.py @@ -15,8 +15,6 @@ 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 apimatic_core.authentication.multiple.and_auth_group import And -from apimatic_core.authentication.multiple.or_auth_group import Or from advancedbilling.models.segment_response import SegmentResponse from advancedbilling.models.list_segments_response import ListSegmentsResponse from advancedbilling.exceptions.api_exception import APIException diff --git a/advancedbilling/controllers/events_controller.py b/advancedbilling/controllers/events_controller.py index 1d015e4c..aa7e334f 100644 --- a/advancedbilling/controllers/events_controller.py +++ b/advancedbilling/controllers/events_controller.py @@ -16,8 +16,6 @@ from advancedbilling.http.http_method_enum import HttpMethodEnum from apimatic_core.types.array_serialization_format import SerializationFormats from apimatic_core.authentication.multiple.single_auth import Single -from apimatic_core.authentication.multiple.and_auth_group import And -from apimatic_core.authentication.multiple.or_auth_group import Or from advancedbilling.models.event_response import EventResponse from advancedbilling.models.count_response import CountResponse diff --git a/advancedbilling/controllers/insights_controller.py b/advancedbilling/controllers/insights_controller.py index 4a66d191..514c5761 100644 --- a/advancedbilling/controllers/insights_controller.py +++ b/advancedbilling/controllers/insights_controller.py @@ -17,8 +17,6 @@ from advancedbilling.http.http_method_enum import HttpMethodEnum from apimatic_core.types.array_serialization_format import SerializationFormats from apimatic_core.authentication.multiple.single_auth import Single -from apimatic_core.authentication.multiple.and_auth_group import And -from apimatic_core.authentication.multiple.or_auth_group import Or from advancedbilling.models.site_summary import SiteSummary from advancedbilling.models.mrr_response import MRRResponse from advancedbilling.models.list_mrr_response import ListMRRResponse diff --git a/advancedbilling/controllers/invoices_controller.py b/advancedbilling/controllers/invoices_controller.py index d65567d1..cbdb4dc4 100644 --- a/advancedbilling/controllers/invoices_controller.py +++ b/advancedbilling/controllers/invoices_controller.py @@ -16,8 +16,6 @@ from advancedbilling.http.http_method_enum import HttpMethodEnum from apimatic_core.types.array_serialization_format import SerializationFormats from apimatic_core.authentication.multiple.single_auth import Single -from apimatic_core.authentication.multiple.and_auth_group import And -from apimatic_core.authentication.multiple.or_auth_group import Or from advancedbilling.models.invoice import Invoice from advancedbilling.models.list_invoices_response import ListInvoicesResponse from advancedbilling.models.list_invoice_events_response import ListInvoiceEventsResponse diff --git a/advancedbilling/controllers/offers_controller.py b/advancedbilling/controllers/offers_controller.py index fdb78117..9fa5ba8f 100644 --- a/advancedbilling/controllers/offers_controller.py +++ b/advancedbilling/controllers/offers_controller.py @@ -15,8 +15,6 @@ 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 apimatic_core.authentication.multiple.and_auth_group import And -from apimatic_core.authentication.multiple.or_auth_group import Or from advancedbilling.models.offer_response import OfferResponse from advancedbilling.models.list_offers_response import ListOffersResponse from advancedbilling.exceptions.error_array_map_response_exception import ErrorArrayMapResponseException diff --git a/advancedbilling/controllers/payment_profiles_controller.py b/advancedbilling/controllers/payment_profiles_controller.py index 23c6a66c..2a3a0a3c 100644 --- a/advancedbilling/controllers/payment_profiles_controller.py +++ b/advancedbilling/controllers/payment_profiles_controller.py @@ -15,8 +15,6 @@ 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 apimatic_core.authentication.multiple.and_auth_group import And -from apimatic_core.authentication.multiple.or_auth_group import Or from advancedbilling.models.payment_profile_response import PaymentProfileResponse from advancedbilling.models.bank_account_response import BankAccountResponse from advancedbilling.models.get_one_time_token_request import GetOneTimeTokenRequest diff --git a/advancedbilling/controllers/product_families_controller.py b/advancedbilling/controllers/product_families_controller.py index 104c0f02..502a480b 100644 --- a/advancedbilling/controllers/product_families_controller.py +++ b/advancedbilling/controllers/product_families_controller.py @@ -15,8 +15,6 @@ 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 apimatic_core.authentication.multiple.and_auth_group import And -from apimatic_core.authentication.multiple.or_auth_group import Or from advancedbilling.models.product_response import ProductResponse from advancedbilling.models.product_family_response import ProductFamilyResponse from advancedbilling.exceptions.api_exception import APIException diff --git a/advancedbilling/controllers/product_price_points_controller.py b/advancedbilling/controllers/product_price_points_controller.py index 0295ad5f..1f77ed5c 100644 --- a/advancedbilling/controllers/product_price_points_controller.py +++ b/advancedbilling/controllers/product_price_points_controller.py @@ -17,8 +17,6 @@ from advancedbilling.http.http_method_enum import HttpMethodEnum from apimatic_core.types.array_serialization_format import SerializationFormats from apimatic_core.authentication.multiple.single_auth import Single -from apimatic_core.authentication.multiple.and_auth_group import And -from apimatic_core.authentication.multiple.or_auth_group import Or from advancedbilling.models.product_price_point_response import ProductPricePointResponse from advancedbilling.models.list_product_price_points_response import ListProductPricePointsResponse from advancedbilling.models.product_response import ProductResponse diff --git a/advancedbilling/controllers/products_controller.py b/advancedbilling/controllers/products_controller.py index f8b925d5..7e0eaa11 100644 --- a/advancedbilling/controllers/products_controller.py +++ b/advancedbilling/controllers/products_controller.py @@ -15,8 +15,6 @@ 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 apimatic_core.authentication.multiple.and_auth_group import And -from apimatic_core.authentication.multiple.or_auth_group import Or from advancedbilling.models.product_response import ProductResponse from advancedbilling.exceptions.error_list_response_exception import ErrorListResponseException diff --git a/advancedbilling/controllers/proforma_invoices_controller.py b/advancedbilling/controllers/proforma_invoices_controller.py index 935f6e30..b0b067bf 100644 --- a/advancedbilling/controllers/proforma_invoices_controller.py +++ b/advancedbilling/controllers/proforma_invoices_controller.py @@ -15,8 +15,6 @@ 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 apimatic_core.authentication.multiple.and_auth_group import And -from apimatic_core.authentication.multiple.or_auth_group import Or from advancedbilling.models.proforma_invoice import ProformaInvoice from advancedbilling.models.proforma_invoice_preview import ProformaInvoicePreview from advancedbilling.models.signup_proforma_preview_response import SignupProformaPreviewResponse diff --git a/advancedbilling/controllers/reason_codes_controller.py b/advancedbilling/controllers/reason_codes_controller.py index e80024a7..4b8a0659 100644 --- a/advancedbilling/controllers/reason_codes_controller.py +++ b/advancedbilling/controllers/reason_codes_controller.py @@ -15,8 +15,6 @@ 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 apimatic_core.authentication.multiple.and_auth_group import And -from apimatic_core.authentication.multiple.or_auth_group import Or from advancedbilling.models.reason_code_response import ReasonCodeResponse from advancedbilling.models.reason_codes_json_response import ReasonCodesJsonResponse from advancedbilling.exceptions.error_list_response_exception import ErrorListResponseException diff --git a/advancedbilling/controllers/referral_codes_controller.py b/advancedbilling/controllers/referral_codes_controller.py index 9a1f43c2..b9ac03aa 100644 --- a/advancedbilling/controllers/referral_codes_controller.py +++ b/advancedbilling/controllers/referral_codes_controller.py @@ -15,8 +15,6 @@ 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 apimatic_core.authentication.multiple.and_auth_group import And -from apimatic_core.authentication.multiple.or_auth_group import Or from advancedbilling.models.referral_validation_response import ReferralValidationResponse from advancedbilling.exceptions.single_string_error_response_exception import SingleStringErrorResponseException diff --git a/advancedbilling/controllers/sales_commissions_controller.py b/advancedbilling/controllers/sales_commissions_controller.py index aaa4cc09..e8dbb54a 100644 --- a/advancedbilling/controllers/sales_commissions_controller.py +++ b/advancedbilling/controllers/sales_commissions_controller.py @@ -15,8 +15,6 @@ 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 apimatic_core.authentication.multiple.and_auth_group import And -from apimatic_core.authentication.multiple.or_auth_group import Or from advancedbilling.models.sale_rep_settings import SaleRepSettings from advancedbilling.models.list_sale_rep_item import ListSaleRepItem from advancedbilling.models.sale_rep import SaleRep diff --git a/advancedbilling/controllers/sites_controller.py b/advancedbilling/controllers/sites_controller.py index e1d35cd6..496fb90f 100644 --- a/advancedbilling/controllers/sites_controller.py +++ b/advancedbilling/controllers/sites_controller.py @@ -15,8 +15,6 @@ 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 apimatic_core.authentication.multiple.and_auth_group import And -from apimatic_core.authentication.multiple.or_auth_group import Or from advancedbilling.models.site_response import SiteResponse from advancedbilling.models.list_public_keys_response import ListPublicKeysResponse diff --git a/advancedbilling/controllers/subscription_components_controller.py b/advancedbilling/controllers/subscription_components_controller.py index c5db16fd..504134ac 100644 --- a/advancedbilling/controllers/subscription_components_controller.py +++ b/advancedbilling/controllers/subscription_components_controller.py @@ -17,8 +17,6 @@ from advancedbilling.http.http_method_enum import HttpMethodEnum from apimatic_core.types.array_serialization_format import SerializationFormats from apimatic_core.authentication.multiple.single_auth import Single -from apimatic_core.authentication.multiple.and_auth_group import And -from apimatic_core.authentication.multiple.or_auth_group import Or from advancedbilling.models.subscription_component_response import SubscriptionComponentResponse from advancedbilling.models.bulk_component_s_price_point_assignment import BulkComponentSPricePointAssignment from advancedbilling.models.subscription_response import SubscriptionResponse diff --git a/advancedbilling/controllers/subscription_group_invoice_account_controller.py b/advancedbilling/controllers/subscription_group_invoice_account_controller.py index eca00b69..7aa443f8 100644 --- a/advancedbilling/controllers/subscription_group_invoice_account_controller.py +++ b/advancedbilling/controllers/subscription_group_invoice_account_controller.py @@ -15,8 +15,6 @@ 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 apimatic_core.authentication.multiple.and_auth_group import And -from apimatic_core.authentication.multiple.or_auth_group import Or from advancedbilling.models.subscription_group_prepayment_response import SubscriptionGroupPrepaymentResponse from advancedbilling.models.list_subscription_group_prepayment_response import ListSubscriptionGroupPrepaymentResponse from advancedbilling.models.service_credit_response import ServiceCreditResponse diff --git a/advancedbilling/controllers/subscription_group_status_controller.py b/advancedbilling/controllers/subscription_group_status_controller.py index 4a7d0b35..197eafda 100644 --- a/advancedbilling/controllers/subscription_group_status_controller.py +++ b/advancedbilling/controllers/subscription_group_status_controller.py @@ -15,8 +15,6 @@ 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 apimatic_core.authentication.multiple.and_auth_group import And -from apimatic_core.authentication.multiple.or_auth_group import Or from advancedbilling.models.reactivate_subscription_group_response import ReactivateSubscriptionGroupResponse from advancedbilling.exceptions.error_list_response_exception import ErrorListResponseException diff --git a/advancedbilling/controllers/subscription_groups_controller.py b/advancedbilling/controllers/subscription_groups_controller.py index 2aac8ad3..fc4ee6ab 100644 --- a/advancedbilling/controllers/subscription_groups_controller.py +++ b/advancedbilling/controllers/subscription_groups_controller.py @@ -15,8 +15,6 @@ 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 apimatic_core.authentication.multiple.and_auth_group import And -from apimatic_core.authentication.multiple.or_auth_group import Or from advancedbilling.models.subscription_group_signup_response import SubscriptionGroupSignupResponse from advancedbilling.models.subscription_group_response import SubscriptionGroupResponse from advancedbilling.models.list_subscription_groups_response import ListSubscriptionGroupsResponse diff --git a/advancedbilling/controllers/subscription_invoice_account_controller.py b/advancedbilling/controllers/subscription_invoice_account_controller.py index b742611b..f7228c8b 100644 --- a/advancedbilling/controllers/subscription_invoice_account_controller.py +++ b/advancedbilling/controllers/subscription_invoice_account_controller.py @@ -15,8 +15,6 @@ 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 apimatic_core.authentication.multiple.and_auth_group import And -from apimatic_core.authentication.multiple.or_auth_group import Or from advancedbilling.models.account_balances import AccountBalances from advancedbilling.models.create_prepayment_response import CreatePrepaymentResponse from advancedbilling.models.prepayments_response import PrepaymentsResponse diff --git a/advancedbilling/controllers/subscription_notes_controller.py b/advancedbilling/controllers/subscription_notes_controller.py index 0d7f2c71..4d842db5 100644 --- a/advancedbilling/controllers/subscription_notes_controller.py +++ b/advancedbilling/controllers/subscription_notes_controller.py @@ -15,8 +15,6 @@ 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 apimatic_core.authentication.multiple.and_auth_group import And -from apimatic_core.authentication.multiple.or_auth_group import Or from advancedbilling.models.subscription_note_response import SubscriptionNoteResponse diff --git a/advancedbilling/controllers/subscription_products_controller.py b/advancedbilling/controllers/subscription_products_controller.py index 26f3a1d1..437363b3 100644 --- a/advancedbilling/controllers/subscription_products_controller.py +++ b/advancedbilling/controllers/subscription_products_controller.py @@ -15,8 +15,6 @@ 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 apimatic_core.authentication.multiple.and_auth_group import And -from apimatic_core.authentication.multiple.or_auth_group import Or from advancedbilling.models.subscription_response import SubscriptionResponse from advancedbilling.models.subscription_migration_preview_response import SubscriptionMigrationPreviewResponse from advancedbilling.exceptions.error_list_response_exception import ErrorListResponseException diff --git a/advancedbilling/controllers/subscription_status_controller.py b/advancedbilling/controllers/subscription_status_controller.py index f8a3d24b..5f7779a8 100644 --- a/advancedbilling/controllers/subscription_status_controller.py +++ b/advancedbilling/controllers/subscription_status_controller.py @@ -15,8 +15,6 @@ 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 apimatic_core.authentication.multiple.and_auth_group import And -from apimatic_core.authentication.multiple.or_auth_group import Or from advancedbilling.models.subscription_response import SubscriptionResponse from advancedbilling.models.delayed_cancellation_response import DelayedCancellationResponse from advancedbilling.models.renewal_preview_response import RenewalPreviewResponse diff --git a/advancedbilling/controllers/subscriptions_controller.py b/advancedbilling/controllers/subscriptions_controller.py index d29990a5..835164cb 100644 --- a/advancedbilling/controllers/subscriptions_controller.py +++ b/advancedbilling/controllers/subscriptions_controller.py @@ -16,8 +16,6 @@ from advancedbilling.http.http_method_enum import HttpMethodEnum from apimatic_core.types.array_serialization_format import SerializationFormats from apimatic_core.authentication.multiple.single_auth import Single -from apimatic_core.authentication.multiple.and_auth_group import And -from apimatic_core.authentication.multiple.or_auth_group import Or from advancedbilling.models.subscription_response import SubscriptionResponse from advancedbilling.models.prepaid_configuration_response import PrepaidConfigurationResponse from advancedbilling.models.subscription_preview_response import SubscriptionPreviewResponse diff --git a/advancedbilling/controllers/webhooks_controller.py b/advancedbilling/controllers/webhooks_controller.py index 99a471f7..124b034f 100644 --- a/advancedbilling/controllers/webhooks_controller.py +++ b/advancedbilling/controllers/webhooks_controller.py @@ -15,8 +15,6 @@ 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 apimatic_core.authentication.multiple.and_auth_group import And -from apimatic_core.authentication.multiple.or_auth_group import Or from advancedbilling.models.webhook_response import WebhookResponse from advancedbilling.models.enable_webhooks_response import EnableWebhooksResponse from advancedbilling.models.replay_webhooks_response import ReplayWebhooksResponse diff --git a/advancedbilling/models/apply_payment_event_data.py b/advancedbilling/models/apply_payment_event_data.py index 5b224670..fa28bc95 100644 --- a/advancedbilling/models/apply_payment_event_data.py +++ b/advancedbilling/models/apply_payment_event_data.py @@ -162,7 +162,7 @@ def validate(cls, dictionary): and APIHelper.is_valid_type(value=dictionary.original_amount, type_callable=lambda value: isinstance(value, str)) \ and APIHelper.is_valid_type(value=dictionary.applied_amount, type_callable=lambda value: isinstance(value, str)) \ and APIHelper.is_valid_type(value=dictionary.transaction_time, type_callable=lambda value: isinstance(value, APIHelper.RFC3339DateTime)) \ - and UnionTypeLookUp.get('Invoice-Event-Payment').validate(dictionary.payment_method) + and UnionTypeLookUp.get('Invoice-Event-Payment').validate(dictionary.payment_method).is_valid if not isinstance(dictionary, dict): return False @@ -171,4 +171,4 @@ def validate(cls, dictionary): and APIHelper.is_valid_type(value=dictionary.get('original_amount'), type_callable=lambda value: isinstance(value, str)) \ and APIHelper.is_valid_type(value=dictionary.get('applied_amount'), type_callable=lambda value: isinstance(value, str)) \ and APIHelper.is_valid_type(value=dictionary.get('transaction_time'), type_callable=lambda value: isinstance(value, str)) \ - and UnionTypeLookUp.get('Invoice-Event-Payment').validate(dictionary.get('payment_method')) + and UnionTypeLookUp.get('Invoice-Event-Payment').validate(dictionary.get('payment_method')).is_valid diff --git a/advancedbilling/models/create_component_price_point_request.py b/advancedbilling/models/create_component_price_point_request.py index 96d1ab50..dc434475 100644 --- a/advancedbilling/models/create_component_price_point_request.py +++ b/advancedbilling/models/create_component_price_point_request.py @@ -74,9 +74,9 @@ def validate(cls, dictionary): from advancedbilling.utilities.union_type_lookup import UnionTypeLookUp if isinstance(dictionary, cls): - return UnionTypeLookUp.get('CreateComponentPricePointRequestPricePoint').validate(dictionary.price_point) + return UnionTypeLookUp.get('CreateComponentPricePointRequestPricePoint').validate(dictionary.price_point).is_valid if not isinstance(dictionary, dict): return False - return UnionTypeLookUp.get('CreateComponentPricePointRequestPricePoint').validate(dictionary.get('price_point')) + return UnionTypeLookUp.get('CreateComponentPricePointRequestPricePoint').validate(dictionary.get('price_point')).is_valid diff --git a/advancedbilling/models/create_component_price_points_request.py b/advancedbilling/models/create_component_price_points_request.py index 7e0bf0c0..eb1cef84 100644 --- a/advancedbilling/models/create_component_price_points_request.py +++ b/advancedbilling/models/create_component_price_points_request.py @@ -74,9 +74,9 @@ def validate(cls, dictionary): from advancedbilling.utilities.union_type_lookup import UnionTypeLookUp if isinstance(dictionary, cls): - return UnionTypeLookUp.get('CreateComponentPricePointsRequestPricePoints').validate(dictionary.price_points) + return UnionTypeLookUp.get('CreateComponentPricePointsRequestPricePoints').validate(dictionary.price_points).is_valid if not isinstance(dictionary, dict): return False - return UnionTypeLookUp.get('CreateComponentPricePointsRequestPricePoints').validate(dictionary.get('price_points')) + return UnionTypeLookUp.get('CreateComponentPricePointsRequestPricePoints').validate(dictionary.get('price_points')).is_valid diff --git a/advancedbilling/models/create_metafields_request.py b/advancedbilling/models/create_metafields_request.py index 7300e847..31b2910b 100644 --- a/advancedbilling/models/create_metafields_request.py +++ b/advancedbilling/models/create_metafields_request.py @@ -73,9 +73,9 @@ def validate(cls, dictionary): from advancedbilling.utilities.union_type_lookup import UnionTypeLookUp if isinstance(dictionary, cls): - return UnionTypeLookUp.get('CreateMetafieldsRequestMetafields').validate(dictionary.metafields) + return UnionTypeLookUp.get('CreateMetafieldsRequestMetafields').validate(dictionary.metafields).is_valid if not isinstance(dictionary, dict): return False - return UnionTypeLookUp.get('CreateMetafieldsRequestMetafields').validate(dictionary.get('metafields')) + return UnionTypeLookUp.get('CreateMetafieldsRequestMetafields').validate(dictionary.get('metafields')).is_valid diff --git a/advancedbilling/models/create_multi_invoice_payment.py b/advancedbilling/models/create_multi_invoice_payment.py index 0de1b55a..39ae8807 100644 --- a/advancedbilling/models/create_multi_invoice_payment.py +++ b/advancedbilling/models/create_multi_invoice_payment.py @@ -119,11 +119,11 @@ def validate(cls, dictionary): from advancedbilling.utilities.union_type_lookup import UnionTypeLookUp if isinstance(dictionary, cls): - return UnionTypeLookUp.get('CreateMultiInvoicePaymentAmount').validate(dictionary.amount) \ + return UnionTypeLookUp.get('CreateMultiInvoicePaymentAmount').validate(dictionary.amount).is_valid \ and APIHelper.is_valid_type(value=dictionary.applications, type_callable=lambda value: CreateInvoicePaymentApplication.validate(value)) if not isinstance(dictionary, dict): return False - return UnionTypeLookUp.get('CreateMultiInvoicePaymentAmount').validate(dictionary.get('amount')) \ + return UnionTypeLookUp.get('CreateMultiInvoicePaymentAmount').validate(dictionary.get('amount')).is_valid \ and APIHelper.is_valid_type(value=dictionary.get('applications'), type_callable=lambda value: CreateInvoicePaymentApplication.validate(value)) diff --git a/advancedbilling/models/create_or_update_percentage_coupon.py b/advancedbilling/models/create_or_update_percentage_coupon.py index 4199ef3e..2f1cfa72 100644 --- a/advancedbilling/models/create_or_update_percentage_coupon.py +++ b/advancedbilling/models/create_or_update_percentage_coupon.py @@ -164,11 +164,11 @@ def validate(cls, dictionary): if isinstance(dictionary, cls): return APIHelper.is_valid_type(value=dictionary.name, type_callable=lambda value: isinstance(value, str)) \ and APIHelper.is_valid_type(value=dictionary.code, type_callable=lambda value: isinstance(value, str)) \ - and UnionTypeLookUp.get('CreateOrUpdatePercentageCouponPercentage').validate(dictionary.percentage) + and UnionTypeLookUp.get('CreateOrUpdatePercentageCouponPercentage').validate(dictionary.percentage).is_valid if not isinstance(dictionary, dict): return False return APIHelper.is_valid_type(value=dictionary.get('name'), type_callable=lambda value: isinstance(value, str)) \ and APIHelper.is_valid_type(value=dictionary.get('code'), type_callable=lambda value: isinstance(value, str)) \ - and UnionTypeLookUp.get('CreateOrUpdatePercentageCouponPercentage').validate(dictionary.get('percentage')) + and UnionTypeLookUp.get('CreateOrUpdatePercentageCouponPercentage').validate(dictionary.get('percentage')).is_valid diff --git a/advancedbilling/models/create_or_update_segment_price.py b/advancedbilling/models/create_or_update_segment_price.py index 38662d09..20f12f16 100644 --- a/advancedbilling/models/create_or_update_segment_price.py +++ b/advancedbilling/models/create_or_update_segment_price.py @@ -92,9 +92,9 @@ def validate(cls, dictionary): from advancedbilling.utilities.union_type_lookup import UnionTypeLookUp if isinstance(dictionary, cls): - return UnionTypeLookUp.get('CreateOrUpdateSegmentPriceUnitPrice').validate(dictionary.unit_price) + return UnionTypeLookUp.get('CreateOrUpdateSegmentPriceUnitPrice').validate(dictionary.unit_price).is_valid if not isinstance(dictionary, dict): return False - return UnionTypeLookUp.get('CreateOrUpdateSegmentPriceUnitPrice').validate(dictionary.get('unit_price')) + return UnionTypeLookUp.get('CreateOrUpdateSegmentPriceUnitPrice').validate(dictionary.get('unit_price')).is_valid diff --git a/advancedbilling/models/create_subscription_group.py b/advancedbilling/models/create_subscription_group.py index 1067f77f..9666b5fd 100644 --- a/advancedbilling/models/create_subscription_group.py +++ b/advancedbilling/models/create_subscription_group.py @@ -83,9 +83,9 @@ def validate(cls, dictionary): from advancedbilling.utilities.union_type_lookup import UnionTypeLookUp if isinstance(dictionary, cls): - return UnionTypeLookUp.get('CreateSubscriptionGroupSubscriptionId').validate(dictionary.subscription_id) + return UnionTypeLookUp.get('CreateSubscriptionGroupSubscriptionId').validate(dictionary.subscription_id).is_valid if not isinstance(dictionary, dict): return False - return UnionTypeLookUp.get('CreateSubscriptionGroupSubscriptionId').validate(dictionary.get('subscription_id')) + return UnionTypeLookUp.get('CreateSubscriptionGroupSubscriptionId').validate(dictionary.get('subscription_id')).is_valid diff --git a/advancedbilling/models/custom_field_value_change.py b/advancedbilling/models/custom_field_value_change.py index 2055e190..5b85a225 100644 --- a/advancedbilling/models/custom_field_value_change.py +++ b/advancedbilling/models/custom_field_value_change.py @@ -114,8 +114,8 @@ def validate(cls, dictionary): return APIHelper.is_valid_type(value=dictionary.event_type, type_callable=lambda value: isinstance(value, str)) \ and APIHelper.is_valid_type(value=dictionary.metafield_name, type_callable=lambda value: isinstance(value, str)) \ and APIHelper.is_valid_type(value=dictionary.metafield_id, type_callable=lambda value: isinstance(value, int)) \ - and APIHelper.is_valid_type(value=dictionary.old_value, type_callable=lambda value: isinstance(value, str)) \ - and APIHelper.is_valid_type(value=dictionary.new_value, type_callable=lambda value: isinstance(value, str)) \ + and APIHelper.is_valid_type(value=dictionary.old_value, type_callable=lambda value: isinstance(value, str), is_value_nullable=True) \ + and APIHelper.is_valid_type(value=dictionary.new_value, type_callable=lambda value: isinstance(value, str), is_value_nullable=True) \ and APIHelper.is_valid_type(value=dictionary.resource_type, type_callable=lambda value: isinstance(value, str)) \ and APIHelper.is_valid_type(value=dictionary.resource_id, type_callable=lambda value: isinstance(value, int)) @@ -125,7 +125,7 @@ def validate(cls, dictionary): return APIHelper.is_valid_type(value=dictionary.get('event_type'), type_callable=lambda value: isinstance(value, str)) \ and APIHelper.is_valid_type(value=dictionary.get('metafield_name'), type_callable=lambda value: isinstance(value, str)) \ and APIHelper.is_valid_type(value=dictionary.get('metafield_id'), type_callable=lambda value: isinstance(value, int)) \ - and APIHelper.is_valid_type(value=dictionary.get('old_value'), type_callable=lambda value: isinstance(value, str)) \ - and APIHelper.is_valid_type(value=dictionary.get('new_value'), type_callable=lambda value: isinstance(value, str)) \ + and APIHelper.is_valid_type(value=dictionary.get('old_value'), type_callable=lambda value: isinstance(value, str), is_value_nullable=True) \ + and APIHelper.is_valid_type(value=dictionary.get('new_value'), type_callable=lambda value: isinstance(value, str), is_value_nullable=True) \ and APIHelper.is_valid_type(value=dictionary.get('resource_type'), type_callable=lambda value: isinstance(value, str)) \ and APIHelper.is_valid_type(value=dictionary.get('resource_id'), type_callable=lambda value: isinstance(value, int)) diff --git a/advancedbilling/models/deduct_service_credit.py b/advancedbilling/models/deduct_service_credit.py index db7d8360..0fcb1971 100644 --- a/advancedbilling/models/deduct_service_credit.py +++ b/advancedbilling/models/deduct_service_credit.py @@ -78,11 +78,11 @@ def validate(cls, dictionary): from advancedbilling.utilities.union_type_lookup import UnionTypeLookUp if isinstance(dictionary, cls): - return UnionTypeLookUp.get('DeductServiceCreditAmount').validate(dictionary.amount) \ + return UnionTypeLookUp.get('DeductServiceCreditAmount').validate(dictionary.amount).is_valid \ and APIHelper.is_valid_type(value=dictionary.memo, type_callable=lambda value: isinstance(value, str)) if not isinstance(dictionary, dict): return False - return UnionTypeLookUp.get('DeductServiceCreditAmount').validate(dictionary.get('amount')) \ + return UnionTypeLookUp.get('DeductServiceCreditAmount').validate(dictionary.get('amount')).is_valid \ and APIHelper.is_valid_type(value=dictionary.get('memo'), type_callable=lambda value: isinstance(value, str)) diff --git a/advancedbilling/models/event.py b/advancedbilling/models/event.py index 58589040..1af051b2 100644 --- a/advancedbilling/models/event.py +++ b/advancedbilling/models/event.py @@ -124,10 +124,10 @@ def validate(cls, dictionary): return APIHelper.is_valid_type(value=dictionary.id, type_callable=lambda value: isinstance(value, int)) \ 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)) \ + 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.created_at, type_callable=lambda value: isinstance(value, str)) \ - and UnionTypeLookUp.get('EventEventSpecificData').validate(dictionary.event_specific_data) + and UnionTypeLookUp.get('EventEventSpecificData').validate(dictionary.event_specific_data).is_valid if not isinstance(dictionary, dict): return False @@ -135,7 +135,7 @@ def validate(cls, dictionary): return APIHelper.is_valid_type(value=dictionary.get('id'), type_callable=lambda value: isinstance(value, int)) \ 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)) \ + 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('created_at'), type_callable=lambda value: isinstance(value, str)) \ - and UnionTypeLookUp.get('EventEventSpecificData').validate(dictionary.get('event_specific_data')) + and UnionTypeLookUp.get('EventEventSpecificData').validate(dictionary.get('event_specific_data')).is_valid diff --git a/advancedbilling/models/issue_service_credit.py b/advancedbilling/models/issue_service_credit.py index 8e940e5b..81402552 100644 --- a/advancedbilling/models/issue_service_credit.py +++ b/advancedbilling/models/issue_service_credit.py @@ -78,11 +78,11 @@ def validate(cls, dictionary): from advancedbilling.utilities.union_type_lookup import UnionTypeLookUp if isinstance(dictionary, cls): - return UnionTypeLookUp.get('IssueServiceCreditAmount').validate(dictionary.amount) \ + return UnionTypeLookUp.get('IssueServiceCreditAmount').validate(dictionary.amount).is_valid \ and APIHelper.is_valid_type(value=dictionary.memo, type_callable=lambda value: isinstance(value, str)) if not isinstance(dictionary, dict): return False - return UnionTypeLookUp.get('IssueServiceCreditAmount').validate(dictionary.get('amount')) \ + return UnionTypeLookUp.get('IssueServiceCreditAmount').validate(dictionary.get('amount')).is_valid \ and APIHelper.is_valid_type(value=dictionary.get('memo'), type_callable=lambda value: isinstance(value, str)) diff --git a/advancedbilling/models/payment_method_external.py b/advancedbilling/models/payment_method_external.py index 92dfdb75..1695b939 100644 --- a/advancedbilling/models/payment_method_external.py +++ b/advancedbilling/models/payment_method_external.py @@ -94,15 +94,15 @@ def validate(cls, dictionary): """ if isinstance(dictionary, cls): - return APIHelper.is_valid_type(value=dictionary.details, type_callable=lambda value: isinstance(value, str)) \ + return APIHelper.is_valid_type(value=dictionary.details, type_callable=lambda value: isinstance(value, str), is_value_nullable=True) \ and APIHelper.is_valid_type(value=dictionary.kind, type_callable=lambda value: isinstance(value, str)) \ - and APIHelper.is_valid_type(value=dictionary.memo, type_callable=lambda value: isinstance(value, str)) \ + and APIHelper.is_valid_type(value=dictionary.memo, type_callable=lambda value: isinstance(value, str), is_value_nullable=True) \ and APIHelper.is_valid_type(value=dictionary.mtype, type_callable=lambda value: InvoiceEventPaymentMethod.validate(value)) if not isinstance(dictionary, dict): return False - return APIHelper.is_valid_type(value=dictionary.get('details'), type_callable=lambda value: isinstance(value, str)) \ + return APIHelper.is_valid_type(value=dictionary.get('details'), type_callable=lambda value: isinstance(value, str), is_value_nullable=True) \ and APIHelper.is_valid_type(value=dictionary.get('kind'), type_callable=lambda value: isinstance(value, str)) \ - and APIHelper.is_valid_type(value=dictionary.get('memo'), type_callable=lambda value: isinstance(value, str)) \ + and APIHelper.is_valid_type(value=dictionary.get('memo'), type_callable=lambda value: isinstance(value, str), is_value_nullable=True) \ and APIHelper.is_valid_type(value=dictionary.get('type'), type_callable=lambda value: InvoiceEventPaymentMethod.validate(value)) diff --git a/advancedbilling/models/payment_profile_response.py b/advancedbilling/models/payment_profile_response.py index 88939fbc..5e8cef20 100644 --- a/advancedbilling/models/payment_profile_response.py +++ b/advancedbilling/models/payment_profile_response.py @@ -73,9 +73,9 @@ def validate(cls, dictionary): from advancedbilling.utilities.union_type_lookup import UnionTypeLookUp if isinstance(dictionary, cls): - return UnionTypeLookUp.get('PaymentProfileResponsePaymentProfile').validate(dictionary.payment_profile) + return UnionTypeLookUp.get('PaymentProfileResponsePaymentProfile').validate(dictionary.payment_profile).is_valid if not isinstance(dictionary, dict): return False - return UnionTypeLookUp.get('PaymentProfileResponsePaymentProfile').validate(dictionary.get('payment_profile')) + return UnionTypeLookUp.get('PaymentProfileResponsePaymentProfile').validate(dictionary.get('payment_profile')).is_valid diff --git a/advancedbilling/models/price.py b/advancedbilling/models/price.py index 2daa50f7..64c3a566 100644 --- a/advancedbilling/models/price.py +++ b/advancedbilling/models/price.py @@ -97,11 +97,11 @@ def validate(cls, dictionary): from advancedbilling.utilities.union_type_lookup import UnionTypeLookUp if isinstance(dictionary, cls): - return UnionTypeLookUp.get('PriceStartingQuantity').validate(dictionary.starting_quantity) \ - and UnionTypeLookUp.get('PriceUnitPrice').validate(dictionary.unit_price) + return UnionTypeLookUp.get('PriceStartingQuantity').validate(dictionary.starting_quantity).is_valid \ + and UnionTypeLookUp.get('PriceUnitPrice').validate(dictionary.unit_price).is_valid if not isinstance(dictionary, dict): return False - return UnionTypeLookUp.get('PriceStartingQuantity').validate(dictionary.get('starting_quantity')) \ - and UnionTypeLookUp.get('PriceUnitPrice').validate(dictionary.get('unit_price')) + return UnionTypeLookUp.get('PriceStartingQuantity').validate(dictionary.get('starting_quantity')).is_valid \ + and UnionTypeLookUp.get('PriceUnitPrice').validate(dictionary.get('unit_price')).is_valid diff --git a/advancedbilling/models/refund_consolidated_invoice.py b/advancedbilling/models/refund_consolidated_invoice.py index 64c37f0c..3d76caba 100644 --- a/advancedbilling/models/refund_consolidated_invoice.py +++ b/advancedbilling/models/refund_consolidated_invoice.py @@ -118,11 +118,11 @@ def validate(cls, dictionary): if isinstance(dictionary, cls): return APIHelper.is_valid_type(value=dictionary.memo, type_callable=lambda value: isinstance(value, str)) \ and APIHelper.is_valid_type(value=dictionary.payment_id, type_callable=lambda value: isinstance(value, int)) \ - and UnionTypeLookUp.get('RefundConsolidatedInvoiceSegmentUids').validate(dictionary.segment_uids) + and UnionTypeLookUp.get('RefundConsolidatedInvoiceSegmentUids').validate(dictionary.segment_uids).is_valid if not isinstance(dictionary, dict): return False return APIHelper.is_valid_type(value=dictionary.get('memo'), type_callable=lambda value: isinstance(value, str)) \ and APIHelper.is_valid_type(value=dictionary.get('payment_id'), type_callable=lambda value: isinstance(value, int)) \ - and UnionTypeLookUp.get('RefundConsolidatedInvoiceSegmentUids').validate(dictionary.get('segment_uids')) + and UnionTypeLookUp.get('RefundConsolidatedInvoiceSegmentUids').validate(dictionary.get('segment_uids')).is_valid diff --git a/advancedbilling/models/refund_invoice_request.py b/advancedbilling/models/refund_invoice_request.py index 53b20b07..45b44cc3 100644 --- a/advancedbilling/models/refund_invoice_request.py +++ b/advancedbilling/models/refund_invoice_request.py @@ -73,9 +73,9 @@ def validate(cls, dictionary): from advancedbilling.utilities.union_type_lookup import UnionTypeLookUp if isinstance(dictionary, cls): - return UnionTypeLookUp.get('RefundInvoiceRequestRefund').validate(dictionary.refund) + return UnionTypeLookUp.get('RefundInvoiceRequestRefund').validate(dictionary.refund).is_valid if not isinstance(dictionary, dict): return False - return UnionTypeLookUp.get('RefundInvoiceRequestRefund').validate(dictionary.get('refund')) + return UnionTypeLookUp.get('RefundInvoiceRequestRefund').validate(dictionary.get('refund')).is_valid diff --git a/advancedbilling/models/refund_prepayment.py b/advancedbilling/models/refund_prepayment.py index 36230c20..3ca40ad8 100644 --- a/advancedbilling/models/refund_prepayment.py +++ b/advancedbilling/models/refund_prepayment.py @@ -101,12 +101,12 @@ def validate(cls, dictionary): if isinstance(dictionary, cls): return APIHelper.is_valid_type(value=dictionary.amount_in_cents, type_callable=lambda value: isinstance(value, int)) \ - and UnionTypeLookUp.get('RefundPrepaymentAmount').validate(dictionary.amount) \ + and UnionTypeLookUp.get('RefundPrepaymentAmount').validate(dictionary.amount).is_valid \ and APIHelper.is_valid_type(value=dictionary.memo, type_callable=lambda value: isinstance(value, str)) if not isinstance(dictionary, dict): return False return APIHelper.is_valid_type(value=dictionary.get('amount_in_cents'), type_callable=lambda value: isinstance(value, int)) \ - and UnionTypeLookUp.get('RefundPrepaymentAmount').validate(dictionary.get('amount')) \ + and UnionTypeLookUp.get('RefundPrepaymentAmount').validate(dictionary.get('amount')).is_valid \ and APIHelper.is_valid_type(value=dictionary.get('memo'), type_callable=lambda value: isinstance(value, str)) diff --git a/advancedbilling/models/remove_payment_event_data.py b/advancedbilling/models/remove_payment_event_data.py index 1f43694b..70e36070 100644 --- a/advancedbilling/models/remove_payment_event_data.py +++ b/advancedbilling/models/remove_payment_event_data.py @@ -123,7 +123,7 @@ def validate(cls, dictionary): and APIHelper.is_valid_type(value=dictionary.memo, type_callable=lambda value: isinstance(value, str)) \ and APIHelper.is_valid_type(value=dictionary.applied_amount, type_callable=lambda value: isinstance(value, str)) \ and APIHelper.is_valid_type(value=dictionary.transaction_time, type_callable=lambda value: isinstance(value, APIHelper.RFC3339DateTime)) \ - and UnionTypeLookUp.get('Invoice-Event-Payment').validate(dictionary.payment_method) \ + and UnionTypeLookUp.get('Invoice-Event-Payment').validate(dictionary.payment_method).is_valid \ and APIHelper.is_valid_type(value=dictionary.prepayment, type_callable=lambda value: isinstance(value, bool)) if not isinstance(dictionary, dict): @@ -133,5 +133,5 @@ def validate(cls, dictionary): and APIHelper.is_valid_type(value=dictionary.get('memo'), type_callable=lambda value: isinstance(value, str)) \ and APIHelper.is_valid_type(value=dictionary.get('applied_amount'), type_callable=lambda value: isinstance(value, str)) \ and APIHelper.is_valid_type(value=dictionary.get('transaction_time'), type_callable=lambda value: isinstance(value, str)) \ - and UnionTypeLookUp.get('Invoice-Event-Payment').validate(dictionary.get('payment_method')) \ + and UnionTypeLookUp.get('Invoice-Event-Payment').validate(dictionary.get('payment_method')).is_valid \ and APIHelper.is_valid_type(value=dictionary.get('prepayment'), type_callable=lambda value: isinstance(value, bool)) diff --git a/advancedbilling/models/subscription_custom_price.py b/advancedbilling/models/subscription_custom_price.py index 99ae4d59..787be475 100644 --- a/advancedbilling/models/subscription_custom_price.py +++ b/advancedbilling/models/subscription_custom_price.py @@ -171,13 +171,13 @@ def validate(cls, dictionary): from advancedbilling.utilities.union_type_lookup import UnionTypeLookUp if isinstance(dictionary, cls): - return UnionTypeLookUp.get('SubscriptionCustomPricePriceInCents').validate(dictionary.price_in_cents) \ - and UnionTypeLookUp.get('SubscriptionCustomPriceInterval').validate(dictionary.interval) \ + return UnionTypeLookUp.get('SubscriptionCustomPricePriceInCents').validate(dictionary.price_in_cents).is_valid \ + and UnionTypeLookUp.get('SubscriptionCustomPriceInterval').validate(dictionary.interval).is_valid \ and APIHelper.is_valid_type(value=dictionary.interval_unit, type_callable=lambda value: IntervalUnit.validate(value)) if not isinstance(dictionary, dict): return False - return UnionTypeLookUp.get('SubscriptionCustomPricePriceInCents').validate(dictionary.get('price_in_cents')) \ - and UnionTypeLookUp.get('SubscriptionCustomPriceInterval').validate(dictionary.get('interval')) \ + return UnionTypeLookUp.get('SubscriptionCustomPricePriceInCents').validate(dictionary.get('price_in_cents')).is_valid \ + and UnionTypeLookUp.get('SubscriptionCustomPriceInterval').validate(dictionary.get('interval')).is_valid \ and APIHelper.is_valid_type(value=dictionary.get('interval_unit'), type_callable=lambda value: IntervalUnit.validate(value)) diff --git a/advancedbilling/models/subscription_group_signup_failure.py b/advancedbilling/models/subscription_group_signup_failure.py index c9b180cb..e934464b 100644 --- a/advancedbilling/models/subscription_group_signup_failure.py +++ b/advancedbilling/models/subscription_group_signup_failure.py @@ -83,10 +83,10 @@ def validate(cls, dictionary): if isinstance(dictionary, cls): return APIHelper.is_valid_type(value=dictionary.subscription_group, type_callable=lambda value: SubscriptionGroupSignupFailureData.validate(value)) \ - and APIHelper.is_valid_type(value=dictionary.customer, type_callable=lambda value: isinstance(value, str)) + and APIHelper.is_valid_type(value=dictionary.customer, type_callable=lambda value: isinstance(value, str), is_value_nullable=True) if not isinstance(dictionary, dict): return False return APIHelper.is_valid_type(value=dictionary.get('subscription_group'), type_callable=lambda value: SubscriptionGroupSignupFailureData.validate(value)) \ - and APIHelper.is_valid_type(value=dictionary.get('customer'), type_callable=lambda value: isinstance(value, str)) + and APIHelper.is_valid_type(value=dictionary.get('customer'), type_callable=lambda value: isinstance(value, str), is_value_nullable=True) diff --git a/advancedbilling/models/void_invoice_event_data.py b/advancedbilling/models/void_invoice_event_data.py index 012f7650..8861d748 100644 --- a/advancedbilling/models/void_invoice_event_data.py +++ b/advancedbilling/models/void_invoice_event_data.py @@ -112,19 +112,19 @@ def validate(cls, dictionary): from advancedbilling.utilities.union_type_lookup import UnionTypeLookUp if isinstance(dictionary, cls): - return UnionTypeLookUp.get('VoidInvoiceEventDataCreditNoteAttributes').validate(dictionary.credit_note_attributes) \ - and APIHelper.is_valid_type(value=dictionary.memo, type_callable=lambda value: isinstance(value, str)) \ - and APIHelper.is_valid_type(value=dictionary.applied_amount, type_callable=lambda value: isinstance(value, str)) \ - and APIHelper.is_valid_type(value=dictionary.transaction_time, type_callable=lambda value: isinstance(value, APIHelper.RFC3339DateTime)) \ + return UnionTypeLookUp.get('VoidInvoiceEventDataCreditNoteAttributes').validate(dictionary.credit_note_attributes).is_valid \ + and APIHelper.is_valid_type(value=dictionary.memo, type_callable=lambda value: isinstance(value, str), is_value_nullable=True) \ + and APIHelper.is_valid_type(value=dictionary.applied_amount, type_callable=lambda value: isinstance(value, str), is_value_nullable=True) \ + and APIHelper.is_valid_type(value=dictionary.transaction_time, type_callable=lambda value: isinstance(value, APIHelper.RFC3339DateTime), is_value_nullable=True) \ and APIHelper.is_valid_type(value=dictionary.is_advance_invoice, type_callable=lambda value: isinstance(value, bool)) \ and APIHelper.is_valid_type(value=dictionary.reason, type_callable=lambda value: isinstance(value, str)) if not isinstance(dictionary, dict): return False - return UnionTypeLookUp.get('VoidInvoiceEventDataCreditNoteAttributes').validate(dictionary.get('credit_note_attributes')) \ - and APIHelper.is_valid_type(value=dictionary.get('memo'), type_callable=lambda value: isinstance(value, str)) \ - and APIHelper.is_valid_type(value=dictionary.get('applied_amount'), type_callable=lambda value: isinstance(value, str)) \ - and APIHelper.is_valid_type(value=dictionary.get('transaction_time'), type_callable=lambda value: isinstance(value, str)) \ + return UnionTypeLookUp.get('VoidInvoiceEventDataCreditNoteAttributes').validate(dictionary.get('credit_note_attributes')).is_valid \ + and APIHelper.is_valid_type(value=dictionary.get('memo'), type_callable=lambda value: isinstance(value, str), is_value_nullable=True) \ + and APIHelper.is_valid_type(value=dictionary.get('applied_amount'), type_callable=lambda value: isinstance(value, str), is_value_nullable=True) \ + and APIHelper.is_valid_type(value=dictionary.get('transaction_time'), type_callable=lambda value: isinstance(value, str), is_value_nullable=True) \ and APIHelper.is_valid_type(value=dictionary.get('is_advance_invoice'), type_callable=lambda value: isinstance(value, bool)) \ and APIHelper.is_valid_type(value=dictionary.get('reason'), type_callable=lambda value: isinstance(value, str)) diff --git a/tests/test_invoices.py b/tests/test_invoices.py index 54cb1735..b2ca18c1 100644 --- a/tests/test_invoices.py +++ b/tests/test_invoices.py @@ -338,7 +338,6 @@ def test_void_invoice_given_invoice_then_should_be_voided(self): self.get_customers_controller().delete_customer(customer.id) def test_list_invoice_events_given_voided_invoice_then_return_void_invoice_event_and_issue_invoice_event(self): - pytest.skip("Waiting for sdk update.") product_family: ProductFamily = self.get_product_families_controller().create_product_family( CreateProductFamilyRequest(product_family=CreateProductFamily( name="TestInvoices_Product_Family_Name_3",