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
@@ -65,14 +65,9 @@ module AdvancedBilling
|
|
65
65
|
[]
|
66
66
|
end
|
67
67
|
|
68
|
-
def initialize(name
|
69
|
-
|
70
|
-
|
71
|
-
description = SKIP,
|
72
|
-
product_price_point_id = SKIP,
|
73
|
-
components = SKIP,
|
74
|
-
coupons = SKIP,
|
75
|
-
additional_properties = {})
|
68
|
+
def initialize(name:, handle:, product_id:, description: SKIP,
|
69
|
+
product_price_point_id: SKIP, components: SKIP,
|
70
|
+
coupons: SKIP, additional_properties: {})
|
76
71
|
@name = name
|
77
72
|
@handle = handle
|
78
73
|
@description = description unless description == SKIP
|
@@ -114,14 +109,14 @@ module AdvancedBilling
|
|
114
109
|
names.each_value { |k| hash.delete(k) }
|
115
110
|
|
116
111
|
# Create object from extracted values.
|
117
|
-
CreateOffer.new(name,
|
118
|
-
handle,
|
119
|
-
product_id,
|
120
|
-
description,
|
121
|
-
product_price_point_id,
|
122
|
-
components,
|
123
|
-
coupons,
|
124
|
-
hash)
|
112
|
+
CreateOffer.new(name: name,
|
113
|
+
handle: handle,
|
114
|
+
product_id: product_id,
|
115
|
+
description: description,
|
116
|
+
product_price_point_id: product_price_point_id,
|
117
|
+
components: components,
|
118
|
+
coupons: coupons,
|
119
|
+
additional_properties: hash)
|
125
120
|
end
|
126
121
|
end
|
127
122
|
end
|
@@ -44,10 +44,8 @@ module AdvancedBilling
|
|
44
44
|
[]
|
45
45
|
end
|
46
46
|
|
47
|
-
def initialize(component_id
|
48
|
-
|
49
|
-
starting_quantity = SKIP,
|
50
|
-
additional_properties = {})
|
47
|
+
def initialize(component_id: SKIP, price_point_id: SKIP,
|
48
|
+
starting_quantity: SKIP, additional_properties: {})
|
51
49
|
@component_id = component_id unless component_id == SKIP
|
52
50
|
@price_point_id = price_point_id unless price_point_id == SKIP
|
53
51
|
@starting_quantity = starting_quantity unless starting_quantity == SKIP
|
@@ -73,10 +71,10 @@ module AdvancedBilling
|
|
73
71
|
names.each_value { |k| hash.delete(k) }
|
74
72
|
|
75
73
|
# Create object from extracted values.
|
76
|
-
CreateOfferComponent.new(component_id,
|
77
|
-
price_point_id,
|
78
|
-
starting_quantity,
|
79
|
-
hash)
|
74
|
+
CreateOfferComponent.new(component_id: component_id,
|
75
|
+
price_point_id: price_point_id,
|
76
|
+
starting_quantity: starting_quantity,
|
77
|
+
additional_properties: hash)
|
80
78
|
end
|
81
79
|
end
|
82
80
|
end
|
@@ -30,8 +30,7 @@ module AdvancedBilling
|
|
30
30
|
[]
|
31
31
|
end
|
32
32
|
|
33
|
-
def initialize(offer
|
34
|
-
additional_properties = {})
|
33
|
+
def initialize(offer:, additional_properties: {})
|
35
34
|
@offer = offer
|
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
|
-
CreateOfferRequest.new(offer,
|
55
|
-
hash)
|
53
|
+
CreateOfferRequest.new(offer: offer,
|
54
|
+
additional_properties: hash)
|
56
55
|
end
|
57
56
|
end
|
58
57
|
end
|
@@ -30,8 +30,7 @@ module AdvancedBilling
|
|
30
30
|
[]
|
31
31
|
end
|
32
32
|
|
33
|
-
def initialize(on_off_component
|
34
|
-
additional_properties = {})
|
33
|
+
def initialize(on_off_component:, additional_properties: {})
|
35
34
|
@on_off_component = on_off_component
|
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
|
-
CreateOnOffComponent.new(on_off_component,
|
56
|
-
hash)
|
54
|
+
CreateOnOffComponent.new(on_off_component: on_off_component,
|
55
|
+
additional_properties: hash)
|
57
56
|
end
|
58
57
|
end
|
59
58
|
end
|
@@ -46,10 +46,8 @@ module AdvancedBilling
|
|
46
46
|
[]
|
47
47
|
end
|
48
48
|
|
49
|
-
def initialize(coupon
|
50
|
-
|
51
|
-
restricted_components = SKIP,
|
52
|
-
additional_properties = {})
|
49
|
+
def initialize(coupon: SKIP, restricted_products: SKIP,
|
50
|
+
restricted_components: SKIP, additional_properties: {})
|
53
51
|
@coupon = coupon unless coupon == SKIP
|
54
52
|
@restricted_products = restricted_products unless restricted_products == SKIP
|
55
53
|
@restricted_components = restricted_components unless restricted_components == SKIP
|
@@ -77,10 +75,10 @@ module AdvancedBilling
|
|
77
75
|
names.each_value { |k| hash.delete(k) }
|
78
76
|
|
79
77
|
# Create object from extracted values.
|
80
|
-
CreateOrUpdateCoupon.new(coupon,
|
81
|
-
restricted_products,
|
82
|
-
restricted_components,
|
83
|
-
hash)
|
78
|
+
CreateOrUpdateCoupon.new(coupon: coupon,
|
79
|
+
restricted_products: restricted_products,
|
80
|
+
restricted_components: restricted_components,
|
81
|
+
additional_properties: hash)
|
84
82
|
end
|
85
83
|
|
86
84
|
# Validates an instance of the object from a given value.
|
@@ -35,9 +35,7 @@ module AdvancedBilling
|
|
35
35
|
[]
|
36
36
|
end
|
37
37
|
|
38
|
-
def initialize(url
|
39
|
-
webhook_subscriptions = nil,
|
40
|
-
additional_properties = {})
|
38
|
+
def initialize(url:, webhook_subscriptions:, additional_properties: {})
|
41
39
|
@url = url
|
42
40
|
@webhook_subscriptions = webhook_subscriptions
|
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
|
-
CreateOrUpdateEndpoint.new(url,
|
64
|
-
webhook_subscriptions,
|
65
|
-
hash)
|
61
|
+
CreateOrUpdateEndpoint.new(url: url,
|
62
|
+
webhook_subscriptions: webhook_subscriptions,
|
63
|
+
additional_properties: hash)
|
66
64
|
end
|
67
65
|
end
|
68
66
|
end
|
@@ -30,8 +30,7 @@ module AdvancedBilling
|
|
30
30
|
[]
|
31
31
|
end
|
32
32
|
|
33
|
-
def initialize(endpoint
|
34
|
-
additional_properties = {})
|
33
|
+
def initialize(endpoint:, additional_properties: {})
|
35
34
|
@endpoint = endpoint
|
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
|
-
CreateOrUpdateEndpointRequest.new(endpoint,
|
55
|
-
hash)
|
53
|
+
CreateOrUpdateEndpointRequest.new(endpoint: endpoint,
|
54
|
+
additional_properties: hash)
|
56
55
|
end
|
57
56
|
end
|
58
57
|
end
|
@@ -129,20 +129,14 @@ module AdvancedBilling
|
|
129
129
|
[]
|
130
130
|
end
|
131
131
|
|
132
|
-
def initialize(name
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
stackable = SKIP,
|
141
|
-
compounding_strategy = SKIP,
|
142
|
-
exclude_mid_period_allocations = SKIP,
|
143
|
-
apply_on_cancel_at_end_of_period = SKIP,
|
144
|
-
apply_on_subscription_expiration = SKIP,
|
145
|
-
additional_properties = {})
|
132
|
+
def initialize(name:, code:, amount_in_cents:, description: SKIP,
|
133
|
+
allow_negative_balance: SKIP, recurring: SKIP,
|
134
|
+
end_date: SKIP, product_family_id: SKIP, stackable: SKIP,
|
135
|
+
compounding_strategy: SKIP,
|
136
|
+
exclude_mid_period_allocations: SKIP,
|
137
|
+
apply_on_cancel_at_end_of_period: SKIP,
|
138
|
+
apply_on_subscription_expiration: SKIP,
|
139
|
+
additional_properties: {})
|
146
140
|
@name = name
|
147
141
|
@code = code
|
148
142
|
@description = description unless description == SKIP
|
@@ -206,20 +200,20 @@ module AdvancedBilling
|
|
206
200
|
names.each_value { |k| hash.delete(k) }
|
207
201
|
|
208
202
|
# Create object from extracted values.
|
209
|
-
CreateOrUpdateFlatAmountCoupon.new(name,
|
210
|
-
code,
|
211
|
-
amount_in_cents,
|
212
|
-
description,
|
213
|
-
allow_negative_balance,
|
214
|
-
recurring,
|
215
|
-
end_date,
|
216
|
-
product_family_id,
|
217
|
-
stackable,
|
218
|
-
compounding_strategy,
|
219
|
-
exclude_mid_period_allocations,
|
220
|
-
apply_on_cancel_at_end_of_period,
|
221
|
-
apply_on_subscription_expiration,
|
222
|
-
hash)
|
203
|
+
CreateOrUpdateFlatAmountCoupon.new(name: name,
|
204
|
+
code: code,
|
205
|
+
amount_in_cents: amount_in_cents,
|
206
|
+
description: description,
|
207
|
+
allow_negative_balance: allow_negative_balance,
|
208
|
+
recurring: recurring,
|
209
|
+
end_date: end_date,
|
210
|
+
product_family_id: product_family_id,
|
211
|
+
stackable: stackable,
|
212
|
+
compounding_strategy: compounding_strategy,
|
213
|
+
exclude_mid_period_allocations: exclude_mid_period_allocations,
|
214
|
+
apply_on_cancel_at_end_of_period: apply_on_cancel_at_end_of_period,
|
215
|
+
apply_on_subscription_expiration: apply_on_subscription_expiration,
|
216
|
+
additional_properties: hash)
|
223
217
|
end
|
224
218
|
|
225
219
|
def to_custom_end_date
|
@@ -129,20 +129,14 @@ module AdvancedBilling
|
|
129
129
|
[]
|
130
130
|
end
|
131
131
|
|
132
|
-
def initialize(name
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
stackable = SKIP,
|
141
|
-
compounding_strategy = SKIP,
|
142
|
-
exclude_mid_period_allocations = SKIP,
|
143
|
-
apply_on_cancel_at_end_of_period = SKIP,
|
144
|
-
apply_on_subscription_expiration = SKIP,
|
145
|
-
additional_properties = {})
|
132
|
+
def initialize(name:, code:, percentage:, description: SKIP,
|
133
|
+
allow_negative_balance: SKIP, recurring: SKIP,
|
134
|
+
end_date: SKIP, product_family_id: SKIP, stackable: SKIP,
|
135
|
+
compounding_strategy: SKIP,
|
136
|
+
exclude_mid_period_allocations: SKIP,
|
137
|
+
apply_on_cancel_at_end_of_period: SKIP,
|
138
|
+
apply_on_subscription_expiration: SKIP,
|
139
|
+
additional_properties: {})
|
146
140
|
@name = name
|
147
141
|
@code = code
|
148
142
|
@description = description unless description == SKIP
|
@@ -207,20 +201,20 @@ module AdvancedBilling
|
|
207
201
|
names.each_value { |k| hash.delete(k) }
|
208
202
|
|
209
203
|
# Create object from extracted values.
|
210
|
-
CreateOrUpdatePercentageCoupon.new(name,
|
211
|
-
code,
|
212
|
-
percentage,
|
213
|
-
description,
|
214
|
-
allow_negative_balance,
|
215
|
-
recurring,
|
216
|
-
end_date,
|
217
|
-
product_family_id,
|
218
|
-
stackable,
|
219
|
-
compounding_strategy,
|
220
|
-
exclude_mid_period_allocations,
|
221
|
-
apply_on_cancel_at_end_of_period,
|
222
|
-
apply_on_subscription_expiration,
|
223
|
-
hash)
|
204
|
+
CreateOrUpdatePercentageCoupon.new(name: name,
|
205
|
+
code: code,
|
206
|
+
percentage: percentage,
|
207
|
+
description: description,
|
208
|
+
allow_negative_balance: allow_negative_balance,
|
209
|
+
recurring: recurring,
|
210
|
+
end_date: end_date,
|
211
|
+
product_family_id: product_family_id,
|
212
|
+
stackable: stackable,
|
213
|
+
compounding_strategy: compounding_strategy,
|
214
|
+
exclude_mid_period_allocations: exclude_mid_period_allocations,
|
215
|
+
apply_on_cancel_at_end_of_period: apply_on_cancel_at_end_of_period,
|
216
|
+
apply_on_subscription_expiration: apply_on_subscription_expiration,
|
217
|
+
additional_properties: hash)
|
224
218
|
end
|
225
219
|
|
226
220
|
def to_custom_end_date
|
@@ -131,23 +131,14 @@ module AdvancedBilling
|
|
131
131
|
[]
|
132
132
|
end
|
133
133
|
|
134
|
-
def initialize(name
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
trial_price_in_cents = SKIP,
|
143
|
-
trial_interval = SKIP,
|
144
|
-
trial_interval_unit = SKIP,
|
145
|
-
trial_type = SKIP,
|
146
|
-
expiration_interval = SKIP,
|
147
|
-
expiration_interval_unit = SKIP,
|
148
|
-
auto_create_signup_page = SKIP,
|
149
|
-
tax_code = SKIP,
|
150
|
-
additional_properties = {})
|
134
|
+
def initialize(name:, description:, price_in_cents:, interval:,
|
135
|
+
interval_unit:, handle: SKIP, accounting_code: SKIP,
|
136
|
+
require_credit_card: SKIP, trial_price_in_cents: SKIP,
|
137
|
+
trial_interval: SKIP, trial_interval_unit: SKIP,
|
138
|
+
trial_type: SKIP, expiration_interval: SKIP,
|
139
|
+
expiration_interval_unit: SKIP,
|
140
|
+
auto_create_signup_page: SKIP, tax_code: SKIP,
|
141
|
+
additional_properties: {})
|
151
142
|
@name = name
|
152
143
|
@handle = handle unless handle == SKIP
|
153
144
|
@description = description
|
@@ -206,23 +197,23 @@ module AdvancedBilling
|
|
206
197
|
names.each_value { |k| hash.delete(k) }
|
207
198
|
|
208
199
|
# Create object from extracted values.
|
209
|
-
CreateOrUpdateProduct.new(name,
|
210
|
-
description,
|
211
|
-
price_in_cents,
|
212
|
-
interval,
|
213
|
-
interval_unit,
|
214
|
-
handle,
|
215
|
-
accounting_code,
|
216
|
-
require_credit_card,
|
217
|
-
trial_price_in_cents,
|
218
|
-
trial_interval,
|
219
|
-
trial_interval_unit,
|
220
|
-
trial_type,
|
221
|
-
expiration_interval,
|
222
|
-
expiration_interval_unit,
|
223
|
-
auto_create_signup_page,
|
224
|
-
tax_code,
|
225
|
-
hash)
|
200
|
+
CreateOrUpdateProduct.new(name: name,
|
201
|
+
description: description,
|
202
|
+
price_in_cents: price_in_cents,
|
203
|
+
interval: interval,
|
204
|
+
interval_unit: interval_unit,
|
205
|
+
handle: handle,
|
206
|
+
accounting_code: accounting_code,
|
207
|
+
require_credit_card: require_credit_card,
|
208
|
+
trial_price_in_cents: trial_price_in_cents,
|
209
|
+
trial_interval: trial_interval,
|
210
|
+
trial_interval_unit: trial_interval_unit,
|
211
|
+
trial_type: trial_type,
|
212
|
+
expiration_interval: expiration_interval,
|
213
|
+
expiration_interval_unit: expiration_interval_unit,
|
214
|
+
auto_create_signup_page: auto_create_signup_page,
|
215
|
+
tax_code: tax_code,
|
216
|
+
additional_properties: hash)
|
226
217
|
end
|
227
218
|
end
|
228
219
|
end
|
@@ -30,8 +30,7 @@ module AdvancedBilling
|
|
30
30
|
[]
|
31
31
|
end
|
32
32
|
|
33
|
-
def initialize(product
|
34
|
-
additional_properties = {})
|
33
|
+
def initialize(product:, additional_properties: {})
|
35
34
|
@product = product
|
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
|
-
CreateOrUpdateProductRequest.new(product,
|
55
|
-
hash)
|
53
|
+
CreateOrUpdateProductRequest.new(product: product,
|
54
|
+
additional_properties: hash)
|
56
55
|
end
|
57
56
|
end
|
58
57
|
end
|
@@ -44,10 +44,8 @@ module AdvancedBilling
|
|
44
44
|
[]
|
45
45
|
end
|
46
46
|
|
47
|
-
def initialize(unit_price
|
48
|
-
|
49
|
-
ending_quantity = SKIP,
|
50
|
-
additional_properties = {})
|
47
|
+
def initialize(unit_price:, starting_quantity: SKIP, ending_quantity: SKIP,
|
48
|
+
additional_properties: {})
|
51
49
|
@starting_quantity = starting_quantity unless starting_quantity == SKIP
|
52
50
|
@ending_quantity = ending_quantity unless ending_quantity == SKIP
|
53
51
|
@unit_price = unit_price
|
@@ -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
|
-
CreateOrUpdateSegmentPrice.new(unit_price,
|
79
|
-
starting_quantity,
|
80
|
-
ending_quantity,
|
81
|
-
hash)
|
76
|
+
CreateOrUpdateSegmentPrice.new(unit_price: unit_price,
|
77
|
+
starting_quantity: starting_quantity,
|
78
|
+
ending_quantity: ending_quantity,
|
79
|
+
additional_properties: hash)
|
82
80
|
end
|
83
81
|
|
84
82
|
# Validates an instance of the object from a given value.
|
@@ -45,11 +45,8 @@ module AdvancedBilling
|
|
45
45
|
[]
|
46
46
|
end
|
47
47
|
|
48
|
-
def initialize(amount
|
49
|
-
|
50
|
-
payment_details = nil,
|
51
|
-
payment_method = nil,
|
52
|
-
additional_properties = {})
|
48
|
+
def initialize(amount:, memo:, payment_details:, payment_method:,
|
49
|
+
additional_properties: {})
|
53
50
|
@amount = amount
|
54
51
|
@memo = memo
|
55
52
|
@payment_details = payment_details
|
@@ -77,11 +74,11 @@ module AdvancedBilling
|
|
77
74
|
names.each_value { |k| hash.delete(k) }
|
78
75
|
|
79
76
|
# Create object from extracted values.
|
80
|
-
CreatePayment.new(amount,
|
81
|
-
memo,
|
82
|
-
payment_details,
|
83
|
-
payment_method,
|
84
|
-
hash)
|
77
|
+
CreatePayment.new(amount: amount,
|
78
|
+
memo: memo,
|
79
|
+
payment_details: payment_details,
|
80
|
+
payment_method: payment_method,
|
81
|
+
additional_properties: hash)
|
85
82
|
end
|
86
83
|
end
|
87
84
|
end
|
@@ -261,39 +261,20 @@ module AdvancedBilling
|
|
261
261
|
]
|
262
262
|
end
|
263
263
|
|
264
|
-
def initialize(chargify_token
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
billing_country = SKIP,
|
279
|
-
billing_zip = SKIP,
|
280
|
-
current_vault = SKIP,
|
281
|
-
vault_token = SKIP,
|
282
|
-
customer_vault_token = SKIP,
|
283
|
-
customer_id = SKIP,
|
284
|
-
paypal_email = SKIP,
|
285
|
-
payment_method_nonce = SKIP,
|
286
|
-
gateway_handle = SKIP,
|
287
|
-
cvv = SKIP,
|
288
|
-
bank_name = SKIP,
|
289
|
-
bank_iban = SKIP,
|
290
|
-
bank_routing_number = SKIP,
|
291
|
-
bank_account_number = SKIP,
|
292
|
-
bank_branch_code = SKIP,
|
293
|
-
bank_account_type = SKIP,
|
294
|
-
bank_account_holder_type = SKIP,
|
295
|
-
last_four = SKIP,
|
296
|
-
additional_properties = {})
|
264
|
+
def initialize(chargify_token: SKIP, id: SKIP, payment_type: SKIP,
|
265
|
+
first_name: SKIP, last_name: SKIP, masked_card_number: SKIP,
|
266
|
+
full_number: SKIP, card_type: SKIP, expiration_month: SKIP,
|
267
|
+
expiration_year: SKIP, billing_address: SKIP,
|
268
|
+
billing_address_2: SKIP, billing_city: SKIP,
|
269
|
+
billing_state: SKIP, billing_country: SKIP,
|
270
|
+
billing_zip: SKIP, current_vault: SKIP, vault_token: SKIP,
|
271
|
+
customer_vault_token: SKIP, customer_id: SKIP,
|
272
|
+
paypal_email: SKIP, payment_method_nonce: SKIP,
|
273
|
+
gateway_handle: SKIP, cvv: SKIP, bank_name: SKIP,
|
274
|
+
bank_iban: SKIP, bank_routing_number: SKIP,
|
275
|
+
bank_account_number: SKIP, bank_branch_code: SKIP,
|
276
|
+
bank_account_type: SKIP, bank_account_holder_type: SKIP,
|
277
|
+
last_four: SKIP, additional_properties: {})
|
297
278
|
@chargify_token = chargify_token unless chargify_token == SKIP
|
298
279
|
@id = id unless id == SKIP
|
299
280
|
@payment_type = payment_type unless payment_type == SKIP
|
@@ -392,39 +373,39 @@ module AdvancedBilling
|
|
392
373
|
names.each_value { |k| hash.delete(k) }
|
393
374
|
|
394
375
|
# Create object from extracted values.
|
395
|
-
CreatePaymentProfile.new(chargify_token,
|
396
|
-
id,
|
397
|
-
payment_type,
|
398
|
-
first_name,
|
399
|
-
last_name,
|
400
|
-
masked_card_number,
|
401
|
-
full_number,
|
402
|
-
card_type,
|
403
|
-
expiration_month,
|
404
|
-
expiration_year,
|
405
|
-
billing_address,
|
406
|
-
billing_address_2,
|
407
|
-
billing_city,
|
408
|
-
billing_state,
|
409
|
-
billing_country,
|
410
|
-
billing_zip,
|
411
|
-
current_vault,
|
412
|
-
vault_token,
|
413
|
-
customer_vault_token,
|
414
|
-
customer_id,
|
415
|
-
paypal_email,
|
416
|
-
payment_method_nonce,
|
417
|
-
gateway_handle,
|
418
|
-
cvv,
|
419
|
-
bank_name,
|
420
|
-
bank_iban,
|
421
|
-
bank_routing_number,
|
422
|
-
bank_account_number,
|
423
|
-
bank_branch_code,
|
424
|
-
bank_account_type,
|
425
|
-
bank_account_holder_type,
|
426
|
-
last_four,
|
427
|
-
hash)
|
376
|
+
CreatePaymentProfile.new(chargify_token: chargify_token,
|
377
|
+
id: id,
|
378
|
+
payment_type: payment_type,
|
379
|
+
first_name: first_name,
|
380
|
+
last_name: last_name,
|
381
|
+
masked_card_number: masked_card_number,
|
382
|
+
full_number: full_number,
|
383
|
+
card_type: card_type,
|
384
|
+
expiration_month: expiration_month,
|
385
|
+
expiration_year: expiration_year,
|
386
|
+
billing_address: billing_address,
|
387
|
+
billing_address_2: billing_address_2,
|
388
|
+
billing_city: billing_city,
|
389
|
+
billing_state: billing_state,
|
390
|
+
billing_country: billing_country,
|
391
|
+
billing_zip: billing_zip,
|
392
|
+
current_vault: current_vault,
|
393
|
+
vault_token: vault_token,
|
394
|
+
customer_vault_token: customer_vault_token,
|
395
|
+
customer_id: customer_id,
|
396
|
+
paypal_email: paypal_email,
|
397
|
+
payment_method_nonce: payment_method_nonce,
|
398
|
+
gateway_handle: gateway_handle,
|
399
|
+
cvv: cvv,
|
400
|
+
bank_name: bank_name,
|
401
|
+
bank_iban: bank_iban,
|
402
|
+
bank_routing_number: bank_routing_number,
|
403
|
+
bank_account_number: bank_account_number,
|
404
|
+
bank_branch_code: bank_branch_code,
|
405
|
+
bank_account_type: bank_account_type,
|
406
|
+
bank_account_holder_type: bank_account_holder_type,
|
407
|
+
last_four: last_four,
|
408
|
+
additional_properties: hash)
|
428
409
|
end
|
429
410
|
|
430
411
|
# Validates an instance of the object from a given value.
|
@@ -30,8 +30,7 @@ module AdvancedBilling
|
|
30
30
|
[]
|
31
31
|
end
|
32
32
|
|
33
|
-
def initialize(payment_profile
|
34
|
-
additional_properties = {})
|
33
|
+
def initialize(payment_profile:, additional_properties: {})
|
35
34
|
@payment_profile = payment_profile
|
36
35
|
|
37
36
|
# Add additional model properties to the instance.
|
@@ -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
|
-
CreatePaymentProfileRequest.new(payment_profile,
|
56
|
-
hash)
|
54
|
+
CreatePaymentProfileRequest.new(payment_profile: payment_profile,
|
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(prepaid_usage_component
|
34
|
-
additional_properties = {})
|
33
|
+
def initialize(prepaid_usage_component:, additional_properties: {})
|
35
34
|
@prepaid_usage_component = prepaid_usage_component
|
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
|
-
CreatePrepaidComponent.new(prepaid_usage_component,
|
56
|
-
hash)
|
54
|
+
CreatePrepaidComponent.new(prepaid_usage_component: prepaid_usage_component,
|
55
|
+
additional_properties: hash)
|
57
56
|
end
|
58
57
|
end
|
59
58
|
end
|