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
@@ -69,14 +69,10 @@ module AdvancedBilling
|
|
69
69
|
[]
|
70
70
|
end
|
71
71
|
|
72
|
-
def initialize(component_id
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
quantity = SKIP,
|
77
|
-
price_point_id = SKIP,
|
78
|
-
custom_price = SKIP,
|
79
|
-
additional_properties = {})
|
72
|
+
def initialize(component_id: SKIP, enabled: SKIP, unit_balance: SKIP,
|
73
|
+
allocated_quantity: SKIP, quantity: SKIP,
|
74
|
+
price_point_id: SKIP, custom_price: SKIP,
|
75
|
+
additional_properties: {})
|
80
76
|
@component_id = component_id unless component_id == SKIP
|
81
77
|
@enabled = enabled unless enabled == SKIP
|
82
78
|
@unit_balance = unit_balance unless unit_balance == SKIP
|
@@ -114,14 +110,14 @@ module AdvancedBilling
|
|
114
110
|
names.each_value { |k| hash.delete(k) }
|
115
111
|
|
116
112
|
# Create object from extracted values.
|
117
|
-
CreateSubscriptionComponent.new(component_id,
|
118
|
-
enabled,
|
119
|
-
unit_balance,
|
120
|
-
allocated_quantity,
|
121
|
-
quantity,
|
122
|
-
price_point_id,
|
123
|
-
custom_price,
|
124
|
-
hash)
|
113
|
+
CreateSubscriptionComponent.new(component_id: component_id,
|
114
|
+
enabled: enabled,
|
115
|
+
unit_balance: unit_balance,
|
116
|
+
allocated_quantity: allocated_quantity,
|
117
|
+
quantity: quantity,
|
118
|
+
price_point_id: price_point_id,
|
119
|
+
custom_price: custom_price,
|
120
|
+
additional_properties: hash)
|
125
121
|
end
|
126
122
|
|
127
123
|
# Validates an instance of the object from a given value.
|
@@ -37,9 +37,8 @@ module AdvancedBilling
|
|
37
37
|
[]
|
38
38
|
end
|
39
39
|
|
40
|
-
def initialize(subscription_id
|
41
|
-
|
42
|
-
additional_properties = {})
|
40
|
+
def initialize(subscription_id:, member_ids: SKIP,
|
41
|
+
additional_properties: {})
|
43
42
|
@subscription_id = subscription_id
|
44
43
|
@member_ids = member_ids unless member_ids == SKIP
|
45
44
|
|
@@ -62,9 +61,9 @@ module AdvancedBilling
|
|
62
61
|
names.each_value { |k| hash.delete(k) }
|
63
62
|
|
64
63
|
# Create object from extracted values.
|
65
|
-
CreateSubscriptionGroup.new(subscription_id,
|
66
|
-
member_ids,
|
67
|
-
hash)
|
64
|
+
CreateSubscriptionGroup.new(subscription_id: subscription_id,
|
65
|
+
member_ids: member_ids,
|
66
|
+
additional_properties: hash)
|
68
67
|
end
|
69
68
|
end
|
70
69
|
end
|
@@ -30,8 +30,7 @@ module AdvancedBilling
|
|
30
30
|
[]
|
31
31
|
end
|
32
32
|
|
33
|
-
def initialize(subscription_group
|
34
|
-
additional_properties = {})
|
33
|
+
def initialize(subscription_group:, additional_properties: {})
|
35
34
|
@subscription_group = subscription_group
|
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
|
-
CreateSubscriptionGroupRequest.new(subscription_group,
|
56
|
-
hash)
|
54
|
+
CreateSubscriptionGroupRequest.new(subscription_group: subscription_group,
|
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(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
|
-
CreateSubscriptionRequest.new(subscription,
|
55
|
-
hash)
|
53
|
+
CreateSubscriptionRequest.new(subscription: subscription,
|
54
|
+
additional_properties: hash)
|
56
55
|
end
|
57
56
|
end
|
58
57
|
end
|
@@ -56,11 +56,8 @@ module AdvancedBilling
|
|
56
56
|
[]
|
57
57
|
end
|
58
58
|
|
59
|
-
def initialize(quantity
|
60
|
-
|
61
|
-
memo = SKIP,
|
62
|
-
billing_schedule = SKIP,
|
63
|
-
additional_properties = {})
|
59
|
+
def initialize(quantity: SKIP, price_point_id: SKIP, memo: SKIP,
|
60
|
+
billing_schedule: SKIP, additional_properties: {})
|
64
61
|
@quantity = quantity unless quantity == SKIP
|
65
62
|
@price_point_id = price_point_id unless price_point_id == SKIP
|
66
63
|
@memo = memo unless memo == SKIP
|
@@ -88,11 +85,11 @@ module AdvancedBilling
|
|
88
85
|
names.each_value { |k| hash.delete(k) }
|
89
86
|
|
90
87
|
# Create object from extracted values.
|
91
|
-
CreateUsage.new(quantity,
|
92
|
-
price_point_id,
|
93
|
-
memo,
|
94
|
-
billing_schedule,
|
95
|
-
hash)
|
88
|
+
CreateUsage.new(quantity: quantity,
|
89
|
+
price_point_id: price_point_id,
|
90
|
+
memo: memo,
|
91
|
+
billing_schedule: billing_schedule,
|
92
|
+
additional_properties: hash)
|
96
93
|
end
|
97
94
|
end
|
98
95
|
end
|
@@ -30,8 +30,7 @@ module AdvancedBilling
|
|
30
30
|
[]
|
31
31
|
end
|
32
32
|
|
33
|
-
def initialize(usage
|
34
|
-
additional_properties = {})
|
33
|
+
def initialize(usage:, additional_properties: {})
|
35
34
|
@usage = usage
|
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
|
-
CreateUsageRequest.new(usage,
|
55
|
-
hash)
|
53
|
+
CreateUsageRequest.new(usage: usage,
|
54
|
+
additional_properties: hash)
|
56
55
|
end
|
57
56
|
end
|
58
57
|
end
|
@@ -69,14 +69,10 @@ module AdvancedBilling
|
|
69
69
|
[]
|
70
70
|
end
|
71
71
|
|
72
|
-
def initialize(id
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
created_at = SKIP,
|
77
|
-
starting_balance_in_cents = SKIP,
|
78
|
-
ending_balance_in_cents = SKIP,
|
79
|
-
additional_properties = {})
|
72
|
+
def initialize(id: SKIP, subscription_id: SKIP, amount_in_cents: SKIP,
|
73
|
+
memo: SKIP, created_at: SKIP,
|
74
|
+
starting_balance_in_cents: SKIP,
|
75
|
+
ending_balance_in_cents: SKIP, additional_properties: {})
|
80
76
|
@id = id unless id == SKIP
|
81
77
|
@subscription_id = subscription_id unless subscription_id == SKIP
|
82
78
|
@amount_in_cents = amount_in_cents unless amount_in_cents == SKIP
|
@@ -119,14 +115,14 @@ module AdvancedBilling
|
|
119
115
|
names.each_value { |k| hash.delete(k) }
|
120
116
|
|
121
117
|
# Create object from extracted values.
|
122
|
-
CreatedPrepayment.new(id,
|
123
|
-
subscription_id,
|
124
|
-
amount_in_cents,
|
125
|
-
memo,
|
126
|
-
created_at,
|
127
|
-
starting_balance_in_cents,
|
128
|
-
ending_balance_in_cents,
|
129
|
-
hash)
|
118
|
+
CreatedPrepayment.new(id: id,
|
119
|
+
subscription_id: subscription_id,
|
120
|
+
amount_in_cents: amount_in_cents,
|
121
|
+
memo: memo,
|
122
|
+
created_at: created_at,
|
123
|
+
starting_balance_in_cents: starting_balance_in_cents,
|
124
|
+
ending_balance_in_cents: ending_balance_in_cents,
|
125
|
+
additional_properties: hash)
|
130
126
|
end
|
131
127
|
|
132
128
|
def to_custom_created_at
|
@@ -53,12 +53,9 @@ module AdvancedBilling
|
|
53
53
|
[]
|
54
54
|
end
|
55
55
|
|
56
|
-
def initialize(reason
|
57
|
-
|
58
|
-
|
59
|
-
currency_code = nil,
|
60
|
-
at_time = nil,
|
61
|
-
additional_properties = {})
|
56
|
+
def initialize(reason:, service_credit_account_balance_in_cents:,
|
57
|
+
service_credit_balance_change_in_cents:, currency_code:,
|
58
|
+
at_time:, additional_properties: {})
|
62
59
|
@reason = reason
|
63
60
|
@service_credit_account_balance_in_cents = service_credit_account_balance_in_cents
|
64
61
|
@service_credit_balance_change_in_cents = service_credit_balance_change_in_cents
|
@@ -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
|
-
CreditAccountBalanceChanged.new(reason,
|
94
|
-
service_credit_account_balance_in_cents,
|
95
|
-
service_credit_balance_change_in_cents,
|
96
|
-
currency_code,
|
97
|
-
at_time,
|
98
|
-
hash)
|
90
|
+
CreditAccountBalanceChanged.new(reason: reason,
|
91
|
+
service_credit_account_balance_in_cents: service_credit_account_balance_in_cents,
|
92
|
+
service_credit_balance_change_in_cents: service_credit_balance_change_in_cents,
|
93
|
+
currency_code: currency_code,
|
94
|
+
at_time: at_time,
|
95
|
+
additional_properties: hash)
|
99
96
|
end
|
100
97
|
|
101
98
|
def to_custom_at_time
|
@@ -44,10 +44,8 @@ module AdvancedBilling
|
|
44
44
|
[]
|
45
45
|
end
|
46
46
|
|
47
|
-
def initialize(full_number
|
48
|
-
|
49
|
-
expiration_year = SKIP,
|
50
|
-
additional_properties = {})
|
47
|
+
def initialize(full_number: SKIP, expiration_month: SKIP,
|
48
|
+
expiration_year: SKIP, additional_properties: {})
|
51
49
|
@full_number = full_number unless full_number == SKIP
|
52
50
|
@expiration_month = expiration_month unless expiration_month == SKIP
|
53
51
|
@expiration_year = expiration_year unless expiration_year == 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
|
-
CreditCardAttributes.new(full_number,
|
77
|
-
expiration_month,
|
78
|
-
expiration_year,
|
79
|
-
hash)
|
74
|
+
CreditCardAttributes.new(full_number: full_number,
|
75
|
+
expiration_month: expiration_month,
|
76
|
+
expiration_year: expiration_year,
|
77
|
+
additional_properties: hash)
|
80
78
|
end
|
81
79
|
|
82
80
|
# Validates an instance of the object from a given value.
|
@@ -180,29 +180,16 @@ module AdvancedBilling
|
|
180
180
|
]
|
181
181
|
end
|
182
182
|
|
183
|
-
def initialize(masked_card_number
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
billing_address = SKIP,
|
194
|
-
billing_city = SKIP,
|
195
|
-
billing_state = SKIP,
|
196
|
-
billing_zip = SKIP,
|
197
|
-
billing_country = SKIP,
|
198
|
-
customer_vault_token = SKIP,
|
199
|
-
billing_address_2 = SKIP,
|
200
|
-
payment_type = SKIP,
|
201
|
-
disabled = SKIP,
|
202
|
-
chargify_token = SKIP,
|
203
|
-
site_gateway_setting_id = SKIP,
|
204
|
-
gateway_handle = SKIP,
|
205
|
-
additional_properties = {})
|
183
|
+
def initialize(masked_card_number:, id: SKIP, first_name: SKIP,
|
184
|
+
last_name: SKIP, card_type: SKIP, expiration_month: SKIP,
|
185
|
+
expiration_year: SKIP, customer_id: SKIP,
|
186
|
+
current_vault: SKIP, vault_token: SKIP,
|
187
|
+
billing_address: SKIP, billing_city: SKIP,
|
188
|
+
billing_state: SKIP, billing_zip: SKIP,
|
189
|
+
billing_country: SKIP, customer_vault_token: SKIP,
|
190
|
+
billing_address_2: SKIP, payment_type: SKIP, disabled: SKIP,
|
191
|
+
chargify_token: SKIP, site_gateway_setting_id: SKIP,
|
192
|
+
gateway_handle: SKIP, additional_properties: {})
|
206
193
|
@id = id unless id == SKIP
|
207
194
|
@first_name = first_name unless first_name == SKIP
|
208
195
|
@last_name = last_name unless last_name == SKIP
|
@@ -274,29 +261,29 @@ module AdvancedBilling
|
|
274
261
|
names.each_value { |k| hash.delete(k) }
|
275
262
|
|
276
263
|
# Create object from extracted values.
|
277
|
-
CreditCardPaymentProfile.new(masked_card_number,
|
278
|
-
id,
|
279
|
-
first_name,
|
280
|
-
last_name,
|
281
|
-
card_type,
|
282
|
-
expiration_month,
|
283
|
-
expiration_year,
|
284
|
-
customer_id,
|
285
|
-
current_vault,
|
286
|
-
vault_token,
|
287
|
-
billing_address,
|
288
|
-
billing_city,
|
289
|
-
billing_state,
|
290
|
-
billing_zip,
|
291
|
-
billing_country,
|
292
|
-
customer_vault_token,
|
293
|
-
billing_address_2,
|
294
|
-
payment_type,
|
295
|
-
disabled,
|
296
|
-
chargify_token,
|
297
|
-
site_gateway_setting_id,
|
298
|
-
gateway_handle,
|
299
|
-
hash)
|
264
|
+
CreditCardPaymentProfile.new(masked_card_number: masked_card_number,
|
265
|
+
id: id,
|
266
|
+
first_name: first_name,
|
267
|
+
last_name: last_name,
|
268
|
+
card_type: card_type,
|
269
|
+
expiration_month: expiration_month,
|
270
|
+
expiration_year: expiration_year,
|
271
|
+
customer_id: customer_id,
|
272
|
+
current_vault: current_vault,
|
273
|
+
vault_token: vault_token,
|
274
|
+
billing_address: billing_address,
|
275
|
+
billing_city: billing_city,
|
276
|
+
billing_state: billing_state,
|
277
|
+
billing_zip: billing_zip,
|
278
|
+
billing_country: billing_country,
|
279
|
+
customer_vault_token: customer_vault_token,
|
280
|
+
billing_address_2: billing_address_2,
|
281
|
+
payment_type: payment_type,
|
282
|
+
disabled: disabled,
|
283
|
+
chargify_token: chargify_token,
|
284
|
+
site_gateway_setting_id: site_gateway_setting_id,
|
285
|
+
gateway_handle: gateway_handle,
|
286
|
+
additional_properties: hash)
|
300
287
|
end
|
301
288
|
|
302
289
|
# Validates an instance of the object from a given value.
|
@@ -223,34 +223,16 @@ module AdvancedBilling
|
|
223
223
|
[]
|
224
224
|
end
|
225
225
|
|
226
|
-
def initialize(uid
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
memo = SKIP,
|
237
|
-
seller = SKIP,
|
238
|
-
customer = SKIP,
|
239
|
-
billing_address = SKIP,
|
240
|
-
shipping_address = SKIP,
|
241
|
-
subtotal_amount = SKIP,
|
242
|
-
discount_amount = SKIP,
|
243
|
-
tax_amount = SKIP,
|
244
|
-
total_amount = SKIP,
|
245
|
-
applied_amount = SKIP,
|
246
|
-
remaining_amount = SKIP,
|
247
|
-
line_items = SKIP,
|
248
|
-
discounts = SKIP,
|
249
|
-
taxes = SKIP,
|
250
|
-
applications = SKIP,
|
251
|
-
refunds = SKIP,
|
252
|
-
origin_invoices = SKIP,
|
253
|
-
additional_properties = {})
|
226
|
+
def initialize(uid: SKIP, site_id: SKIP, customer_id: SKIP,
|
227
|
+
subscription_id: SKIP, number: SKIP, sequence_number: SKIP,
|
228
|
+
issue_date: SKIP, applied_date: SKIP, status: SKIP,
|
229
|
+
currency: SKIP, memo: SKIP, seller: SKIP, customer: SKIP,
|
230
|
+
billing_address: SKIP, shipping_address: SKIP,
|
231
|
+
subtotal_amount: SKIP, discount_amount: SKIP,
|
232
|
+
tax_amount: SKIP, total_amount: SKIP, applied_amount: SKIP,
|
233
|
+
remaining_amount: SKIP, line_items: SKIP, discounts: SKIP,
|
234
|
+
taxes: SKIP, applications: SKIP, refunds: SKIP,
|
235
|
+
origin_invoices: SKIP, additional_properties: {})
|
254
236
|
@uid = uid unless uid == SKIP
|
255
237
|
@site_id = site_id unless site_id == SKIP
|
256
238
|
@customer_id = customer_id unless customer_id == SKIP
|
@@ -384,34 +366,34 @@ module AdvancedBilling
|
|
384
366
|
names.each_value { |k| hash.delete(k) }
|
385
367
|
|
386
368
|
# Create object from extracted values.
|
387
|
-
CreditNote.new(uid,
|
388
|
-
site_id,
|
389
|
-
customer_id,
|
390
|
-
subscription_id,
|
391
|
-
number,
|
392
|
-
sequence_number,
|
393
|
-
issue_date,
|
394
|
-
applied_date,
|
395
|
-
status,
|
396
|
-
currency,
|
397
|
-
memo,
|
398
|
-
seller,
|
399
|
-
customer,
|
400
|
-
billing_address,
|
401
|
-
shipping_address,
|
402
|
-
subtotal_amount,
|
403
|
-
discount_amount,
|
404
|
-
tax_amount,
|
405
|
-
total_amount,
|
406
|
-
applied_amount,
|
407
|
-
remaining_amount,
|
408
|
-
line_items,
|
409
|
-
discounts,
|
410
|
-
taxes,
|
411
|
-
applications,
|
412
|
-
refunds,
|
413
|
-
origin_invoices,
|
414
|
-
hash)
|
369
|
+
CreditNote.new(uid: uid,
|
370
|
+
site_id: site_id,
|
371
|
+
customer_id: customer_id,
|
372
|
+
subscription_id: subscription_id,
|
373
|
+
number: number,
|
374
|
+
sequence_number: sequence_number,
|
375
|
+
issue_date: issue_date,
|
376
|
+
applied_date: applied_date,
|
377
|
+
status: status,
|
378
|
+
currency: currency,
|
379
|
+
memo: memo,
|
380
|
+
seller: seller,
|
381
|
+
customer: customer,
|
382
|
+
billing_address: billing_address,
|
383
|
+
shipping_address: shipping_address,
|
384
|
+
subtotal_amount: subtotal_amount,
|
385
|
+
discount_amount: discount_amount,
|
386
|
+
tax_amount: tax_amount,
|
387
|
+
total_amount: total_amount,
|
388
|
+
applied_amount: applied_amount,
|
389
|
+
remaining_amount: remaining_amount,
|
390
|
+
line_items: line_items,
|
391
|
+
discounts: discounts,
|
392
|
+
taxes: taxes,
|
393
|
+
applications: applications,
|
394
|
+
refunds: refunds,
|
395
|
+
origin_invoices: origin_invoices,
|
396
|
+
additional_properties: hash)
|
415
397
|
end
|
416
398
|
|
417
399
|
# Validates an instance of the object from a given value.
|
@@ -57,12 +57,8 @@ module AdvancedBilling
|
|
57
57
|
[]
|
58
58
|
end
|
59
59
|
|
60
|
-
def initialize(uid
|
61
|
-
|
62
|
-
invoice_uid = SKIP,
|
63
|
-
memo = SKIP,
|
64
|
-
applied_amount = SKIP,
|
65
|
-
additional_properties = {})
|
60
|
+
def initialize(uid: SKIP, transaction_time: SKIP, invoice_uid: SKIP,
|
61
|
+
memo: SKIP, applied_amount: SKIP, additional_properties: {})
|
66
62
|
@uid = uid unless uid == SKIP
|
67
63
|
@transaction_time = transaction_time unless transaction_time == SKIP
|
68
64
|
@invoice_uid = invoice_uid unless invoice_uid == SKIP
|
@@ -95,12 +91,12 @@ module AdvancedBilling
|
|
95
91
|
names.each_value { |k| hash.delete(k) }
|
96
92
|
|
97
93
|
# Create object from extracted values.
|
98
|
-
CreditNoteApplication.new(uid,
|
99
|
-
transaction_time,
|
100
|
-
invoice_uid,
|
101
|
-
memo,
|
102
|
-
applied_amount,
|
103
|
-
hash)
|
94
|
+
CreditNoteApplication.new(uid: uid,
|
95
|
+
transaction_time: transaction_time,
|
96
|
+
invoice_uid: invoice_uid,
|
97
|
+
memo: memo,
|
98
|
+
applied_amount: applied_amount,
|
99
|
+
additional_properties: hash)
|
104
100
|
end
|
105
101
|
|
106
102
|
def to_custom_transaction_time
|
@@ -175,25 +175,14 @@ module AdvancedBilling
|
|
175
175
|
]
|
176
176
|
end
|
177
177
|
|
178
|
-
def initialize(uid
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
total_amount = SKIP,
|
187
|
-
tiered_unit_price = SKIP,
|
188
|
-
period_range_start = SKIP,
|
189
|
-
period_range_end = SKIP,
|
190
|
-
product_id = SKIP,
|
191
|
-
product_version = SKIP,
|
192
|
-
component_id = SKIP,
|
193
|
-
price_point_id = SKIP,
|
194
|
-
billing_schedule_item_id = SKIP,
|
195
|
-
custom_item = SKIP,
|
196
|
-
additional_properties = {})
|
178
|
+
def initialize(uid: SKIP, title: SKIP, description: SKIP, quantity: SKIP,
|
179
|
+
unit_price: SKIP, subtotal_amount: SKIP,
|
180
|
+
discount_amount: SKIP, tax_amount: SKIP, total_amount: SKIP,
|
181
|
+
tiered_unit_price: SKIP, period_range_start: SKIP,
|
182
|
+
period_range_end: SKIP, product_id: SKIP,
|
183
|
+
product_version: SKIP, component_id: SKIP,
|
184
|
+
price_point_id: SKIP, billing_schedule_item_id: SKIP,
|
185
|
+
custom_item: SKIP, additional_properties: {})
|
197
186
|
@uid = uid unless uid == SKIP
|
198
187
|
@title = title unless title == SKIP
|
199
188
|
@description = description unless description == SKIP
|
@@ -255,25 +244,25 @@ module AdvancedBilling
|
|
255
244
|
names.each_value { |k| hash.delete(k) }
|
256
245
|
|
257
246
|
# Create object from extracted values.
|
258
|
-
CreditNoteLineItem.new(uid,
|
259
|
-
title,
|
260
|
-
description,
|
261
|
-
quantity,
|
262
|
-
unit_price,
|
263
|
-
subtotal_amount,
|
264
|
-
discount_amount,
|
265
|
-
tax_amount,
|
266
|
-
total_amount,
|
267
|
-
tiered_unit_price,
|
268
|
-
period_range_start,
|
269
|
-
period_range_end,
|
270
|
-
product_id,
|
271
|
-
product_version,
|
272
|
-
component_id,
|
273
|
-
price_point_id,
|
274
|
-
billing_schedule_item_id,
|
275
|
-
custom_item,
|
276
|
-
hash)
|
247
|
+
CreditNoteLineItem.new(uid: uid,
|
248
|
+
title: title,
|
249
|
+
description: description,
|
250
|
+
quantity: quantity,
|
251
|
+
unit_price: unit_price,
|
252
|
+
subtotal_amount: subtotal_amount,
|
253
|
+
discount_amount: discount_amount,
|
254
|
+
tax_amount: tax_amount,
|
255
|
+
total_amount: total_amount,
|
256
|
+
tiered_unit_price: tiered_unit_price,
|
257
|
+
period_range_start: period_range_start,
|
258
|
+
period_range_end: period_range_end,
|
259
|
+
product_id: product_id,
|
260
|
+
product_version: product_version,
|
261
|
+
component_id: component_id,
|
262
|
+
price_point_id: price_point_id,
|
263
|
+
billing_schedule_item_id: billing_schedule_item_id,
|
264
|
+
custom_item: custom_item,
|
265
|
+
additional_properties: hash)
|
277
266
|
end
|
278
267
|
|
279
268
|
# 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(credit_scheme
|
34
|
-
additional_properties = {})
|
33
|
+
def initialize(credit_scheme:, additional_properties: {})
|
35
34
|
@credit_scheme = credit_scheme
|
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
|
-
CreditSchemeRequest.new(credit_scheme,
|
55
|
-
hash)
|
53
|
+
CreditSchemeRequest.new(credit_scheme: credit_scheme,
|
54
|
+
additional_properties: hash)
|
56
55
|
end
|
57
56
|
end
|
58
57
|
end
|
@@ -62,13 +62,9 @@ module AdvancedBilling
|
|
62
62
|
[]
|
63
63
|
end
|
64
64
|
|
65
|
-
def initialize(id
|
66
|
-
|
67
|
-
|
68
|
-
formatted_price = SKIP,
|
69
|
-
product_price_point_id = SKIP,
|
70
|
-
role = SKIP,
|
71
|
-
additional_properties = {})
|
65
|
+
def initialize(id: SKIP, currency: SKIP, price: SKIP, formatted_price: SKIP,
|
66
|
+
product_price_point_id: SKIP, role: SKIP,
|
67
|
+
additional_properties: {})
|
72
68
|
@id = id unless id == SKIP
|
73
69
|
@currency = currency unless currency == SKIP
|
74
70
|
@price = price unless price == SKIP
|
@@ -100,13 +96,13 @@ module AdvancedBilling
|
|
100
96
|
names.each_value { |k| hash.delete(k) }
|
101
97
|
|
102
98
|
# Create object from extracted values.
|
103
|
-
CurrencyPrice.new(id,
|
104
|
-
currency,
|
105
|
-
price,
|
106
|
-
formatted_price,
|
107
|
-
product_price_point_id,
|
108
|
-
role,
|
109
|
-
hash)
|
99
|
+
CurrencyPrice.new(id: id,
|
100
|
+
currency: currency,
|
101
|
+
price: price,
|
102
|
+
formatted_price: formatted_price,
|
103
|
+
product_price_point_id: product_price_point_id,
|
104
|
+
role: role,
|
105
|
+
additional_properties: hash)
|
110
106
|
end
|
111
107
|
end
|
112
108
|
end
|