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
@@ -32,8 +32,7 @@ module AdvancedBilling
|
|
32
32
|
[]
|
33
33
|
end
|
34
34
|
|
35
|
-
def initialize(offer
|
36
|
-
additional_properties = {})
|
35
|
+
def initialize(offer: SKIP, additional_properties: {})
|
37
36
|
@offer = offer unless offer == SKIP
|
38
37
|
|
39
38
|
# 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
|
-
OfferResponse.new(offer,
|
57
|
-
hash)
|
55
|
+
OfferResponse.new(offer: offer,
|
56
|
+
additional_properties: hash)
|
58
57
|
end
|
59
58
|
end
|
60
59
|
end
|
@@ -62,13 +62,8 @@ module AdvancedBilling
|
|
62
62
|
[]
|
63
63
|
end
|
64
64
|
|
65
|
-
def initialize(id
|
66
|
-
|
67
|
-
enabled = SKIP,
|
68
|
-
return_url = SKIP,
|
69
|
-
return_params = SKIP,
|
70
|
-
url = SKIP,
|
71
|
-
additional_properties = {})
|
65
|
+
def initialize(id: SKIP, nickname: SKIP, enabled: SKIP, return_url: SKIP,
|
66
|
+
return_params: SKIP, url: SKIP, additional_properties: {})
|
72
67
|
@id = id unless id == SKIP
|
73
68
|
@nickname = nickname unless nickname == SKIP
|
74
69
|
@enabled = enabled unless enabled == SKIP
|
@@ -98,13 +93,13 @@ module AdvancedBilling
|
|
98
93
|
names.each_value { |k| hash.delete(k) }
|
99
94
|
|
100
95
|
# Create object from extracted values.
|
101
|
-
OfferSignupPage.new(id,
|
102
|
-
nickname,
|
103
|
-
enabled,
|
104
|
-
return_url,
|
105
|
-
return_params,
|
106
|
-
url,
|
107
|
-
hash)
|
96
|
+
OfferSignupPage.new(id: id,
|
97
|
+
nickname: nickname,
|
98
|
+
enabled: enabled,
|
99
|
+
return_url: return_url,
|
100
|
+
return_params: return_params,
|
101
|
+
url: url,
|
102
|
+
additional_properties: hash)
|
108
103
|
end
|
109
104
|
end
|
110
105
|
end
|
@@ -158,24 +158,14 @@ module AdvancedBilling
|
|
158
158
|
]
|
159
159
|
end
|
160
160
|
|
161
|
-
def initialize(name
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
unit_price = SKIP,
|
170
|
-
tax_code = SKIP,
|
171
|
-
hide_date_range_on_invoice = SKIP,
|
172
|
-
price_in_cents = SKIP,
|
173
|
-
display_on_hosted_page = SKIP,
|
174
|
-
allow_fractional_quantities = SKIP,
|
175
|
-
public_signup_page_ids = SKIP,
|
176
|
-
interval = SKIP,
|
177
|
-
interval_unit = SKIP,
|
178
|
-
additional_properties = {})
|
161
|
+
def initialize(name:, description: SKIP, handle: SKIP, taxable: SKIP,
|
162
|
+
prices: SKIP, upgrade_charge: SKIP, downgrade_credit: SKIP,
|
163
|
+
price_points: SKIP, unit_price: SKIP, tax_code: SKIP,
|
164
|
+
hide_date_range_on_invoice: SKIP, price_in_cents: SKIP,
|
165
|
+
display_on_hosted_page: SKIP,
|
166
|
+
allow_fractional_quantities: SKIP,
|
167
|
+
public_signup_page_ids: SKIP, interval: SKIP,
|
168
|
+
interval_unit: SKIP, additional_properties: {})
|
179
169
|
@name = name
|
180
170
|
@description = description unless description == SKIP
|
181
171
|
@handle = handle unless handle == SKIP
|
@@ -260,24 +250,24 @@ module AdvancedBilling
|
|
260
250
|
names.each_value { |k| hash.delete(k) }
|
261
251
|
|
262
252
|
# Create object from extracted values.
|
263
|
-
OnOffComponent.new(name,
|
264
|
-
description,
|
265
|
-
handle,
|
266
|
-
taxable,
|
267
|
-
prices,
|
268
|
-
upgrade_charge,
|
269
|
-
downgrade_credit,
|
270
|
-
price_points,
|
271
|
-
unit_price,
|
272
|
-
tax_code,
|
273
|
-
hide_date_range_on_invoice,
|
274
|
-
price_in_cents,
|
275
|
-
display_on_hosted_page,
|
276
|
-
allow_fractional_quantities,
|
277
|
-
public_signup_page_ids,
|
278
|
-
interval,
|
279
|
-
interval_unit,
|
280
|
-
hash)
|
253
|
+
OnOffComponent.new(name: name,
|
254
|
+
description: description,
|
255
|
+
handle: handle,
|
256
|
+
taxable: taxable,
|
257
|
+
prices: prices,
|
258
|
+
upgrade_charge: upgrade_charge,
|
259
|
+
downgrade_credit: downgrade_credit,
|
260
|
+
price_points: price_points,
|
261
|
+
unit_price: unit_price,
|
262
|
+
tax_code: tax_code,
|
263
|
+
hide_date_range_on_invoice: hide_date_range_on_invoice,
|
264
|
+
price_in_cents: price_in_cents,
|
265
|
+
display_on_hosted_page: display_on_hosted_page,
|
266
|
+
allow_fractional_quantities: allow_fractional_quantities,
|
267
|
+
public_signup_page_ids: public_signup_page_ids,
|
268
|
+
interval: interval,
|
269
|
+
interval_unit: interval_unit,
|
270
|
+
additional_properties: hash)
|
281
271
|
end
|
282
272
|
|
283
273
|
# Validates an instance of the object from a given value.
|
@@ -83,15 +83,9 @@ module AdvancedBilling
|
|
83
83
|
]
|
84
84
|
end
|
85
85
|
|
86
|
-
def initialize(street
|
87
|
-
|
88
|
-
|
89
|
-
state = SKIP,
|
90
|
-
zip = SKIP,
|
91
|
-
country = SKIP,
|
92
|
-
name = SKIP,
|
93
|
-
phone = SKIP,
|
94
|
-
additional_properties = {})
|
86
|
+
def initialize(street: SKIP, line2: SKIP, city: SKIP, state: SKIP,
|
87
|
+
zip: SKIP, country: SKIP, name: SKIP, phone: SKIP,
|
88
|
+
additional_properties: {})
|
95
89
|
@street = street unless street == SKIP
|
96
90
|
@line2 = line2 unless line2 == SKIP
|
97
91
|
@city = city unless city == SKIP
|
@@ -125,15 +119,15 @@ module AdvancedBilling
|
|
125
119
|
names.each_value { |k| hash.delete(k) }
|
126
120
|
|
127
121
|
# Create object from extracted values.
|
128
|
-
OrganizationAddress.new(street,
|
129
|
-
line2,
|
130
|
-
city,
|
131
|
-
state,
|
132
|
-
zip,
|
133
|
-
country,
|
134
|
-
name,
|
135
|
-
phone,
|
136
|
-
hash)
|
122
|
+
OrganizationAddress.new(street: street,
|
123
|
+
line2: line2,
|
124
|
+
city: city,
|
125
|
+
state: state,
|
126
|
+
zip: zip,
|
127
|
+
country: country,
|
128
|
+
name: name,
|
129
|
+
phone: phone,
|
130
|
+
additional_properties: hash)
|
137
131
|
end
|
138
132
|
end
|
139
133
|
end
|
@@ -38,9 +38,7 @@ module AdvancedBilling
|
|
38
38
|
[]
|
39
39
|
end
|
40
40
|
|
41
|
-
def initialize(uid
|
42
|
-
number = SKIP,
|
43
|
-
additional_properties = {})
|
41
|
+
def initialize(uid: SKIP, number: SKIP, additional_properties: {})
|
44
42
|
@uid = uid unless uid == SKIP
|
45
43
|
@number = number unless number == SKIP
|
46
44
|
|
@@ -62,9 +60,9 @@ module AdvancedBilling
|
|
62
60
|
names.each_value { |k| hash.delete(k) }
|
63
61
|
|
64
62
|
# Create object from extracted values.
|
65
|
-
OriginInvoice.new(uid,
|
66
|
-
number,
|
67
|
-
hash)
|
63
|
+
OriginInvoice.new(uid: uid,
|
64
|
+
number: number,
|
65
|
+
additional_properties: hash)
|
68
66
|
end
|
69
67
|
|
70
68
|
# Validates an instance of the object from a given value.
|
@@ -41,9 +41,7 @@ module AdvancedBilling
|
|
41
41
|
[]
|
42
42
|
end
|
43
43
|
|
44
|
-
def initialize(pricing_scheme
|
45
|
-
prices = SKIP,
|
46
|
-
additional_properties = {})
|
44
|
+
def initialize(pricing_scheme:, prices: SKIP, additional_properties: {})
|
47
45
|
@pricing_scheme = pricing_scheme
|
48
46
|
@prices = prices unless prices == SKIP
|
49
47
|
|
@@ -75,9 +73,9 @@ module AdvancedBilling
|
|
75
73
|
names.each_value { |k| hash.delete(k) }
|
76
74
|
|
77
75
|
# Create object from extracted values.
|
78
|
-
OveragePricing.new(pricing_scheme,
|
79
|
-
prices,
|
80
|
-
hash)
|
76
|
+
OveragePricing.new(pricing_scheme: pricing_scheme,
|
77
|
+
prices: prices,
|
78
|
+
additional_properties: hash)
|
81
79
|
end
|
82
80
|
|
83
81
|
# Validates an instance of the object from a given value.
|
@@ -67,12 +67,9 @@ module AdvancedBilling
|
|
67
67
|
[]
|
68
68
|
end
|
69
69
|
|
70
|
-
def initialize(activated_at
|
71
|
-
|
72
|
-
|
73
|
-
expires_at = SKIP,
|
74
|
-
current_period_starts_at = SKIP,
|
75
|
-
additional_properties = {})
|
70
|
+
def initialize(activated_at: SKIP, canceled_at: SKIP,
|
71
|
+
cancellation_message: SKIP, expires_at: SKIP,
|
72
|
+
current_period_starts_at: SKIP, additional_properties: {})
|
76
73
|
@activated_at = activated_at unless activated_at == SKIP
|
77
74
|
@canceled_at = canceled_at unless canceled_at == SKIP
|
78
75
|
@cancellation_message = cancellation_message unless cancellation_message == SKIP
|
@@ -117,12 +114,12 @@ module AdvancedBilling
|
|
117
114
|
names.each_value { |k| hash.delete(k) }
|
118
115
|
|
119
116
|
# Create object from extracted values.
|
120
|
-
OverrideSubscription.new(activated_at,
|
121
|
-
canceled_at,
|
122
|
-
cancellation_message,
|
123
|
-
expires_at,
|
124
|
-
current_period_starts_at,
|
125
|
-
hash)
|
117
|
+
OverrideSubscription.new(activated_at: activated_at,
|
118
|
+
canceled_at: canceled_at,
|
119
|
+
cancellation_message: cancellation_message,
|
120
|
+
expires_at: expires_at,
|
121
|
+
current_period_starts_at: current_period_starts_at,
|
122
|
+
additional_properties: hash)
|
126
123
|
end
|
127
124
|
|
128
125
|
def to_custom_activated_at
|
@@ -30,8 +30,7 @@ module AdvancedBilling
|
|
30
30
|
[]
|
31
31
|
end
|
32
32
|
|
33
|
-
def initialize(subscription
|
34
|
-
additional_properties = {})
|
33
|
+
def initialize(subscription:, additional_properties: {})
|
35
34
|
@subscription = subscription
|
36
35
|
|
37
36
|
# Add additional model properties to the instance.
|
@@ -51,8 +50,8 @@ module AdvancedBilling
|
|
51
50
|
names.each_value { |k| hash.delete(k) }
|
52
51
|
|
53
52
|
# Create object from extracted values.
|
54
|
-
OverrideSubscriptionRequest.new(subscription,
|
55
|
-
hash)
|
53
|
+
OverrideSubscriptionRequest.new(subscription: subscription,
|
54
|
+
additional_properties: hash)
|
56
55
|
end
|
57
56
|
end
|
58
57
|
end
|
@@ -56,12 +56,8 @@ module AdvancedBilling
|
|
56
56
|
[]
|
57
57
|
end
|
58
58
|
|
59
|
-
def initialize(total_count
|
60
|
-
|
61
|
-
total_pages = SKIP,
|
62
|
-
per_page = SKIP,
|
63
|
-
metadata = SKIP,
|
64
|
-
additional_properties = {})
|
59
|
+
def initialize(total_count: SKIP, current_page: SKIP, total_pages: SKIP,
|
60
|
+
per_page: SKIP, metadata: SKIP, additional_properties: {})
|
65
61
|
@total_count = total_count unless total_count == SKIP
|
66
62
|
@current_page = current_page unless current_page == SKIP
|
67
63
|
@total_pages = total_pages unless total_pages == SKIP
|
@@ -98,12 +94,12 @@ module AdvancedBilling
|
|
98
94
|
names.each_value { |k| hash.delete(k) }
|
99
95
|
|
100
96
|
# Create object from extracted values.
|
101
|
-
PaginatedMetadata.new(total_count,
|
102
|
-
current_page,
|
103
|
-
total_pages,
|
104
|
-
per_page,
|
105
|
-
metadata,
|
106
|
-
hash)
|
97
|
+
PaginatedMetadata.new(total_count: total_count,
|
98
|
+
current_page: current_page,
|
99
|
+
total_pages: total_pages,
|
100
|
+
per_page: per_page,
|
101
|
+
metadata: metadata,
|
102
|
+
additional_properties: hash)
|
107
103
|
end
|
108
104
|
end
|
109
105
|
end
|
@@ -52,11 +52,8 @@ module AdvancedBilling
|
|
52
52
|
[]
|
53
53
|
end
|
54
54
|
|
55
|
-
def initialize(invoice_id
|
56
|
-
|
57
|
-
due_amount = SKIP,
|
58
|
-
paid_amount = SKIP,
|
59
|
-
additional_properties = {})
|
55
|
+
def initialize(invoice_id: SKIP, status: SKIP, due_amount: SKIP,
|
56
|
+
paid_amount: SKIP, additional_properties: {})
|
60
57
|
@invoice_id = invoice_id unless invoice_id == SKIP
|
61
58
|
@status = status unless status == SKIP
|
62
59
|
@due_amount = due_amount unless due_amount == SKIP
|
@@ -82,11 +79,11 @@ module AdvancedBilling
|
|
82
79
|
names.each_value { |k| hash.delete(k) }
|
83
80
|
|
84
81
|
# Create object from extracted values.
|
85
|
-
PaidInvoice.new(invoice_id,
|
86
|
-
status,
|
87
|
-
due_amount,
|
88
|
-
paid_amount,
|
89
|
-
hash)
|
82
|
+
PaidInvoice.new(invoice_id: invoice_id,
|
83
|
+
status: status,
|
84
|
+
due_amount: due_amount,
|
85
|
+
paid_amount: paid_amount,
|
86
|
+
additional_properties: hash)
|
90
87
|
end
|
91
88
|
end
|
92
89
|
end
|
@@ -32,8 +32,7 @@ module AdvancedBilling
|
|
32
32
|
[]
|
33
33
|
end
|
34
34
|
|
35
|
-
def initialize(hold
|
36
|
-
additional_properties = {})
|
35
|
+
def initialize(hold: SKIP, additional_properties: {})
|
37
36
|
@hold = hold unless hold == SKIP
|
38
37
|
|
39
38
|
# 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
|
-
PauseRequest.new(hold,
|
57
|
-
hash)
|
55
|
+
PauseRequest.new(hold: hold,
|
56
|
+
additional_properties: hash)
|
58
57
|
end
|
59
58
|
end
|
60
59
|
end
|
@@ -136,25 +136,12 @@ module AdvancedBilling
|
|
136
136
|
[]
|
137
137
|
end
|
138
138
|
|
139
|
-
def initialize(first_name
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
address = SKIP,
|
146
|
-
address_2 = SKIP,
|
147
|
-
city = SKIP,
|
148
|
-
state = SKIP,
|
149
|
-
zip = SKIP,
|
150
|
-
country = SKIP,
|
151
|
-
phone = SKIP,
|
152
|
-
locale = SKIP,
|
153
|
-
vat_number = SKIP,
|
154
|
-
tax_exempt = SKIP,
|
155
|
-
tax_exempt_reason = SKIP,
|
156
|
-
metafields = SKIP,
|
157
|
-
additional_properties = {})
|
139
|
+
def initialize(first_name: SKIP, last_name: SKIP, email: SKIP,
|
140
|
+
cc_emails: SKIP, organization: SKIP, reference: SKIP,
|
141
|
+
address: SKIP, address_2: SKIP, city: SKIP, state: SKIP,
|
142
|
+
zip: SKIP, country: SKIP, phone: SKIP, locale: SKIP,
|
143
|
+
vat_number: SKIP, tax_exempt: SKIP, tax_exempt_reason: SKIP,
|
144
|
+
metafields: SKIP, additional_properties: {})
|
158
145
|
@first_name = first_name unless first_name == SKIP
|
159
146
|
@last_name = last_name unless last_name == SKIP
|
160
147
|
@email = email unless email == SKIP
|
@@ -209,25 +196,25 @@ module AdvancedBilling
|
|
209
196
|
names.each_value { |k| hash.delete(k) }
|
210
197
|
|
211
198
|
# Create object from extracted values.
|
212
|
-
PayerAttributes.new(first_name,
|
213
|
-
last_name,
|
214
|
-
email,
|
215
|
-
cc_emails,
|
216
|
-
organization,
|
217
|
-
reference,
|
218
|
-
address,
|
219
|
-
address_2,
|
220
|
-
city,
|
221
|
-
state,
|
222
|
-
zip,
|
223
|
-
country,
|
224
|
-
phone,
|
225
|
-
locale,
|
226
|
-
vat_number,
|
227
|
-
tax_exempt,
|
228
|
-
tax_exempt_reason,
|
229
|
-
metafields,
|
230
|
-
hash)
|
199
|
+
PayerAttributes.new(first_name: first_name,
|
200
|
+
last_name: last_name,
|
201
|
+
email: email,
|
202
|
+
cc_emails: cc_emails,
|
203
|
+
organization: organization,
|
204
|
+
reference: reference,
|
205
|
+
address: address,
|
206
|
+
address_2: address_2,
|
207
|
+
city: city,
|
208
|
+
state: state,
|
209
|
+
zip: zip,
|
210
|
+
country: country,
|
211
|
+
phone: phone,
|
212
|
+
locale: locale,
|
213
|
+
vat_number: vat_number,
|
214
|
+
tax_exempt: tax_exempt,
|
215
|
+
tax_exempt_reason: tax_exempt_reason,
|
216
|
+
metafields: metafields,
|
217
|
+
additional_properties: hash)
|
231
218
|
end
|
232
219
|
|
233
220
|
# 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(last_name
|
48
|
-
|
49
|
-
email = SKIP,
|
50
|
-
additional_properties = {})
|
47
|
+
def initialize(last_name: SKIP, first_name: SKIP, email: SKIP,
|
48
|
+
additional_properties: {})
|
51
49
|
@last_name = last_name unless last_name == SKIP
|
52
50
|
@first_name = first_name unless first_name == SKIP
|
53
51
|
@email = email unless email == SKIP
|
@@ -71,10 +69,10 @@ module AdvancedBilling
|
|
71
69
|
names.each_value { |k| hash.delete(k) }
|
72
70
|
|
73
71
|
# Create object from extracted values.
|
74
|
-
PayerError.new(last_name,
|
75
|
-
first_name,
|
76
|
-
email,
|
77
|
-
hash)
|
72
|
+
PayerError.new(last_name: last_name,
|
73
|
+
first_name: first_name,
|
74
|
+
email: email,
|
75
|
+
additional_properties: hash)
|
78
76
|
end
|
79
77
|
end
|
80
78
|
end
|
@@ -35,9 +35,7 @@ module AdvancedBilling
|
|
35
35
|
[]
|
36
36
|
end
|
37
37
|
|
38
|
-
def initialize(previous_value
|
39
|
-
current_value = nil,
|
40
|
-
additional_properties = {})
|
38
|
+
def initialize(previous_value:, current_value:, additional_properties: {})
|
41
39
|
@previous_value = previous_value
|
42
40
|
@current_value = current_value
|
43
41
|
|
@@ -60,9 +58,9 @@ module AdvancedBilling
|
|
60
58
|
names.each_value { |k| hash.delete(k) }
|
61
59
|
|
62
60
|
# Create object from extracted values.
|
63
|
-
PaymentCollectionMethodChanged.new(previous_value,
|
64
|
-
current_value,
|
65
|
-
hash)
|
61
|
+
PaymentCollectionMethodChanged.new(previous_value: previous_value,
|
62
|
+
current_value: current_value,
|
63
|
+
additional_properties: hash)
|
66
64
|
end
|
67
65
|
|
68
66
|
# Validates an instance of the object from a given value.
|
@@ -50,11 +50,8 @@ module AdvancedBilling
|
|
50
50
|
[]
|
51
51
|
end
|
52
52
|
|
53
|
-
def initialize(id
|
54
|
-
|
55
|
-
success = SKIP,
|
56
|
-
memo = SKIP,
|
57
|
-
additional_properties = {})
|
53
|
+
def initialize(id: SKIP, amount_in_cents: SKIP, success: SKIP, memo: SKIP,
|
54
|
+
additional_properties: {})
|
58
55
|
@id = id unless id == SKIP
|
59
56
|
@amount_in_cents = amount_in_cents unless amount_in_cents == SKIP
|
60
57
|
@success = success unless success == SKIP
|
@@ -81,11 +78,11 @@ module AdvancedBilling
|
|
81
78
|
names.each_value { |k| hash.delete(k) }
|
82
79
|
|
83
80
|
# Create object from extracted values.
|
84
|
-
PaymentForAllocation.new(id,
|
85
|
-
amount_in_cents,
|
86
|
-
success,
|
87
|
-
memo,
|
88
|
-
hash)
|
81
|
+
PaymentForAllocation.new(id: id,
|
82
|
+
amount_in_cents: amount_in_cents,
|
83
|
+
success: success,
|
84
|
+
memo: memo,
|
85
|
+
additional_properties: hash)
|
89
86
|
end
|
90
87
|
|
91
88
|
# 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(type
|
34
|
-
additional_properties = {})
|
33
|
+
def initialize(type:, additional_properties: {})
|
35
34
|
@type = type
|
36
35
|
|
37
36
|
# Add additional model properties to the instance.
|
@@ -51,8 +50,8 @@ module AdvancedBilling
|
|
51
50
|
names.each_value { |k| hash.delete(k) }
|
52
51
|
|
53
52
|
# Create object from extracted values.
|
54
|
-
PaymentMethodApplePay.new(type,
|
55
|
-
hash)
|
53
|
+
PaymentMethodApplePay.new(type: type,
|
54
|
+
additional_properties: hash)
|
56
55
|
end
|
57
56
|
|
58
57
|
# Validates an instance of the object from a given value.
|
@@ -40,10 +40,8 @@ module AdvancedBilling
|
|
40
40
|
[]
|
41
41
|
end
|
42
42
|
|
43
|
-
def initialize(masked_account_number
|
44
|
-
|
45
|
-
type = nil,
|
46
|
-
additional_properties = {})
|
43
|
+
def initialize(masked_account_number:, masked_routing_number:, type:,
|
44
|
+
additional_properties: {})
|
47
45
|
@masked_account_number = masked_account_number
|
48
46
|
@masked_routing_number = masked_routing_number
|
49
47
|
@type = type
|
@@ -69,10 +67,10 @@ module AdvancedBilling
|
|
69
67
|
names.each_value { |k| hash.delete(k) }
|
70
68
|
|
71
69
|
# Create object from extracted values.
|
72
|
-
PaymentMethodBankAccount.new(masked_account_number,
|
73
|
-
masked_routing_number,
|
74
|
-
type,
|
75
|
-
hash)
|
70
|
+
PaymentMethodBankAccount.new(masked_account_number: masked_account_number,
|
71
|
+
masked_routing_number: masked_routing_number,
|
72
|
+
type: type,
|
73
|
+
additional_properties: hash)
|
76
74
|
end
|
77
75
|
|
78
76
|
# Validates an instance of the object from a given value.
|
@@ -55,12 +55,9 @@ module AdvancedBilling
|
|
55
55
|
]
|
56
56
|
end
|
57
57
|
|
58
|
-
def initialize(card_brand
|
59
|
-
|
60
|
-
|
61
|
-
card_expiration = SKIP,
|
62
|
-
last_four = SKIP,
|
63
|
-
additional_properties = {})
|
58
|
+
def initialize(card_brand:, masked_card_number:, type:,
|
59
|
+
card_expiration: SKIP, last_four: SKIP,
|
60
|
+
additional_properties: {})
|
64
61
|
@card_brand = card_brand
|
65
62
|
@card_expiration = card_expiration unless card_expiration == SKIP
|
66
63
|
@last_four = last_four unless last_four == SKIP
|
@@ -90,12 +87,12 @@ module AdvancedBilling
|
|
90
87
|
names.each_value { |k| hash.delete(k) }
|
91
88
|
|
92
89
|
# Create object from extracted values.
|
93
|
-
PaymentMethodCreditCard.new(card_brand,
|
94
|
-
masked_card_number,
|
95
|
-
type,
|
96
|
-
card_expiration,
|
97
|
-
last_four,
|
98
|
-
hash)
|
90
|
+
PaymentMethodCreditCard.new(card_brand: card_brand,
|
91
|
+
masked_card_number: masked_card_number,
|
92
|
+
type: type,
|
93
|
+
card_expiration: card_expiration,
|
94
|
+
last_four: last_four,
|
95
|
+
additional_properties: hash)
|
99
96
|
end
|
100
97
|
|
101
98
|
# Validates an instance of the object from a given value.
|
@@ -48,11 +48,7 @@ module AdvancedBilling
|
|
48
48
|
]
|
49
49
|
end
|
50
50
|
|
51
|
-
def initialize(details
|
52
|
-
kind = nil,
|
53
|
-
memo = nil,
|
54
|
-
type = nil,
|
55
|
-
additional_properties = {})
|
51
|
+
def initialize(details:, kind:, memo:, type:, additional_properties: {})
|
56
52
|
@details = details
|
57
53
|
@kind = kind
|
58
54
|
@memo = memo
|
@@ -78,11 +74,11 @@ module AdvancedBilling
|
|
78
74
|
names.each_value { |k| hash.delete(k) }
|
79
75
|
|
80
76
|
# Create object from extracted values.
|
81
|
-
PaymentMethodExternal.new(details,
|
82
|
-
kind,
|
83
|
-
memo,
|
84
|
-
type,
|
85
|
-
hash)
|
77
|
+
PaymentMethodExternal.new(details: details,
|
78
|
+
kind: kind,
|
79
|
+
memo: memo,
|
80
|
+
type: type,
|
81
|
+
additional_properties: hash)
|
86
82
|
end
|
87
83
|
|
88
84
|
# Validates an instance of the object from a given value.
|