maxio-advanced-billing-sdk 5.2.0 → 6.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/README.md +48 -50
- data/lib/advanced_billing/client.rb +3 -4
- data/lib/advanced_billing/configuration.rb +21 -24
- data/lib/advanced_billing/controllers/advance_invoice_controller.rb +3 -3
- data/lib/advanced_billing/controllers/api_exports_controller.rb +9 -9
- data/lib/advanced_billing/controllers/base_controller.rb +1 -1
- data/lib/advanced_billing/controllers/billing_portal_controller.rb +4 -4
- data/lib/advanced_billing/controllers/component_price_points_controller.rb +34 -20
- data/lib/advanced_billing/controllers/components_controller.rb +12 -12
- data/lib/advanced_billing/controllers/coupons_controller.rb +45 -27
- 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 +26 -9
- data/lib/advanced_billing/controllers/insights_controller.rb +4 -4
- data/lib/advanced_billing/controllers/invoices_controller.rb +17 -17
- data/lib/advanced_billing/controllers/offers_controller.rb +10 -6
- data/lib/advanced_billing/controllers/payment_profiles_controller.rb +12 -12
- data/lib/advanced_billing/controllers/product_families_controller.rb +22 -20
- data/lib/advanced_billing/controllers/product_price_points_controller.rb +14 -11
- data/lib/advanced_billing/controllers/products_controller.rb +6 -6
- data/lib/advanced_billing/controllers/proforma_invoices_controller.rb +9 -9
- data/lib/advanced_billing/controllers/reason_codes_controller.rb +17 -9
- data/lib/advanced_billing/controllers/referral_codes_controller.rb +1 -1
- 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 +21 -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 +9 -9
- data/lib/advanced_billing/controllers/subscription_invoice_account_controller.rb +6 -6
- data/lib/advanced_billing/controllers/subscription_notes_controller.rb +20 -8
- data/lib/advanced_billing/controllers/subscription_products_controller.rb +2 -2
- data/lib/advanced_billing/controllers/subscription_status_controller.rb +20 -12
- data/lib/advanced_billing/controllers/subscriptions_controller.rb +40 -17
- data/lib/advanced_billing/controllers/webhooks_controller.rb +6 -6
- data/lib/advanced_billing/exceptions/api_exception.rb +11 -0
- data/lib/advanced_billing/exceptions/component_allocation_error_exception.rb +12 -0
- data/lib/advanced_billing/exceptions/component_price_point_error_exception.rb +12 -0
- data/lib/advanced_billing/exceptions/customer_error_response_exception.rb +12 -0
- data/lib/advanced_billing/exceptions/error_array_map_response_exception.rb +12 -0
- data/lib/advanced_billing/exceptions/error_list_response_exception.rb +12 -0
- data/lib/advanced_billing/exceptions/error_string_map_response_exception.rb +12 -0
- data/lib/advanced_billing/exceptions/event_based_billing_list_segments_errors_exception.rb +12 -0
- data/lib/advanced_billing/exceptions/event_based_billing_segment_errors_exception.rb +12 -0
- data/lib/advanced_billing/exceptions/event_based_billing_segment_exception.rb +12 -0
- data/lib/advanced_billing/exceptions/product_price_point_error_response_exception.rb +12 -0
- data/lib/advanced_billing/exceptions/proforma_bad_request_error_response_exception.rb +12 -0
- data/lib/advanced_billing/exceptions/refund_prepayment_base_errors_response_exception.rb +12 -0
- data/lib/advanced_billing/exceptions/single_error_response_exception.rb +12 -0
- data/lib/advanced_billing/exceptions/single_string_error_response_exception.rb +12 -0
- data/lib/advanced_billing/exceptions/subscription_add_coupon_error_exception.rb +14 -0
- data/lib/advanced_billing/exceptions/subscription_component_allocation_error_exception.rb +12 -0
- data/lib/advanced_billing/exceptions/subscription_group_create_error_response_exception.rb +12 -0
- data/lib/advanced_billing/exceptions/subscription_group_signup_error_response_exception.rb +12 -0
- data/lib/advanced_billing/exceptions/subscription_group_update_error_response_exception.rb +12 -0
- data/lib/advanced_billing/exceptions/subscription_remove_coupon_errors_exception.rb +12 -0
- data/lib/advanced_billing/exceptions/subscription_response_error_exception.rb +44 -0
- data/lib/advanced_billing/exceptions/subscriptions_mrr_error_response_exception.rb +12 -0
- data/lib/advanced_billing/exceptions/too_many_management_link_requests_error_exception.rb +12 -0
- data/lib/advanced_billing/models/account_balance.rb +24 -7
- data/lib/advanced_billing/models/account_balances.rb +24 -7
- data/lib/advanced_billing/models/ach_agreement.rb +23 -7
- data/lib/advanced_billing/models/activate_event_based_component.rb +21 -6
- data/lib/advanced_billing/models/activate_subscription_request.rb +18 -4
- data/lib/advanced_billing/models/add_coupons_request.rb +17 -4
- data/lib/advanced_billing/models/add_subscription_to_a_group.rb +16 -15
- data/lib/advanced_billing/models/address_change.rb +19 -5
- data/lib/advanced_billing/models/agreement_acceptance.rb +27 -7
- data/lib/advanced_billing/models/allocate_components.rb +29 -7
- data/lib/advanced_billing/models/allocation.rb +44 -7
- data/lib/advanced_billing/models/allocation_expiration_date.rb +18 -4
- data/lib/advanced_billing/models/allocation_preview.rb +33 -7
- data/lib/advanced_billing/models/allocation_preview_item.rb +38 -7
- data/lib/advanced_billing/models/allocation_preview_line_item.rb +28 -7
- data/lib/advanced_billing/models/allocation_preview_response.rb +18 -4
- data/lib/advanced_billing/models/allocation_response.rb +18 -4
- data/lib/advanced_billing/models/allocation_settings.rb +21 -6
- data/lib/advanced_billing/models/apple_pay_payment_profile.rb +34 -7
- data/lib/advanced_billing/models/applied_credit_note_data.rb +19 -5
- data/lib/advanced_billing/models/apply_credit_note_event.rb +23 -7
- data/lib/advanced_billing/models/apply_credit_note_event_data.rb +28 -7
- data/lib/advanced_billing/models/apply_debit_note_event.rb +23 -7
- data/lib/advanced_billing/models/apply_debit_note_event_data.rb +25 -7
- data/lib/advanced_billing/models/apply_payment_event.rb +23 -7
- data/lib/advanced_billing/models/apply_payment_event_data.rb +30 -7
- data/lib/advanced_billing/models/attribute_error.rb +18 -4
- data/lib/advanced_billing/models/auto_resume.rb +18 -4
- data/lib/advanced_billing/models/backport_invoice_event.rb +23 -7
- data/lib/advanced_billing/models/bank_account_attributes.rb +32 -7
- data/lib/advanced_billing/models/bank_account_payment_profile.rb +42 -7
- data/lib/advanced_billing/models/bank_account_response.rb +18 -4
- data/lib/advanced_billing/models/bank_account_verification.rb +19 -5
- data/lib/advanced_billing/models/bank_account_verification_request.rb +18 -4
- data/lib/advanced_billing/models/base_model.rb +88 -28
- data/lib/advanced_billing/models/base_refund_error.rb +17 -4
- data/lib/advanced_billing/models/base_string_error.rb +17 -4
- data/lib/advanced_billing/models/batch_job.rb +23 -7
- data/lib/advanced_billing/models/batch_job_response.rb +18 -4
- data/lib/advanced_billing/models/billing_manifest.rb +30 -7
- data/lib/advanced_billing/models/billing_manifest_item.rb +34 -7
- data/lib/advanced_billing/models/billing_schedule.rb +18 -4
- data/lib/advanced_billing/models/breakouts.rb +25 -7
- data/lib/advanced_billing/models/bulk_components_price_point_assignment.rb +18 -4
- data/lib/advanced_billing/models/bulk_create_product_price_points_request.rb +18 -4
- data/lib/advanced_billing/models/bulk_create_product_price_points_response.rb +18 -4
- data/lib/advanced_billing/models/bulk_create_segments.rb +18 -4
- data/lib/advanced_billing/models/bulk_update_segments.rb +18 -4
- data/lib/advanced_billing/models/bulk_update_segments_item.rb +20 -6
- data/lib/advanced_billing/models/calendar_billing.rb +22 -7
- data/lib/advanced_billing/models/cancel_grouped_subscriptions_request.rb +18 -4
- data/lib/advanced_billing/models/cancellation_options.rb +19 -5
- data/lib/advanced_billing/models/cancellation_request.rb +18 -4
- data/lib/advanced_billing/models/change_chargeback_status_event.rb +23 -7
- data/lib/advanced_billing/models/change_chargeback_status_event_data.rb +18 -4
- data/lib/advanced_billing/models/change_invoice_collection_method_event.rb +23 -7
- data/lib/advanced_billing/models/change_invoice_collection_method_event_data.rb +20 -5
- data/lib/advanced_billing/models/change_invoice_status_event.rb +23 -7
- data/lib/advanced_billing/models/change_invoice_status_event_data.rb +24 -7
- data/lib/advanced_billing/models/chargify_ebb.rb +25 -7
- data/lib/advanced_billing/models/component.rb +54 -9
- data/lib/advanced_billing/models/component_allocation_change.rb +27 -7
- data/lib/advanced_billing/models/component_allocation_error_item.rb +22 -7
- data/lib/advanced_billing/models/component_cost_data.rb +26 -7
- data/lib/advanced_billing/models/component_cost_data_rate_tier.rb +24 -7
- data/lib/advanced_billing/models/component_currency_price.rb +24 -7
- data/lib/advanced_billing/models/component_currency_prices_response.rb +18 -4
- data/lib/advanced_billing/models/component_custom_price.rb +24 -7
- data/lib/advanced_billing/models/component_price.rb +26 -7
- data/lib/advanced_billing/models/component_price_point.rb +127 -7
- data/lib/advanced_billing/models/component_price_point_assignment.rb +19 -5
- data/lib/advanced_billing/models/component_price_point_error_item.rb +21 -6
- data/lib/advanced_billing/models/component_price_point_item.rb +24 -7
- data/lib/advanced_billing/models/component_price_point_response.rb +18 -4
- data/lib/advanced_billing/models/component_price_points_response.rb +19 -5
- data/lib/advanced_billing/models/component_response.rb +18 -4
- data/lib/advanced_billing/models/compounding_strategy.rb +5 -1
- data/lib/advanced_billing/models/consolidated_invoice.rb +18 -4
- data/lib/advanced_billing/models/count_response.rb +17 -4
- data/lib/advanced_billing/models/coupon.rb +150 -29
- data/lib/advanced_billing/models/coupon_currency.rb +27 -9
- data/lib/advanced_billing/models/coupon_currency_request.rb +18 -4
- data/lib/advanced_billing/models/coupon_currency_response.rb +18 -4
- data/lib/advanced_billing/models/coupon_payload.rb +273 -0
- data/lib/advanced_billing/models/{create_or_update_coupon.rb → coupon_request.rb} +26 -22
- data/lib/advanced_billing/models/coupon_response.rb +17 -4
- data/lib/advanced_billing/models/coupon_restriction.rb +22 -7
- data/lib/advanced_billing/models/coupon_subcodes.rb +17 -4
- data/lib/advanced_billing/models/coupon_subcodes_response.rb +21 -6
- data/lib/advanced_billing/models/coupon_usage.rb +24 -7
- data/lib/advanced_billing/models/create_allocation.rb +31 -7
- data/lib/advanced_billing/models/create_allocation_request.rb +18 -4
- data/lib/advanced_billing/models/create_component_price_point.rb +30 -9
- data/lib/advanced_billing/models/create_component_price_point_request.rb +18 -4
- data/lib/advanced_billing/models/create_component_price_points_request.rb +18 -4
- data/lib/advanced_billing/models/create_credit_note_event.rb +23 -7
- data/lib/advanced_billing/models/create_currency_price.rb +20 -6
- data/lib/advanced_billing/models/create_currency_prices_request.rb +18 -4
- data/lib/advanced_billing/models/create_customer.rb +33 -7
- data/lib/advanced_billing/models/create_customer_request.rb +18 -4
- data/lib/advanced_billing/models/create_debit_note_event.rb +23 -7
- data/lib/advanced_billing/models/create_ebb_component.rb +18 -4
- data/lib/advanced_billing/models/create_invoice.rb +28 -7
- data/lib/advanced_billing/models/create_invoice_address.rb +24 -7
- data/lib/advanced_billing/models/create_invoice_coupon.rb +30 -8
- data/lib/advanced_billing/models/create_invoice_item.rb +30 -7
- data/lib/advanced_billing/models/create_invoice_payment.rb +24 -7
- data/lib/advanced_billing/models/create_invoice_payment_application.rb +19 -5
- data/lib/advanced_billing/models/create_invoice_payment_request.rb +19 -5
- data/lib/advanced_billing/models/create_invoice_request.rb +17 -4
- data/lib/advanced_billing/models/create_metadata.rb +19 -5
- data/lib/advanced_billing/models/create_metadata_request.rb +18 -4
- data/lib/advanced_billing/models/create_metafield.rb +22 -7
- data/lib/advanced_billing/models/create_metafields_request.rb +18 -4
- data/lib/advanced_billing/models/create_metered_component.rb +18 -4
- data/lib/advanced_billing/models/create_multi_invoice_payment.rb +24 -7
- data/lib/advanced_billing/models/create_multi_invoice_payment_request.rb +17 -4
- data/lib/advanced_billing/models/create_offer.rb +25 -7
- data/lib/advanced_billing/models/create_offer_component.rb +22 -6
- data/lib/advanced_billing/models/create_offer_request.rb +17 -4
- data/lib/advanced_billing/models/create_on_off_component.rb +18 -4
- data/lib/advanced_billing/models/create_or_update_endpoint.rb +19 -5
- data/lib/advanced_billing/models/create_or_update_endpoint_request.rb +18 -4
- data/lib/advanced_billing/models/create_or_update_product.rb +36 -7
- data/lib/advanced_billing/models/create_or_update_product_request.rb +17 -4
- data/lib/advanced_billing/models/create_or_update_segment_price.rb +22 -6
- data/lib/advanced_billing/models/create_payment.rb +22 -7
- data/lib/advanced_billing/models/create_payment_profile.rb +50 -7
- data/lib/advanced_billing/models/create_payment_profile_request.rb +18 -4
- data/lib/advanced_billing/models/create_prepaid_component.rb +18 -4
- data/lib/advanced_billing/models/create_prepaid_usage_component_price_point.rb +38 -13
- data/lib/advanced_billing/models/create_prepayment.rb +23 -7
- data/lib/advanced_billing/models/create_prepayment_request.rb +18 -4
- data/lib/advanced_billing/models/create_prepayment_response.rb +18 -4
- data/lib/advanced_billing/models/create_product_currency_price.rb +20 -6
- data/lib/advanced_billing/models/create_product_currency_prices_request.rb +18 -4
- data/lib/advanced_billing/models/create_product_family.rb +20 -6
- data/lib/advanced_billing/models/create_product_family_request.rb +18 -4
- data/lib/advanced_billing/models/create_product_price_point.rb +35 -7
- data/lib/advanced_billing/models/create_product_price_point_request.rb +18 -4
- data/lib/advanced_billing/models/create_quantity_based_component.rb +18 -4
- data/lib/advanced_billing/models/create_reason_code.rb +20 -6
- data/lib/advanced_billing/models/create_reason_code_request.rb +18 -4
- data/lib/advanced_billing/models/create_segment.rb +27 -7
- data/lib/advanced_billing/models/create_segment_request.rb +17 -4
- data/lib/advanced_billing/models/create_subscription.rb +79 -8
- data/lib/advanced_billing/models/create_subscription_component.rb +26 -7
- data/lib/advanced_billing/models/create_subscription_group.rb +19 -5
- data/lib/advanced_billing/models/create_subscription_group_request.rb +18 -4
- data/lib/advanced_billing/models/create_subscription_request.rb +18 -4
- data/lib/advanced_billing/models/create_usage.rb +23 -7
- data/lib/advanced_billing/models/create_usage_request.rb +17 -4
- data/lib/advanced_billing/models/created_prepayment.rb +26 -7
- data/lib/advanced_billing/models/credit_account_balance_changed.rb +27 -7
- data/lib/advanced_billing/models/credit_card_attributes.rb +22 -6
- data/lib/advanced_billing/models/credit_card_payment_profile.rb +39 -7
- data/lib/advanced_billing/models/credit_note.rb +42 -7
- data/lib/advanced_billing/models/credit_note_application.rb +23 -7
- data/lib/advanced_billing/models/credit_note_line_item.rb +37 -7
- data/lib/advanced_billing/models/credit_scheme_request.rb +18 -4
- data/lib/advanced_billing/models/currency_price.rb +46 -7
- data/lib/advanced_billing/models/currency_prices_response.rb +18 -4
- data/lib/advanced_billing/models/custom_field_value_change.rb +26 -7
- data/lib/advanced_billing/models/customer.rb +47 -7
- data/lib/advanced_billing/models/customer_attributes.rb +34 -7
- data/lib/advanced_billing/models/customer_change.rb +23 -7
- data/lib/advanced_billing/models/customer_changes_preview_response.rb +17 -4
- data/lib/advanced_billing/models/customer_custom_fields_change.rb +19 -5
- data/lib/advanced_billing/models/customer_error.rb +18 -4
- data/lib/advanced_billing/models/customer_payer_change.rb +19 -5
- data/lib/advanced_billing/models/customer_response.rb +18 -4
- data/lib/advanced_billing/models/debit_note.rb +37 -7
- data/lib/advanced_billing/models/deduct_service_credit.rb +19 -5
- data/lib/advanced_billing/models/deduct_service_credit_request.rb +18 -4
- data/lib/advanced_billing/models/delayed_cancellation_response.rb +17 -4
- data/lib/advanced_billing/models/delete_subscription_group_response.rb +19 -5
- data/lib/advanced_billing/models/dunner_data.rb +25 -7
- data/lib/advanced_billing/models/dunning_step_data.rb +26 -7
- data/lib/advanced_billing/models/dunning_step_reached.rb +20 -6
- data/lib/advanced_billing/models/ebb_component.rb +41 -53
- data/lib/advanced_billing/models/ebb_event.rb +18 -4
- data/lib/advanced_billing/models/enable_webhooks_request.rb +18 -4
- data/lib/advanced_billing/models/enable_webhooks_response.rb +18 -4
- data/lib/advanced_billing/models/endpoint.rb +23 -7
- data/lib/advanced_billing/models/endpoint_response.rb +18 -4
- data/lib/advanced_billing/models/errors.rb +19 -5
- data/lib/advanced_billing/models/event.rb +89 -11
- data/lib/advanced_billing/models/event_based_billing_segment_error.rb +18 -4
- data/lib/advanced_billing/models/event_key.rb +264 -0
- data/lib/advanced_billing/models/event_response.rb +17 -4
- data/lib/advanced_billing/models/failed_payment_event.rb +23 -7
- data/lib/advanced_billing/models/failed_payment_event_data.rb +24 -7
- data/lib/advanced_billing/models/full_subscription_group_response.rb +32 -7
- data/lib/advanced_billing/models/get_one_time_token_payment_profile.rb +39 -7
- data/lib/advanced_billing/models/get_one_time_token_request.rb +18 -4
- data/lib/advanced_billing/models/group_billing.rb +20 -6
- data/lib/advanced_billing/models/group_settings.rb +19 -5
- data/lib/advanced_billing/models/group_target.rb +19 -5
- data/lib/advanced_billing/models/historic_usage.rb +22 -6
- data/lib/advanced_billing/models/invoice.rb +114 -13
- data/lib/advanced_billing/models/invoice_address.rb +22 -7
- data/lib/advanced_billing/models/invoice_avatax_details.rb +146 -0
- data/lib/advanced_billing/models/invoice_balance_item.rb +20 -6
- data/lib/advanced_billing/models/invoice_credit.rb +26 -7
- data/lib/advanced_billing/models/invoice_custom_field.rb +23 -7
- data/lib/advanced_billing/models/invoice_customer.rb +25 -7
- data/lib/advanced_billing/models/invoice_debit.rb +167 -0
- data/lib/advanced_billing/models/invoice_discount.rb +30 -7
- data/lib/advanced_billing/models/invoice_discount_breakout.rb +21 -6
- data/lib/advanced_billing/models/invoice_display_settings.rb +23 -7
- data/lib/advanced_billing/models/invoice_issued.rb +31 -7
- data/lib/advanced_billing/models/invoice_line_item.rb +55 -8
- data/lib/advanced_billing/models/invoice_line_item_component_cost_data.rb +17 -4
- data/lib/advanced_billing/models/invoice_line_item_event_data.rb +37 -7
- data/lib/advanced_billing/models/invoice_line_item_pricing_detail.rb +19 -5
- data/lib/advanced_billing/models/invoice_payer.rb +24 -7
- data/lib/advanced_billing/models/invoice_payer_change.rb +22 -7
- data/lib/advanced_billing/models/invoice_payment.rb +30 -7
- data/lib/advanced_billing/models/invoice_payment_application.rb +21 -6
- data/lib/advanced_billing/models/invoice_payment_method.rb +26 -7
- data/lib/advanced_billing/models/invoice_pre_payment.rb +22 -6
- data/lib/advanced_billing/models/invoice_previous_balance.rb +19 -5
- data/lib/advanced_billing/models/invoice_refund.rb +28 -7
- data/lib/advanced_billing/models/invoice_response.rb +17 -4
- data/lib/advanced_billing/models/invoice_seller.rb +22 -7
- data/lib/advanced_billing/models/invoice_status.rb +4 -1
- data/lib/advanced_billing/models/invoice_tax.rb +31 -7
- data/lib/advanced_billing/models/invoice_tax_breakout.rb +23 -7
- data/lib/advanced_billing/models/invoice_tax_component_breakout.rb +33 -7
- data/lib/advanced_billing/models/issue_advance_invoice_request.rb +17 -4
- data/lib/advanced_billing/models/issue_invoice_event.rb +23 -7
- data/lib/advanced_billing/models/issue_invoice_event_data.rb +24 -7
- data/lib/advanced_billing/models/issue_invoice_request.rb +18 -4
- data/lib/advanced_billing/models/issue_service_credit.rb +19 -5
- data/lib/advanced_billing/models/issue_service_credit_request.rb +18 -4
- data/lib/advanced_billing/models/item_price_point_changed.rb +25 -7
- data/lib/advanced_billing/models/item_price_point_data.rb +20 -6
- data/lib/advanced_billing/models/list_components_filter.rb +19 -5
- data/lib/advanced_billing/models/list_components_price_points_response.rb +18 -4
- data/lib/advanced_billing/models/list_coupons_filter.rb +26 -7
- data/lib/advanced_billing/models/list_credit_notes_response.rb +18 -4
- data/lib/advanced_billing/models/list_invoice_events_response.rb +22 -7
- data/lib/advanced_billing/models/list_invoices_response.rb +18 -4
- data/lib/advanced_billing/models/list_metafields_response.rb +24 -7
- data/lib/advanced_billing/models/list_mrr_filter.rb +18 -4
- data/lib/advanced_billing/models/list_mrr_response.rb +16 -4
- data/lib/advanced_billing/models/list_mrr_response_result.rb +25 -7
- data/lib/advanced_billing/models/list_offers_response.rb +17 -4
- data/lib/advanced_billing/models/list_prepayments_filter.rb +20 -6
- data/lib/advanced_billing/models/list_price_points_filter.rb +25 -7
- data/lib/advanced_billing/models/list_product_price_points_response.rb +18 -4
- data/lib/advanced_billing/models/list_products_filter.rb +23 -7
- data/lib/advanced_billing/models/list_proforma_invoices_meta.rb +23 -7
- data/lib/advanced_billing/models/list_proforma_invoices_response.rb +19 -5
- data/lib/advanced_billing/models/list_public_keys_meta.rb +23 -7
- data/lib/advanced_billing/models/list_public_keys_response.rb +19 -5
- data/lib/advanced_billing/models/list_sale_rep_item.rb +23 -7
- data/lib/advanced_billing/models/list_segments_filter.rb +26 -7
- data/lib/advanced_billing/models/list_segments_response.rb +18 -4
- data/lib/advanced_billing/models/list_subcription_group_prepayment_item.rb +28 -7
- data/lib/advanced_billing/models/list_subscription_components_filter.rb +19 -5
- data/lib/advanced_billing/models/list_subscription_components_for_site_filter.rb +22 -6
- data/lib/advanced_billing/models/list_subscription_components_response.rb +18 -4
- data/lib/advanced_billing/models/list_subscription_group_prepayment.rb +18 -4
- data/lib/advanced_billing/models/list_subscription_group_prepayment_response.rb +18 -4
- data/lib/advanced_billing/models/list_subscription_groups_item.rb +30 -7
- data/lib/advanced_billing/models/list_subscription_groups_meta.rb +19 -5
- data/lib/advanced_billing/models/list_subscription_groups_response.rb +19 -5
- data/lib/advanced_billing/models/metadata.rb +24 -7
- data/lib/advanced_billing/models/metafield.rb +23 -7
- data/lib/advanced_billing/models/metafield_scope.rb +24 -7
- data/lib/advanced_billing/models/metered_component.rb +49 -51
- data/lib/advanced_billing/models/metered_usage.rb +25 -7
- data/lib/advanced_billing/models/movement.rb +28 -7
- data/lib/advanced_billing/models/movement_line_item.rb +26 -7
- data/lib/advanced_billing/models/mrr.rb +25 -7
- data/lib/advanced_billing/models/mrr_movement.rb +23 -7
- data/lib/advanced_billing/models/mrr_response.rb +16 -4
- data/lib/advanced_billing/models/multi_invoice_payment.rb +23 -7
- data/lib/advanced_billing/models/multi_invoice_payment_response.rb +17 -4
- data/lib/advanced_billing/models/nested_subscription_group.rb +23 -7
- data/lib/advanced_billing/models/net_terms.rb +28 -7
- data/lib/advanced_billing/models/offer.rb +37 -7
- data/lib/advanced_billing/models/offer_discount.rb +21 -6
- data/lib/advanced_billing/models/offer_item.rb +29 -7
- data/lib/advanced_billing/models/offer_response.rb +17 -4
- data/lib/advanced_billing/models/offer_signup_page.rb +24 -7
- data/lib/advanced_billing/models/{reason_codes_json_response.rb → ok_response.rb} +19 -7
- data/lib/advanced_billing/models/on_off_component.rb +66 -61
- data/lib/advanced_billing/models/organization_address.rb +24 -7
- data/lib/advanced_billing/models/origin_invoice.rb +19 -5
- data/lib/advanced_billing/models/overage_pricing.rb +19 -5
- data/lib/advanced_billing/models/override_subscription.rb +26 -7
- data/lib/advanced_billing/models/override_subscription_request.rb +18 -4
- data/lib/advanced_billing/models/paginated_metadata.rb +24 -7
- data/lib/advanced_billing/models/paid_invoice.rb +22 -7
- data/lib/advanced_billing/models/pause_request.rb +17 -4
- data/lib/advanced_billing/models/payer_attributes.rb +31 -7
- data/lib/advanced_billing/models/payer_error.rb +20 -6
- data/lib/advanced_billing/models/payment_collection_method_changed.rb +19 -5
- data/lib/advanced_billing/models/payment_for_allocation.rb +22 -7
- data/lib/advanced_billing/models/payment_method_apple_pay.rb +17 -4
- data/lib/advanced_billing/models/payment_method_bank_account.rb +22 -6
- data/lib/advanced_billing/models/payment_method_credit_card.rb +24 -7
- data/lib/advanced_billing/models/payment_method_external.rb +22 -7
- data/lib/advanced_billing/models/payment_method_paypal.rb +19 -5
- data/lib/advanced_billing/models/payment_profile_attributes.rb +42 -7
- data/lib/advanced_billing/models/payment_profile_response.rb +18 -4
- data/lib/advanced_billing/models/payment_related_events.rb +19 -5
- data/lib/advanced_billing/models/paypal_payment_profile.rb +35 -7
- data/lib/advanced_billing/models/pending_cancellation_change.rb +19 -5
- data/lib/advanced_billing/models/portal_management_link.rb +25 -7
- data/lib/advanced_billing/models/prepaid_configuration.rb +27 -7
- data/lib/advanced_billing/models/prepaid_configuration_response.rb +18 -4
- data/lib/advanced_billing/models/prepaid_product_price_point_filter.rb +18 -4
- data/lib/advanced_billing/models/prepaid_subscription_balance_changed.rb +26 -7
- data/lib/advanced_billing/models/prepaid_usage.rb +32 -7
- data/lib/advanced_billing/models/prepaid_usage_allocation_detail.rb +21 -6
- data/lib/advanced_billing/models/prepaid_usage_component.rb +83 -41
- data/lib/advanced_billing/models/prepayment.rb +28 -7
- data/lib/advanced_billing/models/prepayment_account_balance_changed.rb +25 -7
- data/lib/advanced_billing/models/prepayment_response.rb +18 -4
- data/lib/advanced_billing/models/prepayments_response.rb +18 -4
- data/lib/advanced_billing/models/preview_allocations_request.rb +24 -7
- data/lib/advanced_billing/models/price.rb +22 -6
- data/lib/advanced_billing/models/product.rb +62 -7
- data/lib/advanced_billing/models/product_family.rb +24 -7
- data/lib/advanced_billing/models/product_family_response.rb +18 -4
- data/lib/advanced_billing/models/product_price_point.rb +44 -7
- data/lib/advanced_billing/models/product_price_point_errors.rb +24 -7
- data/lib/advanced_billing/models/product_price_point_response.rb +18 -4
- data/lib/advanced_billing/models/product_response.rb +17 -4
- data/lib/advanced_billing/models/proforma_error.rb +18 -4
- data/lib/advanced_billing/models/proforma_invoice.rb +49 -7
- data/lib/advanced_billing/models/proforma_invoice_credit.rb +22 -7
- data/lib/advanced_billing/models/proforma_invoice_discount.rb +26 -7
- data/lib/advanced_billing/models/proforma_invoice_issued.rb +28 -7
- data/lib/advanced_billing/models/proforma_invoice_payment.rb +23 -7
- data/lib/advanced_billing/models/proforma_invoice_tax.rb +25 -7
- data/lib/advanced_billing/models/proration.rb +18 -4
- data/lib/advanced_billing/models/public_key.rb +22 -6
- data/lib/advanced_billing/models/public_signup_page.rb +22 -7
- data/lib/advanced_billing/models/quantity_based_component.rb +51 -23
- data/lib/advanced_billing/models/reactivate_subscription_group_request.rb +19 -5
- data/lib/advanced_billing/models/reactivate_subscription_group_response.rb +28 -7
- data/lib/advanced_billing/models/reactivate_subscription_request.rb +26 -7
- data/lib/advanced_billing/models/reactivation_billing.rb +18 -4
- data/lib/advanced_billing/models/reason_code.rb +24 -7
- data/lib/advanced_billing/models/reason_code_response.rb +18 -4
- data/lib/advanced_billing/models/record_payment_request.rb +17 -4
- data/lib/advanced_billing/models/record_payment_response.rb +19 -5
- data/lib/advanced_billing/models/referral_code.rb +22 -7
- data/lib/advanced_billing/models/referral_validation_response.rb +18 -4
- data/lib/advanced_billing/models/refund_consolidated_invoice.rb +24 -7
- data/lib/advanced_billing/models/refund_invoice.rb +24 -7
- data/lib/advanced_billing/models/refund_invoice_event.rb +23 -7
- data/lib/advanced_billing/models/refund_invoice_event_data.rb +28 -7
- data/lib/advanced_billing/models/refund_invoice_request.rb +17 -4
- data/lib/advanced_billing/models/refund_prepayment.rb +22 -7
- data/lib/advanced_billing/models/refund_prepayment_base_refund_error.rb +17 -4
- data/lib/advanced_billing/models/refund_prepayment_request.rb +17 -4
- data/lib/advanced_billing/models/refund_success.rb +22 -6
- data/lib/advanced_billing/models/remove_payment_event.rb +23 -7
- data/lib/advanced_billing/models/remove_payment_event_data.rb +26 -7
- data/lib/advanced_billing/models/renewal_preview.rb +30 -7
- data/lib/advanced_billing/models/renewal_preview_component.rb +21 -6
- data/lib/advanced_billing/models/renewal_preview_line_item.rb +34 -7
- data/lib/advanced_billing/models/renewal_preview_request.rb +18 -4
- data/lib/advanced_billing/models/renewal_preview_response.rb +18 -4
- data/lib/advanced_billing/models/replay_webhooks_request.rb +16 -4
- data/lib/advanced_billing/models/replay_webhooks_response.rb +17 -4
- data/lib/advanced_billing/models/resent_invitation.rb +26 -7
- data/lib/advanced_billing/models/resume_options.rb +19 -5
- data/lib/advanced_billing/models/revoked_invitation.rb +22 -6
- data/lib/advanced_billing/models/sale_rep.rb +23 -7
- data/lib/advanced_billing/models/sale_rep_item_mrr.rb +20 -6
- data/lib/advanced_billing/models/sale_rep_settings.rb +26 -7
- data/lib/advanced_billing/models/sale_rep_subscription.rb +26 -7
- data/lib/advanced_billing/models/segment.rb +33 -7
- data/lib/advanced_billing/models/segment_price.rb +26 -7
- data/lib/advanced_billing/models/segment_response.rb +17 -4
- data/lib/advanced_billing/models/send_invoice_request.rb +22 -6
- data/lib/advanced_billing/models/service_credit.rb +24 -7
- data/lib/advanced_billing/models/service_credit_response.rb +18 -4
- data/lib/advanced_billing/models/signup_proforma_preview.rb +21 -5
- data/lib/advanced_billing/models/signup_proforma_preview_response.rb +18 -4
- data/lib/advanced_billing/models/site.rb +56 -7
- data/lib/advanced_billing/models/site_response.rb +17 -4
- data/lib/advanced_billing/models/site_statistics.rb +35 -7
- data/lib/advanced_billing/models/site_summary.rb +23 -7
- data/lib/advanced_billing/models/subscription.rb +91 -7
- data/lib/advanced_billing/models/subscription_component.rb +50 -7
- data/lib/advanced_billing/models/subscription_component_allocation_error_item.rb +19 -5
- data/lib/advanced_billing/models/subscription_component_response.rb +18 -4
- data/lib/advanced_billing/models/subscription_component_subscription.rb +19 -5
- data/lib/advanced_billing/models/subscription_custom_price.rb +34 -7
- data/lib/advanced_billing/models/subscription_filter.rb +24 -7
- data/lib/advanced_billing/models/subscription_group.rb +25 -7
- data/lib/advanced_billing/models/subscription_group_balances.rb +23 -7
- data/lib/advanced_billing/models/subscription_group_bank_account.rb +35 -7
- data/lib/advanced_billing/models/subscription_group_component_custom_price.rb +21 -6
- data/lib/advanced_billing/models/subscription_group_credit_card.rb +37 -7
- data/lib/advanced_billing/models/subscription_group_customer.rb +23 -7
- data/lib/advanced_billing/models/subscription_group_item.rb +30 -7
- data/lib/advanced_billing/models/subscription_group_members_array_error.rb +17 -4
- data/lib/advanced_billing/models/subscription_group_payment_profile.rb +23 -7
- data/lib/advanced_billing/models/subscription_group_prepayment.rb +22 -7
- data/lib/advanced_billing/models/subscription_group_prepayment_request.rb +18 -4
- data/lib/advanced_billing/models/subscription_group_prepayment_response.rb +24 -7
- data/lib/advanced_billing/models/subscription_group_response.rb +18 -4
- data/lib/advanced_billing/models/subscription_group_signup.rb +29 -7
- data/lib/advanced_billing/models/subscription_group_signup_component.rb +24 -7
- data/lib/advanced_billing/models/subscription_group_signup_error.rb +25 -7
- data/lib/advanced_billing/models/{subscription_group_signup_success.rb → subscription_group_signup_event_data.rb} +31 -15
- data/lib/advanced_billing/models/subscription_group_signup_failure_data.rb +29 -7
- data/lib/advanced_billing/models/subscription_group_signup_item.rb +31 -7
- data/lib/advanced_billing/models/subscription_group_signup_request.rb +18 -4
- data/lib/advanced_billing/models/subscription_group_signup_response.rb +31 -7
- data/lib/advanced_billing/models/subscription_group_single_error.rb +18 -4
- data/lib/advanced_billing/models/subscription_group_subscription_error.rb +31 -7
- data/lib/advanced_billing/models/subscription_group_update_error.rb +19 -15
- data/lib/advanced_billing/models/subscription_included_coupon.rb +25 -7
- data/lib/advanced_billing/models/subscription_migration_preview.rb +25 -7
- data/lib/advanced_billing/models/subscription_migration_preview_options.rb +30 -7
- data/lib/advanced_billing/models/subscription_migration_preview_request.rb +18 -4
- data/lib/advanced_billing/models/subscription_migration_preview_response.rb +18 -4
- data/lib/advanced_billing/models/subscription_mrr.rb +22 -6
- data/lib/advanced_billing/models/subscription_mrr_breakout.rb +20 -5
- data/lib/advanced_billing/models/subscription_mrr_response.rb +18 -4
- data/lib/advanced_billing/models/subscription_note.rb +24 -7
- data/lib/advanced_billing/models/subscription_note_response.rb +17 -4
- data/lib/advanced_billing/models/subscription_preview.rb +21 -5
- data/lib/advanced_billing/models/subscription_preview_response.rb +18 -4
- data/lib/advanced_billing/models/subscription_product_change.rb +19 -5
- data/lib/advanced_billing/models/subscription_product_migration.rb +30 -7
- data/lib/advanced_billing/models/subscription_product_migration_request.rb +18 -4
- data/lib/advanced_billing/models/subscription_response.rb +18 -4
- data/lib/advanced_billing/models/subscription_state_change.rb +21 -5
- data/lib/advanced_billing/models/tax_configuration.rb +22 -6
- data/lib/advanced_billing/models/too_many_management_link_requests.rb +19 -5
- data/lib/advanced_billing/models/update_allocation_expiration_date.rb +18 -4
- data/lib/advanced_billing/models/update_component.rb +27 -7
- data/lib/advanced_billing/models/update_component_price_point.rb +26 -7
- data/lib/advanced_billing/models/update_component_price_point_request.rb +18 -4
- data/lib/advanced_billing/models/update_component_request.rb +18 -4
- data/lib/advanced_billing/models/update_coupon_currency.rb +19 -5
- data/lib/advanced_billing/models/update_currency_price.rb +20 -6
- data/lib/advanced_billing/models/update_currency_prices_request.rb +18 -4
- data/lib/advanced_billing/models/update_customer.rb +33 -7
- data/lib/advanced_billing/models/update_customer_request.rb +18 -4
- data/lib/advanced_billing/models/update_metadata.rb +20 -6
- data/lib/advanced_billing/models/update_metadata_request.rb +18 -4
- data/lib/advanced_billing/models/update_metafield.rb +23 -7
- data/lib/advanced_billing/models/update_metafields_request.rb +18 -4
- data/lib/advanced_billing/models/update_payment_profile.rb +30 -7
- data/lib/advanced_billing/models/update_payment_profile_request.rb +18 -4
- data/lib/advanced_billing/models/update_price.rb +23 -7
- data/lib/advanced_billing/models/update_product_price_point.rb +19 -5
- data/lib/advanced_billing/models/update_product_price_point_request.rb +18 -4
- data/lib/advanced_billing/models/update_reason_code.rb +20 -6
- data/lib/advanced_billing/models/update_reason_code_request.rb +18 -4
- data/lib/advanced_billing/models/update_segment.rb +19 -5
- data/lib/advanced_billing/models/update_segment_request.rb +17 -4
- data/lib/advanced_billing/models/update_subscription.rb +45 -8
- data/lib/advanced_billing/models/update_subscription_component.rb +19 -5
- data/lib/advanced_billing/models/update_subscription_group.rb +18 -4
- data/lib/advanced_billing/models/update_subscription_group_request.rb +18 -4
- data/lib/advanced_billing/models/update_subscription_note.rb +19 -5
- data/lib/advanced_billing/models/update_subscription_note_request.rb +17 -4
- data/lib/advanced_billing/models/update_subscription_request.rb +18 -4
- data/lib/advanced_billing/models/upsert_prepaid_configuration.rb +27 -7
- data/lib/advanced_billing/models/upsert_prepaid_configuration_request.rb +18 -4
- data/lib/advanced_billing/models/usage.rb +26 -7
- data/lib/advanced_billing/models/usage_response.rb +17 -4
- data/lib/advanced_billing/models/void_invoice.rb +17 -4
- data/lib/advanced_billing/models/void_invoice_event.rb +23 -7
- data/lib/advanced_billing/models/void_invoice_event_data.rb +25 -7
- data/lib/advanced_billing/models/void_invoice_request.rb +17 -4
- data/lib/advanced_billing/models/void_remainder_event.rb +23 -7
- data/lib/advanced_billing/models/void_remainder_event_data.rb +23 -7
- data/lib/advanced_billing/models/webhook.rb +29 -7
- data/lib/advanced_billing/models/webhook_response.rb +17 -4
- data/lib/advanced_billing/utilities/file_wrapper.rb +14 -2
- data/lib/advanced_billing/utilities/union_type_lookup.rb +12 -33
- data/lib/advanced_billing.rb +9 -11
- metadata +12 -14
- data/lib/advanced_billing/models/create_or_update_flat_amount_coupon.rb +0 -249
- data/lib/advanced_billing/models/create_or_update_percentage_coupon.rb +0 -250
- data/lib/advanced_billing/models/event_type.rb +0 -121
- data/lib/advanced_billing/models/prepaid_component_price_point.rb +0 -123
- data/lib/advanced_billing/models/subscription_group_member_error.rb +0 -78
- data/lib/advanced_billing/models/subscription_group_signup_failure.rb +0 -93
- data/lib/advanced_billing/models/subscription_group_signup_success_data.rb +0 -185
@@ -10,7 +10,7 @@ module AdvancedBilling
|
|
10
10
|
private_constant :SKIP
|
11
11
|
|
12
12
|
# TODO: Write general description for this method
|
13
|
-
# @return [Array[
|
13
|
+
# @return [Array[String]]
|
14
14
|
attr_accessor :members
|
15
15
|
|
16
16
|
# A mapping from model property names to API property names.
|
@@ -33,12 +33,12 @@ module AdvancedBilling
|
|
33
33
|
end
|
34
34
|
|
35
35
|
def initialize(members: SKIP, additional_properties: {})
|
36
|
-
@members = members unless members == SKIP
|
37
|
-
|
38
36
|
# Add additional model properties to the instance.
|
39
37
|
additional_properties.each do |_name, _value|
|
40
38
|
instance_variable_set("@#{_name}", _value)
|
41
39
|
end
|
40
|
+
|
41
|
+
@members = members unless members == SKIP
|
42
42
|
end
|
43
43
|
|
44
44
|
# Creates an instance of the object from a hash.
|
@@ -46,23 +46,27 @@ module AdvancedBilling
|
|
46
46
|
return nil unless hash
|
47
47
|
|
48
48
|
# Extract variables from the hash.
|
49
|
-
|
50
|
-
members = nil
|
51
|
-
unless hash['members'].nil?
|
52
|
-
members = []
|
53
|
-
hash['members'].each do |structure|
|
54
|
-
members << (SubscriptionGroupMemberError.from_hash(structure) if structure)
|
55
|
-
end
|
56
|
-
end
|
57
|
-
|
58
|
-
members = SKIP unless hash.key?('members')
|
49
|
+
members = hash.key?('members') ? hash['members'] : SKIP
|
59
50
|
|
60
51
|
# Clean out expected properties from Hash.
|
61
|
-
|
52
|
+
additional_properties = hash.reject { |k, _| names.value?(k) }
|
62
53
|
|
63
54
|
# Create object from extracted values.
|
64
55
|
SubscriptionGroupUpdateError.new(members: members,
|
65
|
-
additional_properties:
|
56
|
+
additional_properties: additional_properties)
|
57
|
+
end
|
58
|
+
|
59
|
+
# Provides a human-readable string representation of the object.
|
60
|
+
def to_s
|
61
|
+
class_name = self.class.name.split('::').last
|
62
|
+
"<#{class_name} members: #{@members}, additional_properties: #{get_additional_properties}>"
|
63
|
+
end
|
64
|
+
|
65
|
+
# Provides a debugging-friendly string with detailed object information.
|
66
|
+
def inspect
|
67
|
+
class_name = self.class.name.split('::').last
|
68
|
+
"<#{class_name} members: #{@members.inspect}, additional_properties:"\
|
69
|
+
" #{get_additional_properties}>"
|
66
70
|
end
|
67
71
|
end
|
68
72
|
end
|
@@ -75,6 +75,11 @@ module AdvancedBilling
|
|
75
75
|
def initialize(code: SKIP, use_count: SKIP, uses_allowed: SKIP,
|
76
76
|
expires_at: SKIP, recurring: SKIP, amount_in_cents: SKIP,
|
77
77
|
percentage: SKIP, additional_properties: {})
|
78
|
+
# Add additional model properties to the instance.
|
79
|
+
additional_properties.each do |_name, _value|
|
80
|
+
instance_variable_set("@#{_name}", _value)
|
81
|
+
end
|
82
|
+
|
78
83
|
@code = code unless code == SKIP
|
79
84
|
@use_count = use_count unless use_count == SKIP
|
80
85
|
@uses_allowed = uses_allowed unless uses_allowed == SKIP
|
@@ -82,11 +87,6 @@ module AdvancedBilling
|
|
82
87
|
@recurring = recurring unless recurring == SKIP
|
83
88
|
@amount_in_cents = amount_in_cents unless amount_in_cents == SKIP
|
84
89
|
@percentage = percentage unless percentage == SKIP
|
85
|
-
|
86
|
-
# Add additional model properties to the instance.
|
87
|
-
additional_properties.each do |_name, _value|
|
88
|
-
instance_variable_set("@#{_name}", _value)
|
89
|
-
end
|
90
90
|
end
|
91
91
|
|
92
92
|
# Creates an instance of the object from a hash.
|
@@ -104,7 +104,7 @@ module AdvancedBilling
|
|
104
104
|
percentage = hash.key?('percentage') ? hash['percentage'] : SKIP
|
105
105
|
|
106
106
|
# Clean out expected properties from Hash.
|
107
|
-
|
107
|
+
additional_properties = hash.reject { |k, _| names.value?(k) }
|
108
108
|
|
109
109
|
# Create object from extracted values.
|
110
110
|
SubscriptionIncludedCoupon.new(code: code,
|
@@ -114,7 +114,25 @@ module AdvancedBilling
|
|
114
114
|
recurring: recurring,
|
115
115
|
amount_in_cents: amount_in_cents,
|
116
116
|
percentage: percentage,
|
117
|
-
additional_properties:
|
117
|
+
additional_properties: additional_properties)
|
118
|
+
end
|
119
|
+
|
120
|
+
# Provides a human-readable string representation of the object.
|
121
|
+
def to_s
|
122
|
+
class_name = self.class.name.split('::').last
|
123
|
+
"<#{class_name} code: #{@code}, use_count: #{@use_count}, uses_allowed: #{@uses_allowed},"\
|
124
|
+
" expires_at: #{@expires_at}, recurring: #{@recurring}, amount_in_cents:"\
|
125
|
+
" #{@amount_in_cents}, percentage: #{@percentage}, additional_properties:"\
|
126
|
+
" #{get_additional_properties}>"
|
127
|
+
end
|
128
|
+
|
129
|
+
# Provides a debugging-friendly string with detailed object information.
|
130
|
+
def inspect
|
131
|
+
class_name = self.class.name.split('::').last
|
132
|
+
"<#{class_name} code: #{@code.inspect}, use_count: #{@use_count.inspect}, uses_allowed:"\
|
133
|
+
" #{@uses_allowed.inspect}, expires_at: #{@expires_at.inspect}, recurring:"\
|
134
|
+
" #{@recurring.inspect}, amount_in_cents: #{@amount_in_cents.inspect}, percentage:"\
|
135
|
+
" #{@percentage.inspect}, additional_properties: #{get_additional_properties}>"
|
118
136
|
end
|
119
137
|
end
|
120
138
|
end
|
@@ -56,6 +56,11 @@ module AdvancedBilling
|
|
56
56
|
def initialize(prorated_adjustment_in_cents: SKIP, charge_in_cents: SKIP,
|
57
57
|
payment_due_in_cents: SKIP, credit_applied_in_cents: SKIP,
|
58
58
|
additional_properties: {})
|
59
|
+
# Add additional model properties to the instance.
|
60
|
+
additional_properties.each do |_name, _value|
|
61
|
+
instance_variable_set("@#{_name}", _value)
|
62
|
+
end
|
63
|
+
|
59
64
|
unless prorated_adjustment_in_cents == SKIP
|
60
65
|
@prorated_adjustment_in_cents =
|
61
66
|
prorated_adjustment_in_cents
|
@@ -63,11 +68,6 @@ module AdvancedBilling
|
|
63
68
|
@charge_in_cents = charge_in_cents unless charge_in_cents == SKIP
|
64
69
|
@payment_due_in_cents = payment_due_in_cents unless payment_due_in_cents == SKIP
|
65
70
|
@credit_applied_in_cents = credit_applied_in_cents unless credit_applied_in_cents == SKIP
|
66
|
-
|
67
|
-
# Add additional model properties to the instance.
|
68
|
-
additional_properties.each do |_name, _value|
|
69
|
-
instance_variable_set("@#{_name}", _value)
|
70
|
-
end
|
71
71
|
end
|
72
72
|
|
73
73
|
# Creates an instance of the object from a hash.
|
@@ -85,14 +85,32 @@ module AdvancedBilling
|
|
85
85
|
hash.key?('credit_applied_in_cents') ? hash['credit_applied_in_cents'] : SKIP
|
86
86
|
|
87
87
|
# Clean out expected properties from Hash.
|
88
|
-
|
88
|
+
additional_properties = hash.reject { |k, _| names.value?(k) }
|
89
89
|
|
90
90
|
# Create object from extracted values.
|
91
91
|
SubscriptionMigrationPreview.new(prorated_adjustment_in_cents: prorated_adjustment_in_cents,
|
92
92
|
charge_in_cents: charge_in_cents,
|
93
93
|
payment_due_in_cents: payment_due_in_cents,
|
94
94
|
credit_applied_in_cents: credit_applied_in_cents,
|
95
|
-
additional_properties:
|
95
|
+
additional_properties: additional_properties)
|
96
|
+
end
|
97
|
+
|
98
|
+
# Provides a human-readable string representation of the object.
|
99
|
+
def to_s
|
100
|
+
class_name = self.class.name.split('::').last
|
101
|
+
"<#{class_name} prorated_adjustment_in_cents: #{@prorated_adjustment_in_cents},"\
|
102
|
+
" charge_in_cents: #{@charge_in_cents}, payment_due_in_cents: #{@payment_due_in_cents},"\
|
103
|
+
" credit_applied_in_cents: #{@credit_applied_in_cents}, additional_properties:"\
|
104
|
+
" #{get_additional_properties}>"
|
105
|
+
end
|
106
|
+
|
107
|
+
# Provides a debugging-friendly string with detailed object information.
|
108
|
+
def inspect
|
109
|
+
class_name = self.class.name.split('::').last
|
110
|
+
"<#{class_name} prorated_adjustment_in_cents: #{@prorated_adjustment_in_cents.inspect},"\
|
111
|
+
" charge_in_cents: #{@charge_in_cents.inspect}, payment_due_in_cents:"\
|
112
|
+
" #{@payment_due_in_cents.inspect}, credit_applied_in_cents:"\
|
113
|
+
" #{@credit_applied_in_cents.inspect}, additional_properties: #{get_additional_properties}>"
|
96
114
|
end
|
97
115
|
end
|
98
116
|
end
|
@@ -109,6 +109,11 @@ module AdvancedBilling
|
|
109
109
|
product_handle: SKIP, product_price_point_handle: SKIP,
|
110
110
|
proration: SKIP, proration_date: SKIP,
|
111
111
|
additional_properties: {})
|
112
|
+
# Add additional model properties to the instance.
|
113
|
+
additional_properties.each do |_name, _value|
|
114
|
+
instance_variable_set("@#{_name}", _value)
|
115
|
+
end
|
116
|
+
|
112
117
|
@product_id = product_id unless product_id == SKIP
|
113
118
|
@product_price_point_id = product_price_point_id unless product_price_point_id == SKIP
|
114
119
|
@include_trial = include_trial unless include_trial == SKIP
|
@@ -122,11 +127,6 @@ module AdvancedBilling
|
|
122
127
|
end
|
123
128
|
@proration = proration unless proration == SKIP
|
124
129
|
@proration_date = proration_date unless proration_date == SKIP
|
125
|
-
|
126
|
-
# Add additional model properties to the instance.
|
127
|
-
additional_properties.each do |_name, _value|
|
128
|
-
instance_variable_set("@#{_name}", _value)
|
129
|
-
end
|
130
130
|
end
|
131
131
|
|
132
132
|
# Creates an instance of the object from a hash.
|
@@ -153,7 +153,7 @@ module AdvancedBilling
|
|
153
153
|
end
|
154
154
|
|
155
155
|
# Clean out expected properties from Hash.
|
156
|
-
|
156
|
+
additional_properties = hash.reject { |k, _| names.value?(k) }
|
157
157
|
|
158
158
|
# Create object from extracted values.
|
159
159
|
SubscriptionMigrationPreviewOptions.new(product_id: product_id,
|
@@ -166,11 +166,34 @@ module AdvancedBilling
|
|
166
166
|
product_price_point_handle: product_price_point_handle,
|
167
167
|
proration: proration,
|
168
168
|
proration_date: proration_date,
|
169
|
-
additional_properties:
|
169
|
+
additional_properties: additional_properties)
|
170
170
|
end
|
171
171
|
|
172
172
|
def to_custom_proration_date
|
173
173
|
DateTimeHelper.to_rfc3339(proration_date)
|
174
174
|
end
|
175
|
+
|
176
|
+
# Provides a human-readable string representation of the object.
|
177
|
+
def to_s
|
178
|
+
class_name = self.class.name.split('::').last
|
179
|
+
"<#{class_name} product_id: #{@product_id}, product_price_point_id:"\
|
180
|
+
" #{@product_price_point_id}, include_trial: #{@include_trial}, include_initial_charge:"\
|
181
|
+
" #{@include_initial_charge}, include_coupons: #{@include_coupons}, preserve_period:"\
|
182
|
+
" #{@preserve_period}, product_handle: #{@product_handle}, product_price_point_handle:"\
|
183
|
+
" #{@product_price_point_handle}, proration: #{@proration}, proration_date:"\
|
184
|
+
" #{@proration_date}, additional_properties: #{get_additional_properties}>"
|
185
|
+
end
|
186
|
+
|
187
|
+
# Provides a debugging-friendly string with detailed object information.
|
188
|
+
def inspect
|
189
|
+
class_name = self.class.name.split('::').last
|
190
|
+
"<#{class_name} product_id: #{@product_id.inspect}, product_price_point_id:"\
|
191
|
+
" #{@product_price_point_id.inspect}, include_trial: #{@include_trial.inspect},"\
|
192
|
+
" include_initial_charge: #{@include_initial_charge.inspect}, include_coupons:"\
|
193
|
+
" #{@include_coupons.inspect}, preserve_period: #{@preserve_period.inspect}, product_handle:"\
|
194
|
+
" #{@product_handle.inspect}, product_price_point_handle:"\
|
195
|
+
" #{@product_price_point_handle.inspect}, proration: #{@proration.inspect}, proration_date:"\
|
196
|
+
" #{@proration_date.inspect}, additional_properties: #{get_additional_properties}>"
|
197
|
+
end
|
175
198
|
end
|
176
199
|
end
|
@@ -31,12 +31,12 @@ module AdvancedBilling
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def initialize(migration:, additional_properties: {})
|
34
|
-
@migration = migration
|
35
|
-
|
36
34
|
# Add additional model properties to the instance.
|
37
35
|
additional_properties.each do |_name, _value|
|
38
36
|
instance_variable_set("@#{_name}", _value)
|
39
37
|
end
|
38
|
+
|
39
|
+
@migration = migration
|
40
40
|
end
|
41
41
|
|
42
42
|
# Creates an instance of the object from a hash.
|
@@ -48,11 +48,25 @@ module AdvancedBilling
|
|
48
48
|
hash['migration']
|
49
49
|
|
50
50
|
# Clean out expected properties from Hash.
|
51
|
-
|
51
|
+
additional_properties = hash.reject { |k, _| names.value?(k) }
|
52
52
|
|
53
53
|
# Create object from extracted values.
|
54
54
|
SubscriptionMigrationPreviewRequest.new(migration: migration,
|
55
|
-
additional_properties:
|
55
|
+
additional_properties: additional_properties)
|
56
|
+
end
|
57
|
+
|
58
|
+
# Provides a human-readable string representation of the object.
|
59
|
+
def to_s
|
60
|
+
class_name = self.class.name.split('::').last
|
61
|
+
"<#{class_name} migration: #{@migration}, additional_properties:"\
|
62
|
+
" #{get_additional_properties}>"
|
63
|
+
end
|
64
|
+
|
65
|
+
# Provides a debugging-friendly string with detailed object information.
|
66
|
+
def inspect
|
67
|
+
class_name = self.class.name.split('::').last
|
68
|
+
"<#{class_name} migration: #{@migration.inspect}, additional_properties:"\
|
69
|
+
" #{get_additional_properties}>"
|
56
70
|
end
|
57
71
|
end
|
58
72
|
end
|
@@ -31,12 +31,12 @@ module AdvancedBilling
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def initialize(migration:, additional_properties: {})
|
34
|
-
@migration = migration
|
35
|
-
|
36
34
|
# Add additional model properties to the instance.
|
37
35
|
additional_properties.each do |_name, _value|
|
38
36
|
instance_variable_set("@#{_name}", _value)
|
39
37
|
end
|
38
|
+
|
39
|
+
@migration = migration
|
40
40
|
end
|
41
41
|
|
42
42
|
# Creates an instance of the object from a hash.
|
@@ -47,11 +47,25 @@ module AdvancedBilling
|
|
47
47
|
migration = SubscriptionMigrationPreview.from_hash(hash['migration']) if hash['migration']
|
48
48
|
|
49
49
|
# Clean out expected properties from Hash.
|
50
|
-
|
50
|
+
additional_properties = hash.reject { |k, _| names.value?(k) }
|
51
51
|
|
52
52
|
# Create object from extracted values.
|
53
53
|
SubscriptionMigrationPreviewResponse.new(migration: migration,
|
54
|
-
additional_properties:
|
54
|
+
additional_properties: additional_properties)
|
55
|
+
end
|
56
|
+
|
57
|
+
# Provides a human-readable string representation of the object.
|
58
|
+
def to_s
|
59
|
+
class_name = self.class.name.split('::').last
|
60
|
+
"<#{class_name} migration: #{@migration}, additional_properties:"\
|
61
|
+
" #{get_additional_properties}>"
|
62
|
+
end
|
63
|
+
|
64
|
+
# Provides a debugging-friendly string with detailed object information.
|
65
|
+
def inspect
|
66
|
+
class_name = self.class.name.split('::').last
|
67
|
+
"<#{class_name} migration: #{@migration.inspect}, additional_properties:"\
|
68
|
+
" #{get_additional_properties}>"
|
55
69
|
end
|
56
70
|
end
|
57
71
|
end
|
@@ -44,14 +44,14 @@ module AdvancedBilling
|
|
44
44
|
|
45
45
|
def initialize(subscription_id:, mrr_amount_in_cents:, breakouts: SKIP,
|
46
46
|
additional_properties: {})
|
47
|
-
@subscription_id = subscription_id
|
48
|
-
@mrr_amount_in_cents = mrr_amount_in_cents
|
49
|
-
@breakouts = breakouts unless breakouts == SKIP
|
50
|
-
|
51
47
|
# Add additional model properties to the instance.
|
52
48
|
additional_properties.each do |_name, _value|
|
53
49
|
instance_variable_set("@#{_name}", _value)
|
54
50
|
end
|
51
|
+
|
52
|
+
@subscription_id = subscription_id
|
53
|
+
@mrr_amount_in_cents = mrr_amount_in_cents
|
54
|
+
@breakouts = breakouts unless breakouts == SKIP
|
55
55
|
end
|
56
56
|
|
57
57
|
# Creates an instance of the object from a hash.
|
@@ -66,13 +66,29 @@ module AdvancedBilling
|
|
66
66
|
breakouts = SubscriptionMRRBreakout.from_hash(hash['breakouts']) if hash['breakouts']
|
67
67
|
|
68
68
|
# Clean out expected properties from Hash.
|
69
|
-
|
69
|
+
additional_properties = hash.reject { |k, _| names.value?(k) }
|
70
70
|
|
71
71
|
# Create object from extracted values.
|
72
72
|
SubscriptionMRR.new(subscription_id: subscription_id,
|
73
73
|
mrr_amount_in_cents: mrr_amount_in_cents,
|
74
74
|
breakouts: breakouts,
|
75
|
-
additional_properties:
|
75
|
+
additional_properties: additional_properties)
|
76
|
+
end
|
77
|
+
|
78
|
+
# Provides a human-readable string representation of the object.
|
79
|
+
def to_s
|
80
|
+
class_name = self.class.name.split('::').last
|
81
|
+
"<#{class_name} subscription_id: #{@subscription_id}, mrr_amount_in_cents:"\
|
82
|
+
" #{@mrr_amount_in_cents}, breakouts: #{@breakouts}, additional_properties:"\
|
83
|
+
" #{get_additional_properties}>"
|
84
|
+
end
|
85
|
+
|
86
|
+
# Provides a debugging-friendly string with detailed object information.
|
87
|
+
def inspect
|
88
|
+
class_name = self.class.name.split('::').last
|
89
|
+
"<#{class_name} subscription_id: #{@subscription_id.inspect}, mrr_amount_in_cents:"\
|
90
|
+
" #{@mrr_amount_in_cents.inspect}, breakouts: #{@breakouts.inspect}, additional_properties:"\
|
91
|
+
" #{get_additional_properties}>"
|
76
92
|
end
|
77
93
|
end
|
78
94
|
end
|
@@ -37,13 +37,13 @@ module AdvancedBilling
|
|
37
37
|
|
38
38
|
def initialize(plan_amount_in_cents:, usage_amount_in_cents:,
|
39
39
|
additional_properties: {})
|
40
|
-
@plan_amount_in_cents = plan_amount_in_cents
|
41
|
-
@usage_amount_in_cents = usage_amount_in_cents
|
42
|
-
|
43
40
|
# Add additional model properties to the instance.
|
44
41
|
additional_properties.each do |_name, _value|
|
45
42
|
instance_variable_set("@#{_name}", _value)
|
46
43
|
end
|
44
|
+
|
45
|
+
@plan_amount_in_cents = plan_amount_in_cents
|
46
|
+
@usage_amount_in_cents = usage_amount_in_cents
|
47
47
|
end
|
48
48
|
|
49
49
|
# Creates an instance of the object from a hash.
|
@@ -57,12 +57,27 @@ module AdvancedBilling
|
|
57
57
|
hash.key?('usage_amount_in_cents') ? hash['usage_amount_in_cents'] : nil
|
58
58
|
|
59
59
|
# Clean out expected properties from Hash.
|
60
|
-
|
60
|
+
additional_properties = hash.reject { |k, _| names.value?(k) }
|
61
61
|
|
62
62
|
# Create object from extracted values.
|
63
63
|
SubscriptionMRRBreakout.new(plan_amount_in_cents: plan_amount_in_cents,
|
64
64
|
usage_amount_in_cents: usage_amount_in_cents,
|
65
|
-
additional_properties:
|
65
|
+
additional_properties: additional_properties)
|
66
|
+
end
|
67
|
+
|
68
|
+
# Provides a human-readable string representation of the object.
|
69
|
+
def to_s
|
70
|
+
class_name = self.class.name.split('::').last
|
71
|
+
"<#{class_name} plan_amount_in_cents: #{@plan_amount_in_cents}, usage_amount_in_cents:"\
|
72
|
+
" #{@usage_amount_in_cents}, additional_properties: #{get_additional_properties}>"
|
73
|
+
end
|
74
|
+
|
75
|
+
# Provides a debugging-friendly string with detailed object information.
|
76
|
+
def inspect
|
77
|
+
class_name = self.class.name.split('::').last
|
78
|
+
"<#{class_name} plan_amount_in_cents: #{@plan_amount_in_cents.inspect},"\
|
79
|
+
" usage_amount_in_cents: #{@usage_amount_in_cents.inspect}, additional_properties:"\
|
80
|
+
" #{get_additional_properties}>"
|
66
81
|
end
|
67
82
|
end
|
68
83
|
end
|
@@ -31,12 +31,12 @@ module AdvancedBilling
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def initialize(subscriptions_mrr:, additional_properties: {})
|
34
|
-
@subscriptions_mrr = subscriptions_mrr
|
35
|
-
|
36
34
|
# Add additional model properties to the instance.
|
37
35
|
additional_properties.each do |_name, _value|
|
38
36
|
instance_variable_set("@#{_name}", _value)
|
39
37
|
end
|
38
|
+
|
39
|
+
@subscriptions_mrr = subscriptions_mrr
|
40
40
|
end
|
41
41
|
|
42
42
|
# Creates an instance of the object from a hash.
|
@@ -56,11 +56,25 @@ module AdvancedBilling
|
|
56
56
|
subscriptions_mrr = nil unless hash.key?('subscriptions_mrr')
|
57
57
|
|
58
58
|
# Clean out expected properties from Hash.
|
59
|
-
|
59
|
+
additional_properties = hash.reject { |k, _| names.value?(k) }
|
60
60
|
|
61
61
|
# Create object from extracted values.
|
62
62
|
SubscriptionMRRResponse.new(subscriptions_mrr: subscriptions_mrr,
|
63
|
-
additional_properties:
|
63
|
+
additional_properties: additional_properties)
|
64
|
+
end
|
65
|
+
|
66
|
+
# Provides a human-readable string representation of the object.
|
67
|
+
def to_s
|
68
|
+
class_name = self.class.name.split('::').last
|
69
|
+
"<#{class_name} subscriptions_mrr: #{@subscriptions_mrr}, additional_properties:"\
|
70
|
+
" #{get_additional_properties}>"
|
71
|
+
end
|
72
|
+
|
73
|
+
# Provides a debugging-friendly string with detailed object information.
|
74
|
+
def inspect
|
75
|
+
class_name = self.class.name.split('::').last
|
76
|
+
"<#{class_name} subscriptions_mrr: #{@subscriptions_mrr.inspect}, additional_properties:"\
|
77
|
+
" #{get_additional_properties}>"
|
64
78
|
end
|
65
79
|
end
|
66
80
|
end
|
@@ -66,17 +66,17 @@ module AdvancedBilling
|
|
66
66
|
def initialize(id: SKIP, body: SKIP, subscription_id: SKIP,
|
67
67
|
created_at: SKIP, updated_at: SKIP, sticky: SKIP,
|
68
68
|
additional_properties: {})
|
69
|
+
# Add additional model properties to the instance.
|
70
|
+
additional_properties.each do |_name, _value|
|
71
|
+
instance_variable_set("@#{_name}", _value)
|
72
|
+
end
|
73
|
+
|
69
74
|
@id = id unless id == SKIP
|
70
75
|
@body = body unless body == SKIP
|
71
76
|
@subscription_id = subscription_id unless subscription_id == SKIP
|
72
77
|
@created_at = created_at unless created_at == SKIP
|
73
78
|
@updated_at = updated_at unless updated_at == SKIP
|
74
79
|
@sticky = sticky unless sticky == SKIP
|
75
|
-
|
76
|
-
# Add additional model properties to the instance.
|
77
|
-
additional_properties.each do |_name, _value|
|
78
|
-
instance_variable_set("@#{_name}", _value)
|
79
|
-
end
|
80
80
|
end
|
81
81
|
|
82
82
|
# Creates an instance of the object from a hash.
|
@@ -101,7 +101,7 @@ module AdvancedBilling
|
|
101
101
|
sticky = hash.key?('sticky') ? hash['sticky'] : SKIP
|
102
102
|
|
103
103
|
# Clean out expected properties from Hash.
|
104
|
-
|
104
|
+
additional_properties = hash.reject { |k, _| names.value?(k) }
|
105
105
|
|
106
106
|
# Create object from extracted values.
|
107
107
|
SubscriptionNote.new(id: id,
|
@@ -110,7 +110,7 @@ module AdvancedBilling
|
|
110
110
|
created_at: created_at,
|
111
111
|
updated_at: updated_at,
|
112
112
|
sticky: sticky,
|
113
|
-
additional_properties:
|
113
|
+
additional_properties: additional_properties)
|
114
114
|
end
|
115
115
|
|
116
116
|
def to_custom_created_at
|
@@ -120,5 +120,22 @@ module AdvancedBilling
|
|
120
120
|
def to_custom_updated_at
|
121
121
|
DateTimeHelper.to_rfc3339(updated_at)
|
122
122
|
end
|
123
|
+
|
124
|
+
# Provides a human-readable string representation of the object.
|
125
|
+
def to_s
|
126
|
+
class_name = self.class.name.split('::').last
|
127
|
+
"<#{class_name} id: #{@id}, body: #{@body}, subscription_id: #{@subscription_id},"\
|
128
|
+
" created_at: #{@created_at}, updated_at: #{@updated_at}, sticky: #{@sticky},"\
|
129
|
+
" additional_properties: #{get_additional_properties}>"
|
130
|
+
end
|
131
|
+
|
132
|
+
# Provides a debugging-friendly string with detailed object information.
|
133
|
+
def inspect
|
134
|
+
class_name = self.class.name.split('::').last
|
135
|
+
"<#{class_name} id: #{@id.inspect}, body: #{@body.inspect}, subscription_id:"\
|
136
|
+
" #{@subscription_id.inspect}, created_at: #{@created_at.inspect}, updated_at:"\
|
137
|
+
" #{@updated_at.inspect}, sticky: #{@sticky.inspect}, additional_properties:"\
|
138
|
+
" #{get_additional_properties}>"
|
139
|
+
end
|
123
140
|
end
|
124
141
|
end
|
@@ -31,12 +31,12 @@ module AdvancedBilling
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def initialize(note:, additional_properties: {})
|
34
|
-
@note = note
|
35
|
-
|
36
34
|
# Add additional model properties to the instance.
|
37
35
|
additional_properties.each do |_name, _value|
|
38
36
|
instance_variable_set("@#{_name}", _value)
|
39
37
|
end
|
38
|
+
|
39
|
+
@note = note
|
40
40
|
end
|
41
41
|
|
42
42
|
# Creates an instance of the object from a hash.
|
@@ -47,11 +47,24 @@ module AdvancedBilling
|
|
47
47
|
note = SubscriptionNote.from_hash(hash['note']) if hash['note']
|
48
48
|
|
49
49
|
# Clean out expected properties from Hash.
|
50
|
-
|
50
|
+
additional_properties = hash.reject { |k, _| names.value?(k) }
|
51
51
|
|
52
52
|
# Create object from extracted values.
|
53
53
|
SubscriptionNoteResponse.new(note: note,
|
54
|
-
additional_properties:
|
54
|
+
additional_properties: additional_properties)
|
55
|
+
end
|
56
|
+
|
57
|
+
# Provides a human-readable string representation of the object.
|
58
|
+
def to_s
|
59
|
+
class_name = self.class.name.split('::').last
|
60
|
+
"<#{class_name} note: #{@note}, additional_properties: #{get_additional_properties}>"
|
61
|
+
end
|
62
|
+
|
63
|
+
# Provides a debugging-friendly string with detailed object information.
|
64
|
+
def inspect
|
65
|
+
class_name = self.class.name.split('::').last
|
66
|
+
"<#{class_name} note: #{@note.inspect}, additional_properties:"\
|
67
|
+
" #{get_additional_properties}>"
|
55
68
|
end
|
56
69
|
end
|
57
70
|
end
|
@@ -40,13 +40,13 @@ module AdvancedBilling
|
|
40
40
|
|
41
41
|
def initialize(current_billing_manifest: SKIP, next_billing_manifest: SKIP,
|
42
42
|
additional_properties: {})
|
43
|
-
@current_billing_manifest = current_billing_manifest unless current_billing_manifest == SKIP
|
44
|
-
@next_billing_manifest = next_billing_manifest unless next_billing_manifest == SKIP
|
45
|
-
|
46
43
|
# Add additional model properties to the instance.
|
47
44
|
additional_properties.each do |_name, _value|
|
48
45
|
instance_variable_set("@#{_name}", _value)
|
49
46
|
end
|
47
|
+
|
48
|
+
@current_billing_manifest = current_billing_manifest unless current_billing_manifest == SKIP
|
49
|
+
@next_billing_manifest = next_billing_manifest unless next_billing_manifest == SKIP
|
50
50
|
end
|
51
51
|
|
52
52
|
# Creates an instance of the object from a hash.
|
@@ -60,12 +60,28 @@ module AdvancedBilling
|
|
60
60
|
hash['next_billing_manifest']
|
61
61
|
|
62
62
|
# Clean out expected properties from Hash.
|
63
|
-
|
63
|
+
additional_properties = hash.reject { |k, _| names.value?(k) }
|
64
64
|
|
65
65
|
# Create object from extracted values.
|
66
66
|
SubscriptionPreview.new(current_billing_manifest: current_billing_manifest,
|
67
67
|
next_billing_manifest: next_billing_manifest,
|
68
|
-
additional_properties:
|
68
|
+
additional_properties: additional_properties)
|
69
|
+
end
|
70
|
+
|
71
|
+
# Provides a human-readable string representation of the object.
|
72
|
+
def to_s
|
73
|
+
class_name = self.class.name.split('::').last
|
74
|
+
"<#{class_name} current_billing_manifest: #{@current_billing_manifest},"\
|
75
|
+
" next_billing_manifest: #{@next_billing_manifest}, additional_properties:"\
|
76
|
+
" #{get_additional_properties}>"
|
77
|
+
end
|
78
|
+
|
79
|
+
# Provides a debugging-friendly string with detailed object information.
|
80
|
+
def inspect
|
81
|
+
class_name = self.class.name.split('::').last
|
82
|
+
"<#{class_name} current_billing_manifest: #{@current_billing_manifest.inspect},"\
|
83
|
+
" next_billing_manifest: #{@next_billing_manifest.inspect}, additional_properties:"\
|
84
|
+
" #{get_additional_properties}>"
|
69
85
|
end
|
70
86
|
end
|
71
87
|
end
|