maxio-advanced-billing-sdk 1.0.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +59 -297
- data/lib/advanced_billing/client.rb +21 -22
- data/lib/advanced_billing/configuration.rb +17 -18
- data/lib/advanced_billing/controllers/advance_invoice_controller.rb +8 -10
- data/lib/advanced_billing/controllers/api_exports_controller.rb +9 -9
- data/lib/advanced_billing/controllers/base_controller.rb +2 -1
- data/lib/advanced_billing/controllers/billing_portal_controller.rb +4 -4
- data/lib/advanced_billing/controllers/components_controller.rb +22 -22
- data/lib/advanced_billing/controllers/coupons_controller.rb +14 -14
- data/lib/advanced_billing/controllers/custom_fields_controller.rb +9 -9
- data/lib/advanced_billing/controllers/customers_controller.rb +7 -7
- data/lib/advanced_billing/controllers/events_based_billing_segments_controller.rb +6 -6
- data/lib/advanced_billing/controllers/events_controller.rb +3 -3
- data/lib/advanced_billing/controllers/insights_controller.rb +4 -4
- data/lib/advanced_billing/controllers/invoices_controller.rb +24 -20
- data/lib/advanced_billing/controllers/offers_controller.rb +5 -5
- data/lib/advanced_billing/controllers/payment_profiles_controller.rb +12 -12
- data/lib/advanced_billing/controllers/product_families_controller.rb +4 -4
- data/lib/advanced_billing/controllers/product_price_points_controller.rb +11 -11
- data/lib/advanced_billing/controllers/products_controller.rb +6 -6
- data/lib/advanced_billing/controllers/proforma_invoices_controller.rb +44 -25
- data/lib/advanced_billing/controllers/reason_codes_controller.rb +5 -5
- data/lib/advanced_billing/controllers/referral_codes_controller.rb +2 -2
- data/lib/advanced_billing/controllers/sales_commissions_controller.rb +3 -3
- data/lib/advanced_billing/controllers/sites_controller.rb +3 -3
- data/lib/advanced_billing/controllers/subscription_components_controller.rb +37 -31
- data/lib/advanced_billing/controllers/subscription_group_invoice_account_controller.rb +4 -4
- data/lib/advanced_billing/controllers/subscription_group_status_controller.rb +4 -4
- data/lib/advanced_billing/controllers/subscription_groups_controller.rb +23 -16
- data/lib/advanced_billing/controllers/subscription_invoice_account_controller.rb +11 -7
- data/lib/advanced_billing/controllers/subscription_notes_controller.rb +5 -5
- data/lib/advanced_billing/controllers/subscription_products_controller.rb +2 -2
- data/lib/advanced_billing/controllers/subscription_status_controller.rb +10 -10
- data/lib/advanced_billing/controllers/subscriptions_controller.rb +12 -12
- data/lib/advanced_billing/controllers/webhooks_controller.rb +8 -8
- data/lib/advanced_billing/exceptions/subscription_group_create_error_response_exception.rb +34 -0
- data/lib/advanced_billing/http/auth/basic_auth.rb +27 -6
- data/lib/advanced_billing/models/account_balance.rb +44 -3
- data/lib/advanced_billing/models/account_balances.rb +24 -2
- data/lib/advanced_billing/models/ach_agreement.rb +12 -2
- data/lib/advanced_billing/models/activate_subscription_request.rb +12 -2
- data/lib/advanced_billing/models/add_coupons_request.rb +12 -2
- data/lib/advanced_billing/models/add_subscription_to_a_group.rb +12 -2
- data/lib/advanced_billing/models/address_change.rb +12 -2
- data/lib/advanced_billing/models/agreement_acceptance.rb +12 -2
- data/lib/advanced_billing/models/allocate_components.rb +12 -2
- data/lib/advanced_billing/models/allocation.rb +56 -2
- data/lib/advanced_billing/models/allocation_expiration_date.rb +23 -4
- data/lib/advanced_billing/models/allocation_preview.rb +33 -6
- data/lib/advanced_billing/models/allocation_preview_item.rb +12 -2
- data/lib/advanced_billing/models/allocation_preview_line_item.rb +12 -2
- data/lib/advanced_billing/models/allocation_preview_response.rb +12 -2
- data/lib/advanced_billing/models/allocation_response.rb +12 -2
- data/lib/advanced_billing/models/allocation_settings.rb +12 -2
- data/lib/advanced_billing/models/applied_credit_note_data.rb +12 -2
- data/lib/advanced_billing/models/apply_credit_note_event_data.rb +12 -2
- data/lib/advanced_billing/models/apply_debit_note_event_data.rb +12 -2
- data/lib/advanced_billing/models/apply_payment_event_data.rb +12 -2
- data/lib/advanced_billing/models/attribute_error.rb +12 -2
- data/lib/advanced_billing/models/auto_resume.rb +12 -2
- data/lib/advanced_billing/models/bank_account_attributes.rb +12 -2
- data/lib/advanced_billing/models/bank_account_payment_profile.rb +13 -2
- data/lib/advanced_billing/models/bank_account_response.rb +12 -2
- data/lib/advanced_billing/models/bank_account_verification.rb +12 -2
- data/lib/advanced_billing/models/bank_account_verification_request.rb +12 -2
- data/lib/advanced_billing/models/base_refund_error.rb +12 -2
- data/lib/advanced_billing/models/base_string_error.rb +12 -2
- data/lib/advanced_billing/models/batch_job.rb +33 -6
- data/lib/advanced_billing/models/batch_job_response.rb +12 -2
- data/lib/advanced_billing/models/billing_address.rb +12 -2
- data/lib/advanced_billing/models/billing_manifest.rb +33 -6
- data/lib/advanced_billing/models/billing_manifest_item.rb +12 -2
- data/lib/advanced_billing/models/billing_schedule.rb +12 -2
- data/lib/advanced_billing/models/breakouts.rb +12 -2
- data/lib/advanced_billing/models/{bulk_component_s_price_point_assignment.rb → bulk_components_price_point_assignment.rb} +16 -6
- data/lib/advanced_billing/models/bulk_create_product_price_points_request.rb +12 -2
- data/lib/advanced_billing/models/bulk_create_product_price_points_response.rb +12 -2
- data/lib/advanced_billing/models/bulk_create_segments.rb +12 -2
- data/lib/advanced_billing/models/bulk_update_segments.rb +12 -2
- data/lib/advanced_billing/models/bulk_update_segments_item.rb +12 -2
- data/lib/advanced_billing/models/calendar_billing.rb +12 -2
- data/lib/advanced_billing/models/cancel_grouped_subscriptions_request.rb +12 -2
- data/lib/advanced_billing/models/cancellation_options.rb +12 -2
- data/lib/advanced_billing/models/cancellation_request.rb +12 -2
- data/lib/advanced_billing/models/change_invoice_collection_method_event_data.rb +12 -2
- data/lib/advanced_billing/models/chargify_ebb.rb +33 -6
- data/lib/advanced_billing/models/component.rb +22 -4
- data/lib/advanced_billing/models/component_allocation_change.rb +12 -2
- data/lib/advanced_billing/models/component_allocation_error_item.rb +12 -2
- data/lib/advanced_billing/models/component_cost_data.rb +12 -2
- data/lib/advanced_billing/models/component_cost_data_rate_tier.rb +12 -2
- data/lib/advanced_billing/models/component_currency_price.rb +12 -2
- data/lib/advanced_billing/models/component_currency_prices_response.rb +12 -2
- data/lib/advanced_billing/models/component_custom_price.rb +12 -2
- data/lib/advanced_billing/models/component_price.rb +12 -2
- data/lib/advanced_billing/models/component_price_point.rb +12 -2
- data/lib/advanced_billing/models/{component_s_price_point_assignment.rb → component_price_point_assignment.rb} +17 -7
- data/lib/advanced_billing/models/component_price_point_error_item.rb +12 -2
- data/lib/advanced_billing/models/component_price_point_item.rb +12 -2
- data/lib/advanced_billing/models/component_price_point_response.rb +12 -2
- data/lib/advanced_billing/models/component_price_points_response.rb +12 -2
- data/lib/advanced_billing/models/component_response.rb +12 -2
- data/lib/advanced_billing/models/consolidated_invoice.rb +12 -2
- data/lib/advanced_billing/models/count_response.rb +12 -2
- data/lib/advanced_billing/models/coupon.rb +78 -12
- data/lib/advanced_billing/models/coupon_currency.rb +12 -2
- data/lib/advanced_billing/models/coupon_currency_request.rb +12 -2
- data/lib/advanced_billing/models/coupon_currency_response.rb +12 -2
- data/lib/advanced_billing/models/coupon_response.rb +12 -2
- data/lib/advanced_billing/models/coupon_restriction.rb +12 -2
- data/lib/advanced_billing/models/coupon_subcodes.rb +12 -2
- data/lib/advanced_billing/models/coupon_subcodes_response.rb +12 -2
- data/lib/advanced_billing/models/coupon_usage.rb +12 -2
- data/lib/advanced_billing/models/create_allocation.rb +12 -2
- data/lib/advanced_billing/models/create_allocation_request.rb +12 -2
- data/lib/advanced_billing/models/create_component_price_point.rb +12 -2
- data/lib/advanced_billing/models/create_component_price_point_request.rb +12 -2
- data/lib/advanced_billing/models/create_component_price_points_request.rb +12 -2
- data/lib/advanced_billing/models/create_currency_price.rb +12 -2
- data/lib/advanced_billing/models/create_currency_prices_request.rb +12 -2
- data/lib/advanced_billing/models/create_customer.rb +12 -2
- data/lib/advanced_billing/models/create_customer_request.rb +12 -2
- data/lib/advanced_billing/models/create_ebb_component.rb +12 -2
- data/lib/advanced_billing/models/create_invoice.rb +12 -2
- data/lib/advanced_billing/models/create_invoice_address.rb +12 -2
- data/lib/advanced_billing/models/create_invoice_coupon.rb +12 -2
- data/lib/advanced_billing/models/create_invoice_item.rb +12 -2
- data/lib/advanced_billing/models/create_invoice_payment.rb +23 -2
- data/lib/advanced_billing/models/create_invoice_payment_application.rb +12 -2
- data/lib/advanced_billing/models/create_invoice_payment_request.rb +12 -2
- data/lib/advanced_billing/models/create_invoice_request.rb +12 -2
- data/lib/advanced_billing/models/create_metadata.rb +12 -2
- data/lib/advanced_billing/models/create_metadata_request.rb +12 -2
- data/lib/advanced_billing/models/create_metafield.rb +12 -2
- data/lib/advanced_billing/models/create_metafields_request.rb +12 -2
- data/lib/advanced_billing/models/create_metered_component.rb +12 -2
- data/lib/advanced_billing/models/create_multi_invoice_payment.rb +12 -2
- data/lib/advanced_billing/models/create_multi_invoice_payment_request.rb +12 -2
- data/lib/advanced_billing/models/create_offer.rb +12 -2
- data/lib/advanced_billing/models/create_offer_component.rb +12 -2
- data/lib/advanced_billing/models/create_offer_request.rb +12 -2
- data/lib/advanced_billing/models/create_on_off_component.rb +12 -2
- data/lib/advanced_billing/models/create_or_update_coupon.rb +12 -2
- data/lib/advanced_billing/models/{update_endpoint.rb → create_or_update_endpoint.rb} +14 -4
- data/lib/advanced_billing/models/{update_endpoint_request.rb → create_or_update_endpoint_request.rb} +15 -5
- data/lib/advanced_billing/models/create_or_update_flat_amount_coupon.rb +29 -2
- data/lib/advanced_billing/models/create_or_update_percentage_coupon.rb +29 -2
- data/lib/advanced_billing/models/create_or_update_product.rb +86 -4
- data/lib/advanced_billing/models/create_or_update_product_request.rb +12 -2
- data/lib/advanced_billing/models/create_or_update_segment_price.rb +12 -2
- data/lib/advanced_billing/models/create_payment.rb +14 -4
- data/lib/advanced_billing/models/create_payment_profile.rb +12 -2
- data/lib/advanced_billing/models/create_payment_profile_request.rb +12 -2
- data/lib/advanced_billing/models/create_prepaid_component.rb +12 -2
- data/lib/advanced_billing/models/create_prepaid_usage_component_price_point.rb +12 -2
- data/lib/advanced_billing/models/create_prepayment.rb +13 -3
- data/lib/advanced_billing/models/create_prepayment_method.rb +44 -0
- data/lib/advanced_billing/models/create_prepayment_request.rb +12 -2
- data/lib/advanced_billing/models/create_prepayment_response.rb +12 -2
- data/lib/advanced_billing/models/create_product_currency_price.rb +12 -2
- data/lib/advanced_billing/models/create_product_currency_prices_request.rb +12 -2
- data/lib/advanced_billing/models/create_product_family.rb +12 -2
- data/lib/advanced_billing/models/create_product_family_request.rb +12 -2
- data/lib/advanced_billing/models/create_product_price_point.rb +16 -6
- data/lib/advanced_billing/models/create_product_price_point_request.rb +12 -2
- data/lib/advanced_billing/models/create_quantity_based_component.rb +12 -2
- data/lib/advanced_billing/models/create_reason_code.rb +12 -2
- data/lib/advanced_billing/models/create_reason_code_request.rb +12 -2
- data/lib/advanced_billing/models/create_segment.rb +12 -2
- data/lib/advanced_billing/models/create_segment_request.rb +12 -2
- data/lib/advanced_billing/models/create_signup_proforma_preview_include.rb +20 -0
- data/lib/advanced_billing/models/create_subscription.rb +22 -4
- data/lib/advanced_billing/models/create_subscription_component.rb +12 -2
- data/lib/advanced_billing/models/create_subscription_group.rb +15 -20
- data/lib/advanced_billing/models/create_subscription_group_request.rb +12 -2
- data/lib/advanced_billing/models/create_subscription_request.rb +12 -2
- data/lib/advanced_billing/models/create_usage.rb +12 -2
- data/lib/advanced_billing/models/create_usage_request.rb +12 -2
- data/lib/advanced_billing/models/created_prepayment.rb +23 -4
- data/lib/advanced_billing/models/credit_account_balance_changed.rb +22 -5
- data/lib/advanced_billing/models/credit_card_attributes.rb +12 -2
- data/lib/advanced_billing/models/credit_card_payment_profile.rb +12 -2
- data/lib/advanced_billing/models/credit_note.rb +12 -2
- data/lib/advanced_billing/models/credit_note1.rb +12 -2
- data/lib/advanced_billing/models/credit_note_application.rb +23 -5
- data/lib/advanced_billing/models/credit_note_line_item.rb +38 -4
- data/lib/advanced_billing/models/credit_scheme_request.rb +12 -2
- data/lib/advanced_billing/models/currency_price.rb +12 -2
- data/lib/advanced_billing/models/currency_prices_response.rb +12 -2
- data/lib/advanced_billing/models/custom_field_value_change.rb +12 -2
- data/lib/advanced_billing/models/customer.rb +63 -15
- data/lib/advanced_billing/models/customer1.rb +13 -2
- data/lib/advanced_billing/models/customer_attributes.rb +12 -2
- data/lib/advanced_billing/models/customer_change.rb +12 -2
- data/lib/advanced_billing/models/customer_changes_preview_response.rb +12 -2
- data/lib/advanced_billing/models/customer_custom_fields_change.rb +12 -2
- data/lib/advanced_billing/models/customer_error.rb +12 -2
- data/lib/advanced_billing/models/customer_payer_change.rb +12 -2
- data/lib/advanced_billing/models/customer_response.rb +12 -2
- data/lib/advanced_billing/models/deduct_service_credit.rb +12 -2
- data/lib/advanced_billing/models/deduct_service_credit_request.rb +12 -2
- data/lib/advanced_billing/models/delayed_cancellation_response.rb +12 -2
- data/lib/advanced_billing/models/delete_subscription_group_response.rb +12 -2
- data/lib/advanced_billing/models/dunner_data.rb +29 -7
- data/lib/advanced_billing/models/dunning_step_data.rb +12 -2
- data/lib/advanced_billing/models/dunning_step_reached.rb +12 -2
- data/lib/advanced_billing/models/ebb_component.rb +12 -2
- data/lib/advanced_billing/models/ebb_event.rb +12 -2
- data/lib/advanced_billing/models/enable_webhooks_request.rb +12 -2
- data/lib/advanced_billing/models/enable_webhooks_response.rb +12 -2
- data/lib/advanced_billing/models/endpoint.rb +12 -2
- data/lib/advanced_billing/models/endpoint_response.rb +12 -2
- data/lib/advanced_billing/models/errors.rb +12 -2
- data/lib/advanced_billing/models/event.rb +23 -5
- data/lib/advanced_billing/models/event_based_billing_segment_error.rb +12 -2
- data/lib/advanced_billing/models/event_response.rb +12 -2
- data/lib/advanced_billing/models/full_subscription_group_response.rb +369 -11
- data/lib/advanced_billing/models/get_one_time_token_payment_profile.rb +12 -2
- data/lib/advanced_billing/models/get_one_time_token_request.rb +12 -2
- data/lib/advanced_billing/models/group_billing.rb +12 -2
- data/lib/advanced_billing/models/group_settings.rb +12 -2
- data/lib/advanced_billing/models/group_target.rb +12 -2
- data/lib/advanced_billing/models/group_type.rb +23 -0
- data/lib/advanced_billing/models/invoice.rb +12 -2
- data/lib/advanced_billing/models/invoice_address.rb +12 -2
- data/lib/advanced_billing/models/invoice_balance_item.rb +12 -2
- data/lib/advanced_billing/models/invoice_credit.rb +12 -2
- data/lib/advanced_billing/models/invoice_custom_field.rb +12 -2
- data/lib/advanced_billing/models/invoice_customer.rb +13 -2
- data/lib/advanced_billing/models/invoice_discount.rb +14 -4
- data/lib/advanced_billing/models/invoice_discount_breakout.rb +12 -2
- data/lib/advanced_billing/models/invoice_discount_source_type.rb +26 -0
- data/lib/advanced_billing/models/invoice_discount_type.rb +26 -0
- data/lib/advanced_billing/models/invoice_display_settings.rb +12 -2
- data/lib/advanced_billing/models/invoice_event.rb +23 -4
- data/lib/advanced_billing/models/invoice_event_data.rb +12 -2
- data/lib/advanced_billing/models/invoice_event_payment.rb +12 -2
- data/lib/advanced_billing/models/invoice_event_payment1.rb +12 -2
- data/lib/advanced_billing/models/invoice_issued.rb +27 -15
- data/lib/advanced_billing/models/invoice_line_item.rb +22 -2
- data/lib/advanced_billing/models/invoice_line_item_component_cost_data.rb +12 -2
- data/lib/advanced_billing/models/invoice_line_item_event_data.rb +12 -2
- data/lib/advanced_billing/models/invoice_line_item_pricing_detail.rb +12 -2
- data/lib/advanced_billing/models/invoice_payer.rb +12 -2
- data/lib/advanced_billing/models/invoice_payer_change.rb +12 -2
- data/lib/advanced_billing/models/invoice_payment.rb +12 -2
- data/lib/advanced_billing/models/invoice_payment_application.rb +12 -2
- data/lib/advanced_billing/models/invoice_payment_method.rb +12 -2
- data/lib/advanced_billing/models/invoice_pre_payment.rb +25 -5
- data/lib/advanced_billing/models/invoice_previous_balance.rb +12 -2
- data/lib/advanced_billing/models/invoice_refund.rb +34 -2
- data/lib/advanced_billing/models/invoice_response.rb +12 -2
- data/lib/advanced_billing/models/invoice_seller.rb +12 -2
- data/lib/advanced_billing/models/invoice_tax.rb +13 -3
- data/lib/advanced_billing/models/invoice_tax_breakout.rb +23 -2
- data/lib/advanced_billing/models/invoice_tax_component_breakout.rb +12 -2
- data/lib/advanced_billing/models/issue_advance_invoice_request.rb +12 -2
- data/lib/advanced_billing/models/issue_invoice_event_data.rb +12 -2
- data/lib/advanced_billing/models/issue_invoice_request.rb +12 -2
- data/lib/advanced_billing/models/issue_service_credit.rb +12 -2
- data/lib/advanced_billing/models/issue_service_credit_request.rb +12 -2
- data/lib/advanced_billing/models/item_price_point_changed.rb +12 -2
- data/lib/advanced_billing/models/item_price_point_data.rb +12 -2
- data/lib/advanced_billing/models/list_components_price_points_response.rb +12 -2
- data/lib/advanced_billing/models/list_credit_notes_response.rb +12 -2
- data/lib/advanced_billing/models/list_invoice_events_response.rb +12 -2
- data/lib/advanced_billing/models/list_invoices_response.rb +12 -2
- data/lib/advanced_billing/models/list_metafields_response.rb +12 -2
- data/lib/advanced_billing/models/list_mrr_response.rb +12 -2
- data/lib/advanced_billing/models/list_mrr_response_result.rb +12 -2
- data/lib/advanced_billing/models/list_offers_response.rb +12 -2
- data/lib/advanced_billing/models/list_product_price_points_response.rb +12 -2
- data/lib/advanced_billing/models/list_proforma_invoices_meta.rb +90 -0
- data/lib/advanced_billing/models/list_proforma_invoices_response.rb +79 -0
- data/lib/advanced_billing/models/list_public_keys_meta.rb +12 -2
- data/lib/advanced_billing/models/list_public_keys_response.rb +12 -2
- data/lib/advanced_billing/models/list_sale_rep_item.rb +12 -2
- data/lib/advanced_billing/models/list_segments_response.rb +12 -2
- data/lib/advanced_billing/models/list_subcription_group_prepayment_item.rb +25 -12
- data/lib/advanced_billing/models/list_subscription_components_response.rb +12 -2
- data/lib/advanced_billing/models/list_subscription_group_prepayment.rb +12 -2
- data/lib/advanced_billing/models/list_subscription_group_prepayment_response.rb +12 -2
- data/lib/advanced_billing/models/list_subscription_groups_item.rb +33 -5
- data/lib/advanced_billing/models/list_subscription_groups_meta.rb +12 -2
- data/lib/advanced_billing/models/list_subscription_groups_response.rb +12 -2
- data/lib/advanced_billing/models/metadata.rb +23 -4
- data/lib/advanced_billing/models/metafield.rb +12 -2
- data/lib/advanced_billing/models/metafield_scope.rb +12 -2
- data/lib/advanced_billing/models/metered_component.rb +12 -2
- data/lib/advanced_billing/models/metered_usage.rb +12 -2
- data/lib/advanced_billing/models/movement.rb +23 -4
- data/lib/advanced_billing/models/movement_line_item.rb +12 -2
- data/lib/advanced_billing/models/mrr.rb +23 -4
- data/lib/advanced_billing/models/mrr_movement.rb +12 -2
- data/lib/advanced_billing/models/mrr_response.rb +12 -2
- data/lib/advanced_billing/models/multi_invoice_payment.rb +12 -2
- data/lib/advanced_billing/models/multi_invoice_payment_response.rb +12 -2
- data/lib/advanced_billing/models/nested_subscription_group.rb +12 -2
- data/lib/advanced_billing/models/net_terms.rb +12 -2
- data/lib/advanced_billing/models/offer.rb +43 -8
- data/lib/advanced_billing/models/offer_discount.rb +12 -2
- data/lib/advanced_billing/models/offer_item.rb +12 -2
- data/lib/advanced_billing/models/offer_response.rb +12 -2
- data/lib/advanced_billing/models/offer_signup_page.rb +12 -2
- data/lib/advanced_billing/models/on_off_component.rb +12 -2
- data/lib/advanced_billing/models/organization_address.rb +12 -2
- data/lib/advanced_billing/models/origin_invoice.rb +12 -2
- data/lib/advanced_billing/models/overage_pricing.rb +12 -2
- data/lib/advanced_billing/models/override_subscription.rb +12 -2
- data/lib/advanced_billing/models/override_subscription_request.rb +12 -2
- data/lib/advanced_billing/models/paginated_metadata.rb +12 -2
- data/lib/advanced_billing/models/{payment.rb → paid_invoice.rb} +23 -13
- data/lib/advanced_billing/models/pause_request.rb +12 -2
- data/lib/advanced_billing/models/payer_attributes.rb +13 -3
- data/lib/advanced_billing/models/payer_error.rb +12 -2
- data/lib/advanced_billing/models/payment_collection_method_changed.rb +12 -2
- data/lib/advanced_billing/models/payment_for_allocation.rb +12 -2
- data/lib/advanced_billing/models/payment_method_apple_pay.rb +12 -2
- data/lib/advanced_billing/models/payment_method_bank_account.rb +12 -2
- data/lib/advanced_billing/models/payment_method_credit_card.rb +12 -2
- data/lib/advanced_billing/models/payment_method_external.rb +12 -2
- data/lib/advanced_billing/models/payment_method_paypal.rb +12 -2
- data/lib/advanced_billing/models/payment_profile_attributes.rb +12 -2
- data/lib/advanced_billing/models/payment_profile_response.rb +12 -2
- data/lib/advanced_billing/models/payment_related_events.rb +12 -2
- data/lib/advanced_billing/models/pending_cancellation_change.rb +22 -5
- data/lib/advanced_billing/models/portal_management_link.rb +53 -12
- data/lib/advanced_billing/models/prepaid_component_price_point.rb +12 -2
- data/lib/advanced_billing/models/prepaid_configuration.rb +12 -2
- data/lib/advanced_billing/models/prepaid_configuration_response.rb +12 -2
- data/lib/advanced_billing/models/prepaid_subscription_balance_changed.rb +12 -2
- data/lib/advanced_billing/models/prepaid_usage.rb +12 -2
- data/lib/advanced_billing/models/prepaid_usage_allocation_detail.rb +12 -2
- data/lib/advanced_billing/models/prepaid_usage_component.rb +12 -2
- data/lib/advanced_billing/models/prepayment.rb +21 -4
- data/lib/advanced_billing/models/prepayment_account_balance_changed.rb +12 -2
- data/lib/advanced_billing/models/prepayment_aggregated_error.rb +12 -2
- data/lib/advanced_billing/models/prepayment_method.rb +3 -6
- data/lib/advanced_billing/models/prepayment_response.rb +12 -2
- data/lib/advanced_billing/models/prepayments_response.rb +12 -2
- data/lib/advanced_billing/models/preview_allocations_request.rb +12 -2
- data/lib/advanced_billing/models/price.rb +12 -2
- data/lib/advanced_billing/models/price_point.rb +12 -2
- data/lib/advanced_billing/models/product.rb +14 -4
- data/lib/advanced_billing/models/product_family.rb +33 -6
- data/lib/advanced_billing/models/product_family_response.rb +12 -2
- data/lib/advanced_billing/models/product_price_point.rb +16 -6
- data/lib/advanced_billing/models/product_price_point_errors.rb +12 -2
- data/lib/advanced_billing/models/product_price_point_response.rb +12 -2
- data/lib/advanced_billing/models/product_response.rb +12 -2
- data/lib/advanced_billing/models/proforma_error.rb +12 -2
- data/lib/advanced_billing/models/proforma_invoice.rb +87 -19
- data/lib/advanced_billing/models/proforma_invoice_credit.rb +12 -2
- data/lib/advanced_billing/models/proforma_invoice_discount.rb +37 -7
- data/lib/advanced_billing/models/proforma_invoice_discount_source_type.rb +23 -0
- data/lib/advanced_billing/models/proforma_invoice_issued.rb +23 -6
- data/lib/advanced_billing/models/proforma_invoice_payment.rb +12 -2
- data/lib/advanced_billing/models/proforma_invoice_role.rb +30 -0
- data/lib/advanced_billing/models/proforma_invoice_status.rb +26 -0
- data/lib/advanced_billing/models/proforma_invoice_tax.rb +15 -5
- data/lib/advanced_billing/models/proforma_invoice_tax_source_type.rb +23 -0
- data/lib/advanced_billing/models/proration.rb +12 -2
- data/lib/advanced_billing/models/public_key.rb +23 -4
- data/lib/advanced_billing/models/public_signup_page.rb +12 -2
- data/lib/advanced_billing/models/quantity_based_component.rb +12 -2
- data/lib/advanced_billing/models/reactivate_subscription_group_request.rb +12 -2
- data/lib/advanced_billing/models/reactivate_subscription_group_response.rb +23 -5
- data/lib/advanced_billing/models/reactivate_subscription_request.rb +12 -2
- data/lib/advanced_billing/models/reactivation_billing.rb +12 -2
- data/lib/advanced_billing/models/reason_code.rb +33 -6
- data/lib/advanced_billing/models/reason_code_response.rb +12 -2
- data/lib/advanced_billing/models/reason_codes_json_response.rb +12 -2
- data/lib/advanced_billing/models/record_payment_request.rb +12 -2
- data/lib/advanced_billing/models/{payment_response.rb → record_payment_response.rb} +33 -9
- data/lib/advanced_billing/models/referral_code.rb +12 -2
- data/lib/advanced_billing/models/referral_validation_response.rb +12 -2
- data/lib/advanced_billing/models/refund.rb +12 -2
- data/lib/advanced_billing/models/refund_consolidated_invoice.rb +12 -2
- data/lib/advanced_billing/models/refund_invoice.rb +12 -2
- data/lib/advanced_billing/models/refund_invoice_event_data.rb +12 -2
- data/lib/advanced_billing/models/refund_invoice_request.rb +12 -2
- data/lib/advanced_billing/models/refund_prepayment.rb +12 -2
- data/lib/advanced_billing/models/refund_prepayment_aggregated_error.rb +12 -2
- data/lib/advanced_billing/models/refund_prepayment_base_refund_error.rb +12 -2
- data/lib/advanced_billing/models/refund_prepayment_request.rb +12 -2
- data/lib/advanced_billing/models/refund_success.rb +12 -2
- data/lib/advanced_billing/models/remove_payment_event_data.rb +12 -2
- data/lib/advanced_billing/models/renewal_preview.rb +23 -5
- data/lib/advanced_billing/models/renewal_preview_component.rb +12 -2
- data/lib/advanced_billing/models/renewal_preview_line_item.rb +12 -2
- data/lib/advanced_billing/models/renewal_preview_request.rb +12 -2
- data/lib/advanced_billing/models/renewal_preview_response.rb +12 -2
- data/lib/advanced_billing/models/replay_webhooks_request.rb +12 -2
- data/lib/advanced_billing/models/replay_webhooks_response.rb +12 -2
- data/lib/advanced_billing/models/resent_invitation.rb +12 -2
- data/lib/advanced_billing/models/resume_options.rb +12 -2
- data/lib/advanced_billing/models/revoked_invitation.rb +12 -2
- data/lib/advanced_billing/models/sale_rep.rb +12 -2
- data/lib/advanced_billing/models/sale_rep_item_mrr.rb +12 -2
- data/lib/advanced_billing/models/sale_rep_settings.rb +12 -2
- data/lib/advanced_billing/models/sale_rep_subscription.rb +12 -2
- data/lib/advanced_billing/models/segment.rb +33 -6
- data/lib/advanced_billing/models/segment_price.rb +12 -2
- data/lib/advanced_billing/models/segment_response.rb +12 -2
- data/lib/advanced_billing/models/seller.rb +12 -2
- data/lib/advanced_billing/models/send_invoice_request.rb +12 -2
- data/lib/advanced_billing/models/service_credit.rb +12 -2
- data/lib/advanced_billing/models/service_credit_response.rb +12 -2
- data/lib/advanced_billing/models/shipping_address.rb +12 -2
- data/lib/advanced_billing/models/signup_proforma_preview.rb +12 -2
- data/lib/advanced_billing/models/signup_proforma_preview_response.rb +12 -2
- data/lib/advanced_billing/models/site.rb +12 -2
- data/lib/advanced_billing/models/site_response.rb +12 -2
- data/lib/advanced_billing/models/site_statistics.rb +16 -6
- data/lib/advanced_billing/models/site_summary.rb +12 -2
- data/lib/advanced_billing/models/subscription.rb +12 -2
- data/lib/advanced_billing/models/subscription_component.rb +22 -4
- data/lib/advanced_billing/models/subscription_component_allocation_error_item.rb +12 -2
- data/lib/advanced_billing/models/subscription_component_response.rb +12 -2
- data/lib/advanced_billing/models/subscription_component_subscription.rb +23 -4
- data/lib/advanced_billing/models/subscription_custom_price.rb +12 -2
- data/lib/advanced_billing/models/subscription_group.rb +38 -10
- data/lib/advanced_billing/models/subscription_group_balances.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_bank_account.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_component_custom_price.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_credit_card.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_customer.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_include.rb +20 -0
- data/lib/advanced_billing/models/subscription_group_item.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_member_error.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_members_array_error.rb +72 -0
- data/lib/advanced_billing/models/subscription_group_payment_profile.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_prepayment.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_prepayment_request.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_prepayment_response.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_response.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_signup.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_signup_component.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_signup_error.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_signup_failure.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_signup_failure_data.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_signup_item.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_signup_request.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_signup_response.rb +231 -9
- data/lib/advanced_billing/models/subscription_group_signup_success.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_signup_success_data.rb +21 -5
- data/lib/advanced_billing/models/subscription_group_single_error.rb +73 -0
- data/lib/advanced_billing/models/subscription_group_subscription_error.rb +66 -2
- data/lib/advanced_billing/models/subscription_group_update_error.rb +12 -2
- data/lib/advanced_billing/models/subscription_groups_list_include.rb +20 -0
- data/lib/advanced_billing/models/subscription_included_coupon.rb +12 -2
- data/lib/advanced_billing/models/subscription_migration_preview.rb +12 -2
- data/lib/advanced_billing/models/subscription_migration_preview_options.rb +23 -5
- data/lib/advanced_billing/models/subscription_migration_preview_request.rb +12 -2
- data/lib/advanced_billing/models/subscription_migration_preview_response.rb +12 -2
- data/lib/advanced_billing/models/subscription_mrr.rb +12 -2
- data/lib/advanced_billing/models/subscription_mrr_breakout.rb +12 -2
- data/lib/advanced_billing/models/subscription_mrr_response.rb +12 -2
- data/lib/advanced_billing/models/subscription_note.rb +33 -6
- data/lib/advanced_billing/models/subscription_note_response.rb +12 -2
- data/lib/advanced_billing/models/subscription_preview.rb +12 -2
- data/lib/advanced_billing/models/subscription_preview_response.rb +12 -2
- data/lib/advanced_billing/models/subscription_product_change.rb +12 -2
- data/lib/advanced_billing/models/subscription_product_migration.rb +12 -2
- data/lib/advanced_billing/models/subscription_product_migration_request.rb +12 -2
- data/lib/advanced_billing/models/subscription_response.rb +12 -2
- data/lib/advanced_billing/models/subscription_state_change.rb +12 -2
- data/lib/advanced_billing/models/tax_configuration.rb +12 -2
- data/lib/advanced_billing/models/too_many_management_link_requests.rb +12 -2
- data/lib/advanced_billing/models/update_allocation_expiration_date.rb +12 -2
- data/lib/advanced_billing/models/update_component.rb +12 -2
- data/lib/advanced_billing/models/update_component_price_point.rb +12 -2
- data/lib/advanced_billing/models/update_component_price_point_request.rb +12 -2
- data/lib/advanced_billing/models/update_component_request.rb +12 -2
- data/lib/advanced_billing/models/update_coupon_currency.rb +12 -2
- data/lib/advanced_billing/models/update_currency_price.rb +12 -2
- data/lib/advanced_billing/models/update_currency_prices_request.rb +12 -2
- data/lib/advanced_billing/models/update_customer.rb +12 -2
- data/lib/advanced_billing/models/update_customer_request.rb +12 -2
- data/lib/advanced_billing/models/update_metadata.rb +12 -2
- data/lib/advanced_billing/models/update_metadata_request.rb +12 -2
- data/lib/advanced_billing/models/update_metafield.rb +12 -2
- data/lib/advanced_billing/models/update_metafields_request.rb +12 -2
- data/lib/advanced_billing/models/update_payment_profile.rb +12 -2
- data/lib/advanced_billing/models/update_payment_profile_request.rb +12 -2
- data/lib/advanced_billing/models/update_price.rb +12 -2
- data/lib/advanced_billing/models/update_product_price_point.rb +12 -2
- data/lib/advanced_billing/models/update_product_price_point_request.rb +12 -2
- data/lib/advanced_billing/models/update_reason_code.rb +12 -2
- data/lib/advanced_billing/models/update_reason_code_request.rb +12 -2
- data/lib/advanced_billing/models/update_segment.rb +12 -2
- data/lib/advanced_billing/models/update_segment_request.rb +12 -2
- data/lib/advanced_billing/models/update_subscription.rb +23 -5
- data/lib/advanced_billing/models/update_subscription_component.rb +12 -2
- data/lib/advanced_billing/models/update_subscription_group.rb +12 -2
- data/lib/advanced_billing/models/update_subscription_group_request.rb +12 -2
- data/lib/advanced_billing/models/update_subscription_note.rb +12 -2
- data/lib/advanced_billing/models/update_subscription_note_request.rb +12 -2
- data/lib/advanced_billing/models/update_subscription_request.rb +12 -2
- data/lib/advanced_billing/models/upsert_prepaid_configuration.rb +12 -2
- data/lib/advanced_billing/models/upsert_prepaid_configuration_request.rb +12 -2
- data/lib/advanced_billing/models/usage.rb +12 -2
- data/lib/advanced_billing/models/usage_response.rb +12 -2
- data/lib/advanced_billing/models/void_invoice.rb +12 -2
- data/lib/advanced_billing/models/void_invoice_event_data.rb +12 -2
- data/lib/advanced_billing/models/void_invoice_request.rb +12 -2
- data/lib/advanced_billing/models/void_remainder_event_data.rb +12 -2
- data/lib/advanced_billing/models/webhook.rb +53 -10
- data/lib/advanced_billing/models/webhook_response.rb +12 -2
- data/lib/advanced_billing/utilities/union_type_lookup.rb +20 -8
- data/lib/advanced_billing.rb +25 -12
- metadata +24 -11
- data/lib/advanced_billing/models/proforma_invoice_discount_breakout.rb +0 -62
- data/lib/advanced_billing/models/proforma_invoice_preview.rb +0 -484
- data/lib/advanced_billing/models/proforma_invoice_tax_breakout.rb +0 -61
@@ -30,8 +30,14 @@ module AdvancedBilling
|
|
30
30
|
[]
|
31
31
|
end
|
32
32
|
|
33
|
-
def initialize(subscription = nil
|
33
|
+
def initialize(subscription = nil,
|
34
|
+
additional_properties = {})
|
34
35
|
@subscription = subscription
|
36
|
+
|
37
|
+
# Add additional model properties to the instance.
|
38
|
+
additional_properties.each do |_name, _value|
|
39
|
+
instance_variable_set("@#{_name}", _value)
|
40
|
+
end
|
35
41
|
end
|
36
42
|
|
37
43
|
# Creates an instance of the object from a hash.
|
@@ -41,8 +47,12 @@ module AdvancedBilling
|
|
41
47
|
# Extract variables from the hash.
|
42
48
|
subscription = CancellationOptions.from_hash(hash['subscription']) if hash['subscription']
|
43
49
|
|
50
|
+
# Clean out expected properties from Hash.
|
51
|
+
names.each_value { |k| hash.delete(k) }
|
52
|
+
|
44
53
|
# Create object from extracted values.
|
45
|
-
CancellationRequest.new(subscription
|
54
|
+
CancellationRequest.new(subscription,
|
55
|
+
hash)
|
46
56
|
end
|
47
57
|
end
|
48
58
|
end
|
@@ -36,9 +36,15 @@ module AdvancedBilling
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def initialize(from_collection_method = nil,
|
39
|
-
to_collection_method = nil
|
39
|
+
to_collection_method = nil,
|
40
|
+
additional_properties = {})
|
40
41
|
@from_collection_method = from_collection_method
|
41
42
|
@to_collection_method = to_collection_method
|
43
|
+
|
44
|
+
# Add additional model properties to the instance.
|
45
|
+
additional_properties.each do |_name, _value|
|
46
|
+
instance_variable_set("@#{_name}", _value)
|
47
|
+
end
|
42
48
|
end
|
43
49
|
|
44
50
|
# Creates an instance of the object from a hash.
|
@@ -51,9 +57,13 @@ module AdvancedBilling
|
|
51
57
|
to_collection_method =
|
52
58
|
hash.key?('to_collection_method') ? hash['to_collection_method'] : nil
|
53
59
|
|
60
|
+
# Clean out expected properties from Hash.
|
61
|
+
names.each_value { |k| hash.delete(k) }
|
62
|
+
|
54
63
|
# Create object from extracted values.
|
55
64
|
ChangeInvoiceCollectionMethodEventData.new(from_collection_method,
|
56
|
-
to_collection_method
|
65
|
+
to_collection_method,
|
66
|
+
hash)
|
57
67
|
end
|
58
68
|
|
59
69
|
# Validates an instance of the object from a given value.
|
@@ -3,6 +3,7 @@
|
|
3
3
|
# This file was automatically generated by APIMATIC v2.0
|
4
4
|
# ( https://apimatic.io ).
|
5
5
|
|
6
|
+
require 'date'
|
6
7
|
module AdvancedBilling
|
7
8
|
# ChargifyEBB Model.
|
8
9
|
class ChargifyEBB < BaseModel
|
@@ -12,7 +13,7 @@ module AdvancedBilling
|
|
12
13
|
# This timestamp determines what billing period the event will be billed in.
|
13
14
|
# If your request payload does not include it, Chargify will add
|
14
15
|
# `chargify.timestamp` to the event payload and set the value to `now`.
|
15
|
-
# @return [
|
16
|
+
# @return [DateTime]
|
16
17
|
attr_accessor :timestamp
|
17
18
|
|
18
19
|
# A unique ID set by Chargify. Please note that this field is reserved. If
|
@@ -23,7 +24,7 @@ module AdvancedBilling
|
|
23
24
|
# An ISO-8601 timestamp, set by Chargify at the time each event is recorded.
|
24
25
|
# Please note that this field is reserved. If `chargify.created_at` is
|
25
26
|
# present in the request payload, it will be overwritten.
|
26
|
-
# @return [
|
27
|
+
# @return [DateTime]
|
27
28
|
attr_accessor :created_at
|
28
29
|
|
29
30
|
# User-defined string scoped per-stream. Duplicate events within a stream
|
@@ -80,13 +81,19 @@ module AdvancedBilling
|
|
80
81
|
created_at = SKIP,
|
81
82
|
uniqueness_token = SKIP,
|
82
83
|
subscription_id = SKIP,
|
83
|
-
subscription_reference = SKIP
|
84
|
+
subscription_reference = SKIP,
|
85
|
+
additional_properties = {})
|
84
86
|
@timestamp = timestamp unless timestamp == SKIP
|
85
87
|
@id = id unless id == SKIP
|
86
88
|
@created_at = created_at unless created_at == SKIP
|
87
89
|
@uniqueness_token = uniqueness_token unless uniqueness_token == SKIP
|
88
90
|
@subscription_id = subscription_id unless subscription_id == SKIP
|
89
91
|
@subscription_reference = subscription_reference unless subscription_reference == SKIP
|
92
|
+
|
93
|
+
# Add additional model properties to the instance.
|
94
|
+
additional_properties.each do |_name, _value|
|
95
|
+
instance_variable_set("@#{_name}", _value)
|
96
|
+
end
|
90
97
|
end
|
91
98
|
|
92
99
|
# Creates an instance of the object from a hash.
|
@@ -94,9 +101,17 @@ module AdvancedBilling
|
|
94
101
|
return nil unless hash
|
95
102
|
|
96
103
|
# Extract variables from the hash.
|
97
|
-
timestamp = hash.key?('timestamp')
|
104
|
+
timestamp = if hash.key?('timestamp')
|
105
|
+
(DateTimeHelper.from_rfc3339(hash['timestamp']) if hash['timestamp'])
|
106
|
+
else
|
107
|
+
SKIP
|
108
|
+
end
|
98
109
|
id = hash.key?('id') ? hash['id'] : SKIP
|
99
|
-
created_at = hash.key?('created_at')
|
110
|
+
created_at = if hash.key?('created_at')
|
111
|
+
(DateTimeHelper.from_rfc3339(hash['created_at']) if hash['created_at'])
|
112
|
+
else
|
113
|
+
SKIP
|
114
|
+
end
|
100
115
|
uniqueness_token =
|
101
116
|
hash.key?('uniqueness_token') ? hash['uniqueness_token'] : SKIP
|
102
117
|
subscription_id =
|
@@ -104,13 +119,25 @@ module AdvancedBilling
|
|
104
119
|
subscription_reference =
|
105
120
|
hash.key?('subscription_reference') ? hash['subscription_reference'] : SKIP
|
106
121
|
|
122
|
+
# Clean out expected properties from Hash.
|
123
|
+
names.each_value { |k| hash.delete(k) }
|
124
|
+
|
107
125
|
# Create object from extracted values.
|
108
126
|
ChargifyEBB.new(timestamp,
|
109
127
|
id,
|
110
128
|
created_at,
|
111
129
|
uniqueness_token,
|
112
130
|
subscription_id,
|
113
|
-
subscription_reference
|
131
|
+
subscription_reference,
|
132
|
+
hash)
|
133
|
+
end
|
134
|
+
|
135
|
+
def to_custom_timestamp
|
136
|
+
DateTimeHelper.to_rfc3339(timestamp)
|
137
|
+
end
|
138
|
+
|
139
|
+
def to_custom_created_at
|
140
|
+
DateTimeHelper.to_rfc3339(created_at)
|
114
141
|
end
|
115
142
|
end
|
116
143
|
end
|
@@ -127,7 +127,7 @@ module AdvancedBilling
|
|
127
127
|
attr_accessor :updated_at
|
128
128
|
|
129
129
|
# Timestamp indicating when this component was archived
|
130
|
-
# @return [
|
130
|
+
# @return [DateTime]
|
131
131
|
attr_accessor :archived_at
|
132
132
|
|
133
133
|
# (Only available on Relationship Invoicing sites) Boolean flag describing
|
@@ -309,7 +309,8 @@ module AdvancedBilling
|
|
309
309
|
accounting_code = SKIP,
|
310
310
|
event_based_billing_metric_id = SKIP,
|
311
311
|
interval = SKIP,
|
312
|
-
interval_unit = SKIP
|
312
|
+
interval_unit = SKIP,
|
313
|
+
additional_properties = {})
|
313
314
|
@id = id unless id == SKIP
|
314
315
|
@name = name unless name == SKIP
|
315
316
|
@handle = handle unless handle == SKIP
|
@@ -353,6 +354,11 @@ module AdvancedBilling
|
|
353
354
|
end
|
354
355
|
@interval = interval unless interval == SKIP
|
355
356
|
@interval_unit = interval_unit unless interval_unit == SKIP
|
357
|
+
|
358
|
+
# Add additional model properties to the instance.
|
359
|
+
additional_properties.each do |_name, _value|
|
360
|
+
instance_variable_set("@#{_name}", _value)
|
361
|
+
end
|
356
362
|
end
|
357
363
|
|
358
364
|
# Creates an instance of the object from a hash.
|
@@ -422,7 +428,11 @@ module AdvancedBilling
|
|
422
428
|
else
|
423
429
|
SKIP
|
424
430
|
end
|
425
|
-
archived_at = hash.key?('archived_at')
|
431
|
+
archived_at = if hash.key?('archived_at')
|
432
|
+
(DateTimeHelper.from_rfc3339(hash['archived_at']) if hash['archived_at'])
|
433
|
+
else
|
434
|
+
SKIP
|
435
|
+
end
|
426
436
|
hide_date_range_on_invoice =
|
427
437
|
hash.key?('hide_date_range_on_invoice') ? hash['hide_date_range_on_invoice'] : SKIP
|
428
438
|
allow_fractional_quantities =
|
@@ -437,6 +447,9 @@ module AdvancedBilling
|
|
437
447
|
interval = hash.key?('interval') ? hash['interval'] : SKIP
|
438
448
|
interval_unit = hash.key?('interval_unit') ? hash['interval_unit'] : SKIP
|
439
449
|
|
450
|
+
# Clean out expected properties from Hash.
|
451
|
+
names.each_value { |k| hash.delete(k) }
|
452
|
+
|
440
453
|
# Create object from extracted values.
|
441
454
|
Component.new(id,
|
442
455
|
name,
|
@@ -471,7 +484,8 @@ module AdvancedBilling
|
|
471
484
|
accounting_code,
|
472
485
|
event_based_billing_metric_id,
|
473
486
|
interval,
|
474
|
-
interval_unit
|
487
|
+
interval_unit,
|
488
|
+
hash)
|
475
489
|
end
|
476
490
|
|
477
491
|
def to_custom_created_at
|
@@ -482,6 +496,10 @@ module AdvancedBilling
|
|
482
496
|
DateTimeHelper.to_rfc3339(updated_at)
|
483
497
|
end
|
484
498
|
|
499
|
+
def to_custom_archived_at
|
500
|
+
DateTimeHelper.to_rfc3339(archived_at)
|
501
|
+
end
|
502
|
+
|
485
503
|
# Validates an instance of the object from a given value.
|
486
504
|
# @param [Component | Hash] The value against the validation is performed.
|
487
505
|
def self.validate(value)
|
@@ -68,7 +68,8 @@ module AdvancedBilling
|
|
68
68
|
component_handle = nil,
|
69
69
|
memo = nil,
|
70
70
|
allocation_id = nil,
|
71
|
-
allocated_quantity = SKIP
|
71
|
+
allocated_quantity = SKIP,
|
72
|
+
additional_properties = {})
|
72
73
|
@previous_allocation = previous_allocation
|
73
74
|
@new_allocation = new_allocation
|
74
75
|
@component_id = component_id
|
@@ -76,6 +77,11 @@ module AdvancedBilling
|
|
76
77
|
@memo = memo
|
77
78
|
@allocation_id = allocation_id
|
78
79
|
@allocated_quantity = allocated_quantity unless allocated_quantity == SKIP
|
80
|
+
|
81
|
+
# Add additional model properties to the instance.
|
82
|
+
additional_properties.each do |_name, _value|
|
83
|
+
instance_variable_set("@#{_name}", _value)
|
84
|
+
end
|
79
85
|
end
|
80
86
|
|
81
87
|
# Creates an instance of the object from a hash.
|
@@ -96,6 +102,9 @@ module AdvancedBilling
|
|
96
102
|
UnionTypeLookUp.get(:ComponentAllocationChangeAllocatedQuantity), hash['allocated_quantity']
|
97
103
|
) : SKIP
|
98
104
|
|
105
|
+
# Clean out expected properties from Hash.
|
106
|
+
names.each_value { |k| hash.delete(k) }
|
107
|
+
|
99
108
|
# Create object from extracted values.
|
100
109
|
ComponentAllocationChange.new(previous_allocation,
|
101
110
|
new_allocation,
|
@@ -103,7 +112,8 @@ module AdvancedBilling
|
|
103
112
|
component_handle,
|
104
113
|
memo,
|
105
114
|
allocation_id,
|
106
|
-
allocated_quantity
|
115
|
+
allocated_quantity,
|
116
|
+
hash)
|
107
117
|
end
|
108
118
|
|
109
119
|
# Validates an instance of the object from a given value.
|
@@ -53,11 +53,17 @@ module AdvancedBilling
|
|
53
53
|
def initialize(component_id = SKIP,
|
54
54
|
message = SKIP,
|
55
55
|
kind = SKIP,
|
56
|
-
on = SKIP
|
56
|
+
on = SKIP,
|
57
|
+
additional_properties = {})
|
57
58
|
@component_id = component_id unless component_id == SKIP
|
58
59
|
@message = message unless message == SKIP
|
59
60
|
@kind = kind unless kind == SKIP
|
60
61
|
@on = on unless on == SKIP
|
62
|
+
|
63
|
+
# Add additional model properties to the instance.
|
64
|
+
additional_properties.each do |_name, _value|
|
65
|
+
instance_variable_set("@#{_name}", _value)
|
66
|
+
end
|
61
67
|
end
|
62
68
|
|
63
69
|
# Creates an instance of the object from a hash.
|
@@ -70,11 +76,15 @@ module AdvancedBilling
|
|
70
76
|
kind = hash.key?('kind') ? hash['kind'] : SKIP
|
71
77
|
on = hash.key?('on') ? hash['on'] : SKIP
|
72
78
|
|
79
|
+
# Clean out expected properties from Hash.
|
80
|
+
names.each_value { |k| hash.delete(k) }
|
81
|
+
|
73
82
|
# Create object from extracted values.
|
74
83
|
ComponentAllocationErrorItem.new(component_id,
|
75
84
|
message,
|
76
85
|
kind,
|
77
|
-
on
|
86
|
+
on,
|
87
|
+
hash)
|
78
88
|
end
|
79
89
|
end
|
80
90
|
end
|
@@ -80,7 +80,8 @@ module AdvancedBilling
|
|
80
80
|
quantity = SKIP,
|
81
81
|
amount = SKIP,
|
82
82
|
pricing_scheme = SKIP,
|
83
|
-
tiers = SKIP
|
83
|
+
tiers = SKIP,
|
84
|
+
additional_properties = {})
|
84
85
|
@component_code_id = component_code_id unless component_code_id == SKIP
|
85
86
|
@price_point_id = price_point_id unless price_point_id == SKIP
|
86
87
|
@product_id = product_id unless product_id == SKIP
|
@@ -88,6 +89,11 @@ module AdvancedBilling
|
|
88
89
|
@amount = amount unless amount == SKIP
|
89
90
|
@pricing_scheme = pricing_scheme unless pricing_scheme == SKIP
|
90
91
|
@tiers = tiers unless tiers == SKIP
|
92
|
+
|
93
|
+
# Add additional model properties to the instance.
|
94
|
+
additional_properties.each do |_name, _value|
|
95
|
+
instance_variable_set("@#{_name}", _value)
|
96
|
+
end
|
91
97
|
end
|
92
98
|
|
93
99
|
# Creates an instance of the object from a hash.
|
@@ -115,6 +121,9 @@ module AdvancedBilling
|
|
115
121
|
|
116
122
|
tiers = SKIP unless hash.key?('tiers')
|
117
123
|
|
124
|
+
# Clean out expected properties from Hash.
|
125
|
+
names.each_value { |k| hash.delete(k) }
|
126
|
+
|
118
127
|
# Create object from extracted values.
|
119
128
|
ComponentCostData.new(component_code_id,
|
120
129
|
price_point_id,
|
@@ -122,7 +131,8 @@ module AdvancedBilling
|
|
122
131
|
quantity,
|
123
132
|
amount,
|
124
133
|
pricing_scheme,
|
125
|
-
tiers
|
134
|
+
tiers,
|
135
|
+
hash)
|
126
136
|
end
|
127
137
|
end
|
128
138
|
end
|
@@ -62,12 +62,18 @@ module AdvancedBilling
|
|
62
62
|
ending_quantity = SKIP,
|
63
63
|
quantity = SKIP,
|
64
64
|
unit_price = SKIP,
|
65
|
-
amount = SKIP
|
65
|
+
amount = SKIP,
|
66
|
+
additional_properties = {})
|
66
67
|
@starting_quantity = starting_quantity unless starting_quantity == SKIP
|
67
68
|
@ending_quantity = ending_quantity unless ending_quantity == SKIP
|
68
69
|
@quantity = quantity unless quantity == SKIP
|
69
70
|
@unit_price = unit_price unless unit_price == SKIP
|
70
71
|
@amount = amount unless amount == SKIP
|
72
|
+
|
73
|
+
# Add additional model properties to the instance.
|
74
|
+
additional_properties.each do |_name, _value|
|
75
|
+
instance_variable_set("@#{_name}", _value)
|
76
|
+
end
|
71
77
|
end
|
72
78
|
|
73
79
|
# Creates an instance of the object from a hash.
|
@@ -83,12 +89,16 @@ module AdvancedBilling
|
|
83
89
|
unit_price = hash.key?('unit_price') ? hash['unit_price'] : SKIP
|
84
90
|
amount = hash.key?('amount') ? hash['amount'] : SKIP
|
85
91
|
|
92
|
+
# Clean out expected properties from Hash.
|
93
|
+
names.each_value { |k| hash.delete(k) }
|
94
|
+
|
86
95
|
# Create object from extracted values.
|
87
96
|
ComponentCostDataRateTier.new(starting_quantity,
|
88
97
|
ending_quantity,
|
89
98
|
quantity,
|
90
99
|
unit_price,
|
91
|
-
amount
|
100
|
+
amount,
|
101
|
+
hash)
|
92
102
|
end
|
93
103
|
end
|
94
104
|
end
|
@@ -67,13 +67,19 @@ module AdvancedBilling
|
|
67
67
|
price = SKIP,
|
68
68
|
formatted_price = SKIP,
|
69
69
|
price_id = SKIP,
|
70
|
-
price_point_id = SKIP
|
70
|
+
price_point_id = SKIP,
|
71
|
+
additional_properties = {})
|
71
72
|
@id = id unless id == SKIP
|
72
73
|
@currency = currency unless currency == SKIP
|
73
74
|
@price = price unless price == SKIP
|
74
75
|
@formatted_price = formatted_price unless formatted_price == SKIP
|
75
76
|
@price_id = price_id unless price_id == SKIP
|
76
77
|
@price_point_id = price_point_id unless price_point_id == SKIP
|
78
|
+
|
79
|
+
# Add additional model properties to the instance.
|
80
|
+
additional_properties.each do |_name, _value|
|
81
|
+
instance_variable_set("@#{_name}", _value)
|
82
|
+
end
|
77
83
|
end
|
78
84
|
|
79
85
|
# Creates an instance of the object from a hash.
|
@@ -90,13 +96,17 @@ module AdvancedBilling
|
|
90
96
|
price_point_id =
|
91
97
|
hash.key?('price_point_id') ? hash['price_point_id'] : SKIP
|
92
98
|
|
99
|
+
# Clean out expected properties from Hash.
|
100
|
+
names.each_value { |k| hash.delete(k) }
|
101
|
+
|
93
102
|
# Create object from extracted values.
|
94
103
|
ComponentCurrencyPrice.new(id,
|
95
104
|
currency,
|
96
105
|
price,
|
97
106
|
formatted_price,
|
98
107
|
price_id,
|
99
|
-
price_point_id
|
108
|
+
price_point_id,
|
109
|
+
hash)
|
100
110
|
end
|
101
111
|
end
|
102
112
|
end
|
@@ -30,8 +30,14 @@ module AdvancedBilling
|
|
30
30
|
[]
|
31
31
|
end
|
32
32
|
|
33
|
-
def initialize(currency_prices = nil
|
33
|
+
def initialize(currency_prices = nil,
|
34
|
+
additional_properties = {})
|
34
35
|
@currency_prices = currency_prices
|
36
|
+
|
37
|
+
# Add additional model properties to the instance.
|
38
|
+
additional_properties.each do |_name, _value|
|
39
|
+
instance_variable_set("@#{_name}", _value)
|
40
|
+
end
|
35
41
|
end
|
36
42
|
|
37
43
|
# Creates an instance of the object from a hash.
|
@@ -50,8 +56,12 @@ module AdvancedBilling
|
|
50
56
|
|
51
57
|
currency_prices = nil unless hash.key?('currency_prices')
|
52
58
|
|
59
|
+
# Clean out expected properties from Hash.
|
60
|
+
names.each_value { |k| hash.delete(k) }
|
61
|
+
|
53
62
|
# Create object from extracted values.
|
54
|
-
ComponentCurrencyPricesResponse.new(currency_prices
|
63
|
+
ComponentCurrencyPricesResponse.new(currency_prices,
|
64
|
+
hash)
|
55
65
|
end
|
56
66
|
end
|
57
67
|
end
|
@@ -59,11 +59,17 @@ module AdvancedBilling
|
|
59
59
|
def initialize(pricing_scheme = SKIP,
|
60
60
|
interval = SKIP,
|
61
61
|
interval_unit = SKIP,
|
62
|
-
prices = SKIP
|
62
|
+
prices = SKIP,
|
63
|
+
additional_properties = {})
|
63
64
|
@pricing_scheme = pricing_scheme unless pricing_scheme == SKIP
|
64
65
|
@interval = interval unless interval == SKIP
|
65
66
|
@interval_unit = interval_unit unless interval_unit == SKIP
|
66
67
|
@prices = prices unless prices == SKIP
|
68
|
+
|
69
|
+
# Add additional model properties to the instance.
|
70
|
+
additional_properties.each do |_name, _value|
|
71
|
+
instance_variable_set("@#{_name}", _value)
|
72
|
+
end
|
67
73
|
end
|
68
74
|
|
69
75
|
# Creates an instance of the object from a hash.
|
@@ -86,11 +92,15 @@ module AdvancedBilling
|
|
86
92
|
|
87
93
|
prices = SKIP unless hash.key?('prices')
|
88
94
|
|
95
|
+
# Clean out expected properties from Hash.
|
96
|
+
names.each_value { |k| hash.delete(k) }
|
97
|
+
|
89
98
|
# Create object from extracted values.
|
90
99
|
ComponentCustomPrice.new(pricing_scheme,
|
91
100
|
interval,
|
92
101
|
interval_unit,
|
93
|
-
prices
|
102
|
+
prices,
|
103
|
+
hash)
|
94
104
|
end
|
95
105
|
end
|
96
106
|
end
|
@@ -84,7 +84,8 @@ module AdvancedBilling
|
|
84
84
|
unit_price = SKIP,
|
85
85
|
price_point_id = SKIP,
|
86
86
|
formatted_unit_price = SKIP,
|
87
|
-
segment_id = SKIP
|
87
|
+
segment_id = SKIP,
|
88
|
+
additional_properties = {})
|
88
89
|
@id = id unless id == SKIP
|
89
90
|
@component_id = component_id unless component_id == SKIP
|
90
91
|
@starting_quantity = starting_quantity unless starting_quantity == SKIP
|
@@ -93,6 +94,11 @@ module AdvancedBilling
|
|
93
94
|
@price_point_id = price_point_id unless price_point_id == SKIP
|
94
95
|
@formatted_unit_price = formatted_unit_price unless formatted_unit_price == SKIP
|
95
96
|
@segment_id = segment_id unless segment_id == SKIP
|
97
|
+
|
98
|
+
# Add additional model properties to the instance.
|
99
|
+
additional_properties.each do |_name, _value|
|
100
|
+
instance_variable_set("@#{_name}", _value)
|
101
|
+
end
|
96
102
|
end
|
97
103
|
|
98
104
|
# Creates an instance of the object from a hash.
|
@@ -113,6 +119,9 @@ module AdvancedBilling
|
|
113
119
|
hash.key?('formatted_unit_price') ? hash['formatted_unit_price'] : SKIP
|
114
120
|
segment_id = hash.key?('segment_id') ? hash['segment_id'] : SKIP
|
115
121
|
|
122
|
+
# Clean out expected properties from Hash.
|
123
|
+
names.each_value { |k| hash.delete(k) }
|
124
|
+
|
116
125
|
# Create object from extracted values.
|
117
126
|
ComponentPrice.new(id,
|
118
127
|
component_id,
|
@@ -121,7 +130,8 @@ module AdvancedBilling
|
|
121
130
|
unit_price,
|
122
131
|
price_point_id,
|
123
132
|
formatted_unit_price,
|
124
|
-
segment_id
|
133
|
+
segment_id,
|
134
|
+
hash)
|
125
135
|
end
|
126
136
|
end
|
127
137
|
end
|
@@ -181,7 +181,8 @@ module AdvancedBilling
|
|
181
181
|
tax_included = SKIP,
|
182
182
|
interval = SKIP,
|
183
183
|
interval_unit = SKIP,
|
184
|
-
currency_prices = SKIP
|
184
|
+
currency_prices = SKIP,
|
185
|
+
additional_properties = {})
|
185
186
|
@id = id unless id == SKIP
|
186
187
|
@type = type unless type == SKIP
|
187
188
|
@default = default unless default == SKIP
|
@@ -199,6 +200,11 @@ module AdvancedBilling
|
|
199
200
|
@interval = interval unless interval == SKIP
|
200
201
|
@interval_unit = interval_unit unless interval_unit == SKIP
|
201
202
|
@currency_prices = currency_prices unless currency_prices == SKIP
|
203
|
+
|
204
|
+
# Add additional model properties to the instance.
|
205
|
+
additional_properties.each do |_name, _value|
|
206
|
+
instance_variable_set("@#{_name}", _value)
|
207
|
+
end
|
202
208
|
end
|
203
209
|
|
204
210
|
# Creates an instance of the object from a hash.
|
@@ -259,6 +265,9 @@ module AdvancedBilling
|
|
259
265
|
|
260
266
|
currency_prices = SKIP unless hash.key?('currency_prices')
|
261
267
|
|
268
|
+
# Clean out expected properties from Hash.
|
269
|
+
names.each_value { |k| hash.delete(k) }
|
270
|
+
|
262
271
|
# Create object from extracted values.
|
263
272
|
ComponentPricePoint.new(id,
|
264
273
|
type,
|
@@ -276,7 +285,8 @@ module AdvancedBilling
|
|
276
285
|
tax_included,
|
277
286
|
interval,
|
278
287
|
interval_unit,
|
279
|
-
currency_prices
|
288
|
+
currency_prices,
|
289
|
+
hash)
|
280
290
|
end
|
281
291
|
|
282
292
|
def to_custom_archived_at
|
@@ -4,8 +4,8 @@
|
|
4
4
|
# ( https://apimatic.io ).
|
5
5
|
|
6
6
|
module AdvancedBilling
|
7
|
-
#
|
8
|
-
class
|
7
|
+
# ComponentPricePointAssignment Model.
|
8
|
+
class ComponentPricePointAssignment < BaseModel
|
9
9
|
SKIP = Object.new
|
10
10
|
private_constant :SKIP
|
11
11
|
|
@@ -39,9 +39,15 @@ module AdvancedBilling
|
|
39
39
|
end
|
40
40
|
|
41
41
|
def initialize(component_id = SKIP,
|
42
|
-
price_point = SKIP
|
42
|
+
price_point = SKIP,
|
43
|
+
additional_properties = {})
|
43
44
|
@component_id = component_id unless component_id == SKIP
|
44
45
|
@price_point = price_point unless price_point == SKIP
|
46
|
+
|
47
|
+
# Add additional model properties to the instance.
|
48
|
+
additional_properties.each do |_name, _value|
|
49
|
+
instance_variable_set("@#{_name}", _value)
|
50
|
+
end
|
45
51
|
end
|
46
52
|
|
47
53
|
# Creates an instance of the object from a hash.
|
@@ -51,16 +57,20 @@ module AdvancedBilling
|
|
51
57
|
# Extract variables from the hash.
|
52
58
|
component_id = hash.key?('component_id') ? hash['component_id'] : SKIP
|
53
59
|
price_point = hash.key?('price_point') ? APIHelper.deserialize_union_type(
|
54
|
-
UnionTypeLookUp.get(:
|
60
|
+
UnionTypeLookUp.get(:ComponentPricePointAssignmentPricePoint), hash['price_point']
|
55
61
|
) : SKIP
|
56
62
|
|
63
|
+
# Clean out expected properties from Hash.
|
64
|
+
names.each_value { |k| hash.delete(k) }
|
65
|
+
|
57
66
|
# Create object from extracted values.
|
58
|
-
|
59
|
-
|
67
|
+
ComponentPricePointAssignment.new(component_id,
|
68
|
+
price_point,
|
69
|
+
hash)
|
60
70
|
end
|
61
71
|
|
62
72
|
# Validates an instance of the object from a given value.
|
63
|
-
# @param [
|
73
|
+
# @param [ComponentPricePointAssignment | Hash] The value against the validation is performed.
|
64
74
|
def self.validate(value)
|
65
75
|
return true if value.instance_of? self
|
66
76
|
|
@@ -46,10 +46,16 @@ module AdvancedBilling
|
|
46
46
|
|
47
47
|
def initialize(component_id = SKIP,
|
48
48
|
message = SKIP,
|
49
|
-
price_point = SKIP
|
49
|
+
price_point = SKIP,
|
50
|
+
additional_properties = {})
|
50
51
|
@component_id = component_id unless component_id == SKIP
|
51
52
|
@message = message unless message == SKIP
|
52
53
|
@price_point = price_point unless price_point == SKIP
|
54
|
+
|
55
|
+
# Add additional model properties to the instance.
|
56
|
+
additional_properties.each do |_name, _value|
|
57
|
+
instance_variable_set("@#{_name}", _value)
|
58
|
+
end
|
53
59
|
end
|
54
60
|
|
55
61
|
# Creates an instance of the object from a hash.
|
@@ -61,10 +67,14 @@ module AdvancedBilling
|
|
61
67
|
message = hash.key?('message') ? hash['message'] : SKIP
|
62
68
|
price_point = hash.key?('price_point') ? hash['price_point'] : SKIP
|
63
69
|
|
70
|
+
# Clean out expected properties from Hash.
|
71
|
+
names.each_value { |k| hash.delete(k) }
|
72
|
+
|
64
73
|
# Create object from extracted values.
|
65
74
|
ComponentPricePointErrorItem.new(component_id,
|
66
75
|
message,
|
67
|
-
price_point
|
76
|
+
price_point,
|
77
|
+
hash)
|
68
78
|
end
|
69
79
|
end
|
70
80
|
end
|