maxio-advanced-billing-sdk 3.0.0 → 4.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 +42 -41
- data/lib/advanced_billing/client.rb +7 -1
- data/lib/advanced_billing/configuration.rb +1 -1
- data/lib/advanced_billing/controllers/base_controller.rb +1 -1
- data/lib/advanced_billing/controllers/component_price_points_controller.rb +420 -0
- data/lib/advanced_billing/controllers/components_controller.rb +0 -347
- data/lib/advanced_billing/controllers/product_families_controller.rb +2 -2
- data/lib/advanced_billing/controllers/product_price_points_controller.rb +16 -9
- data/lib/advanced_billing/controllers/products_controller.rb +2 -2
- data/lib/advanced_billing/models/account_balance.rb +6 -8
- data/lib/advanced_billing/models/account_balances.rb +9 -12
- data/lib/advanced_billing/models/ach_agreement.rb +8 -10
- data/lib/advanced_billing/models/activate_subscription_request.rb +3 -4
- data/lib/advanced_billing/models/add_coupons_request.rb +3 -4
- data/lib/advanced_billing/models/add_subscription_to_a_group.rb +3 -4
- data/lib/advanced_billing/models/address_change.rb +4 -6
- data/lib/advanced_billing/models/agreement_acceptance.rb +10 -14
- data/lib/advanced_billing/models/allocate_components.rb +14 -18
- data/lib/advanced_billing/models/allocation.rb +39 -52
- data/lib/advanced_billing/models/allocation_expiration_date.rb +3 -4
- data/lib/advanced_billing/models/allocation_preview.rb +20 -28
- data/lib/advanced_billing/models/allocation_preview_item.rb +28 -38
- data/lib/advanced_billing/models/allocation_preview_line_item.rb +15 -20
- data/lib/advanced_billing/models/allocation_preview_response.rb +3 -4
- data/lib/advanced_billing/models/allocation_response.rb +3 -4
- data/lib/advanced_billing/models/allocation_settings.rb +6 -8
- data/lib/advanced_billing/models/applied_credit_note_data.rb +4 -6
- data/lib/advanced_billing/models/apply_credit_note_event.rb +9 -12
- data/lib/advanced_billing/models/apply_credit_note_event_data.rb +15 -22
- data/lib/advanced_billing/models/apply_debit_note_event.rb +9 -12
- data/lib/advanced_billing/models/apply_debit_note_event_data.rb +10 -14
- data/lib/advanced_billing/models/apply_payment_event.rb +9 -12
- data/lib/advanced_billing/models/apply_payment_event_data.rb +17 -24
- data/lib/advanced_billing/models/attribute_error.rb +3 -4
- data/lib/advanced_billing/models/auto_resume.rb +3 -4
- data/lib/advanced_billing/models/backport_invoice_event.rb +9 -12
- data/lib/advanced_billing/models/bank_account_attributes.rb +19 -26
- data/lib/advanced_billing/models/bank_account_payment_profile.rb +34 -46
- data/lib/advanced_billing/models/bank_account_response.rb +3 -4
- data/lib/advanced_billing/models/bank_account_verification.rb +5 -6
- data/lib/advanced_billing/models/bank_account_verification_request.rb +3 -4
- data/lib/advanced_billing/models/base_refund_error.rb +3 -4
- data/lib/advanced_billing/models/base_string_error.rb +3 -4
- data/lib/advanced_billing/models/batch_job.rb +8 -12
- data/lib/advanced_billing/models/batch_job_response.rb +3 -4
- data/lib/advanced_billing/models/billing_manifest.rb +15 -20
- data/lib/advanced_billing/models/billing_manifest_item.rb +22 -30
- data/lib/advanced_billing/models/billing_schedule.rb +3 -4
- data/lib/advanced_billing/models/breakouts.rb +8 -10
- data/lib/advanced_billing/models/bulk_components_price_point_assignment.rb +3 -4
- data/lib/advanced_billing/models/bulk_create_product_price_points_request.rb +3 -4
- data/lib/advanced_billing/models/bulk_create_product_price_points_response.rb +3 -4
- data/lib/advanced_billing/models/bulk_create_segments.rb +3 -4
- data/lib/advanced_billing/models/bulk_update_segments.rb +3 -4
- data/lib/advanced_billing/models/bulk_update_segments_item.rb +5 -8
- data/lib/advanced_billing/models/calendar_billing.rb +5 -6
- data/lib/advanced_billing/models/cancel_grouped_subscriptions_request.rb +3 -4
- data/lib/advanced_billing/models/cancellation_options.rb +5 -6
- data/lib/advanced_billing/models/cancellation_request.rb +3 -4
- data/lib/advanced_billing/models/change_chargeback_status_event.rb +9 -12
- data/lib/advanced_billing/models/change_chargeback_status_event_data.rb +3 -4
- data/lib/advanced_billing/models/change_invoice_collection_method_event.rb +11 -12
- data/lib/advanced_billing/models/change_invoice_collection_method_event_data.rb +5 -6
- data/lib/advanced_billing/models/change_invoice_status_event.rb +9 -12
- data/lib/advanced_billing/models/change_invoice_status_event_data.rb +9 -12
- data/lib/advanced_billing/models/chargify_ebb.rb +10 -14
- data/lib/advanced_billing/models/component.rb +49 -70
- data/lib/advanced_billing/models/component_allocation_change.rb +11 -16
- data/lib/advanced_billing/models/component_allocation_error_item.rb +7 -10
- data/lib/advanced_billing/models/component_cost_data.rb +11 -16
- data/lib/advanced_billing/models/component_cost_data_rate_tier.rb +9 -12
- data/lib/advanced_billing/models/component_currency_price.rb +10 -14
- data/lib/advanced_billing/models/component_currency_prices_response.rb +3 -4
- data/lib/advanced_billing/models/component_custom_price.rb +7 -10
- data/lib/advanced_billing/models/component_price.rb +13 -18
- data/lib/advanced_billing/models/component_price_point.rb +25 -36
- data/lib/advanced_billing/models/component_price_point_assignment.rb +5 -6
- data/lib/advanced_billing/models/component_price_point_error_item.rb +6 -8
- data/lib/advanced_billing/models/component_price_point_item.rb +10 -14
- data/lib/advanced_billing/models/component_price_point_response.rb +3 -4
- data/lib/advanced_billing/models/component_price_points_response.rb +4 -6
- data/lib/advanced_billing/models/component_response.rb +3 -4
- data/lib/advanced_billing/models/consolidated_invoice.rb +3 -4
- data/lib/advanced_billing/models/count_response.rb +3 -4
- data/lib/advanced_billing/models/coupon.rb +45 -62
- data/lib/advanced_billing/models/coupon_currency.rb +7 -10
- data/lib/advanced_billing/models/coupon_currency_request.rb +3 -4
- data/lib/advanced_billing/models/coupon_currency_response.rb +3 -4
- data/lib/advanced_billing/models/coupon_response.rb +3 -4
- data/lib/advanced_billing/models/coupon_restriction.rb +8 -12
- data/lib/advanced_billing/models/coupon_subcodes.rb +3 -4
- data/lib/advanced_billing/models/coupon_subcodes_response.rb +6 -8
- data/lib/advanced_billing/models/coupon_usage.rb +11 -16
- data/lib/advanced_billing/models/create_allocation.rb +18 -24
- data/lib/advanced_billing/models/create_allocation_request.rb +3 -4
- data/lib/advanced_billing/models/create_component_price_point.rb +13 -18
- data/lib/advanced_billing/models/create_component_price_point_request.rb +3 -4
- data/lib/advanced_billing/models/create_component_price_points_request.rb +3 -4
- data/lib/advanced_billing/models/create_credit_note_event.rb +9 -12
- data/lib/advanced_billing/models/create_currency_price.rb +6 -8
- data/lib/advanced_billing/models/create_currency_prices_request.rb +3 -4
- data/lib/advanced_billing/models/create_customer.rb +25 -38
- data/lib/advanced_billing/models/create_customer_request.rb +3 -4
- data/lib/advanced_billing/models/create_debit_note_event.rb +9 -12
- data/lib/advanced_billing/models/create_ebb_component.rb +3 -4
- data/lib/advanced_billing/models/create_invoice.rb +15 -22
- data/lib/advanced_billing/models/create_invoice_address.rb +13 -20
- data/lib/advanced_billing/models/create_invoice_coupon.rb +10 -14
- data/lib/advanced_billing/models/create_invoice_item.rb +18 -26
- data/lib/advanced_billing/models/create_invoice_payment.rb +8 -12
- data/lib/advanced_billing/models/create_invoice_payment_application.rb +4 -6
- data/lib/advanced_billing/models/create_invoice_payment_request.rb +4 -6
- data/lib/advanced_billing/models/create_invoice_request.rb +3 -4
- data/lib/advanced_billing/models/create_metadata.rb +4 -6
- data/lib/advanced_billing/models/create_metadata_request.rb +3 -4
- data/lib/advanced_billing/models/create_metafield.rb +7 -10
- data/lib/advanced_billing/models/create_metafields_request.rb +3 -4
- data/lib/advanced_billing/models/create_metered_component.rb +3 -4
- data/lib/advanced_billing/models/create_multi_invoice_payment.rb +9 -14
- data/lib/advanced_billing/models/create_multi_invoice_payment_request.rb +3 -4
- data/lib/advanced_billing/models/create_offer.rb +11 -16
- data/lib/advanced_billing/models/create_offer_component.rb +6 -8
- data/lib/advanced_billing/models/create_offer_request.rb +3 -4
- data/lib/advanced_billing/models/create_on_off_component.rb +3 -4
- data/lib/advanced_billing/models/create_or_update_coupon.rb +6 -8
- data/lib/advanced_billing/models/create_or_update_endpoint.rb +4 -6
- data/lib/advanced_billing/models/create_or_update_endpoint_request.rb +3 -4
- data/lib/advanced_billing/models/create_or_update_flat_amount_coupon.rb +22 -28
- data/lib/advanced_billing/models/create_or_update_percentage_coupon.rb +22 -28
- data/lib/advanced_billing/models/create_or_update_product.rb +25 -34
- data/lib/advanced_billing/models/create_or_update_product_request.rb +3 -4
- data/lib/advanced_billing/models/create_or_update_segment_price.rb +6 -8
- data/lib/advanced_billing/models/create_payment.rb +7 -10
- data/lib/advanced_billing/models/create_payment_profile.rb +47 -66
- data/lib/advanced_billing/models/create_payment_profile_request.rb +3 -4
- data/lib/advanced_billing/models/create_prepaid_component.rb +3 -4
- data/lib/advanced_billing/models/create_prepaid_usage_component_price_point.rb +16 -22
- data/lib/advanced_billing/models/create_prepayment.rb +8 -12
- data/lib/advanced_billing/models/create_prepayment_request.rb +3 -4
- data/lib/advanced_billing/models/create_prepayment_response.rb +3 -4
- data/lib/advanced_billing/models/create_product_currency_price.rb +5 -8
- data/lib/advanced_billing/models/create_product_currency_prices_request.rb +3 -4
- data/lib/advanced_billing/models/create_product_family.rb +6 -8
- data/lib/advanced_billing/models/create_product_family_request.rb +3 -4
- data/lib/advanced_billing/models/create_product_price_point.rb +22 -30
- data/lib/advanced_billing/models/create_product_price_point_request.rb +3 -4
- data/lib/advanced_billing/models/create_quantity_based_component.rb +3 -4
- data/lib/advanced_billing/models/create_reason_code.rb +6 -8
- data/lib/advanced_billing/models/create_reason_code_request.rb +3 -4
- data/lib/advanced_billing/models/create_segment.rb +12 -14
- data/lib/advanced_billing/models/create_segment_request.rb +3 -4
- data/lib/advanced_billing/models/create_subscription.rb +78 -100
- data/lib/advanced_billing/models/create_subscription_component.rb +12 -16
- data/lib/advanced_billing/models/create_subscription_group.rb +5 -6
- data/lib/advanced_billing/models/create_subscription_group_request.rb +3 -4
- data/lib/advanced_billing/models/create_subscription_request.rb +3 -4
- data/lib/advanced_billing/models/create_usage.rb +7 -10
- data/lib/advanced_billing/models/create_usage_request.rb +3 -4
- data/lib/advanced_billing/models/created_prepayment.rb +12 -16
- data/lib/advanced_billing/models/credit_account_balance_changed.rb +9 -12
- data/lib/advanced_billing/models/credit_card_attributes.rb +6 -8
- data/lib/advanced_billing/models/credit_card_payment_profile.rb +33 -46
- data/lib/advanced_billing/models/credit_note.rb +38 -56
- data/lib/advanced_billing/models/credit_note_application.rb +8 -12
- data/lib/advanced_billing/models/credit_note_line_item.rb +27 -38
- data/lib/advanced_billing/models/credit_scheme_request.rb +3 -4
- data/lib/advanced_billing/models/currency_price.rb +10 -14
- data/lib/advanced_billing/models/currency_prices_response.rb +3 -4
- data/lib/advanced_billing/models/custom_field_value_change.rb +11 -16
- data/lib/advanced_billing/models/customer.rb +39 -56
- data/lib/advanced_billing/models/customer_attributes.rb +25 -38
- data/lib/advanced_billing/models/customer_change.rb +7 -10
- data/lib/advanced_billing/models/customer_changes_preview_response.rb +3 -4
- data/lib/advanced_billing/models/customer_custom_fields_change.rb +4 -6
- data/lib/advanced_billing/models/customer_error.rb +3 -4
- data/lib/advanced_billing/models/customer_payer_change.rb +4 -6
- data/lib/advanced_billing/models/customer_response.rb +3 -4
- data/lib/advanced_billing/models/debit_note.rb +33 -48
- data/lib/advanced_billing/models/deduct_service_credit.rb +4 -6
- data/lib/advanced_billing/models/deduct_service_credit_request.rb +3 -4
- data/lib/advanced_billing/models/delayed_cancellation_response.rb +3 -4
- data/lib/advanced_billing/models/delete_subscription_group_response.rb +4 -6
- data/lib/advanced_billing/models/dunner_data.rb +10 -14
- data/lib/advanced_billing/models/dunning_step_data.rb +12 -18
- data/lib/advanced_billing/models/dunning_step_reached.rb +6 -8
- data/lib/advanced_billing/models/ebb_component.rb +26 -36
- data/lib/advanced_billing/models/ebb_event.rb +3 -4
- data/lib/advanced_billing/models/enable_webhooks_request.rb +3 -4
- data/lib/advanced_billing/models/enable_webhooks_response.rb +3 -4
- data/lib/advanced_billing/models/endpoint.rb +8 -12
- data/lib/advanced_billing/models/endpoint_response.rb +3 -4
- data/lib/advanced_billing/models/errors.rb +4 -6
- data/lib/advanced_billing/models/event.rb +10 -16
- data/lib/advanced_billing/models/event_based_billing_segment_error.rb +3 -4
- data/lib/advanced_billing/models/event_response.rb +3 -4
- data/lib/advanced_billing/models/failed_payment_event.rb +9 -12
- data/lib/advanced_billing/models/failed_payment_event_data.rb +8 -12
- data/lib/advanced_billing/models/full_subscription_group_response.rb +19 -26
- data/lib/advanced_billing/models/get_one_time_token_payment_profile.rb +30 -44
- data/lib/advanced_billing/models/get_one_time_token_request.rb +3 -4
- data/lib/advanced_billing/models/group_billing.rb +6 -8
- data/lib/advanced_billing/models/group_settings.rb +4 -6
- data/lib/advanced_billing/models/group_target.rb +4 -6
- data/lib/advanced_billing/models/historic_usage.rb +6 -8
- data/lib/advanced_billing/models/invoice.rb +74 -106
- data/lib/advanced_billing/models/invoice_address.rb +9 -14
- data/lib/advanced_billing/models/invoice_balance_item.rb +6 -8
- data/lib/advanced_billing/models/invoice_credit.rb +11 -16
- data/lib/advanced_billing/models/invoice_custom_field.rb +8 -12
- data/lib/advanced_billing/models/invoice_customer.rb +11 -16
- data/lib/advanced_billing/models/invoice_discount.rb +18 -26
- data/lib/advanced_billing/models/invoice_discount_breakout.rb +6 -8
- data/lib/advanced_billing/models/invoice_display_settings.rb +5 -6
- data/lib/advanced_billing/models/invoice_issued.rb +20 -32
- data/lib/advanced_billing/models/invoice_line_item.rb +32 -46
- data/lib/advanced_billing/models/invoice_line_item_component_cost_data.rb +3 -4
- data/lib/advanced_billing/models/invoice_line_item_event_data.rb +30 -42
- data/lib/advanced_billing/models/invoice_line_item_pricing_detail.rb +4 -6
- data/lib/advanced_billing/models/invoice_payer.rb +10 -14
- data/lib/advanced_billing/models/invoice_payer_change.rb +7 -10
- data/lib/advanced_billing/models/invoice_payment.rb +16 -22
- data/lib/advanced_billing/models/invoice_payment_application.rb +6 -8
- data/lib/advanced_billing/models/invoice_payment_method.rb +12 -18
- data/lib/advanced_billing/models/invoice_pre_payment.rb +6 -8
- data/lib/advanced_billing/models/invoice_previous_balance.rb +4 -6
- data/lib/advanced_billing/models/invoice_refund.rb +13 -18
- data/lib/advanced_billing/models/invoice_response.rb +3 -4
- data/lib/advanced_billing/models/invoice_seller.rb +7 -10
- data/lib/advanced_billing/models/invoice_tax.rb +17 -24
- data/lib/advanced_billing/models/invoice_tax_breakout.rb +7 -10
- data/lib/advanced_billing/models/invoice_tax_component_breakout.rb +7 -10
- data/lib/advanced_billing/models/issue_advance_invoice_request.rb +3 -4
- data/lib/advanced_billing/models/issue_invoice_event.rb +9 -12
- data/lib/advanced_billing/models/issue_invoice_event_data.rb +8 -12
- data/lib/advanced_billing/models/issue_invoice_request.rb +4 -4
- data/lib/advanced_billing/models/issue_service_credit.rb +4 -6
- data/lib/advanced_billing/models/issue_service_credit_request.rb +3 -4
- data/lib/advanced_billing/models/item_price_point_changed.rb +10 -14
- data/lib/advanced_billing/models/item_price_point_data.rb +6 -8
- data/lib/advanced_billing/models/list_components_filter.rb +5 -6
- data/lib/advanced_billing/models/list_components_price_points_response.rb +3 -4
- data/lib/advanced_billing/models/list_coupons_filter.rb +13 -18
- data/lib/advanced_billing/models/list_credit_notes_response.rb +3 -4
- data/lib/advanced_billing/models/list_invoice_events_response.rb +7 -10
- data/lib/advanced_billing/models/list_invoices_response.rb +3 -4
- data/lib/advanced_billing/models/list_metafields_response.rb +8 -12
- data/lib/advanced_billing/models/list_mrr_filter.rb +3 -4
- data/lib/advanced_billing/models/list_mrr_response.rb +3 -4
- data/lib/advanced_billing/models/list_mrr_response_result.rb +11 -16
- data/lib/advanced_billing/models/list_offers_response.rb +3 -4
- data/lib/advanced_billing/models/list_prepayments_filter.rb +6 -8
- data/lib/advanced_billing/models/list_price_points_filter.rb +12 -18
- data/lib/advanced_billing/models/list_product_price_points_response.rb +3 -4
- data/lib/advanced_billing/models/list_products_filter.rb +5 -6
- data/lib/advanced_billing/models/list_proforma_invoices_meta.rb +7 -10
- data/lib/advanced_billing/models/list_proforma_invoices_response.rb +5 -6
- data/lib/advanced_billing/models/list_public_keys_meta.rb +7 -10
- data/lib/advanced_billing/models/list_public_keys_response.rb +5 -6
- data/lib/advanced_billing/models/list_sale_rep_item.rb +8 -12
- data/lib/advanced_billing/models/list_segments_filter.rb +9 -10
- data/lib/advanced_billing/models/list_segments_response.rb +3 -4
- data/lib/advanced_billing/models/list_subcription_group_prepayment_item.rb +15 -20
- data/lib/advanced_billing/models/list_subscription_components_filter.rb +5 -6
- data/lib/advanced_billing/models/list_subscription_components_for_site_filter.rb +6 -8
- data/lib/advanced_billing/models/list_subscription_components_response.rb +3 -4
- data/lib/advanced_billing/models/list_subscription_group_prepayment.rb +3 -4
- data/lib/advanced_billing/models/list_subscription_group_prepayment_response.rb +3 -4
- data/lib/advanced_billing/models/list_subscription_groups_item.rb +18 -24
- data/lib/advanced_billing/models/list_subscription_groups_meta.rb +5 -6
- data/lib/advanced_billing/models/list_subscription_groups_response.rb +5 -6
- data/lib/advanced_billing/models/metadata.rb +10 -14
- data/lib/advanced_billing/models/metafield.rb +9 -14
- data/lib/advanced_billing/models/metafield_scope.rb +11 -16
- data/lib/advanced_billing/models/metered_component.rb +29 -40
- data/lib/advanced_billing/models/metered_usage.rb +10 -14
- data/lib/advanced_billing/models/movement.rb +14 -20
- data/lib/advanced_billing/models/movement_line_item.rb +14 -20
- data/lib/advanced_billing/models/mrr.rb +10 -14
- data/lib/advanced_billing/models/mrr_movement.rb +7 -10
- data/lib/advanced_billing/models/mrr_response.rb +3 -4
- data/lib/advanced_billing/models/multi_invoice_payment.rb +8 -10
- data/lib/advanced_billing/models/multi_invoice_payment_response.rb +3 -4
- data/lib/advanced_billing/models/nested_subscription_group.rb +7 -10
- data/lib/advanced_billing/models/net_terms.rb +10 -12
- data/lib/advanced_billing/models/offer.rb +28 -40
- data/lib/advanced_billing/models/offer_discount.rb +6 -8
- data/lib/advanced_billing/models/offer_item.rb +17 -22
- data/lib/advanced_billing/models/offer_response.rb +3 -4
- data/lib/advanced_billing/models/offer_signup_page.rb +9 -14
- data/lib/advanced_billing/models/on_off_component.rb +26 -36
- data/lib/advanced_billing/models/organization_address.rb +12 -18
- data/lib/advanced_billing/models/origin_invoice.rb +4 -6
- data/lib/advanced_billing/models/overage_pricing.rb +4 -6
- data/lib/advanced_billing/models/override_subscription.rb +9 -12
- data/lib/advanced_billing/models/override_subscription_request.rb +3 -4
- data/lib/advanced_billing/models/paginated_metadata.rb +8 -12
- data/lib/advanced_billing/models/paid_invoice.rb +7 -10
- data/lib/advanced_billing/models/pause_request.rb +3 -4
- data/lib/advanced_billing/models/payer_attributes.rb +25 -38
- data/lib/advanced_billing/models/payer_error.rb +6 -8
- data/lib/advanced_billing/models/payment_collection_method_changed.rb +4 -6
- data/lib/advanced_billing/models/payment_for_allocation.rb +7 -10
- data/lib/advanced_billing/models/payment_method_apple_pay.rb +3 -4
- data/lib/advanced_billing/models/payment_method_bank_account.rb +6 -8
- data/lib/advanced_billing/models/payment_method_credit_card.rb +9 -12
- data/lib/advanced_billing/models/payment_method_external.rb +6 -10
- data/lib/advanced_billing/models/payment_method_paypal.rb +4 -6
- data/lib/advanced_billing/models/payment_profile_attributes.rb +37 -52
- data/lib/advanced_billing/models/payment_profile_response.rb +3 -4
- data/lib/advanced_billing/models/payment_related_events.rb +5 -6
- data/lib/advanced_billing/models/pending_cancellation_change.rb +4 -6
- data/lib/advanced_billing/models/portal_management_link.rb +10 -14
- data/lib/advanced_billing/models/prepaid_component_price_point.rb +8 -12
- data/lib/advanced_billing/models/prepaid_configuration.rb +10 -12
- data/lib/advanced_billing/models/prepaid_configuration_response.rb +3 -4
- data/lib/advanced_billing/models/prepaid_product_price_point_filter.rb +2 -2
- data/lib/advanced_billing/models/prepaid_subscription_balance_changed.rb +8 -10
- data/lib/advanced_billing/models/prepaid_usage.rb +16 -22
- data/lib/advanced_billing/models/prepaid_usage_allocation_detail.rb +6 -8
- data/lib/advanced_billing/models/prepaid_usage_component.rb +33 -46
- data/lib/advanced_billing/models/prepayment.rb +15 -22
- data/lib/advanced_billing/models/prepayment_account_balance_changed.rb +8 -10
- data/lib/advanced_billing/models/prepayment_response.rb +3 -4
- data/lib/advanced_billing/models/prepayments_response.rb +3 -4
- data/lib/advanced_billing/models/preview_allocations_request.rb +8 -10
- data/lib/advanced_billing/models/price.rb +6 -8
- data/lib/advanced_billing/models/product.rb +56 -76
- data/lib/advanced_billing/models/product_family.rb +11 -16
- data/lib/advanced_billing/models/product_family_response.rb +3 -4
- data/lib/advanced_billing/models/product_price_point.rb +36 -50
- data/lib/advanced_billing/models/product_price_point_errors.rb +10 -14
- data/lib/advanced_billing/models/product_price_point_response.rb +3 -4
- data/lib/advanced_billing/models/product_response.rb +3 -4
- data/lib/advanced_billing/models/proforma_error.rb +3 -4
- data/lib/advanced_billing/models/proforma_invoice.rb +51 -74
- data/lib/advanced_billing/models/proforma_invoice_credit.rb +7 -10
- data/lib/advanced_billing/models/proforma_invoice_discount.rb +13 -18
- data/lib/advanced_billing/models/proforma_invoice_issued.rb +15 -24
- data/lib/advanced_billing/models/proforma_invoice_payment.rb +7 -10
- data/lib/advanced_billing/models/proforma_invoice_tax.rb +11 -16
- data/lib/advanced_billing/models/proration.rb +3 -4
- data/lib/advanced_billing/models/public_key.rb +6 -8
- data/lib/advanced_billing/models/public_signup_page.rb +7 -10
- data/lib/advanced_billing/models/quantity_based_component.rb +30 -42
- data/lib/advanced_billing/models/reactivate_subscription_group_request.rb +5 -6
- data/lib/advanced_billing/models/reactivate_subscription_group_response.rb +15 -20
- data/lib/advanced_billing/models/reactivate_subscription_request.rb +11 -14
- data/lib/advanced_billing/models/reactivation_billing.rb +4 -4
- data/lib/advanced_billing/models/reason_code.rb +11 -16
- data/lib/advanced_billing/models/reason_code_response.rb +3 -4
- data/lib/advanced_billing/models/reason_codes_json_response.rb +3 -4
- data/lib/advanced_billing/models/record_payment_request.rb +3 -4
- data/lib/advanced_billing/models/record_payment_response.rb +5 -6
- data/lib/advanced_billing/models/referral_code.rb +7 -10
- data/lib/advanced_billing/models/referral_validation_response.rb +3 -4
- data/lib/advanced_billing/models/refund_consolidated_invoice.rb +9 -14
- data/lib/advanced_billing/models/refund_invoice.rb +10 -14
- data/lib/advanced_billing/models/refund_invoice_event.rb +9 -12
- data/lib/advanced_billing/models/refund_invoice_event_data.rb +14 -20
- data/lib/advanced_billing/models/refund_invoice_request.rb +3 -4
- data/lib/advanced_billing/models/refund_prepayment.rb +7 -10
- data/lib/advanced_billing/models/refund_prepayment_base_refund_error.rb +3 -4
- data/lib/advanced_billing/models/refund_prepayment_request.rb +3 -4
- data/lib/advanced_billing/models/refund_success.rb +6 -8
- data/lib/advanced_billing/models/remove_payment_event.rb +9 -12
- data/lib/advanced_billing/models/remove_payment_event_data.rb +11 -16
- data/lib/advanced_billing/models/renewal_preview.rb +15 -20
- data/lib/advanced_billing/models/renewal_preview_component.rb +6 -8
- data/lib/advanced_billing/models/renewal_preview_line_item.rb +22 -30
- data/lib/advanced_billing/models/renewal_preview_request.rb +3 -4
- data/lib/advanced_billing/models/renewal_preview_response.rb +3 -4
- data/lib/advanced_billing/models/replay_webhooks_request.rb +3 -4
- data/lib/advanced_billing/models/replay_webhooks_response.rb +3 -4
- data/lib/advanced_billing/models/resent_invitation.rb +8 -10
- data/lib/advanced_billing/models/resume_options.rb +5 -6
- data/lib/advanced_billing/models/revoked_invitation.rb +6 -8
- data/lib/advanced_billing/models/sale_rep.rb +9 -12
- data/lib/advanced_billing/models/sale_rep_item_mrr.rb +6 -8
- data/lib/advanced_billing/models/sale_rep_settings.rb +11 -16
- data/lib/advanced_billing/models/sale_rep_subscription.rb +15 -22
- data/lib/advanced_billing/models/segment.rb +20 -26
- data/lib/advanced_billing/models/segment_price.rb +13 -18
- data/lib/advanced_billing/models/segment_response.rb +3 -4
- data/lib/advanced_billing/models/send_invoice_request.rb +6 -8
- data/lib/advanced_billing/models/service_credit.rb +9 -12
- data/lib/advanced_billing/models/service_credit_response.rb +3 -4
- data/lib/advanced_billing/models/signup_proforma_preview.rb +5 -6
- data/lib/advanced_billing/models/signup_proforma_preview_response.rb +3 -4
- data/lib/advanced_billing/models/site.rb +25 -34
- data/lib/advanced_billing/models/site_response.rb +3 -4
- data/lib/advanced_billing/models/site_statistics.rb +20 -24
- data/lib/advanced_billing/models/site_summary.rb +8 -12
- data/lib/advanced_billing/models/subscription.rb +94 -126
- data/lib/advanced_billing/models/subscription_component.rb +48 -66
- data/lib/advanced_billing/models/subscription_component_allocation_error_item.rb +4 -6
- data/lib/advanced_billing/models/subscription_component_response.rb +3 -4
- data/lib/advanced_billing/models/subscription_component_subscription.rb +4 -6
- data/lib/advanced_billing/models/subscription_custom_price.rb +21 -28
- data/lib/advanced_billing/models/subscription_filter.rb +10 -14
- data/lib/advanced_billing/models/subscription_group.rb +9 -12
- data/lib/advanced_billing/models/subscription_group_balances.rb +8 -10
- data/lib/advanced_billing/models/subscription_group_bank_account.rb +26 -34
- data/lib/advanced_billing/models/subscription_group_component_custom_price.rb +6 -8
- data/lib/advanced_billing/models/subscription_group_credit_card.rb +30 -42
- data/lib/advanced_billing/models/subscription_group_customer.rb +8 -12
- data/lib/advanced_billing/models/subscription_group_item.rb +16 -22
- data/lib/advanced_billing/models/subscription_group_member_error.rb +6 -8
- data/lib/advanced_billing/models/subscription_group_members_array_error.rb +3 -4
- data/lib/advanced_billing/models/subscription_group_payment_profile.rb +7 -10
- data/lib/advanced_billing/models/subscription_group_prepayment.rb +6 -10
- data/lib/advanced_billing/models/subscription_group_prepayment_request.rb +3 -4
- data/lib/advanced_billing/models/subscription_group_prepayment_response.rb +9 -12
- data/lib/advanced_billing/models/subscription_group_response.rb +3 -4
- data/lib/advanced_billing/models/subscription_group_signup.rb +13 -18
- data/lib/advanced_billing/models/subscription_group_signup_component.rb +9 -12
- data/lib/advanced_billing/models/subscription_group_signup_error.rb +10 -14
- data/lib/advanced_billing/models/subscription_group_signup_failure.rb +4 -6
- data/lib/advanced_billing/models/subscription_group_signup_failure_data.rb +14 -18
- data/lib/advanced_billing/models/subscription_group_signup_item.rb +21 -28
- data/lib/advanced_billing/models/subscription_group_signup_request.rb +3 -4
- data/lib/advanced_billing/models/subscription_group_signup_response.rb +18 -24
- data/lib/advanced_billing/models/subscription_group_signup_success.rb +4 -6
- data/lib/advanced_billing/models/subscription_group_signup_success_data.rb +14 -20
- data/lib/advanced_billing/models/subscription_group_single_error.rb +3 -4
- data/lib/advanced_billing/models/subscription_group_subscription_error.rb +14 -18
- data/lib/advanced_billing/models/subscription_group_update_error.rb +3 -4
- data/lib/advanced_billing/models/subscription_included_coupon.rb +11 -16
- data/lib/advanced_billing/models/subscription_migration_preview.rb +8 -10
- data/lib/advanced_billing/models/subscription_migration_preview_options.rb +17 -22
- data/lib/advanced_billing/models/subscription_migration_preview_request.rb +3 -4
- data/lib/advanced_billing/models/subscription_migration_preview_response.rb +3 -4
- data/lib/advanced_billing/models/subscription_mrr.rb +6 -8
- data/lib/advanced_billing/models/subscription_mrr_breakout.rb +5 -6
- data/lib/advanced_billing/models/subscription_mrr_response.rb +3 -4
- data/lib/advanced_billing/models/subscription_note.rb +10 -14
- data/lib/advanced_billing/models/subscription_note_response.rb +3 -4
- data/lib/advanced_billing/models/subscription_preview.rb +5 -6
- data/lib/advanced_billing/models/subscription_preview_response.rb +3 -4
- data/lib/advanced_billing/models/subscription_product_change.rb +5 -6
- data/lib/advanced_billing/models/subscription_product_migration.rb +15 -20
- data/lib/advanced_billing/models/subscription_product_migration_request.rb +3 -4
- data/lib/advanced_billing/models/subscription_response.rb +3 -4
- data/lib/advanced_billing/models/subscription_state_change.rb +5 -6
- data/lib/advanced_billing/models/tax_configuration.rb +7 -8
- data/lib/advanced_billing/models/too_many_management_link_requests.rb +4 -6
- data/lib/advanced_billing/models/update_allocation_expiration_date.rb +3 -4
- data/lib/advanced_billing/models/update_component.rb +14 -20
- data/lib/advanced_billing/models/update_component_price_point.rb +13 -18
- data/lib/advanced_billing/models/update_component_price_point_request.rb +3 -4
- data/lib/advanced_billing/models/update_component_request.rb +3 -4
- data/lib/advanced_billing/models/update_coupon_currency.rb +4 -6
- data/lib/advanced_billing/models/update_currency_price.rb +4 -6
- data/lib/advanced_billing/models/update_currency_prices_request.rb +3 -4
- data/lib/advanced_billing/models/update_customer.rb +26 -40
- data/lib/advanced_billing/models/update_customer_request.rb +3 -4
- data/lib/advanced_billing/models/update_metadata.rb +6 -8
- data/lib/advanced_billing/models/update_metadata_request.rb +3 -4
- data/lib/advanced_billing/models/update_metafield.rb +8 -12
- data/lib/advanced_billing/models/update_metafields_request.rb +3 -4
- data/lib/advanced_billing/models/update_payment_profile.rb +21 -28
- data/lib/advanced_billing/models/update_payment_profile_request.rb +3 -4
- data/lib/advanced_billing/models/update_price.rb +9 -12
- data/lib/advanced_billing/models/update_product_price_point.rb +5 -6
- data/lib/advanced_billing/models/update_product_price_point_request.rb +3 -4
- data/lib/advanced_billing/models/update_reason_code.rb +6 -8
- data/lib/advanced_billing/models/update_reason_code_request.rb +3 -4
- data/lib/advanced_billing/models/update_segment.rb +4 -6
- data/lib/advanced_billing/models/update_segment_request.rb +3 -4
- data/lib/advanced_billing/models/update_subscription.rb +29 -36
- data/lib/advanced_billing/models/update_subscription_component.rb +5 -6
- data/lib/advanced_billing/models/update_subscription_group.rb +3 -4
- data/lib/advanced_billing/models/update_subscription_group_request.rb +3 -4
- data/lib/advanced_billing/models/update_subscription_note.rb +4 -6
- data/lib/advanced_billing/models/update_subscription_note_request.rb +3 -4
- data/lib/advanced_billing/models/update_subscription_request.rb +3 -4
- data/lib/advanced_billing/models/upsert_prepaid_configuration.rb +9 -10
- data/lib/advanced_billing/models/upsert_prepaid_configuration_request.rb +3 -4
- data/lib/advanced_billing/models/usage.rb +14 -20
- data/lib/advanced_billing/models/usage_response.rb +3 -4
- data/lib/advanced_billing/models/void_invoice.rb +3 -4
- data/lib/advanced_billing/models/void_invoice_event.rb +9 -12
- data/lib/advanced_billing/models/void_invoice_event_data.rb +10 -14
- data/lib/advanced_billing/models/void_invoice_request.rb +3 -4
- data/lib/advanced_billing/models/void_remainder_event.rb +9 -12
- data/lib/advanced_billing/models/void_remainder_event_data.rb +7 -10
- data/lib/advanced_billing/models/webhook.rb +18 -26
- data/lib/advanced_billing/models/webhook_response.rb +3 -4
- data/lib/advanced_billing/utilities/union_type_lookup.rb +42 -0
- data/lib/advanced_billing.rb +2 -0
- metadata +3 -2
@@ -35,9 +35,7 @@ module AdvancedBilling
|
|
35
35
|
[]
|
36
36
|
end
|
37
37
|
|
38
|
-
def initialize(email
|
39
|
-
type = nil,
|
40
|
-
additional_properties = {})
|
38
|
+
def initialize(email:, type:, additional_properties: {})
|
41
39
|
@email = email
|
42
40
|
@type = type
|
43
41
|
|
@@ -59,9 +57,9 @@ module AdvancedBilling
|
|
59
57
|
names.each_value { |k| hash.delete(k) }
|
60
58
|
|
61
59
|
# Create object from extracted values.
|
62
|
-
PaymentMethodPaypal.new(email,
|
63
|
-
type,
|
64
|
-
hash)
|
60
|
+
PaymentMethodPaypal.new(email: email,
|
61
|
+
type: type,
|
62
|
+
additional_properties: hash)
|
65
63
|
end
|
66
64
|
|
67
65
|
# Validates an instance of the object from a given value.
|
@@ -234,32 +234,17 @@ module AdvancedBilling
|
|
234
234
|
]
|
235
235
|
end
|
236
236
|
|
237
|
-
def initialize(chargify_token
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
billing_address_2 = SKIP,
|
249
|
-
billing_city = SKIP,
|
250
|
-
billing_state = SKIP,
|
251
|
-
billing_country = SKIP,
|
252
|
-
billing_zip = SKIP,
|
253
|
-
current_vault = SKIP,
|
254
|
-
vault_token = SKIP,
|
255
|
-
customer_vault_token = SKIP,
|
256
|
-
customer_id = SKIP,
|
257
|
-
paypal_email = SKIP,
|
258
|
-
payment_method_nonce = SKIP,
|
259
|
-
gateway_handle = SKIP,
|
260
|
-
cvv = SKIP,
|
261
|
-
last_four = SKIP,
|
262
|
-
additional_properties = {})
|
237
|
+
def initialize(chargify_token: SKIP, id: SKIP, payment_type: SKIP,
|
238
|
+
first_name: SKIP, last_name: SKIP, masked_card_number: SKIP,
|
239
|
+
full_number: SKIP, card_type: SKIP, expiration_month: SKIP,
|
240
|
+
expiration_year: SKIP, billing_address: SKIP,
|
241
|
+
billing_address_2: SKIP, billing_city: SKIP,
|
242
|
+
billing_state: SKIP, billing_country: SKIP,
|
243
|
+
billing_zip: SKIP, current_vault: SKIP, vault_token: SKIP,
|
244
|
+
customer_vault_token: SKIP, customer_id: SKIP,
|
245
|
+
paypal_email: SKIP, payment_method_nonce: SKIP,
|
246
|
+
gateway_handle: SKIP, cvv: SKIP, last_four: SKIP,
|
247
|
+
additional_properties: {})
|
263
248
|
@chargify_token = chargify_token unless chargify_token == SKIP
|
264
249
|
@id = id unless id == SKIP
|
265
250
|
@payment_type = payment_type unless payment_type == SKIP
|
@@ -339,32 +324,32 @@ module AdvancedBilling
|
|
339
324
|
names.each_value { |k| hash.delete(k) }
|
340
325
|
|
341
326
|
# Create object from extracted values.
|
342
|
-
PaymentProfileAttributes.new(chargify_token,
|
343
|
-
id,
|
344
|
-
payment_type,
|
345
|
-
first_name,
|
346
|
-
last_name,
|
347
|
-
masked_card_number,
|
348
|
-
full_number,
|
349
|
-
card_type,
|
350
|
-
expiration_month,
|
351
|
-
expiration_year,
|
352
|
-
billing_address,
|
353
|
-
billing_address_2,
|
354
|
-
billing_city,
|
355
|
-
billing_state,
|
356
|
-
billing_country,
|
357
|
-
billing_zip,
|
358
|
-
current_vault,
|
359
|
-
vault_token,
|
360
|
-
customer_vault_token,
|
361
|
-
customer_id,
|
362
|
-
paypal_email,
|
363
|
-
payment_method_nonce,
|
364
|
-
gateway_handle,
|
365
|
-
cvv,
|
366
|
-
last_four,
|
367
|
-
hash)
|
327
|
+
PaymentProfileAttributes.new(chargify_token: chargify_token,
|
328
|
+
id: id,
|
329
|
+
payment_type: payment_type,
|
330
|
+
first_name: first_name,
|
331
|
+
last_name: last_name,
|
332
|
+
masked_card_number: masked_card_number,
|
333
|
+
full_number: full_number,
|
334
|
+
card_type: card_type,
|
335
|
+
expiration_month: expiration_month,
|
336
|
+
expiration_year: expiration_year,
|
337
|
+
billing_address: billing_address,
|
338
|
+
billing_address_2: billing_address_2,
|
339
|
+
billing_city: billing_city,
|
340
|
+
billing_state: billing_state,
|
341
|
+
billing_country: billing_country,
|
342
|
+
billing_zip: billing_zip,
|
343
|
+
current_vault: current_vault,
|
344
|
+
vault_token: vault_token,
|
345
|
+
customer_vault_token: customer_vault_token,
|
346
|
+
customer_id: customer_id,
|
347
|
+
paypal_email: paypal_email,
|
348
|
+
payment_method_nonce: payment_method_nonce,
|
349
|
+
gateway_handle: gateway_handle,
|
350
|
+
cvv: cvv,
|
351
|
+
last_four: last_four,
|
352
|
+
additional_properties: hash)
|
368
353
|
end
|
369
354
|
|
370
355
|
# Validates an instance of the object from a given value.
|
@@ -30,8 +30,7 @@ module AdvancedBilling
|
|
30
30
|
[]
|
31
31
|
end
|
32
32
|
|
33
|
-
def initialize(payment_profile
|
34
|
-
additional_properties = {})
|
33
|
+
def initialize(payment_profile:, additional_properties: {})
|
35
34
|
@payment_profile = payment_profile
|
36
35
|
|
37
36
|
# Add additional model properties to the instance.
|
@@ -53,8 +52,8 @@ module AdvancedBilling
|
|
53
52
|
names.each_value { |k| hash.delete(k) }
|
54
53
|
|
55
54
|
# Create object from extracted values.
|
56
|
-
PaymentProfileResponse.new(payment_profile,
|
57
|
-
hash)
|
55
|
+
PaymentProfileResponse.new(payment_profile: payment_profile,
|
56
|
+
additional_properties: hash)
|
58
57
|
end
|
59
58
|
|
60
59
|
# Validates an instance of the object from a given value.
|
@@ -35,9 +35,8 @@ module AdvancedBilling
|
|
35
35
|
[]
|
36
36
|
end
|
37
37
|
|
38
|
-
def initialize(product_id
|
39
|
-
|
40
|
-
additional_properties = {})
|
38
|
+
def initialize(product_id:, account_transaction_id:,
|
39
|
+
additional_properties: {})
|
41
40
|
@product_id = product_id
|
42
41
|
@account_transaction_id = account_transaction_id
|
43
42
|
|
@@ -60,9 +59,9 @@ module AdvancedBilling
|
|
60
59
|
names.each_value { |k| hash.delete(k) }
|
61
60
|
|
62
61
|
# Create object from extracted values.
|
63
|
-
PaymentRelatedEvents.new(product_id,
|
64
|
-
account_transaction_id,
|
65
|
-
hash)
|
62
|
+
PaymentRelatedEvents.new(product_id: product_id,
|
63
|
+
account_transaction_id: account_transaction_id,
|
64
|
+
additional_properties: hash)
|
66
65
|
end
|
67
66
|
|
68
67
|
# Validates an instance of the object from a given value.
|
@@ -36,9 +36,7 @@ module AdvancedBilling
|
|
36
36
|
[]
|
37
37
|
end
|
38
38
|
|
39
|
-
def initialize(cancellation_state
|
40
|
-
cancels_at = nil,
|
41
|
-
additional_properties = {})
|
39
|
+
def initialize(cancellation_state:, cancels_at:, additional_properties: {})
|
42
40
|
@cancellation_state = cancellation_state
|
43
41
|
@cancels_at = cancels_at
|
44
42
|
|
@@ -63,9 +61,9 @@ module AdvancedBilling
|
|
63
61
|
names.each_value { |k| hash.delete(k) }
|
64
62
|
|
65
63
|
# Create object from extracted values.
|
66
|
-
PendingCancellationChange.new(cancellation_state,
|
67
|
-
cancels_at,
|
68
|
-
hash)
|
64
|
+
PendingCancellationChange.new(cancellation_state: cancellation_state,
|
65
|
+
cancels_at: cancels_at,
|
66
|
+
additional_properties: hash)
|
69
67
|
end
|
70
68
|
|
71
69
|
def to_custom_cancels_at
|
@@ -65,13 +65,9 @@ module AdvancedBilling
|
|
65
65
|
]
|
66
66
|
end
|
67
67
|
|
68
|
-
def initialize(url
|
69
|
-
|
70
|
-
|
71
|
-
new_link_available_at = SKIP,
|
72
|
-
expires_at = SKIP,
|
73
|
-
last_invite_sent_at = SKIP,
|
74
|
-
additional_properties = {})
|
68
|
+
def initialize(url: SKIP, fetch_count: SKIP, created_at: SKIP,
|
69
|
+
new_link_available_at: SKIP, expires_at: SKIP,
|
70
|
+
last_invite_sent_at: SKIP, additional_properties: {})
|
75
71
|
@url = url unless url == SKIP
|
76
72
|
@fetch_count = fetch_count unless fetch_count == SKIP
|
77
73
|
@created_at = created_at unless created_at == SKIP
|
@@ -117,13 +113,13 @@ module AdvancedBilling
|
|
117
113
|
names.each_value { |k| hash.delete(k) }
|
118
114
|
|
119
115
|
# Create object from extracted values.
|
120
|
-
PortalManagementLink.new(url,
|
121
|
-
fetch_count,
|
122
|
-
created_at,
|
123
|
-
new_link_available_at,
|
124
|
-
expires_at,
|
125
|
-
last_invite_sent_at,
|
126
|
-
hash)
|
116
|
+
PortalManagementLink.new(url: url,
|
117
|
+
fetch_count: fetch_count,
|
118
|
+
created_at: created_at,
|
119
|
+
new_link_available_at: new_link_available_at,
|
120
|
+
expires_at: expires_at,
|
121
|
+
last_invite_sent_at: last_invite_sent_at,
|
122
|
+
additional_properties: hash)
|
127
123
|
end
|
128
124
|
|
129
125
|
def to_custom_created_at
|
@@ -62,12 +62,8 @@ module AdvancedBilling
|
|
62
62
|
[]
|
63
63
|
end
|
64
64
|
|
65
|
-
def initialize(name
|
66
|
-
|
67
|
-
pricing_scheme = SKIP,
|
68
|
-
prices = SKIP,
|
69
|
-
overage_pricing = SKIP,
|
70
|
-
additional_properties = {})
|
65
|
+
def initialize(name: SKIP, handle: SKIP, pricing_scheme: SKIP, prices: SKIP,
|
66
|
+
overage_pricing: SKIP, additional_properties: {})
|
71
67
|
@name = name unless name == SKIP
|
72
68
|
@handle = handle unless handle == SKIP
|
73
69
|
@pricing_scheme = pricing_scheme unless pricing_scheme == SKIP
|
@@ -106,12 +102,12 @@ module AdvancedBilling
|
|
106
102
|
names.each_value { |k| hash.delete(k) }
|
107
103
|
|
108
104
|
# Create object from extracted values.
|
109
|
-
PrepaidComponentPricePoint.new(name,
|
110
|
-
handle,
|
111
|
-
pricing_scheme,
|
112
|
-
prices,
|
113
|
-
overage_pricing,
|
114
|
-
hash)
|
105
|
+
PrepaidComponentPricePoint.new(name: name,
|
106
|
+
handle: handle,
|
107
|
+
pricing_scheme: pricing_scheme,
|
108
|
+
prices: prices,
|
109
|
+
overage_pricing: overage_pricing,
|
110
|
+
additional_properties: hash)
|
115
111
|
end
|
116
112
|
|
117
113
|
# Validates an instance of the object from a given value.
|
@@ -58,12 +58,10 @@ module AdvancedBilling
|
|
58
58
|
[]
|
59
59
|
end
|
60
60
|
|
61
|
-
def initialize(id
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
replenish_threshold_amount_in_cents = SKIP,
|
66
|
-
additional_properties = {})
|
61
|
+
def initialize(id: SKIP, initial_funding_amount_in_cents: SKIP,
|
62
|
+
replenish_to_amount_in_cents: SKIP, auto_replenish: SKIP,
|
63
|
+
replenish_threshold_amount_in_cents: SKIP,
|
64
|
+
additional_properties: {})
|
67
65
|
@id = id unless id == SKIP
|
68
66
|
unless initial_funding_amount_in_cents == SKIP
|
69
67
|
@initial_funding_amount_in_cents =
|
@@ -104,12 +102,12 @@ module AdvancedBilling
|
|
104
102
|
names.each_value { |k| hash.delete(k) }
|
105
103
|
|
106
104
|
# Create object from extracted values.
|
107
|
-
PrepaidConfiguration.new(id,
|
108
|
-
initial_funding_amount_in_cents,
|
109
|
-
replenish_to_amount_in_cents,
|
110
|
-
auto_replenish,
|
111
|
-
replenish_threshold_amount_in_cents,
|
112
|
-
hash)
|
105
|
+
PrepaidConfiguration.new(id: id,
|
106
|
+
initial_funding_amount_in_cents: initial_funding_amount_in_cents,
|
107
|
+
replenish_to_amount_in_cents: replenish_to_amount_in_cents,
|
108
|
+
auto_replenish: auto_replenish,
|
109
|
+
replenish_threshold_amount_in_cents: replenish_threshold_amount_in_cents,
|
110
|
+
additional_properties: hash)
|
113
111
|
end
|
114
112
|
end
|
115
113
|
end
|
@@ -30,8 +30,7 @@ module AdvancedBilling
|
|
30
30
|
[]
|
31
31
|
end
|
32
32
|
|
33
|
-
def initialize(prepaid_configuration
|
34
|
-
additional_properties = {})
|
33
|
+
def initialize(prepaid_configuration:, additional_properties: {})
|
35
34
|
@prepaid_configuration = prepaid_configuration
|
36
35
|
|
37
36
|
# Add additional model properties to the instance.
|
@@ -52,8 +51,8 @@ module AdvancedBilling
|
|
52
51
|
names.each_value { |k| hash.delete(k) }
|
53
52
|
|
54
53
|
# Create object from extracted values.
|
55
|
-
PrepaidConfigurationResponse.new(prepaid_configuration,
|
56
|
-
hash)
|
54
|
+
PrepaidConfigurationResponse.new(prepaid_configuration: prepaid_configuration,
|
55
|
+
additional_properties: hash)
|
57
56
|
end
|
58
57
|
end
|
59
58
|
end
|
@@ -30,7 +30,7 @@ module AdvancedBilling
|
|
30
30
|
[]
|
31
31
|
end
|
32
32
|
|
33
|
-
def initialize(additional_properties
|
33
|
+
def initialize(additional_properties: {})
|
34
34
|
@product_price_point_id = 'not_null'
|
35
35
|
|
36
36
|
# Add additional model properties to the instance.
|
@@ -50,7 +50,7 @@ module AdvancedBilling
|
|
50
50
|
names.each_value { |k| hash.delete(k) }
|
51
51
|
|
52
52
|
# Create object from extracted values.
|
53
|
-
PrepaidProductPricePointFilter.new(hash)
|
53
|
+
PrepaidProductPricePointFilter.new(additional_properties: hash)
|
54
54
|
end
|
55
55
|
end
|
56
56
|
end
|
@@ -48,11 +48,9 @@ module AdvancedBilling
|
|
48
48
|
[]
|
49
49
|
end
|
50
50
|
|
51
|
-
def initialize(reason
|
52
|
-
|
53
|
-
|
54
|
-
current_usage_amount_in_cents = nil,
|
55
|
-
additional_properties = {})
|
51
|
+
def initialize(reason:, current_account_balance_in_cents:,
|
52
|
+
prepayment_account_balance_in_cents:,
|
53
|
+
current_usage_amount_in_cents:, additional_properties: {})
|
56
54
|
@reason = reason
|
57
55
|
@current_account_balance_in_cents = current_account_balance_in_cents
|
58
56
|
@prepayment_account_balance_in_cents = prepayment_account_balance_in_cents
|
@@ -81,11 +79,11 @@ module AdvancedBilling
|
|
81
79
|
names.each_value { |k| hash.delete(k) }
|
82
80
|
|
83
81
|
# Create object from extracted values.
|
84
|
-
PrepaidSubscriptionBalanceChanged.new(reason,
|
85
|
-
current_account_balance_in_cents,
|
86
|
-
prepayment_account_balance_in_cents,
|
87
|
-
current_usage_amount_in_cents,
|
88
|
-
hash)
|
82
|
+
PrepaidSubscriptionBalanceChanged.new(reason: reason,
|
83
|
+
current_account_balance_in_cents: current_account_balance_in_cents,
|
84
|
+
prepayment_account_balance_in_cents: prepayment_account_balance_in_cents,
|
85
|
+
current_usage_amount_in_cents: current_usage_amount_in_cents,
|
86
|
+
additional_properties: hash)
|
89
87
|
end
|
90
88
|
|
91
89
|
# Validates an instance of the object from a given value.
|
@@ -76,17 +76,11 @@ module AdvancedBilling
|
|
76
76
|
[]
|
77
77
|
end
|
78
78
|
|
79
|
-
def initialize(previous_unit_balance
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
overage_usage_quantity = nil,
|
85
|
-
component_id = nil,
|
86
|
-
component_handle = nil,
|
87
|
-
memo = nil,
|
88
|
-
allocation_details = nil,
|
89
|
-
additional_properties = {})
|
79
|
+
def initialize(previous_unit_balance:, previous_overage_unit_balance:,
|
80
|
+
new_unit_balance:, new_overage_unit_balance:,
|
81
|
+
usage_quantity:, overage_usage_quantity:, component_id:,
|
82
|
+
component_handle:, memo:, allocation_details:,
|
83
|
+
additional_properties: {})
|
90
84
|
@previous_unit_balance = previous_unit_balance
|
91
85
|
@previous_overage_unit_balance = previous_overage_unit_balance
|
92
86
|
@new_unit_balance = new_unit_balance
|
@@ -140,17 +134,17 @@ module AdvancedBilling
|
|
140
134
|
names.each_value { |k| hash.delete(k) }
|
141
135
|
|
142
136
|
# Create object from extracted values.
|
143
|
-
PrepaidUsage.new(previous_unit_balance,
|
144
|
-
previous_overage_unit_balance,
|
145
|
-
new_unit_balance,
|
146
|
-
new_overage_unit_balance,
|
147
|
-
usage_quantity,
|
148
|
-
overage_usage_quantity,
|
149
|
-
component_id,
|
150
|
-
component_handle,
|
151
|
-
memo,
|
152
|
-
allocation_details,
|
153
|
-
hash)
|
137
|
+
PrepaidUsage.new(previous_unit_balance: previous_unit_balance,
|
138
|
+
previous_overage_unit_balance: previous_overage_unit_balance,
|
139
|
+
new_unit_balance: new_unit_balance,
|
140
|
+
new_overage_unit_balance: new_overage_unit_balance,
|
141
|
+
usage_quantity: usage_quantity,
|
142
|
+
overage_usage_quantity: overage_usage_quantity,
|
143
|
+
component_id: component_id,
|
144
|
+
component_handle: component_handle,
|
145
|
+
memo: memo,
|
146
|
+
allocation_details: allocation_details,
|
147
|
+
additional_properties: hash)
|
154
148
|
end
|
155
149
|
|
156
150
|
# Validates an instance of the object from a given value.
|
@@ -44,10 +44,8 @@ module AdvancedBilling
|
|
44
44
|
[]
|
45
45
|
end
|
46
46
|
|
47
|
-
def initialize(allocation_id
|
48
|
-
|
49
|
-
usage_quantity = SKIP,
|
50
|
-
additional_properties = {})
|
47
|
+
def initialize(allocation_id: SKIP, charge_id: SKIP, usage_quantity: SKIP,
|
48
|
+
additional_properties: {})
|
51
49
|
@allocation_id = allocation_id unless allocation_id == SKIP
|
52
50
|
@charge_id = charge_id unless charge_id == SKIP
|
53
51
|
@usage_quantity = usage_quantity unless usage_quantity == SKIP
|
@@ -72,10 +70,10 @@ module AdvancedBilling
|
|
72
70
|
names.each_value { |k| hash.delete(k) }
|
73
71
|
|
74
72
|
# Create object from extracted values.
|
75
|
-
PrepaidUsageAllocationDetail.new(allocation_id,
|
76
|
-
charge_id,
|
77
|
-
usage_quantity,
|
78
|
-
hash)
|
73
|
+
PrepaidUsageAllocationDetail.new(allocation_id: allocation_id,
|
74
|
+
charge_id: charge_id,
|
75
|
+
usage_quantity: usage_quantity,
|
76
|
+
additional_properties: hash)
|
79
77
|
end
|
80
78
|
|
81
79
|
# Validates an instance of the object from a given value.
|
@@ -200,29 +200,16 @@ module AdvancedBilling
|
|
200
200
|
]
|
201
201
|
end
|
202
202
|
|
203
|
-
def initialize(name
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
unit_price = SKIP,
|
214
|
-
tax_code = SKIP,
|
215
|
-
hide_date_range_on_invoice = SKIP,
|
216
|
-
price_in_cents = SKIP,
|
217
|
-
overage_pricing = SKIP,
|
218
|
-
rollover_prepaid_remainder = SKIP,
|
219
|
-
renew_prepaid_allocation = SKIP,
|
220
|
-
expiration_interval = SKIP,
|
221
|
-
expiration_interval_unit = SKIP,
|
222
|
-
display_on_hosted_page = SKIP,
|
223
|
-
allow_fractional_quantities = SKIP,
|
224
|
-
public_signup_page_ids = SKIP,
|
225
|
-
additional_properties = {})
|
203
|
+
def initialize(name:, unit_name: SKIP, description: SKIP, handle: SKIP,
|
204
|
+
taxable: SKIP, pricing_scheme: SKIP, prices: SKIP,
|
205
|
+
upgrade_charge: SKIP, downgrade_credit: SKIP,
|
206
|
+
price_points: SKIP, unit_price: SKIP, tax_code: SKIP,
|
207
|
+
hide_date_range_on_invoice: SKIP, price_in_cents: SKIP,
|
208
|
+
overage_pricing: SKIP, rollover_prepaid_remainder: SKIP,
|
209
|
+
renew_prepaid_allocation: SKIP, expiration_interval: SKIP,
|
210
|
+
expiration_interval_unit: SKIP, display_on_hosted_page: SKIP,
|
211
|
+
allow_fractional_quantities: SKIP,
|
212
|
+
public_signup_page_ids: SKIP, additional_properties: {})
|
226
213
|
@name = name
|
227
214
|
@unit_name = unit_name unless unit_name == SKIP
|
228
215
|
@description = description unless description == SKIP
|
@@ -326,29 +313,29 @@ module AdvancedBilling
|
|
326
313
|
names.each_value { |k| hash.delete(k) }
|
327
314
|
|
328
315
|
# Create object from extracted values.
|
329
|
-
PrepaidUsageComponent.new(name,
|
330
|
-
unit_name,
|
331
|
-
description,
|
332
|
-
handle,
|
333
|
-
taxable,
|
334
|
-
pricing_scheme,
|
335
|
-
prices,
|
336
|
-
upgrade_charge,
|
337
|
-
downgrade_credit,
|
338
|
-
price_points,
|
339
|
-
unit_price,
|
340
|
-
tax_code,
|
341
|
-
hide_date_range_on_invoice,
|
342
|
-
price_in_cents,
|
343
|
-
overage_pricing,
|
344
|
-
rollover_prepaid_remainder,
|
345
|
-
renew_prepaid_allocation,
|
346
|
-
expiration_interval,
|
347
|
-
expiration_interval_unit,
|
348
|
-
display_on_hosted_page,
|
349
|
-
allow_fractional_quantities,
|
350
|
-
public_signup_page_ids,
|
351
|
-
hash)
|
316
|
+
PrepaidUsageComponent.new(name: name,
|
317
|
+
unit_name: unit_name,
|
318
|
+
description: description,
|
319
|
+
handle: handle,
|
320
|
+
taxable: taxable,
|
321
|
+
pricing_scheme: pricing_scheme,
|
322
|
+
prices: prices,
|
323
|
+
upgrade_charge: upgrade_charge,
|
324
|
+
downgrade_credit: downgrade_credit,
|
325
|
+
price_points: price_points,
|
326
|
+
unit_price: unit_price,
|
327
|
+
tax_code: tax_code,
|
328
|
+
hide_date_range_on_invoice: hide_date_range_on_invoice,
|
329
|
+
price_in_cents: price_in_cents,
|
330
|
+
overage_pricing: overage_pricing,
|
331
|
+
rollover_prepaid_remainder: rollover_prepaid_remainder,
|
332
|
+
renew_prepaid_allocation: renew_prepaid_allocation,
|
333
|
+
expiration_interval: expiration_interval,
|
334
|
+
expiration_interval_unit: expiration_interval_unit,
|
335
|
+
display_on_hosted_page: display_on_hosted_page,
|
336
|
+
allow_fractional_quantities: allow_fractional_quantities,
|
337
|
+
public_signup_page_ids: public_signup_page_ids,
|
338
|
+
additional_properties: hash)
|
352
339
|
end
|
353
340
|
|
354
341
|
# Validates an instance of the object from a given value.
|
@@ -80,17 +80,10 @@ module AdvancedBilling
|
|
80
80
|
[]
|
81
81
|
end
|
82
82
|
|
83
|
-
def initialize(id
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
external = nil,
|
88
|
-
memo = nil,
|
89
|
-
created_at = nil,
|
90
|
-
refunded_amount_in_cents = SKIP,
|
91
|
-
details = SKIP,
|
92
|
-
payment_type = SKIP,
|
93
|
-
additional_properties = {})
|
83
|
+
def initialize(id:, subscription_id:, amount_in_cents:,
|
84
|
+
remaining_amount_in_cents:, external:, memo:, created_at:,
|
85
|
+
refunded_amount_in_cents: SKIP, details: SKIP,
|
86
|
+
payment_type: SKIP, additional_properties: {})
|
94
87
|
@id = id
|
95
88
|
@subscription_id = subscription_id
|
96
89
|
@amount_in_cents = amount_in_cents
|
@@ -134,17 +127,17 @@ module AdvancedBilling
|
|
134
127
|
names.each_value { |k| hash.delete(k) }
|
135
128
|
|
136
129
|
# Create object from extracted values.
|
137
|
-
Prepayment.new(id,
|
138
|
-
subscription_id,
|
139
|
-
amount_in_cents,
|
140
|
-
remaining_amount_in_cents,
|
141
|
-
external,
|
142
|
-
memo,
|
143
|
-
created_at,
|
144
|
-
refunded_amount_in_cents,
|
145
|
-
details,
|
146
|
-
payment_type,
|
147
|
-
hash)
|
130
|
+
Prepayment.new(id: id,
|
131
|
+
subscription_id: subscription_id,
|
132
|
+
amount_in_cents: amount_in_cents,
|
133
|
+
remaining_amount_in_cents: remaining_amount_in_cents,
|
134
|
+
external: external,
|
135
|
+
memo: memo,
|
136
|
+
created_at: created_at,
|
137
|
+
refunded_amount_in_cents: refunded_amount_in_cents,
|
138
|
+
details: details,
|
139
|
+
payment_type: payment_type,
|
140
|
+
additional_properties: hash)
|
148
141
|
end
|
149
142
|
|
150
143
|
def to_custom_created_at
|
@@ -47,11 +47,9 @@ module AdvancedBilling
|
|
47
47
|
[]
|
48
48
|
end
|
49
49
|
|
50
|
-
def initialize(reason
|
51
|
-
|
52
|
-
|
53
|
-
currency_code = nil,
|
54
|
-
additional_properties = {})
|
50
|
+
def initialize(reason:, prepayment_account_balance_in_cents:,
|
51
|
+
prepayment_balance_change_in_cents:, currency_code:,
|
52
|
+
additional_properties: {})
|
55
53
|
@reason = reason
|
56
54
|
@prepayment_account_balance_in_cents = prepayment_account_balance_in_cents
|
57
55
|
@prepayment_balance_change_in_cents = prepayment_balance_change_in_cents
|
@@ -79,11 +77,11 @@ module AdvancedBilling
|
|
79
77
|
names.each_value { |k| hash.delete(k) }
|
80
78
|
|
81
79
|
# Create object from extracted values.
|
82
|
-
PrepaymentAccountBalanceChanged.new(reason,
|
83
|
-
prepayment_account_balance_in_cents,
|
84
|
-
prepayment_balance_change_in_cents,
|
85
|
-
currency_code,
|
86
|
-
hash)
|
80
|
+
PrepaymentAccountBalanceChanged.new(reason: reason,
|
81
|
+
prepayment_account_balance_in_cents: prepayment_account_balance_in_cents,
|
82
|
+
prepayment_balance_change_in_cents: prepayment_balance_change_in_cents,
|
83
|
+
currency_code: currency_code,
|
84
|
+
additional_properties: hash)
|
87
85
|
end
|
88
86
|
|
89
87
|
# Validates an instance of the object from a given value.
|