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
@@ -60,12 +60,18 @@ module AdvancedBilling
|
|
60
60
|
amount_in_cents = SKIP,
|
61
61
|
ending_balance_in_cents = SKIP,
|
62
62
|
entry_type = SKIP,
|
63
|
-
memo = SKIP
|
63
|
+
memo = SKIP,
|
64
|
+
additional_properties = {})
|
64
65
|
@id = id unless id == SKIP
|
65
66
|
@amount_in_cents = amount_in_cents unless amount_in_cents == SKIP
|
66
67
|
@ending_balance_in_cents = ending_balance_in_cents unless ending_balance_in_cents == SKIP
|
67
68
|
@entry_type = entry_type unless entry_type == SKIP
|
68
69
|
@memo = memo unless memo == SKIP
|
70
|
+
|
71
|
+
# Add additional model properties to the instance.
|
72
|
+
additional_properties.each do |_name, _value|
|
73
|
+
instance_variable_set("@#{_name}", _value)
|
74
|
+
end
|
69
75
|
end
|
70
76
|
|
71
77
|
# Creates an instance of the object from a hash.
|
@@ -81,12 +87,16 @@ module AdvancedBilling
|
|
81
87
|
entry_type = hash.key?('entry_type') ? hash['entry_type'] : SKIP
|
82
88
|
memo = hash.key?('memo') ? hash['memo'] : SKIP
|
83
89
|
|
90
|
+
# Clean out expected properties from Hash.
|
91
|
+
names.each_value { |k| hash.delete(k) }
|
92
|
+
|
84
93
|
# Create object from extracted values.
|
85
94
|
SubscriptionGroupPrepaymentResponse.new(id,
|
86
95
|
amount_in_cents,
|
87
96
|
ending_balance_in_cents,
|
88
97
|
entry_type,
|
89
|
-
memo
|
98
|
+
memo,
|
99
|
+
hash)
|
90
100
|
end
|
91
101
|
end
|
92
102
|
end
|
@@ -30,8 +30,14 @@ module AdvancedBilling
|
|
30
30
|
[]
|
31
31
|
end
|
32
32
|
|
33
|
-
def initialize(subscription_group = nil
|
33
|
+
def initialize(subscription_group = nil,
|
34
|
+
additional_properties = {})
|
34
35
|
@subscription_group = subscription_group
|
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.
|
@@ -42,8 +48,12 @@ module AdvancedBilling
|
|
42
48
|
subscription_group = SubscriptionGroup.from_hash(hash['subscription_group']) if
|
43
49
|
hash['subscription_group']
|
44
50
|
|
51
|
+
# Clean out expected properties from Hash.
|
52
|
+
names.each_value { |k| hash.delete(k) }
|
53
|
+
|
45
54
|
# Create object from extracted values.
|
46
|
-
SubscriptionGroupResponse.new(subscription_group
|
55
|
+
SubscriptionGroupResponse.new(subscription_group,
|
56
|
+
hash)
|
47
57
|
end
|
48
58
|
end
|
49
59
|
end
|
@@ -95,7 +95,8 @@ module AdvancedBilling
|
|
95
95
|
payment_collection_method = CollectionMethod::AUTOMATIC,
|
96
96
|
payer_attributes = SKIP,
|
97
97
|
credit_card_attributes = SKIP,
|
98
|
-
bank_account_attributes = SKIP
|
98
|
+
bank_account_attributes = SKIP,
|
99
|
+
additional_properties = {})
|
99
100
|
@payment_profile_id = payment_profile_id unless payment_profile_id == SKIP
|
100
101
|
@payer_id = payer_id unless payer_id == SKIP
|
101
102
|
@payer_reference = payer_reference unless payer_reference == SKIP
|
@@ -107,6 +108,11 @@ module AdvancedBilling
|
|
107
108
|
@credit_card_attributes = credit_card_attributes unless credit_card_attributes == SKIP
|
108
109
|
@bank_account_attributes = bank_account_attributes unless bank_account_attributes == SKIP
|
109
110
|
@subscriptions = subscriptions
|
111
|
+
|
112
|
+
# Add additional model properties to the instance.
|
113
|
+
additional_properties.each do |_name, _value|
|
114
|
+
instance_variable_set("@#{_name}", _value)
|
115
|
+
end
|
110
116
|
end
|
111
117
|
|
112
118
|
# Creates an instance of the object from a hash.
|
@@ -140,6 +146,9 @@ module AdvancedBilling
|
|
140
146
|
bank_account_attributes = SubscriptionGroupBankAccount.from_hash(hash['bank_account_attributes'])
|
141
147
|
end
|
142
148
|
|
149
|
+
# Clean out expected properties from Hash.
|
150
|
+
names.each_value { |k| hash.delete(k) }
|
151
|
+
|
143
152
|
# Create object from extracted values.
|
144
153
|
SubscriptionGroupSignup.new(subscriptions,
|
145
154
|
payment_profile_id,
|
@@ -148,7 +157,8 @@ module AdvancedBilling
|
|
148
157
|
payment_collection_method,
|
149
158
|
payer_attributes,
|
150
159
|
credit_card_attributes,
|
151
|
-
bank_account_attributes
|
160
|
+
bank_account_attributes,
|
161
|
+
hash)
|
152
162
|
end
|
153
163
|
end
|
154
164
|
end
|
@@ -61,12 +61,18 @@ module AdvancedBilling
|
|
61
61
|
allocated_quantity = SKIP,
|
62
62
|
unit_balance = SKIP,
|
63
63
|
price_point_id = SKIP,
|
64
|
-
custom_price = SKIP
|
64
|
+
custom_price = SKIP,
|
65
|
+
additional_properties = {})
|
65
66
|
@component_id = component_id unless component_id == SKIP
|
66
67
|
@allocated_quantity = allocated_quantity unless allocated_quantity == SKIP
|
67
68
|
@unit_balance = unit_balance unless unit_balance == SKIP
|
68
69
|
@price_point_id = price_point_id unless price_point_id == SKIP
|
69
70
|
@custom_price = custom_price unless custom_price == SKIP
|
71
|
+
|
72
|
+
# Add additional model properties to the instance.
|
73
|
+
additional_properties.each do |_name, _value|
|
74
|
+
instance_variable_set("@#{_name}", _value)
|
75
|
+
end
|
70
76
|
end
|
71
77
|
|
72
78
|
# Creates an instance of the object from a hash.
|
@@ -89,12 +95,16 @@ module AdvancedBilling
|
|
89
95
|
custom_price = SubscriptionGroupComponentCustomPrice.from_hash(hash['custom_price']) if
|
90
96
|
hash['custom_price']
|
91
97
|
|
98
|
+
# Clean out expected properties from Hash.
|
99
|
+
names.each_value { |k| hash.delete(k) }
|
100
|
+
|
92
101
|
# Create object from extracted values.
|
93
102
|
SubscriptionGroupSignupComponent.new(component_id,
|
94
103
|
allocated_quantity,
|
95
104
|
unit_balance,
|
96
105
|
price_point_id,
|
97
|
-
custom_price
|
106
|
+
custom_price,
|
107
|
+
hash)
|
98
108
|
end
|
99
109
|
|
100
110
|
# Validates an instance of the object from a given value.
|
@@ -73,13 +73,19 @@ module AdvancedBilling
|
|
73
73
|
payer = SKIP,
|
74
74
|
subscription_group = SKIP,
|
75
75
|
payment_profile_id = SKIP,
|
76
|
-
payer_id = SKIP
|
76
|
+
payer_id = SKIP,
|
77
|
+
additional_properties = {})
|
77
78
|
@subscriptions = subscriptions unless subscriptions == SKIP
|
78
79
|
@payer_reference = payer_reference unless payer_reference == SKIP
|
79
80
|
@payer = payer unless payer == SKIP
|
80
81
|
@subscription_group = subscription_group unless subscription_group == SKIP
|
81
82
|
@payment_profile_id = payment_profile_id unless payment_profile_id == SKIP
|
82
83
|
@payer_id = payer_id unless payer_id == SKIP
|
84
|
+
|
85
|
+
# Add additional model properties to the instance.
|
86
|
+
additional_properties.each do |_name, _value|
|
87
|
+
instance_variable_set("@#{_name}", _value)
|
88
|
+
end
|
83
89
|
end
|
84
90
|
|
85
91
|
# Creates an instance of the object from a hash.
|
@@ -100,13 +106,17 @@ module AdvancedBilling
|
|
100
106
|
hash.key?('payment_profile_id') ? hash['payment_profile_id'] : SKIP
|
101
107
|
payer_id = hash.key?('payer_id') ? hash['payer_id'] : SKIP
|
102
108
|
|
109
|
+
# Clean out expected properties from Hash.
|
110
|
+
names.each_value { |k| hash.delete(k) }
|
111
|
+
|
103
112
|
# Create object from extracted values.
|
104
113
|
SubscriptionGroupSignupError.new(subscriptions,
|
105
114
|
payer_reference,
|
106
115
|
payer,
|
107
116
|
subscription_group,
|
108
117
|
payment_profile_id,
|
109
|
-
payer_id
|
118
|
+
payer_id,
|
119
|
+
hash)
|
110
120
|
end
|
111
121
|
end
|
112
122
|
end
|
@@ -38,9 +38,15 @@ module AdvancedBilling
|
|
38
38
|
end
|
39
39
|
|
40
40
|
def initialize(subscription_group = nil,
|
41
|
-
customer = nil
|
41
|
+
customer = nil,
|
42
|
+
additional_properties = {})
|
42
43
|
@subscription_group = subscription_group
|
43
44
|
@customer = customer
|
45
|
+
|
46
|
+
# Add additional model properties to the instance.
|
47
|
+
additional_properties.each do |_name, _value|
|
48
|
+
instance_variable_set("@#{_name}", _value)
|
49
|
+
end
|
44
50
|
end
|
45
51
|
|
46
52
|
# Creates an instance of the object from a hash.
|
@@ -53,9 +59,13 @@ module AdvancedBilling
|
|
53
59
|
end
|
54
60
|
customer = hash.key?('customer') ? hash['customer'] : nil
|
55
61
|
|
62
|
+
# Clean out expected properties from Hash.
|
63
|
+
names.each_value { |k| hash.delete(k) }
|
64
|
+
|
56
65
|
# Create object from extracted values.
|
57
66
|
SubscriptionGroupSignupFailure.new(subscription_group,
|
58
|
-
customer
|
67
|
+
customer,
|
68
|
+
hash)
|
59
69
|
end
|
60
70
|
|
61
71
|
# Validates an instance of the object from a given value.
|
@@ -81,7 +81,8 @@ module AdvancedBilling
|
|
81
81
|
payer_attributes = SKIP,
|
82
82
|
credit_card_attributes = SKIP,
|
83
83
|
bank_account_attributes = SKIP,
|
84
|
-
subscriptions = SKIP
|
84
|
+
subscriptions = SKIP,
|
85
|
+
additional_properties = {})
|
85
86
|
@payer_id = payer_id unless payer_id == SKIP
|
86
87
|
@payer_reference = payer_reference unless payer_reference == SKIP
|
87
88
|
@payment_profile_id = payment_profile_id unless payment_profile_id == SKIP
|
@@ -93,6 +94,11 @@ module AdvancedBilling
|
|
93
94
|
@credit_card_attributes = credit_card_attributes unless credit_card_attributes == SKIP
|
94
95
|
@bank_account_attributes = bank_account_attributes unless bank_account_attributes == SKIP
|
95
96
|
@subscriptions = subscriptions unless subscriptions == 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.
|
@@ -126,6 +132,9 @@ module AdvancedBilling
|
|
126
132
|
|
127
133
|
subscriptions = SKIP unless hash.key?('subscriptions')
|
128
134
|
|
135
|
+
# Clean out expected properties from Hash.
|
136
|
+
names.each_value { |k| hash.delete(k) }
|
137
|
+
|
129
138
|
# Create object from extracted values.
|
130
139
|
SubscriptionGroupSignupFailureData.new(payer_id,
|
131
140
|
payer_reference,
|
@@ -134,7 +143,8 @@ module AdvancedBilling
|
|
134
143
|
payer_attributes,
|
135
144
|
credit_card_attributes,
|
136
145
|
bank_account_attributes,
|
137
|
-
subscriptions
|
146
|
+
subscriptions,
|
147
|
+
hash)
|
138
148
|
end
|
139
149
|
end
|
140
150
|
end
|
@@ -126,7 +126,8 @@ module AdvancedBilling
|
|
126
126
|
components = SKIP,
|
127
127
|
custom_price = SKIP,
|
128
128
|
calendar_billing = SKIP,
|
129
|
-
metafields = SKIP
|
129
|
+
metafields = SKIP,
|
130
|
+
additional_properties = {})
|
130
131
|
@product_handle = product_handle unless product_handle == SKIP
|
131
132
|
@product_id = product_id unless product_id == SKIP
|
132
133
|
@product_price_point_id = product_price_point_id unless product_price_point_id == SKIP
|
@@ -143,6 +144,11 @@ module AdvancedBilling
|
|
143
144
|
@custom_price = custom_price unless custom_price == SKIP
|
144
145
|
@calendar_billing = calendar_billing unless calendar_billing == SKIP
|
145
146
|
@metafields = metafields unless metafields == SKIP
|
147
|
+
|
148
|
+
# Add additional model properties to the instance.
|
149
|
+
additional_properties.each do |_name, _value|
|
150
|
+
instance_variable_set("@#{_name}", _value)
|
151
|
+
end
|
146
152
|
end
|
147
153
|
|
148
154
|
# Creates an instance of the object from a hash.
|
@@ -178,6 +184,9 @@ module AdvancedBilling
|
|
178
184
|
hash['calendar_billing']
|
179
185
|
metafields = hash.key?('metafields') ? hash['metafields'] : SKIP
|
180
186
|
|
187
|
+
# Clean out expected properties from Hash.
|
188
|
+
names.each_value { |k| hash.delete(k) }
|
189
|
+
|
181
190
|
# Create object from extracted values.
|
182
191
|
SubscriptionGroupSignupItem.new(product_handle,
|
183
192
|
product_id,
|
@@ -191,7 +200,8 @@ module AdvancedBilling
|
|
191
200
|
components,
|
192
201
|
custom_price,
|
193
202
|
calendar_billing,
|
194
|
-
metafields
|
203
|
+
metafields,
|
204
|
+
hash)
|
195
205
|
end
|
196
206
|
end
|
197
207
|
end
|
@@ -30,8 +30,14 @@ module AdvancedBilling
|
|
30
30
|
[]
|
31
31
|
end
|
32
32
|
|
33
|
-
def initialize(subscription_group = nil
|
33
|
+
def initialize(subscription_group = nil,
|
34
|
+
additional_properties = {})
|
34
35
|
@subscription_group = subscription_group
|
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.
|
@@ -42,8 +48,12 @@ module AdvancedBilling
|
|
42
48
|
subscription_group = SubscriptionGroupSignup.from_hash(hash['subscription_group']) if
|
43
49
|
hash['subscription_group']
|
44
50
|
|
51
|
+
# Clean out expected properties from Hash.
|
52
|
+
names.each_value { |k| hash.delete(k) }
|
53
|
+
|
45
54
|
# Create object from extracted values.
|
46
|
-
SubscriptionGroupSignupRequest.new(subscription_group
|
55
|
+
SubscriptionGroupSignupRequest.new(subscription_group,
|
56
|
+
hash)
|
47
57
|
end
|
48
58
|
end
|
49
59
|
end
|
@@ -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
|
# SubscriptionGroupSignupResponse Model.
|
8
9
|
class SubscriptionGroupSignupResponse < BaseModel
|
@@ -34,18 +35,222 @@ module AdvancedBilling
|
|
34
35
|
attr_accessor :primary_subscription_id
|
35
36
|
|
36
37
|
# TODO: Write general description for this method
|
37
|
-
# @return [
|
38
|
+
# @return [DateTime]
|
38
39
|
attr_accessor :next_assessment_at
|
39
40
|
|
40
|
-
#
|
41
|
-
#
|
41
|
+
# The state of a subscription.
|
42
|
+
# * **Live States**
|
43
|
+
# * `active` - A normal, active subscription. It is not in a trial and
|
44
|
+
# is paid and up to date.
|
45
|
+
# * `assessing` - An internal (transient) state that indicates a
|
46
|
+
# subscription is in the middle of periodic assessment. Do not base any
|
47
|
+
# access decisions in your app on this state, as it may not always be
|
48
|
+
# exposed.
|
49
|
+
# * `pending` - An internal (transient) state that indicates a
|
50
|
+
# subscription is in the creation process. Do not base any access decisions
|
51
|
+
# in your app on this state, as it may not always be exposed.
|
52
|
+
# * `trialing` - A subscription in trialing state has a valid trial
|
53
|
+
# subscription. This type of subscription may transition to active once
|
54
|
+
# payment is received when the trial has ended. Otherwise, it may go to a
|
55
|
+
# Problem or End of Life state.
|
56
|
+
# * `paused` - An internal state that indicates that your account with
|
57
|
+
# Advanced Billing is in arrears.
|
58
|
+
# * **Problem States**
|
59
|
+
# * `past_due` - Indicates that the most recent payment has failed, and
|
60
|
+
# payment is past due for this subscription. If you have enabled our
|
61
|
+
# automated dunning, this subscription will be in the dunning process
|
62
|
+
# (additional status and callbacks from the dunning process will be
|
63
|
+
# available in the future). If you are handling dunning and payment updates
|
64
|
+
# yourself, you will want to use this state to initiate a payment update
|
65
|
+
# from your customers.
|
66
|
+
# * `soft_failure` - Indicates that normal assessment/processing of the
|
67
|
+
# subscription has failed for a reason that cannot be fixed by the Customer.
|
68
|
+
# For example, a Soft Fail may result from a timeout at the gateway or
|
69
|
+
# incorrect credentials on your part. The subscriptions should be retried
|
70
|
+
# automatically. An interface is being built for you to review problems
|
71
|
+
# resulting from these events to take manual action when needed.
|
72
|
+
# * `unpaid` - Indicates an unpaid subscription. A subscription is
|
73
|
+
# marked unpaid if the retry period expires and you have configured your
|
74
|
+
# [Dunning](https://maxio-chargify.zendesk.com/hc/en-us/articles/54055051410
|
75
|
+
# 05) settings to have a Final Action of `mark the subscription unpaid`.
|
76
|
+
# * **End of Life States**
|
77
|
+
# * `canceled` - Indicates a canceled subscription. This may happen at
|
78
|
+
# your request (via the API or the web interface) or due to the expiration
|
79
|
+
# of the
|
80
|
+
# [Dunning](https://maxio-chargify.zendesk.com/hc/en-us/articles/54055051410
|
81
|
+
# 05) process without payment. See the
|
82
|
+
# [Reactivation](https://maxio-chargify.zendesk.com/hc/en-us/articles/540455
|
83
|
+
# 9291021) documentation for info on how to restart a canceled subscription.
|
84
|
+
# While a subscription is canceled, its period will not advance, it will
|
85
|
+
# not accrue any new charges, and Advanced Billing will not attempt to
|
86
|
+
# collect the overdue balance.
|
87
|
+
# * `expired` - Indicates a subscription that has expired due to running
|
88
|
+
# its normal life cycle. Some products may be configured to have an
|
89
|
+
# expiration period. An expired subscription then is one that stayed active
|
90
|
+
# until it fulfilled its full period.
|
91
|
+
# * `failed_to_create` - Indicates that signup has failed. (You may see
|
92
|
+
# this state in a signup_failure webhook.)
|
93
|
+
# * `on_hold` - Indicates that a subscription’s billing has been
|
94
|
+
# temporarily stopped. While it is expected that the subscription will
|
95
|
+
# resume and return to active status, this is still treated as an “End of
|
96
|
+
# Life” state because the customer is not paying for services during this
|
97
|
+
# time.
|
98
|
+
# * `suspended` - Indicates that a prepaid subscription has used up all
|
99
|
+
# their prepayment balance. If a prepayment is applied, it will return to an
|
100
|
+
# active state.
|
101
|
+
# * `trial_ended` - A subscription in a trial_ended state is a
|
102
|
+
# subscription that completed a no-obligation trial and did not have a card
|
103
|
+
# on file at the expiration of the trial period. See [Product Pricing – No
|
104
|
+
# Obligation
|
105
|
+
# Trials](https://maxio-chargify.zendesk.com/hc/en-us/articles/5405246782221
|
106
|
+
# ) for more details.
|
107
|
+
# See [Subscription
|
108
|
+
# States](https://maxio-chargify.zendesk.com/hc/en-us/articles/5404222005773
|
109
|
+
# ) for more info about subscription states and state transitions.
|
110
|
+
# @return [SubscriptionState]
|
42
111
|
attr_accessor :state
|
43
112
|
|
44
|
-
#
|
113
|
+
# The state of a subscription.
|
114
|
+
# * **Live States**
|
115
|
+
# * `active` - A normal, active subscription. It is not in a trial and
|
116
|
+
# is paid and up to date.
|
117
|
+
# * `assessing` - An internal (transient) state that indicates a
|
118
|
+
# subscription is in the middle of periodic assessment. Do not base any
|
119
|
+
# access decisions in your app on this state, as it may not always be
|
120
|
+
# exposed.
|
121
|
+
# * `pending` - An internal (transient) state that indicates a
|
122
|
+
# subscription is in the creation process. Do not base any access decisions
|
123
|
+
# in your app on this state, as it may not always be exposed.
|
124
|
+
# * `trialing` - A subscription in trialing state has a valid trial
|
125
|
+
# subscription. This type of subscription may transition to active once
|
126
|
+
# payment is received when the trial has ended. Otherwise, it may go to a
|
127
|
+
# Problem or End of Life state.
|
128
|
+
# * `paused` - An internal state that indicates that your account with
|
129
|
+
# Advanced Billing is in arrears.
|
130
|
+
# * **Problem States**
|
131
|
+
# * `past_due` - Indicates that the most recent payment has failed, and
|
132
|
+
# payment is past due for this subscription. If you have enabled our
|
133
|
+
# automated dunning, this subscription will be in the dunning process
|
134
|
+
# (additional status and callbacks from the dunning process will be
|
135
|
+
# available in the future). If you are handling dunning and payment updates
|
136
|
+
# yourself, you will want to use this state to initiate a payment update
|
137
|
+
# from your customers.
|
138
|
+
# * `soft_failure` - Indicates that normal assessment/processing of the
|
139
|
+
# subscription has failed for a reason that cannot be fixed by the Customer.
|
140
|
+
# For example, a Soft Fail may result from a timeout at the gateway or
|
141
|
+
# incorrect credentials on your part. The subscriptions should be retried
|
142
|
+
# automatically. An interface is being built for you to review problems
|
143
|
+
# resulting from these events to take manual action when needed.
|
144
|
+
# * `unpaid` - Indicates an unpaid subscription. A subscription is
|
145
|
+
# marked unpaid if the retry period expires and you have configured your
|
146
|
+
# [Dunning](https://maxio-chargify.zendesk.com/hc/en-us/articles/54055051410
|
147
|
+
# 05) settings to have a Final Action of `mark the subscription unpaid`.
|
148
|
+
# * **End of Life States**
|
149
|
+
# * `canceled` - Indicates a canceled subscription. This may happen at
|
150
|
+
# your request (via the API or the web interface) or due to the expiration
|
151
|
+
# of the
|
152
|
+
# [Dunning](https://maxio-chargify.zendesk.com/hc/en-us/articles/54055051410
|
153
|
+
# 05) process without payment. See the
|
154
|
+
# [Reactivation](https://maxio-chargify.zendesk.com/hc/en-us/articles/540455
|
155
|
+
# 9291021) documentation for info on how to restart a canceled subscription.
|
156
|
+
# While a subscription is canceled, its period will not advance, it will
|
157
|
+
# not accrue any new charges, and Advanced Billing will not attempt to
|
158
|
+
# collect the overdue balance.
|
159
|
+
# * `expired` - Indicates a subscription that has expired due to running
|
160
|
+
# its normal life cycle. Some products may be configured to have an
|
161
|
+
# expiration period. An expired subscription then is one that stayed active
|
162
|
+
# until it fulfilled its full period.
|
163
|
+
# * `failed_to_create` - Indicates that signup has failed. (You may see
|
164
|
+
# this state in a signup_failure webhook.)
|
165
|
+
# * `on_hold` - Indicates that a subscription’s billing has been
|
166
|
+
# temporarily stopped. While it is expected that the subscription will
|
167
|
+
# resume and return to active status, this is still treated as an “End of
|
168
|
+
# Life” state because the customer is not paying for services during this
|
169
|
+
# time.
|
170
|
+
# * `suspended` - Indicates that a prepaid subscription has used up all
|
171
|
+
# their prepayment balance. If a prepayment is applied, it will return to an
|
172
|
+
# active state.
|
173
|
+
# * `trial_ended` - A subscription in a trial_ended state is a
|
174
|
+
# subscription that completed a no-obligation trial and did not have a card
|
175
|
+
# on file at the expiration of the trial period. See [Product Pricing – No
|
176
|
+
# Obligation
|
177
|
+
# Trials](https://maxio-chargify.zendesk.com/hc/en-us/articles/5405246782221
|
178
|
+
# ) for more details.
|
179
|
+
# See [Subscription
|
180
|
+
# States](https://maxio-chargify.zendesk.com/hc/en-us/articles/5404222005773
|
181
|
+
# ) for more info about subscription states and state transitions.
|
45
182
|
# @return [TrueClass | FalseClass]
|
46
183
|
attr_accessor :cancel_at_end_of_period
|
47
184
|
|
48
|
-
#
|
185
|
+
# The state of a subscription.
|
186
|
+
# * **Live States**
|
187
|
+
# * `active` - A normal, active subscription. It is not in a trial and
|
188
|
+
# is paid and up to date.
|
189
|
+
# * `assessing` - An internal (transient) state that indicates a
|
190
|
+
# subscription is in the middle of periodic assessment. Do not base any
|
191
|
+
# access decisions in your app on this state, as it may not always be
|
192
|
+
# exposed.
|
193
|
+
# * `pending` - An internal (transient) state that indicates a
|
194
|
+
# subscription is in the creation process. Do not base any access decisions
|
195
|
+
# in your app on this state, as it may not always be exposed.
|
196
|
+
# * `trialing` - A subscription in trialing state has a valid trial
|
197
|
+
# subscription. This type of subscription may transition to active once
|
198
|
+
# payment is received when the trial has ended. Otherwise, it may go to a
|
199
|
+
# Problem or End of Life state.
|
200
|
+
# * `paused` - An internal state that indicates that your account with
|
201
|
+
# Advanced Billing is in arrears.
|
202
|
+
# * **Problem States**
|
203
|
+
# * `past_due` - Indicates that the most recent payment has failed, and
|
204
|
+
# payment is past due for this subscription. If you have enabled our
|
205
|
+
# automated dunning, this subscription will be in the dunning process
|
206
|
+
# (additional status and callbacks from the dunning process will be
|
207
|
+
# available in the future). If you are handling dunning and payment updates
|
208
|
+
# yourself, you will want to use this state to initiate a payment update
|
209
|
+
# from your customers.
|
210
|
+
# * `soft_failure` - Indicates that normal assessment/processing of the
|
211
|
+
# subscription has failed for a reason that cannot be fixed by the Customer.
|
212
|
+
# For example, a Soft Fail may result from a timeout at the gateway or
|
213
|
+
# incorrect credentials on your part. The subscriptions should be retried
|
214
|
+
# automatically. An interface is being built for you to review problems
|
215
|
+
# resulting from these events to take manual action when needed.
|
216
|
+
# * `unpaid` - Indicates an unpaid subscription. A subscription is
|
217
|
+
# marked unpaid if the retry period expires and you have configured your
|
218
|
+
# [Dunning](https://maxio-chargify.zendesk.com/hc/en-us/articles/54055051410
|
219
|
+
# 05) settings to have a Final Action of `mark the subscription unpaid`.
|
220
|
+
# * **End of Life States**
|
221
|
+
# * `canceled` - Indicates a canceled subscription. This may happen at
|
222
|
+
# your request (via the API or the web interface) or due to the expiration
|
223
|
+
# of the
|
224
|
+
# [Dunning](https://maxio-chargify.zendesk.com/hc/en-us/articles/54055051410
|
225
|
+
# 05) process without payment. See the
|
226
|
+
# [Reactivation](https://maxio-chargify.zendesk.com/hc/en-us/articles/540455
|
227
|
+
# 9291021) documentation for info on how to restart a canceled subscription.
|
228
|
+
# While a subscription is canceled, its period will not advance, it will
|
229
|
+
# not accrue any new charges, and Advanced Billing will not attempt to
|
230
|
+
# collect the overdue balance.
|
231
|
+
# * `expired` - Indicates a subscription that has expired due to running
|
232
|
+
# its normal life cycle. Some products may be configured to have an
|
233
|
+
# expiration period. An expired subscription then is one that stayed active
|
234
|
+
# until it fulfilled its full period.
|
235
|
+
# * `failed_to_create` - Indicates that signup has failed. (You may see
|
236
|
+
# this state in a signup_failure webhook.)
|
237
|
+
# * `on_hold` - Indicates that a subscription’s billing has been
|
238
|
+
# temporarily stopped. While it is expected that the subscription will
|
239
|
+
# resume and return to active status, this is still treated as an “End of
|
240
|
+
# Life” state because the customer is not paying for services during this
|
241
|
+
# time.
|
242
|
+
# * `suspended` - Indicates that a prepaid subscription has used up all
|
243
|
+
# their prepayment balance. If a prepayment is applied, it will return to an
|
244
|
+
# active state.
|
245
|
+
# * `trial_ended` - A subscription in a trial_ended state is a
|
246
|
+
# subscription that completed a no-obligation trial and did not have a card
|
247
|
+
# on file at the expiration of the trial period. See [Product Pricing – No
|
248
|
+
# Obligation
|
249
|
+
# Trials](https://maxio-chargify.zendesk.com/hc/en-us/articles/5405246782221
|
250
|
+
# ) for more details.
|
251
|
+
# See [Subscription
|
252
|
+
# States](https://maxio-chargify.zendesk.com/hc/en-us/articles/5404222005773
|
253
|
+
# ) for more info about subscription states and state transitions.
|
49
254
|
# @return [Array[SubscriptionGroupItem]]
|
50
255
|
attr_accessor :subscriptions
|
51
256
|
|
@@ -105,7 +310,8 @@ module AdvancedBilling
|
|
105
310
|
state = SKIP,
|
106
311
|
cancel_at_end_of_period = SKIP,
|
107
312
|
subscriptions = SKIP,
|
108
|
-
payment_collection_method = CollectionMethod::AUTOMATIC
|
313
|
+
payment_collection_method = CollectionMethod::AUTOMATIC,
|
314
|
+
additional_properties = {})
|
109
315
|
@uid = uid unless uid == SKIP
|
110
316
|
@scheme = scheme unless scheme == SKIP
|
111
317
|
@customer_id = customer_id unless customer_id == SKIP
|
@@ -120,6 +326,11 @@ module AdvancedBilling
|
|
120
326
|
@payment_collection_method =
|
121
327
|
payment_collection_method
|
122
328
|
end
|
329
|
+
|
330
|
+
# Add additional model properties to the instance.
|
331
|
+
additional_properties.each do |_name, _value|
|
332
|
+
instance_variable_set("@#{_name}", _value)
|
333
|
+
end
|
123
334
|
end
|
124
335
|
|
125
336
|
# Creates an instance of the object from a hash.
|
@@ -136,8 +347,11 @@ module AdvancedBilling
|
|
136
347
|
hash.key?('subscription_ids') ? hash['subscription_ids'] : SKIP
|
137
348
|
primary_subscription_id =
|
138
349
|
hash.key?('primary_subscription_id') ? hash['primary_subscription_id'] : SKIP
|
139
|
-
next_assessment_at =
|
140
|
-
|
350
|
+
next_assessment_at = if hash.key?('next_assessment_at')
|
351
|
+
(DateTimeHelper.from_rfc3339(hash['next_assessment_at']) if hash['next_assessment_at'])
|
352
|
+
else
|
353
|
+
SKIP
|
354
|
+
end
|
141
355
|
state = hash.key?('state') ? hash['state'] : SKIP
|
142
356
|
cancel_at_end_of_period =
|
143
357
|
hash.key?('cancel_at_end_of_period') ? hash['cancel_at_end_of_period'] : SKIP
|
@@ -154,6 +368,9 @@ module AdvancedBilling
|
|
154
368
|
payment_collection_method =
|
155
369
|
hash['payment_collection_method'] ||= CollectionMethod::AUTOMATIC
|
156
370
|
|
371
|
+
# Clean out expected properties from Hash.
|
372
|
+
names.each_value { |k| hash.delete(k) }
|
373
|
+
|
157
374
|
# Create object from extracted values.
|
158
375
|
SubscriptionGroupSignupResponse.new(uid,
|
159
376
|
scheme,
|
@@ -165,7 +382,12 @@ module AdvancedBilling
|
|
165
382
|
state,
|
166
383
|
cancel_at_end_of_period,
|
167
384
|
subscriptions,
|
168
|
-
payment_collection_method
|
385
|
+
payment_collection_method,
|
386
|
+
hash)
|
387
|
+
end
|
388
|
+
|
389
|
+
def to_custom_next_assessment_at
|
390
|
+
DateTimeHelper.to_rfc3339(next_assessment_at)
|
169
391
|
end
|
170
392
|
end
|
171
393
|
end
|
@@ -36,9 +36,15 @@ module AdvancedBilling
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def initialize(subscription_group = nil,
|
39
|
-
customer = nil
|
39
|
+
customer = nil,
|
40
|
+
additional_properties = {})
|
40
41
|
@subscription_group = subscription_group
|
41
42
|
@customer = customer
|
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
|
end
|
52
58
|
customer = Customer.from_hash(hash['customer']) if hash['customer']
|
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
|
SubscriptionGroupSignupSuccess.new(subscription_group,
|
56
|
-
customer
|
65
|
+
customer,
|
66
|
+
hash)
|
57
67
|
end
|
58
68
|
|
59
69
|
# Validates an instance of the object from a given value.
|