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
@@ -91,15 +91,9 @@ module AdvancedBilling
|
|
91
91
|
[]
|
92
92
|
end
|
93
93
|
|
94
|
-
def initialize(date_field
|
95
|
-
|
96
|
-
|
97
|
-
start_datetime = SKIP,
|
98
|
-
end_datetime = SKIP,
|
99
|
-
type = SKIP,
|
100
|
-
ids = SKIP,
|
101
|
-
archived_at = SKIP,
|
102
|
-
additional_properties = {})
|
94
|
+
def initialize(date_field: SKIP, start_date: SKIP, end_date: SKIP,
|
95
|
+
start_datetime: SKIP, end_datetime: SKIP, type: SKIP,
|
96
|
+
ids: SKIP, archived_at: SKIP, additional_properties: {})
|
103
97
|
@date_field = date_field unless date_field == SKIP
|
104
98
|
@start_date = start_date unless start_date == SKIP
|
105
99
|
@end_date = end_date unless end_date == SKIP
|
@@ -141,15 +135,15 @@ module AdvancedBilling
|
|
141
135
|
names.each_value { |k| hash.delete(k) }
|
142
136
|
|
143
137
|
# Create object from extracted values.
|
144
|
-
ListPricePointsFilter.new(date_field,
|
145
|
-
start_date,
|
146
|
-
end_date,
|
147
|
-
start_datetime,
|
148
|
-
end_datetime,
|
149
|
-
type,
|
150
|
-
ids,
|
151
|
-
archived_at,
|
152
|
-
hash)
|
138
|
+
ListPricePointsFilter.new(date_field: date_field,
|
139
|
+
start_date: start_date,
|
140
|
+
end_date: end_date,
|
141
|
+
start_datetime: start_datetime,
|
142
|
+
end_datetime: end_datetime,
|
143
|
+
type: type,
|
144
|
+
ids: ids,
|
145
|
+
archived_at: archived_at,
|
146
|
+
additional_properties: hash)
|
153
147
|
end
|
154
148
|
|
155
149
|
def to_custom_start_datetime
|
@@ -30,8 +30,7 @@ module AdvancedBilling
|
|
30
30
|
[]
|
31
31
|
end
|
32
32
|
|
33
|
-
def initialize(price_points
|
34
|
-
additional_properties = {})
|
33
|
+
def initialize(price_points:, additional_properties: {})
|
35
34
|
@price_points = price_points
|
36
35
|
|
37
36
|
# Add additional model properties to the instance.
|
@@ -60,8 +59,8 @@ module AdvancedBilling
|
|
60
59
|
names.each_value { |k| hash.delete(k) }
|
61
60
|
|
62
61
|
# Create object from extracted values.
|
63
|
-
ListProductPricePointsResponse.new(price_points,
|
64
|
-
hash)
|
62
|
+
ListProductPricePointsResponse.new(price_points: price_points,
|
63
|
+
additional_properties: hash)
|
65
64
|
end
|
66
65
|
end
|
67
66
|
end
|
@@ -43,9 +43,8 @@ module AdvancedBilling
|
|
43
43
|
[]
|
44
44
|
end
|
45
45
|
|
46
|
-
def initialize(prepaid_product_price_point
|
47
|
-
use_site_exchange_rate
|
48
|
-
additional_properties = {})
|
46
|
+
def initialize(prepaid_product_price_point: SKIP,
|
47
|
+
use_site_exchange_rate: SKIP, additional_properties: {})
|
49
48
|
unless prepaid_product_price_point == SKIP
|
50
49
|
@prepaid_product_price_point =
|
51
50
|
prepaid_product_price_point
|
@@ -73,9 +72,9 @@ module AdvancedBilling
|
|
73
72
|
names.each_value { |k| hash.delete(k) }
|
74
73
|
|
75
74
|
# Create object from extracted values.
|
76
|
-
ListProductsFilter.new(prepaid_product_price_point,
|
77
|
-
use_site_exchange_rate,
|
78
|
-
hash)
|
75
|
+
ListProductsFilter.new(prepaid_product_price_point: prepaid_product_price_point,
|
76
|
+
use_site_exchange_rate: use_site_exchange_rate,
|
77
|
+
additional_properties: hash)
|
79
78
|
end
|
80
79
|
end
|
81
80
|
end
|
@@ -50,11 +50,8 @@ module AdvancedBilling
|
|
50
50
|
[]
|
51
51
|
end
|
52
52
|
|
53
|
-
def initialize(total_count
|
54
|
-
|
55
|
-
total_pages = SKIP,
|
56
|
-
status_code = SKIP,
|
57
|
-
additional_properties = {})
|
53
|
+
def initialize(total_count: SKIP, current_page: SKIP, total_pages: SKIP,
|
54
|
+
status_code: SKIP, additional_properties: {})
|
58
55
|
@total_count = total_count unless total_count == SKIP
|
59
56
|
@current_page = current_page unless current_page == SKIP
|
60
57
|
@total_pages = total_pages unless total_pages == SKIP
|
@@ -80,11 +77,11 @@ module AdvancedBilling
|
|
80
77
|
names.each_value { |k| hash.delete(k) }
|
81
78
|
|
82
79
|
# Create object from extracted values.
|
83
|
-
ListProformaInvoicesMeta.new(total_count,
|
84
|
-
current_page,
|
85
|
-
total_pages,
|
86
|
-
status_code,
|
87
|
-
hash)
|
80
|
+
ListProformaInvoicesMeta.new(total_count: total_count,
|
81
|
+
current_page: current_page,
|
82
|
+
total_pages: total_pages,
|
83
|
+
status_code: status_code,
|
84
|
+
additional_properties: hash)
|
88
85
|
end
|
89
86
|
end
|
90
87
|
end
|
@@ -38,9 +38,8 @@ module AdvancedBilling
|
|
38
38
|
[]
|
39
39
|
end
|
40
40
|
|
41
|
-
def initialize(proforma_invoices
|
42
|
-
|
43
|
-
additional_properties = {})
|
41
|
+
def initialize(proforma_invoices: SKIP, meta: SKIP,
|
42
|
+
additional_properties: {})
|
44
43
|
@proforma_invoices = proforma_invoices unless proforma_invoices == SKIP
|
45
44
|
@meta = meta unless meta == SKIP
|
46
45
|
|
@@ -71,9 +70,9 @@ module AdvancedBilling
|
|
71
70
|
names.each_value { |k| hash.delete(k) }
|
72
71
|
|
73
72
|
# Create object from extracted values.
|
74
|
-
ListProformaInvoicesResponse.new(proforma_invoices,
|
75
|
-
meta,
|
76
|
-
hash)
|
73
|
+
ListProformaInvoicesResponse.new(proforma_invoices: proforma_invoices,
|
74
|
+
meta: meta,
|
75
|
+
additional_properties: hash)
|
77
76
|
end
|
78
77
|
end
|
79
78
|
end
|
@@ -50,11 +50,8 @@ module AdvancedBilling
|
|
50
50
|
[]
|
51
51
|
end
|
52
52
|
|
53
|
-
def initialize(total_count
|
54
|
-
|
55
|
-
total_pages = SKIP,
|
56
|
-
per_page = SKIP,
|
57
|
-
additional_properties = {})
|
53
|
+
def initialize(total_count: SKIP, current_page: SKIP, total_pages: SKIP,
|
54
|
+
per_page: SKIP, additional_properties: {})
|
58
55
|
@total_count = total_count unless total_count == SKIP
|
59
56
|
@current_page = current_page unless current_page == SKIP
|
60
57
|
@total_pages = total_pages unless total_pages == SKIP
|
@@ -80,11 +77,11 @@ module AdvancedBilling
|
|
80
77
|
names.each_value { |k| hash.delete(k) }
|
81
78
|
|
82
79
|
# Create object from extracted values.
|
83
|
-
ListPublicKeysMeta.new(total_count,
|
84
|
-
current_page,
|
85
|
-
total_pages,
|
86
|
-
per_page,
|
87
|
-
hash)
|
80
|
+
ListPublicKeysMeta.new(total_count: total_count,
|
81
|
+
current_page: current_page,
|
82
|
+
total_pages: total_pages,
|
83
|
+
per_page: per_page,
|
84
|
+
additional_properties: hash)
|
88
85
|
end
|
89
86
|
end
|
90
87
|
end
|
@@ -38,9 +38,8 @@ module AdvancedBilling
|
|
38
38
|
[]
|
39
39
|
end
|
40
40
|
|
41
|
-
def initialize(chargify_js_keys
|
42
|
-
|
43
|
-
additional_properties = {})
|
41
|
+
def initialize(chargify_js_keys: SKIP, meta: SKIP,
|
42
|
+
additional_properties: {})
|
44
43
|
@chargify_js_keys = chargify_js_keys unless chargify_js_keys == SKIP
|
45
44
|
@meta = meta unless meta == SKIP
|
46
45
|
|
@@ -71,9 +70,9 @@ module AdvancedBilling
|
|
71
70
|
names.each_value { |k| hash.delete(k) }
|
72
71
|
|
73
72
|
# Create object from extracted values.
|
74
|
-
ListPublicKeysResponse.new(chargify_js_keys,
|
75
|
-
meta,
|
76
|
-
hash)
|
73
|
+
ListPublicKeysResponse.new(chargify_js_keys: chargify_js_keys,
|
74
|
+
meta: meta,
|
75
|
+
additional_properties: hash)
|
77
76
|
end
|
78
77
|
end
|
79
78
|
end
|
@@ -56,12 +56,8 @@ module AdvancedBilling
|
|
56
56
|
[]
|
57
57
|
end
|
58
58
|
|
59
|
-
def initialize(id
|
60
|
-
|
61
|
-
subscriptions_count = SKIP,
|
62
|
-
mrr_data = SKIP,
|
63
|
-
test_mode = SKIP,
|
64
|
-
additional_properties = {})
|
59
|
+
def initialize(id: SKIP, full_name: SKIP, subscriptions_count: SKIP,
|
60
|
+
mrr_data: SKIP, test_mode: SKIP, additional_properties: {})
|
65
61
|
@id = id unless id == SKIP
|
66
62
|
@full_name = full_name unless full_name == SKIP
|
67
63
|
@subscriptions_count = subscriptions_count unless subscriptions_count == SKIP
|
@@ -92,12 +88,12 @@ module AdvancedBilling
|
|
92
88
|
names.each_value { |k| hash.delete(k) }
|
93
89
|
|
94
90
|
# Create object from extracted values.
|
95
|
-
ListSaleRepItem.new(id,
|
96
|
-
full_name,
|
97
|
-
subscriptions_count,
|
98
|
-
mrr_data,
|
99
|
-
test_mode,
|
100
|
-
hash)
|
91
|
+
ListSaleRepItem.new(id: id,
|
92
|
+
full_name: full_name,
|
93
|
+
subscriptions_count: subscriptions_count,
|
94
|
+
mrr_data: mrr_data,
|
95
|
+
test_mode: test_mode,
|
96
|
+
additional_properties: hash)
|
101
97
|
end
|
102
98
|
end
|
103
99
|
end
|
@@ -59,11 +59,10 @@ module AdvancedBilling
|
|
59
59
|
[]
|
60
60
|
end
|
61
61
|
|
62
|
-
def initialize(segment_property_1_value
|
63
|
-
segment_property_2_value
|
64
|
-
segment_property_3_value
|
65
|
-
segment_property_4_value
|
66
|
-
additional_properties = {})
|
62
|
+
def initialize(segment_property_1_value: SKIP,
|
63
|
+
segment_property_2_value: SKIP,
|
64
|
+
segment_property_3_value: SKIP,
|
65
|
+
segment_property_4_value: SKIP, additional_properties: {})
|
67
66
|
@segment_property_1_value = segment_property_1_value unless segment_property_1_value == SKIP
|
68
67
|
@segment_property_2_value = segment_property_2_value unless segment_property_2_value == SKIP
|
69
68
|
@segment_property_3_value = segment_property_3_value unless segment_property_3_value == SKIP
|
@@ -93,11 +92,11 @@ module AdvancedBilling
|
|
93
92
|
names.each_value { |k| hash.delete(k) }
|
94
93
|
|
95
94
|
# Create object from extracted values.
|
96
|
-
ListSegmentsFilter.new(segment_property_1_value,
|
97
|
-
segment_property_2_value,
|
98
|
-
segment_property_3_value,
|
99
|
-
segment_property_4_value,
|
100
|
-
hash)
|
95
|
+
ListSegmentsFilter.new(segment_property_1_value: segment_property_1_value,
|
96
|
+
segment_property_2_value: segment_property_2_value,
|
97
|
+
segment_property_3_value: segment_property_3_value,
|
98
|
+
segment_property_4_value: segment_property_4_value,
|
99
|
+
additional_properties: hash)
|
101
100
|
end
|
102
101
|
end
|
103
102
|
end
|
@@ -32,8 +32,7 @@ module AdvancedBilling
|
|
32
32
|
[]
|
33
33
|
end
|
34
34
|
|
35
|
-
def initialize(segments
|
36
|
-
additional_properties = {})
|
35
|
+
def initialize(segments: SKIP, additional_properties: {})
|
37
36
|
@segments = segments unless segments == SKIP
|
38
37
|
|
39
38
|
# Add additional model properties to the instance.
|
@@ -62,8 +61,8 @@ module AdvancedBilling
|
|
62
61
|
names.each_value { |k| hash.delete(k) }
|
63
62
|
|
64
63
|
# Create object from extracted values.
|
65
|
-
ListSegmentsResponse.new(segments,
|
66
|
-
hash)
|
64
|
+
ListSegmentsResponse.new(segments: segments,
|
65
|
+
additional_properties: hash)
|
67
66
|
end
|
68
67
|
end
|
69
68
|
end
|
@@ -81,16 +81,11 @@ module AdvancedBilling
|
|
81
81
|
[]
|
82
82
|
end
|
83
83
|
|
84
|
-
def initialize(id
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
external = SKIP,
|
90
|
-
memo = SKIP,
|
91
|
-
payment_type = SKIP,
|
92
|
-
created_at = SKIP,
|
93
|
-
additional_properties = {})
|
84
|
+
def initialize(id: SKIP, subscription_group_uid: SKIP,
|
85
|
+
amount_in_cents: SKIP, remaining_amount_in_cents: SKIP,
|
86
|
+
details: SKIP, external: SKIP, memo: SKIP,
|
87
|
+
payment_type: SKIP, created_at: SKIP,
|
88
|
+
additional_properties: {})
|
94
89
|
@id = id unless id == SKIP
|
95
90
|
@subscription_group_uid = subscription_group_uid unless subscription_group_uid == SKIP
|
96
91
|
@amount_in_cents = amount_in_cents unless amount_in_cents == SKIP
|
@@ -136,16 +131,16 @@ module AdvancedBilling
|
|
136
131
|
names.each_value { |k| hash.delete(k) }
|
137
132
|
|
138
133
|
# Create object from extracted values.
|
139
|
-
ListSubcriptionGroupPrepaymentItem.new(id,
|
140
|
-
subscription_group_uid,
|
141
|
-
amount_in_cents,
|
142
|
-
remaining_amount_in_cents,
|
143
|
-
details,
|
144
|
-
external,
|
145
|
-
memo,
|
146
|
-
payment_type,
|
147
|
-
created_at,
|
148
|
-
hash)
|
134
|
+
ListSubcriptionGroupPrepaymentItem.new(id: id,
|
135
|
+
subscription_group_uid: subscription_group_uid,
|
136
|
+
amount_in_cents: amount_in_cents,
|
137
|
+
remaining_amount_in_cents: remaining_amount_in_cents,
|
138
|
+
details: details,
|
139
|
+
external: external,
|
140
|
+
memo: memo,
|
141
|
+
payment_type: payment_type,
|
142
|
+
created_at: created_at,
|
143
|
+
additional_properties: hash)
|
149
144
|
end
|
150
145
|
|
151
146
|
def to_custom_created_at
|
@@ -41,9 +41,8 @@ module AdvancedBilling
|
|
41
41
|
[]
|
42
42
|
end
|
43
43
|
|
44
|
-
def initialize(currencies
|
45
|
-
|
46
|
-
additional_properties = {})
|
44
|
+
def initialize(currencies: SKIP, use_site_exchange_rate: SKIP,
|
45
|
+
additional_properties: {})
|
47
46
|
@currencies = currencies unless currencies == SKIP
|
48
47
|
@use_site_exchange_rate = use_site_exchange_rate unless use_site_exchange_rate == SKIP
|
49
48
|
|
@@ -66,9 +65,9 @@ module AdvancedBilling
|
|
66
65
|
names.each_value { |k| hash.delete(k) }
|
67
66
|
|
68
67
|
# Create object from extracted values.
|
69
|
-
ListSubscriptionComponentsFilter.new(currencies,
|
70
|
-
use_site_exchange_rate,
|
71
|
-
hash)
|
68
|
+
ListSubscriptionComponentsFilter.new(currencies: currencies,
|
69
|
+
use_site_exchange_rate: use_site_exchange_rate,
|
70
|
+
additional_properties: hash)
|
72
71
|
end
|
73
72
|
end
|
74
73
|
end
|
@@ -47,10 +47,8 @@ module AdvancedBilling
|
|
47
47
|
[]
|
48
48
|
end
|
49
49
|
|
50
|
-
def initialize(currencies
|
51
|
-
|
52
|
-
subscription = SKIP,
|
53
|
-
additional_properties = {})
|
50
|
+
def initialize(currencies: SKIP, use_site_exchange_rate: SKIP,
|
51
|
+
subscription: SKIP, additional_properties: {})
|
54
52
|
@currencies = currencies unless currencies == SKIP
|
55
53
|
@use_site_exchange_rate = use_site_exchange_rate unless use_site_exchange_rate == SKIP
|
56
54
|
@subscription = subscription unless subscription == SKIP
|
@@ -75,10 +73,10 @@ module AdvancedBilling
|
|
75
73
|
names.each_value { |k| hash.delete(k) }
|
76
74
|
|
77
75
|
# Create object from extracted values.
|
78
|
-
ListSubscriptionComponentsForSiteFilter.new(currencies,
|
79
|
-
use_site_exchange_rate,
|
80
|
-
subscription,
|
81
|
-
hash)
|
76
|
+
ListSubscriptionComponentsForSiteFilter.new(currencies: currencies,
|
77
|
+
use_site_exchange_rate: use_site_exchange_rate,
|
78
|
+
subscription: subscription,
|
79
|
+
additional_properties: hash)
|
82
80
|
end
|
83
81
|
end
|
84
82
|
end
|
@@ -30,8 +30,7 @@ module AdvancedBilling
|
|
30
30
|
[]
|
31
31
|
end
|
32
32
|
|
33
|
-
def initialize(subscriptions_components
|
34
|
-
additional_properties = {})
|
33
|
+
def initialize(subscriptions_components:, additional_properties: {})
|
35
34
|
@subscriptions_components = subscriptions_components
|
36
35
|
|
37
36
|
# Add additional model properties to the instance.
|
@@ -60,8 +59,8 @@ module AdvancedBilling
|
|
60
59
|
names.each_value { |k| hash.delete(k) }
|
61
60
|
|
62
61
|
# Create object from extracted values.
|
63
|
-
ListSubscriptionComponentsResponse.new(subscriptions_components,
|
64
|
-
hash)
|
62
|
+
ListSubscriptionComponentsResponse.new(subscriptions_components: subscriptions_components,
|
63
|
+
additional_properties: hash)
|
65
64
|
end
|
66
65
|
end
|
67
66
|
end
|
@@ -30,8 +30,7 @@ module AdvancedBilling
|
|
30
30
|
[]
|
31
31
|
end
|
32
32
|
|
33
|
-
def initialize(prepayment
|
34
|
-
additional_properties = {})
|
33
|
+
def initialize(prepayment:, additional_properties: {})
|
35
34
|
@prepayment = prepayment
|
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
|
-
ListSubscriptionGroupPrepayment.new(prepayment,
|
56
|
-
hash)
|
54
|
+
ListSubscriptionGroupPrepayment.new(prepayment: prepayment,
|
55
|
+
additional_properties: hash)
|
57
56
|
end
|
58
57
|
end
|
59
58
|
end
|
@@ -30,8 +30,7 @@ module AdvancedBilling
|
|
30
30
|
[]
|
31
31
|
end
|
32
32
|
|
33
|
-
def initialize(prepayments
|
34
|
-
additional_properties = {})
|
33
|
+
def initialize(prepayments:, additional_properties: {})
|
35
34
|
@prepayments = prepayments
|
36
35
|
|
37
36
|
# Add additional model properties to the instance.
|
@@ -60,8 +59,8 @@ module AdvancedBilling
|
|
60
59
|
names.each_value { |k| hash.delete(k) }
|
61
60
|
|
62
61
|
# Create object from extracted values.
|
63
|
-
ListSubscriptionGroupPrepaymentResponse.new(prepayments,
|
64
|
-
hash)
|
62
|
+
ListSubscriptionGroupPrepaymentResponse.new(prepayments: prepayments,
|
63
|
+
additional_properties: hash)
|
65
64
|
end
|
66
65
|
end
|
67
66
|
end
|
@@ -93,18 +93,12 @@ module AdvancedBilling
|
|
93
93
|
[]
|
94
94
|
end
|
95
95
|
|
96
|
-
def initialize(uid
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
next_assessment_at = SKIP,
|
103
|
-
state = SKIP,
|
104
|
-
cancel_at_end_of_period = SKIP,
|
105
|
-
account_balances = SKIP,
|
106
|
-
group_type = SKIP,
|
107
|
-
additional_properties = {})
|
96
|
+
def initialize(uid: SKIP, scheme: SKIP, customer_id: SKIP,
|
97
|
+
payment_profile_id: SKIP, subscription_ids: SKIP,
|
98
|
+
primary_subscription_id: SKIP, next_assessment_at: SKIP,
|
99
|
+
state: SKIP, cancel_at_end_of_period: SKIP,
|
100
|
+
account_balances: SKIP, group_type: SKIP,
|
101
|
+
additional_properties: {})
|
108
102
|
@uid = uid unless uid == SKIP
|
109
103
|
@scheme = scheme unless scheme == SKIP
|
110
104
|
@customer_id = customer_id unless customer_id == SKIP
|
@@ -153,18 +147,18 @@ module AdvancedBilling
|
|
153
147
|
names.each_value { |k| hash.delete(k) }
|
154
148
|
|
155
149
|
# Create object from extracted values.
|
156
|
-
ListSubscriptionGroupsItem.new(uid,
|
157
|
-
scheme,
|
158
|
-
customer_id,
|
159
|
-
payment_profile_id,
|
160
|
-
subscription_ids,
|
161
|
-
primary_subscription_id,
|
162
|
-
next_assessment_at,
|
163
|
-
state,
|
164
|
-
cancel_at_end_of_period,
|
165
|
-
account_balances,
|
166
|
-
group_type,
|
167
|
-
hash)
|
150
|
+
ListSubscriptionGroupsItem.new(uid: uid,
|
151
|
+
scheme: scheme,
|
152
|
+
customer_id: customer_id,
|
153
|
+
payment_profile_id: payment_profile_id,
|
154
|
+
subscription_ids: subscription_ids,
|
155
|
+
primary_subscription_id: primary_subscription_id,
|
156
|
+
next_assessment_at: next_assessment_at,
|
157
|
+
state: state,
|
158
|
+
cancel_at_end_of_period: cancel_at_end_of_period,
|
159
|
+
account_balances: account_balances,
|
160
|
+
group_type: group_type,
|
161
|
+
additional_properties: hash)
|
168
162
|
end
|
169
163
|
|
170
164
|
def to_custom_next_assessment_at
|
@@ -38,9 +38,8 @@ module AdvancedBilling
|
|
38
38
|
[]
|
39
39
|
end
|
40
40
|
|
41
|
-
def initialize(current_page
|
42
|
-
|
43
|
-
additional_properties = {})
|
41
|
+
def initialize(current_page: SKIP, total_count: SKIP,
|
42
|
+
additional_properties: {})
|
44
43
|
@current_page = current_page unless current_page == SKIP
|
45
44
|
@total_count = total_count unless total_count == SKIP
|
46
45
|
|
@@ -62,9 +61,9 @@ module AdvancedBilling
|
|
62
61
|
names.each_value { |k| hash.delete(k) }
|
63
62
|
|
64
63
|
# Create object from extracted values.
|
65
|
-
ListSubscriptionGroupsMeta.new(current_page,
|
66
|
-
total_count,
|
67
|
-
hash)
|
64
|
+
ListSubscriptionGroupsMeta.new(current_page: current_page,
|
65
|
+
total_count: total_count,
|
66
|
+
additional_properties: hash)
|
68
67
|
end
|
69
68
|
end
|
70
69
|
end
|
@@ -38,9 +38,8 @@ module AdvancedBilling
|
|
38
38
|
[]
|
39
39
|
end
|
40
40
|
|
41
|
-
def initialize(subscription_groups
|
42
|
-
|
43
|
-
additional_properties = {})
|
41
|
+
def initialize(subscription_groups: SKIP, meta: SKIP,
|
42
|
+
additional_properties: {})
|
44
43
|
@subscription_groups = subscription_groups unless subscription_groups == SKIP
|
45
44
|
@meta = meta unless meta == SKIP
|
46
45
|
|
@@ -71,9 +70,9 @@ module AdvancedBilling
|
|
71
70
|
names.each_value { |k| hash.delete(k) }
|
72
71
|
|
73
72
|
# Create object from extracted values.
|
74
|
-
ListSubscriptionGroupsResponse.new(subscription_groups,
|
75
|
-
meta,
|
76
|
-
hash)
|
73
|
+
ListSubscriptionGroupsResponse.new(subscription_groups: subscription_groups,
|
74
|
+
meta: meta,
|
75
|
+
additional_properties: hash)
|
77
76
|
end
|
78
77
|
end
|
79
78
|
end
|
@@ -69,13 +69,9 @@ module AdvancedBilling
|
|
69
69
|
]
|
70
70
|
end
|
71
71
|
|
72
|
-
def initialize(id
|
73
|
-
|
74
|
-
|
75
|
-
name = SKIP,
|
76
|
-
deleted_at = SKIP,
|
77
|
-
metafield_id = SKIP,
|
78
|
-
additional_properties = {})
|
72
|
+
def initialize(id: SKIP, value: SKIP, resource_id: SKIP, name: SKIP,
|
73
|
+
deleted_at: SKIP, metafield_id: SKIP,
|
74
|
+
additional_properties: {})
|
79
75
|
@id = id unless id == SKIP
|
80
76
|
@value = value unless value == SKIP
|
81
77
|
@resource_id = resource_id unless resource_id == SKIP
|
@@ -109,13 +105,13 @@ module AdvancedBilling
|
|
109
105
|
names.each_value { |k| hash.delete(k) }
|
110
106
|
|
111
107
|
# Create object from extracted values.
|
112
|
-
Metadata.new(id,
|
113
|
-
value,
|
114
|
-
resource_id,
|
115
|
-
name,
|
116
|
-
deleted_at,
|
117
|
-
metafield_id,
|
118
|
-
hash)
|
108
|
+
Metadata.new(id: id,
|
109
|
+
value: value,
|
110
|
+
resource_id: resource_id,
|
111
|
+
name: name,
|
112
|
+
deleted_at: deleted_at,
|
113
|
+
metafield_id: metafield_id,
|
114
|
+
additional_properties: hash)
|
119
115
|
end
|
120
116
|
|
121
117
|
def to_custom_deleted_at
|
@@ -74,13 +74,8 @@ module AdvancedBilling
|
|
74
74
|
]
|
75
75
|
end
|
76
76
|
|
77
|
-
def initialize(id
|
78
|
-
|
79
|
-
scope = SKIP,
|
80
|
-
data_count = SKIP,
|
81
|
-
input_type = SKIP,
|
82
|
-
enum = SKIP,
|
83
|
-
additional_properties = {})
|
77
|
+
def initialize(id: SKIP, name: SKIP, scope: SKIP, data_count: SKIP,
|
78
|
+
input_type: SKIP, enum: SKIP, additional_properties: {})
|
84
79
|
@id = id unless id == SKIP
|
85
80
|
@name = name unless name == SKIP
|
86
81
|
@scope = scope unless scope == SKIP
|
@@ -112,13 +107,13 @@ module AdvancedBilling
|
|
112
107
|
names.each_value { |k| hash.delete(k) }
|
113
108
|
|
114
109
|
# Create object from extracted values.
|
115
|
-
Metafield.new(id,
|
116
|
-
name,
|
117
|
-
scope,
|
118
|
-
data_count,
|
119
|
-
input_type,
|
120
|
-
enum,
|
121
|
-
hash)
|
110
|
+
Metafield.new(id: id,
|
111
|
+
name: name,
|
112
|
+
scope: scope,
|
113
|
+
data_count: data_count,
|
114
|
+
input_type: input_type,
|
115
|
+
enum: enum,
|
116
|
+
additional_properties: hash)
|
122
117
|
end
|
123
118
|
|
124
119
|
# Validates an instance of the object from a given value.
|