maxio-advanced-billing-sdk 1.0.0 → 2.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 +59 -297
- data/lib/advanced_billing/client.rb +21 -22
- data/lib/advanced_billing/configuration.rb +17 -18
- data/lib/advanced_billing/controllers/advance_invoice_controller.rb +8 -10
- data/lib/advanced_billing/controllers/api_exports_controller.rb +9 -9
- data/lib/advanced_billing/controllers/base_controller.rb +2 -1
- data/lib/advanced_billing/controllers/billing_portal_controller.rb +4 -4
- data/lib/advanced_billing/controllers/components_controller.rb +22 -22
- data/lib/advanced_billing/controllers/coupons_controller.rb +14 -14
- data/lib/advanced_billing/controllers/custom_fields_controller.rb +9 -9
- data/lib/advanced_billing/controllers/customers_controller.rb +7 -7
- data/lib/advanced_billing/controllers/events_based_billing_segments_controller.rb +6 -6
- data/lib/advanced_billing/controllers/events_controller.rb +3 -3
- data/lib/advanced_billing/controllers/insights_controller.rb +4 -4
- data/lib/advanced_billing/controllers/invoices_controller.rb +24 -20
- data/lib/advanced_billing/controllers/offers_controller.rb +5 -5
- data/lib/advanced_billing/controllers/payment_profiles_controller.rb +12 -12
- data/lib/advanced_billing/controllers/product_families_controller.rb +4 -4
- data/lib/advanced_billing/controllers/product_price_points_controller.rb +11 -11
- data/lib/advanced_billing/controllers/products_controller.rb +6 -6
- data/lib/advanced_billing/controllers/proforma_invoices_controller.rb +44 -25
- data/lib/advanced_billing/controllers/reason_codes_controller.rb +5 -5
- data/lib/advanced_billing/controllers/referral_codes_controller.rb +2 -2
- data/lib/advanced_billing/controllers/sales_commissions_controller.rb +3 -3
- data/lib/advanced_billing/controllers/sites_controller.rb +3 -3
- data/lib/advanced_billing/controllers/subscription_components_controller.rb +37 -31
- data/lib/advanced_billing/controllers/subscription_group_invoice_account_controller.rb +4 -4
- data/lib/advanced_billing/controllers/subscription_group_status_controller.rb +4 -4
- data/lib/advanced_billing/controllers/subscription_groups_controller.rb +23 -16
- data/lib/advanced_billing/controllers/subscription_invoice_account_controller.rb +11 -7
- data/lib/advanced_billing/controllers/subscription_notes_controller.rb +5 -5
- data/lib/advanced_billing/controllers/subscription_products_controller.rb +2 -2
- data/lib/advanced_billing/controllers/subscription_status_controller.rb +10 -10
- data/lib/advanced_billing/controllers/subscriptions_controller.rb +12 -12
- data/lib/advanced_billing/controllers/webhooks_controller.rb +8 -8
- data/lib/advanced_billing/exceptions/subscription_group_create_error_response_exception.rb +34 -0
- data/lib/advanced_billing/http/auth/basic_auth.rb +27 -6
- data/lib/advanced_billing/models/account_balance.rb +44 -3
- data/lib/advanced_billing/models/account_balances.rb +24 -2
- data/lib/advanced_billing/models/ach_agreement.rb +12 -2
- data/lib/advanced_billing/models/activate_subscription_request.rb +12 -2
- data/lib/advanced_billing/models/add_coupons_request.rb +12 -2
- data/lib/advanced_billing/models/add_subscription_to_a_group.rb +12 -2
- data/lib/advanced_billing/models/address_change.rb +12 -2
- data/lib/advanced_billing/models/agreement_acceptance.rb +12 -2
- data/lib/advanced_billing/models/allocate_components.rb +12 -2
- data/lib/advanced_billing/models/allocation.rb +56 -2
- data/lib/advanced_billing/models/allocation_expiration_date.rb +23 -4
- data/lib/advanced_billing/models/allocation_preview.rb +33 -6
- data/lib/advanced_billing/models/allocation_preview_item.rb +12 -2
- data/lib/advanced_billing/models/allocation_preview_line_item.rb +12 -2
- data/lib/advanced_billing/models/allocation_preview_response.rb +12 -2
- data/lib/advanced_billing/models/allocation_response.rb +12 -2
- data/lib/advanced_billing/models/allocation_settings.rb +12 -2
- data/lib/advanced_billing/models/applied_credit_note_data.rb +12 -2
- data/lib/advanced_billing/models/apply_credit_note_event_data.rb +12 -2
- data/lib/advanced_billing/models/apply_debit_note_event_data.rb +12 -2
- data/lib/advanced_billing/models/apply_payment_event_data.rb +12 -2
- data/lib/advanced_billing/models/attribute_error.rb +12 -2
- data/lib/advanced_billing/models/auto_resume.rb +12 -2
- data/lib/advanced_billing/models/bank_account_attributes.rb +12 -2
- data/lib/advanced_billing/models/bank_account_payment_profile.rb +13 -2
- data/lib/advanced_billing/models/bank_account_response.rb +12 -2
- data/lib/advanced_billing/models/bank_account_verification.rb +12 -2
- data/lib/advanced_billing/models/bank_account_verification_request.rb +12 -2
- data/lib/advanced_billing/models/base_refund_error.rb +12 -2
- data/lib/advanced_billing/models/base_string_error.rb +12 -2
- data/lib/advanced_billing/models/batch_job.rb +33 -6
- data/lib/advanced_billing/models/batch_job_response.rb +12 -2
- data/lib/advanced_billing/models/billing_address.rb +12 -2
- data/lib/advanced_billing/models/billing_manifest.rb +33 -6
- data/lib/advanced_billing/models/billing_manifest_item.rb +12 -2
- data/lib/advanced_billing/models/billing_schedule.rb +12 -2
- data/lib/advanced_billing/models/breakouts.rb +12 -2
- data/lib/advanced_billing/models/{bulk_component_s_price_point_assignment.rb → bulk_components_price_point_assignment.rb} +16 -6
- data/lib/advanced_billing/models/bulk_create_product_price_points_request.rb +12 -2
- data/lib/advanced_billing/models/bulk_create_product_price_points_response.rb +12 -2
- data/lib/advanced_billing/models/bulk_create_segments.rb +12 -2
- data/lib/advanced_billing/models/bulk_update_segments.rb +12 -2
- data/lib/advanced_billing/models/bulk_update_segments_item.rb +12 -2
- data/lib/advanced_billing/models/calendar_billing.rb +12 -2
- data/lib/advanced_billing/models/cancel_grouped_subscriptions_request.rb +12 -2
- data/lib/advanced_billing/models/cancellation_options.rb +12 -2
- data/lib/advanced_billing/models/cancellation_request.rb +12 -2
- data/lib/advanced_billing/models/change_invoice_collection_method_event_data.rb +12 -2
- data/lib/advanced_billing/models/chargify_ebb.rb +33 -6
- data/lib/advanced_billing/models/component.rb +22 -4
- data/lib/advanced_billing/models/component_allocation_change.rb +12 -2
- data/lib/advanced_billing/models/component_allocation_error_item.rb +12 -2
- data/lib/advanced_billing/models/component_cost_data.rb +12 -2
- data/lib/advanced_billing/models/component_cost_data_rate_tier.rb +12 -2
- data/lib/advanced_billing/models/component_currency_price.rb +12 -2
- data/lib/advanced_billing/models/component_currency_prices_response.rb +12 -2
- data/lib/advanced_billing/models/component_custom_price.rb +12 -2
- data/lib/advanced_billing/models/component_price.rb +12 -2
- data/lib/advanced_billing/models/component_price_point.rb +12 -2
- data/lib/advanced_billing/models/{component_s_price_point_assignment.rb → component_price_point_assignment.rb} +17 -7
- data/lib/advanced_billing/models/component_price_point_error_item.rb +12 -2
- data/lib/advanced_billing/models/component_price_point_item.rb +12 -2
- data/lib/advanced_billing/models/component_price_point_response.rb +12 -2
- data/lib/advanced_billing/models/component_price_points_response.rb +12 -2
- data/lib/advanced_billing/models/component_response.rb +12 -2
- data/lib/advanced_billing/models/consolidated_invoice.rb +12 -2
- data/lib/advanced_billing/models/count_response.rb +12 -2
- data/lib/advanced_billing/models/coupon.rb +78 -12
- data/lib/advanced_billing/models/coupon_currency.rb +12 -2
- data/lib/advanced_billing/models/coupon_currency_request.rb +12 -2
- data/lib/advanced_billing/models/coupon_currency_response.rb +12 -2
- data/lib/advanced_billing/models/coupon_response.rb +12 -2
- data/lib/advanced_billing/models/coupon_restriction.rb +12 -2
- data/lib/advanced_billing/models/coupon_subcodes.rb +12 -2
- data/lib/advanced_billing/models/coupon_subcodes_response.rb +12 -2
- data/lib/advanced_billing/models/coupon_usage.rb +12 -2
- data/lib/advanced_billing/models/create_allocation.rb +12 -2
- data/lib/advanced_billing/models/create_allocation_request.rb +12 -2
- data/lib/advanced_billing/models/create_component_price_point.rb +12 -2
- data/lib/advanced_billing/models/create_component_price_point_request.rb +12 -2
- data/lib/advanced_billing/models/create_component_price_points_request.rb +12 -2
- data/lib/advanced_billing/models/create_currency_price.rb +12 -2
- data/lib/advanced_billing/models/create_currency_prices_request.rb +12 -2
- data/lib/advanced_billing/models/create_customer.rb +12 -2
- data/lib/advanced_billing/models/create_customer_request.rb +12 -2
- data/lib/advanced_billing/models/create_ebb_component.rb +12 -2
- data/lib/advanced_billing/models/create_invoice.rb +12 -2
- data/lib/advanced_billing/models/create_invoice_address.rb +12 -2
- data/lib/advanced_billing/models/create_invoice_coupon.rb +12 -2
- data/lib/advanced_billing/models/create_invoice_item.rb +12 -2
- data/lib/advanced_billing/models/create_invoice_payment.rb +23 -2
- data/lib/advanced_billing/models/create_invoice_payment_application.rb +12 -2
- data/lib/advanced_billing/models/create_invoice_payment_request.rb +12 -2
- data/lib/advanced_billing/models/create_invoice_request.rb +12 -2
- data/lib/advanced_billing/models/create_metadata.rb +12 -2
- data/lib/advanced_billing/models/create_metadata_request.rb +12 -2
- data/lib/advanced_billing/models/create_metafield.rb +12 -2
- data/lib/advanced_billing/models/create_metafields_request.rb +12 -2
- data/lib/advanced_billing/models/create_metered_component.rb +12 -2
- data/lib/advanced_billing/models/create_multi_invoice_payment.rb +12 -2
- data/lib/advanced_billing/models/create_multi_invoice_payment_request.rb +12 -2
- data/lib/advanced_billing/models/create_offer.rb +12 -2
- data/lib/advanced_billing/models/create_offer_component.rb +12 -2
- data/lib/advanced_billing/models/create_offer_request.rb +12 -2
- data/lib/advanced_billing/models/create_on_off_component.rb +12 -2
- data/lib/advanced_billing/models/create_or_update_coupon.rb +12 -2
- data/lib/advanced_billing/models/{update_endpoint.rb → create_or_update_endpoint.rb} +14 -4
- data/lib/advanced_billing/models/{update_endpoint_request.rb → create_or_update_endpoint_request.rb} +15 -5
- data/lib/advanced_billing/models/create_or_update_flat_amount_coupon.rb +29 -2
- data/lib/advanced_billing/models/create_or_update_percentage_coupon.rb +29 -2
- data/lib/advanced_billing/models/create_or_update_product.rb +86 -4
- data/lib/advanced_billing/models/create_or_update_product_request.rb +12 -2
- data/lib/advanced_billing/models/create_or_update_segment_price.rb +12 -2
- data/lib/advanced_billing/models/create_payment.rb +14 -4
- data/lib/advanced_billing/models/create_payment_profile.rb +12 -2
- data/lib/advanced_billing/models/create_payment_profile_request.rb +12 -2
- data/lib/advanced_billing/models/create_prepaid_component.rb +12 -2
- data/lib/advanced_billing/models/create_prepaid_usage_component_price_point.rb +12 -2
- data/lib/advanced_billing/models/create_prepayment.rb +13 -3
- data/lib/advanced_billing/models/create_prepayment_method.rb +44 -0
- data/lib/advanced_billing/models/create_prepayment_request.rb +12 -2
- data/lib/advanced_billing/models/create_prepayment_response.rb +12 -2
- data/lib/advanced_billing/models/create_product_currency_price.rb +12 -2
- data/lib/advanced_billing/models/create_product_currency_prices_request.rb +12 -2
- data/lib/advanced_billing/models/create_product_family.rb +12 -2
- data/lib/advanced_billing/models/create_product_family_request.rb +12 -2
- data/lib/advanced_billing/models/create_product_price_point.rb +16 -6
- data/lib/advanced_billing/models/create_product_price_point_request.rb +12 -2
- data/lib/advanced_billing/models/create_quantity_based_component.rb +12 -2
- data/lib/advanced_billing/models/create_reason_code.rb +12 -2
- data/lib/advanced_billing/models/create_reason_code_request.rb +12 -2
- data/lib/advanced_billing/models/create_segment.rb +12 -2
- data/lib/advanced_billing/models/create_segment_request.rb +12 -2
- data/lib/advanced_billing/models/create_signup_proforma_preview_include.rb +20 -0
- data/lib/advanced_billing/models/create_subscription.rb +22 -4
- data/lib/advanced_billing/models/create_subscription_component.rb +12 -2
- data/lib/advanced_billing/models/create_subscription_group.rb +15 -20
- data/lib/advanced_billing/models/create_subscription_group_request.rb +12 -2
- data/lib/advanced_billing/models/create_subscription_request.rb +12 -2
- data/lib/advanced_billing/models/create_usage.rb +12 -2
- data/lib/advanced_billing/models/create_usage_request.rb +12 -2
- data/lib/advanced_billing/models/created_prepayment.rb +23 -4
- data/lib/advanced_billing/models/credit_account_balance_changed.rb +22 -5
- data/lib/advanced_billing/models/credit_card_attributes.rb +12 -2
- data/lib/advanced_billing/models/credit_card_payment_profile.rb +12 -2
- data/lib/advanced_billing/models/credit_note.rb +12 -2
- data/lib/advanced_billing/models/credit_note1.rb +12 -2
- data/lib/advanced_billing/models/credit_note_application.rb +23 -5
- data/lib/advanced_billing/models/credit_note_line_item.rb +38 -4
- data/lib/advanced_billing/models/credit_scheme_request.rb +12 -2
- data/lib/advanced_billing/models/currency_price.rb +12 -2
- data/lib/advanced_billing/models/currency_prices_response.rb +12 -2
- data/lib/advanced_billing/models/custom_field_value_change.rb +12 -2
- data/lib/advanced_billing/models/customer.rb +63 -15
- data/lib/advanced_billing/models/customer1.rb +13 -2
- data/lib/advanced_billing/models/customer_attributes.rb +12 -2
- data/lib/advanced_billing/models/customer_change.rb +12 -2
- data/lib/advanced_billing/models/customer_changes_preview_response.rb +12 -2
- data/lib/advanced_billing/models/customer_custom_fields_change.rb +12 -2
- data/lib/advanced_billing/models/customer_error.rb +12 -2
- data/lib/advanced_billing/models/customer_payer_change.rb +12 -2
- data/lib/advanced_billing/models/customer_response.rb +12 -2
- data/lib/advanced_billing/models/deduct_service_credit.rb +12 -2
- data/lib/advanced_billing/models/deduct_service_credit_request.rb +12 -2
- data/lib/advanced_billing/models/delayed_cancellation_response.rb +12 -2
- data/lib/advanced_billing/models/delete_subscription_group_response.rb +12 -2
- data/lib/advanced_billing/models/dunner_data.rb +29 -7
- data/lib/advanced_billing/models/dunning_step_data.rb +12 -2
- data/lib/advanced_billing/models/dunning_step_reached.rb +12 -2
- data/lib/advanced_billing/models/ebb_component.rb +12 -2
- data/lib/advanced_billing/models/ebb_event.rb +12 -2
- data/lib/advanced_billing/models/enable_webhooks_request.rb +12 -2
- data/lib/advanced_billing/models/enable_webhooks_response.rb +12 -2
- data/lib/advanced_billing/models/endpoint.rb +12 -2
- data/lib/advanced_billing/models/endpoint_response.rb +12 -2
- data/lib/advanced_billing/models/errors.rb +12 -2
- data/lib/advanced_billing/models/event.rb +23 -5
- data/lib/advanced_billing/models/event_based_billing_segment_error.rb +12 -2
- data/lib/advanced_billing/models/event_response.rb +12 -2
- data/lib/advanced_billing/models/full_subscription_group_response.rb +369 -11
- data/lib/advanced_billing/models/get_one_time_token_payment_profile.rb +12 -2
- data/lib/advanced_billing/models/get_one_time_token_request.rb +12 -2
- data/lib/advanced_billing/models/group_billing.rb +12 -2
- data/lib/advanced_billing/models/group_settings.rb +12 -2
- data/lib/advanced_billing/models/group_target.rb +12 -2
- data/lib/advanced_billing/models/group_type.rb +23 -0
- data/lib/advanced_billing/models/invoice.rb +12 -2
- data/lib/advanced_billing/models/invoice_address.rb +12 -2
- data/lib/advanced_billing/models/invoice_balance_item.rb +12 -2
- data/lib/advanced_billing/models/invoice_credit.rb +12 -2
- data/lib/advanced_billing/models/invoice_custom_field.rb +12 -2
- data/lib/advanced_billing/models/invoice_customer.rb +13 -2
- data/lib/advanced_billing/models/invoice_discount.rb +14 -4
- data/lib/advanced_billing/models/invoice_discount_breakout.rb +12 -2
- data/lib/advanced_billing/models/invoice_discount_source_type.rb +26 -0
- data/lib/advanced_billing/models/invoice_discount_type.rb +26 -0
- data/lib/advanced_billing/models/invoice_display_settings.rb +12 -2
- data/lib/advanced_billing/models/invoice_event.rb +23 -4
- data/lib/advanced_billing/models/invoice_event_data.rb +12 -2
- data/lib/advanced_billing/models/invoice_event_payment.rb +12 -2
- data/lib/advanced_billing/models/invoice_event_payment1.rb +12 -2
- data/lib/advanced_billing/models/invoice_issued.rb +27 -15
- data/lib/advanced_billing/models/invoice_line_item.rb +22 -2
- data/lib/advanced_billing/models/invoice_line_item_component_cost_data.rb +12 -2
- data/lib/advanced_billing/models/invoice_line_item_event_data.rb +12 -2
- data/lib/advanced_billing/models/invoice_line_item_pricing_detail.rb +12 -2
- data/lib/advanced_billing/models/invoice_payer.rb +12 -2
- data/lib/advanced_billing/models/invoice_payer_change.rb +12 -2
- data/lib/advanced_billing/models/invoice_payment.rb +12 -2
- data/lib/advanced_billing/models/invoice_payment_application.rb +12 -2
- data/lib/advanced_billing/models/invoice_payment_method.rb +12 -2
- data/lib/advanced_billing/models/invoice_pre_payment.rb +25 -5
- data/lib/advanced_billing/models/invoice_previous_balance.rb +12 -2
- data/lib/advanced_billing/models/invoice_refund.rb +34 -2
- data/lib/advanced_billing/models/invoice_response.rb +12 -2
- data/lib/advanced_billing/models/invoice_seller.rb +12 -2
- data/lib/advanced_billing/models/invoice_tax.rb +13 -3
- data/lib/advanced_billing/models/invoice_tax_breakout.rb +23 -2
- data/lib/advanced_billing/models/invoice_tax_component_breakout.rb +12 -2
- data/lib/advanced_billing/models/issue_advance_invoice_request.rb +12 -2
- data/lib/advanced_billing/models/issue_invoice_event_data.rb +12 -2
- data/lib/advanced_billing/models/issue_invoice_request.rb +12 -2
- data/lib/advanced_billing/models/issue_service_credit.rb +12 -2
- data/lib/advanced_billing/models/issue_service_credit_request.rb +12 -2
- data/lib/advanced_billing/models/item_price_point_changed.rb +12 -2
- data/lib/advanced_billing/models/item_price_point_data.rb +12 -2
- data/lib/advanced_billing/models/list_components_price_points_response.rb +12 -2
- data/lib/advanced_billing/models/list_credit_notes_response.rb +12 -2
- data/lib/advanced_billing/models/list_invoice_events_response.rb +12 -2
- data/lib/advanced_billing/models/list_invoices_response.rb +12 -2
- data/lib/advanced_billing/models/list_metafields_response.rb +12 -2
- data/lib/advanced_billing/models/list_mrr_response.rb +12 -2
- data/lib/advanced_billing/models/list_mrr_response_result.rb +12 -2
- data/lib/advanced_billing/models/list_offers_response.rb +12 -2
- data/lib/advanced_billing/models/list_product_price_points_response.rb +12 -2
- data/lib/advanced_billing/models/list_proforma_invoices_meta.rb +90 -0
- data/lib/advanced_billing/models/list_proforma_invoices_response.rb +79 -0
- data/lib/advanced_billing/models/list_public_keys_meta.rb +12 -2
- data/lib/advanced_billing/models/list_public_keys_response.rb +12 -2
- data/lib/advanced_billing/models/list_sale_rep_item.rb +12 -2
- data/lib/advanced_billing/models/list_segments_response.rb +12 -2
- data/lib/advanced_billing/models/list_subcription_group_prepayment_item.rb +25 -12
- data/lib/advanced_billing/models/list_subscription_components_response.rb +12 -2
- data/lib/advanced_billing/models/list_subscription_group_prepayment.rb +12 -2
- data/lib/advanced_billing/models/list_subscription_group_prepayment_response.rb +12 -2
- data/lib/advanced_billing/models/list_subscription_groups_item.rb +33 -5
- data/lib/advanced_billing/models/list_subscription_groups_meta.rb +12 -2
- data/lib/advanced_billing/models/list_subscription_groups_response.rb +12 -2
- data/lib/advanced_billing/models/metadata.rb +23 -4
- data/lib/advanced_billing/models/metafield.rb +12 -2
- data/lib/advanced_billing/models/metafield_scope.rb +12 -2
- data/lib/advanced_billing/models/metered_component.rb +12 -2
- data/lib/advanced_billing/models/metered_usage.rb +12 -2
- data/lib/advanced_billing/models/movement.rb +23 -4
- data/lib/advanced_billing/models/movement_line_item.rb +12 -2
- data/lib/advanced_billing/models/mrr.rb +23 -4
- data/lib/advanced_billing/models/mrr_movement.rb +12 -2
- data/lib/advanced_billing/models/mrr_response.rb +12 -2
- data/lib/advanced_billing/models/multi_invoice_payment.rb +12 -2
- data/lib/advanced_billing/models/multi_invoice_payment_response.rb +12 -2
- data/lib/advanced_billing/models/nested_subscription_group.rb +12 -2
- data/lib/advanced_billing/models/net_terms.rb +12 -2
- data/lib/advanced_billing/models/offer.rb +43 -8
- data/lib/advanced_billing/models/offer_discount.rb +12 -2
- data/lib/advanced_billing/models/offer_item.rb +12 -2
- data/lib/advanced_billing/models/offer_response.rb +12 -2
- data/lib/advanced_billing/models/offer_signup_page.rb +12 -2
- data/lib/advanced_billing/models/on_off_component.rb +12 -2
- data/lib/advanced_billing/models/organization_address.rb +12 -2
- data/lib/advanced_billing/models/origin_invoice.rb +12 -2
- data/lib/advanced_billing/models/overage_pricing.rb +12 -2
- data/lib/advanced_billing/models/override_subscription.rb +12 -2
- data/lib/advanced_billing/models/override_subscription_request.rb +12 -2
- data/lib/advanced_billing/models/paginated_metadata.rb +12 -2
- data/lib/advanced_billing/models/{payment.rb → paid_invoice.rb} +23 -13
- data/lib/advanced_billing/models/pause_request.rb +12 -2
- data/lib/advanced_billing/models/payer_attributes.rb +13 -3
- data/lib/advanced_billing/models/payer_error.rb +12 -2
- data/lib/advanced_billing/models/payment_collection_method_changed.rb +12 -2
- data/lib/advanced_billing/models/payment_for_allocation.rb +12 -2
- data/lib/advanced_billing/models/payment_method_apple_pay.rb +12 -2
- data/lib/advanced_billing/models/payment_method_bank_account.rb +12 -2
- data/lib/advanced_billing/models/payment_method_credit_card.rb +12 -2
- data/lib/advanced_billing/models/payment_method_external.rb +12 -2
- data/lib/advanced_billing/models/payment_method_paypal.rb +12 -2
- data/lib/advanced_billing/models/payment_profile_attributes.rb +12 -2
- data/lib/advanced_billing/models/payment_profile_response.rb +12 -2
- data/lib/advanced_billing/models/payment_related_events.rb +12 -2
- data/lib/advanced_billing/models/pending_cancellation_change.rb +22 -5
- data/lib/advanced_billing/models/portal_management_link.rb +53 -12
- data/lib/advanced_billing/models/prepaid_component_price_point.rb +12 -2
- data/lib/advanced_billing/models/prepaid_configuration.rb +12 -2
- data/lib/advanced_billing/models/prepaid_configuration_response.rb +12 -2
- data/lib/advanced_billing/models/prepaid_subscription_balance_changed.rb +12 -2
- data/lib/advanced_billing/models/prepaid_usage.rb +12 -2
- data/lib/advanced_billing/models/prepaid_usage_allocation_detail.rb +12 -2
- data/lib/advanced_billing/models/prepaid_usage_component.rb +12 -2
- data/lib/advanced_billing/models/prepayment.rb +21 -4
- data/lib/advanced_billing/models/prepayment_account_balance_changed.rb +12 -2
- data/lib/advanced_billing/models/prepayment_aggregated_error.rb +12 -2
- data/lib/advanced_billing/models/prepayment_method.rb +3 -6
- data/lib/advanced_billing/models/prepayment_response.rb +12 -2
- data/lib/advanced_billing/models/prepayments_response.rb +12 -2
- data/lib/advanced_billing/models/preview_allocations_request.rb +12 -2
- data/lib/advanced_billing/models/price.rb +12 -2
- data/lib/advanced_billing/models/price_point.rb +12 -2
- data/lib/advanced_billing/models/product.rb +14 -4
- data/lib/advanced_billing/models/product_family.rb +33 -6
- data/lib/advanced_billing/models/product_family_response.rb +12 -2
- data/lib/advanced_billing/models/product_price_point.rb +16 -6
- data/lib/advanced_billing/models/product_price_point_errors.rb +12 -2
- data/lib/advanced_billing/models/product_price_point_response.rb +12 -2
- data/lib/advanced_billing/models/product_response.rb +12 -2
- data/lib/advanced_billing/models/proforma_error.rb +12 -2
- data/lib/advanced_billing/models/proforma_invoice.rb +87 -19
- data/lib/advanced_billing/models/proforma_invoice_credit.rb +12 -2
- data/lib/advanced_billing/models/proforma_invoice_discount.rb +37 -7
- data/lib/advanced_billing/models/proforma_invoice_discount_source_type.rb +23 -0
- data/lib/advanced_billing/models/proforma_invoice_issued.rb +23 -6
- data/lib/advanced_billing/models/proforma_invoice_payment.rb +12 -2
- data/lib/advanced_billing/models/proforma_invoice_role.rb +30 -0
- data/lib/advanced_billing/models/proforma_invoice_status.rb +26 -0
- data/lib/advanced_billing/models/proforma_invoice_tax.rb +15 -5
- data/lib/advanced_billing/models/proforma_invoice_tax_source_type.rb +23 -0
- data/lib/advanced_billing/models/proration.rb +12 -2
- data/lib/advanced_billing/models/public_key.rb +23 -4
- data/lib/advanced_billing/models/public_signup_page.rb +12 -2
- data/lib/advanced_billing/models/quantity_based_component.rb +12 -2
- data/lib/advanced_billing/models/reactivate_subscription_group_request.rb +12 -2
- data/lib/advanced_billing/models/reactivate_subscription_group_response.rb +23 -5
- data/lib/advanced_billing/models/reactivate_subscription_request.rb +12 -2
- data/lib/advanced_billing/models/reactivation_billing.rb +12 -2
- data/lib/advanced_billing/models/reason_code.rb +33 -6
- data/lib/advanced_billing/models/reason_code_response.rb +12 -2
- data/lib/advanced_billing/models/reason_codes_json_response.rb +12 -2
- data/lib/advanced_billing/models/record_payment_request.rb +12 -2
- data/lib/advanced_billing/models/{payment_response.rb → record_payment_response.rb} +33 -9
- data/lib/advanced_billing/models/referral_code.rb +12 -2
- data/lib/advanced_billing/models/referral_validation_response.rb +12 -2
- data/lib/advanced_billing/models/refund.rb +12 -2
- data/lib/advanced_billing/models/refund_consolidated_invoice.rb +12 -2
- data/lib/advanced_billing/models/refund_invoice.rb +12 -2
- data/lib/advanced_billing/models/refund_invoice_event_data.rb +12 -2
- data/lib/advanced_billing/models/refund_invoice_request.rb +12 -2
- data/lib/advanced_billing/models/refund_prepayment.rb +12 -2
- data/lib/advanced_billing/models/refund_prepayment_aggregated_error.rb +12 -2
- data/lib/advanced_billing/models/refund_prepayment_base_refund_error.rb +12 -2
- data/lib/advanced_billing/models/refund_prepayment_request.rb +12 -2
- data/lib/advanced_billing/models/refund_success.rb +12 -2
- data/lib/advanced_billing/models/remove_payment_event_data.rb +12 -2
- data/lib/advanced_billing/models/renewal_preview.rb +23 -5
- data/lib/advanced_billing/models/renewal_preview_component.rb +12 -2
- data/lib/advanced_billing/models/renewal_preview_line_item.rb +12 -2
- data/lib/advanced_billing/models/renewal_preview_request.rb +12 -2
- data/lib/advanced_billing/models/renewal_preview_response.rb +12 -2
- data/lib/advanced_billing/models/replay_webhooks_request.rb +12 -2
- data/lib/advanced_billing/models/replay_webhooks_response.rb +12 -2
- data/lib/advanced_billing/models/resent_invitation.rb +12 -2
- data/lib/advanced_billing/models/resume_options.rb +12 -2
- data/lib/advanced_billing/models/revoked_invitation.rb +12 -2
- data/lib/advanced_billing/models/sale_rep.rb +12 -2
- data/lib/advanced_billing/models/sale_rep_item_mrr.rb +12 -2
- data/lib/advanced_billing/models/sale_rep_settings.rb +12 -2
- data/lib/advanced_billing/models/sale_rep_subscription.rb +12 -2
- data/lib/advanced_billing/models/segment.rb +33 -6
- data/lib/advanced_billing/models/segment_price.rb +12 -2
- data/lib/advanced_billing/models/segment_response.rb +12 -2
- data/lib/advanced_billing/models/seller.rb +12 -2
- data/lib/advanced_billing/models/send_invoice_request.rb +12 -2
- data/lib/advanced_billing/models/service_credit.rb +12 -2
- data/lib/advanced_billing/models/service_credit_response.rb +12 -2
- data/lib/advanced_billing/models/shipping_address.rb +12 -2
- data/lib/advanced_billing/models/signup_proforma_preview.rb +12 -2
- data/lib/advanced_billing/models/signup_proforma_preview_response.rb +12 -2
- data/lib/advanced_billing/models/site.rb +12 -2
- data/lib/advanced_billing/models/site_response.rb +12 -2
- data/lib/advanced_billing/models/site_statistics.rb +16 -6
- data/lib/advanced_billing/models/site_summary.rb +12 -2
- data/lib/advanced_billing/models/subscription.rb +12 -2
- data/lib/advanced_billing/models/subscription_component.rb +22 -4
- data/lib/advanced_billing/models/subscription_component_allocation_error_item.rb +12 -2
- data/lib/advanced_billing/models/subscription_component_response.rb +12 -2
- data/lib/advanced_billing/models/subscription_component_subscription.rb +23 -4
- data/lib/advanced_billing/models/subscription_custom_price.rb +12 -2
- data/lib/advanced_billing/models/subscription_group.rb +38 -10
- data/lib/advanced_billing/models/subscription_group_balances.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_bank_account.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_component_custom_price.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_credit_card.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_customer.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_include.rb +20 -0
- data/lib/advanced_billing/models/subscription_group_item.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_member_error.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_members_array_error.rb +72 -0
- data/lib/advanced_billing/models/subscription_group_payment_profile.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_prepayment.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_prepayment_request.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_prepayment_response.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_response.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_signup.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_signup_component.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_signup_error.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_signup_failure.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_signup_failure_data.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_signup_item.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_signup_request.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_signup_response.rb +231 -9
- data/lib/advanced_billing/models/subscription_group_signup_success.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_signup_success_data.rb +21 -5
- data/lib/advanced_billing/models/subscription_group_single_error.rb +73 -0
- data/lib/advanced_billing/models/subscription_group_subscription_error.rb +66 -2
- data/lib/advanced_billing/models/subscription_group_update_error.rb +12 -2
- data/lib/advanced_billing/models/subscription_groups_list_include.rb +20 -0
- data/lib/advanced_billing/models/subscription_included_coupon.rb +12 -2
- data/lib/advanced_billing/models/subscription_migration_preview.rb +12 -2
- data/lib/advanced_billing/models/subscription_migration_preview_options.rb +23 -5
- data/lib/advanced_billing/models/subscription_migration_preview_request.rb +12 -2
- data/lib/advanced_billing/models/subscription_migration_preview_response.rb +12 -2
- data/lib/advanced_billing/models/subscription_mrr.rb +12 -2
- data/lib/advanced_billing/models/subscription_mrr_breakout.rb +12 -2
- data/lib/advanced_billing/models/subscription_mrr_response.rb +12 -2
- data/lib/advanced_billing/models/subscription_note.rb +33 -6
- data/lib/advanced_billing/models/subscription_note_response.rb +12 -2
- data/lib/advanced_billing/models/subscription_preview.rb +12 -2
- data/lib/advanced_billing/models/subscription_preview_response.rb +12 -2
- data/lib/advanced_billing/models/subscription_product_change.rb +12 -2
- data/lib/advanced_billing/models/subscription_product_migration.rb +12 -2
- data/lib/advanced_billing/models/subscription_product_migration_request.rb +12 -2
- data/lib/advanced_billing/models/subscription_response.rb +12 -2
- data/lib/advanced_billing/models/subscription_state_change.rb +12 -2
- data/lib/advanced_billing/models/tax_configuration.rb +12 -2
- data/lib/advanced_billing/models/too_many_management_link_requests.rb +12 -2
- data/lib/advanced_billing/models/update_allocation_expiration_date.rb +12 -2
- data/lib/advanced_billing/models/update_component.rb +12 -2
- data/lib/advanced_billing/models/update_component_price_point.rb +12 -2
- data/lib/advanced_billing/models/update_component_price_point_request.rb +12 -2
- data/lib/advanced_billing/models/update_component_request.rb +12 -2
- data/lib/advanced_billing/models/update_coupon_currency.rb +12 -2
- data/lib/advanced_billing/models/update_currency_price.rb +12 -2
- data/lib/advanced_billing/models/update_currency_prices_request.rb +12 -2
- data/lib/advanced_billing/models/update_customer.rb +12 -2
- data/lib/advanced_billing/models/update_customer_request.rb +12 -2
- data/lib/advanced_billing/models/update_metadata.rb +12 -2
- data/lib/advanced_billing/models/update_metadata_request.rb +12 -2
- data/lib/advanced_billing/models/update_metafield.rb +12 -2
- data/lib/advanced_billing/models/update_metafields_request.rb +12 -2
- data/lib/advanced_billing/models/update_payment_profile.rb +12 -2
- data/lib/advanced_billing/models/update_payment_profile_request.rb +12 -2
- data/lib/advanced_billing/models/update_price.rb +12 -2
- data/lib/advanced_billing/models/update_product_price_point.rb +12 -2
- data/lib/advanced_billing/models/update_product_price_point_request.rb +12 -2
- data/lib/advanced_billing/models/update_reason_code.rb +12 -2
- data/lib/advanced_billing/models/update_reason_code_request.rb +12 -2
- data/lib/advanced_billing/models/update_segment.rb +12 -2
- data/lib/advanced_billing/models/update_segment_request.rb +12 -2
- data/lib/advanced_billing/models/update_subscription.rb +23 -5
- data/lib/advanced_billing/models/update_subscription_component.rb +12 -2
- data/lib/advanced_billing/models/update_subscription_group.rb +12 -2
- data/lib/advanced_billing/models/update_subscription_group_request.rb +12 -2
- data/lib/advanced_billing/models/update_subscription_note.rb +12 -2
- data/lib/advanced_billing/models/update_subscription_note_request.rb +12 -2
- data/lib/advanced_billing/models/update_subscription_request.rb +12 -2
- data/lib/advanced_billing/models/upsert_prepaid_configuration.rb +12 -2
- data/lib/advanced_billing/models/upsert_prepaid_configuration_request.rb +12 -2
- data/lib/advanced_billing/models/usage.rb +12 -2
- data/lib/advanced_billing/models/usage_response.rb +12 -2
- data/lib/advanced_billing/models/void_invoice.rb +12 -2
- data/lib/advanced_billing/models/void_invoice_event_data.rb +12 -2
- data/lib/advanced_billing/models/void_invoice_request.rb +12 -2
- data/lib/advanced_billing/models/void_remainder_event_data.rb +12 -2
- data/lib/advanced_billing/models/webhook.rb +53 -10
- data/lib/advanced_billing/models/webhook_response.rb +12 -2
- data/lib/advanced_billing/utilities/union_type_lookup.rb +20 -8
- data/lib/advanced_billing.rb +25 -12
- metadata +24 -11
- data/lib/advanced_billing/models/proforma_invoice_discount_breakout.rb +0 -62
- data/lib/advanced_billing/models/proforma_invoice_preview.rb +0 -484
- data/lib/advanced_billing/models/proforma_invoice_tax_breakout.rb +0 -61
@@ -28,7 +28,7 @@ module AdvancedBilling
|
|
28
28
|
.template_param(new_parameter(uid, key: 'uid')
|
29
29
|
.is_required(true)
|
30
30
|
.should_encode(true))
|
31
|
-
.auth(Single.new('
|
31
|
+
.auth(Single.new('BasicAuth')))
|
32
32
|
.response(new_response_handler
|
33
33
|
.is_response_void(true)
|
34
34
|
.local_error_template('422',
|
@@ -46,20 +46,38 @@ module AdvancedBilling
|
|
46
46
|
# specific field as a key in the query with a value set to true.
|
47
47
|
# @param [String] uid Required parameter: The uid of the subscription
|
48
48
|
# group
|
49
|
-
# @
|
50
|
-
|
49
|
+
# @param [TrueClass | FalseClass] line_items Optional parameter: Include
|
50
|
+
# line items data
|
51
|
+
# @param [TrueClass | FalseClass] discounts Optional parameter: Include
|
52
|
+
# discounts data
|
53
|
+
# @param [TrueClass | FalseClass] taxes Optional parameter: Include taxes
|
54
|
+
# data
|
55
|
+
# @param [TrueClass | FalseClass] credits Optional parameter: Include
|
56
|
+
# credits data
|
57
|
+
# @param [TrueClass | FalseClass] payments Optional parameter: Include
|
58
|
+
# payments data
|
59
|
+
# @param [TrueClass | FalseClass] custom_fields Optional parameter: Include
|
60
|
+
# custom fields data
|
61
|
+
# @return [ListProformaInvoicesResponse] response from the API call
|
62
|
+
def list_subscription_group_proforma_invoices(options = {})
|
51
63
|
new_api_call_builder
|
52
64
|
.request(new_request_builder(HttpMethodEnum::GET,
|
53
65
|
'/subscription_groups/{uid}/proforma_invoices.json',
|
54
66
|
Server::DEFAULT)
|
55
|
-
.template_param(new_parameter(uid, key: 'uid')
|
67
|
+
.template_param(new_parameter(options['uid'], key: 'uid')
|
56
68
|
.is_required(true)
|
57
69
|
.should_encode(true))
|
70
|
+
.query_param(new_parameter(options['line_items'], key: 'line_items'))
|
71
|
+
.query_param(new_parameter(options['discounts'], key: 'discounts'))
|
72
|
+
.query_param(new_parameter(options['taxes'], key: 'taxes'))
|
73
|
+
.query_param(new_parameter(options['credits'], key: 'credits'))
|
74
|
+
.query_param(new_parameter(options['payments'], key: 'payments'))
|
75
|
+
.query_param(new_parameter(options['custom_fields'], key: 'custom_fields'))
|
58
76
|
.header_param(new_parameter('application/json', key: 'accept'))
|
59
|
-
.auth(Single.new('
|
77
|
+
.auth(Single.new('BasicAuth')))
|
60
78
|
.response(new_response_handler
|
61
79
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
62
|
-
.deserialize_into(
|
80
|
+
.deserialize_into(ListProformaInvoicesResponse.method(:from_hash))
|
63
81
|
.local_error_template('404',
|
64
82
|
'Not Found:\'{$response.body}\'',
|
65
83
|
APIException))
|
@@ -69,7 +87,7 @@ module AdvancedBilling
|
|
69
87
|
# Use this endpoint to read the details of an existing proforma invoice.
|
70
88
|
# ## Restrictions
|
71
89
|
# Proforma invoices are only available on Relationship Invoicing sites.
|
72
|
-
# @param [
|
90
|
+
# @param [String] proforma_invoice_uid Required parameter: The uid of the
|
73
91
|
# proforma invoice
|
74
92
|
# @return [ProformaInvoice] response from the API call
|
75
93
|
def read_proforma_invoice(proforma_invoice_uid)
|
@@ -81,7 +99,7 @@ module AdvancedBilling
|
|
81
99
|
.is_required(true)
|
82
100
|
.should_encode(true))
|
83
101
|
.header_param(new_parameter('application/json', key: 'accept'))
|
84
|
-
.auth(Single.new('
|
102
|
+
.auth(Single.new('BasicAuth')))
|
85
103
|
.response(new_response_handler
|
86
104
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
87
105
|
.deserialize_into(ProformaInvoice.method(:from_hash))
|
@@ -112,7 +130,7 @@ module AdvancedBilling
|
|
112
130
|
.is_required(true)
|
113
131
|
.should_encode(true))
|
114
132
|
.header_param(new_parameter('application/json', key: 'accept'))
|
115
|
-
.auth(Single.new('
|
133
|
+
.auth(Single.new('BasicAuth')))
|
116
134
|
.response(new_response_handler
|
117
135
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
118
136
|
.deserialize_into(ProformaInvoice.method(:from_hash))
|
@@ -133,8 +151,9 @@ module AdvancedBilling
|
|
133
151
|
# for the invoice's Due Date, in the YYYY-MM-DD format.
|
134
152
|
# @param [String] end_date Optional parameter: The ending date range for the
|
135
153
|
# invoice's Due Date, in the YYYY-MM-DD format.
|
136
|
-
# @param [
|
137
|
-
# the invoice. Allowed Values: draft, open, paid, pending,
|
154
|
+
# @param [ProformaInvoiceStatus] status Optional parameter: The current
|
155
|
+
# status of the invoice. Allowed Values: draft, open, paid, pending,
|
156
|
+
# voided
|
138
157
|
# @param [Integer] page Optional parameter: Result records are organized in
|
139
158
|
# pages. By default, the first page of results is displayed. The page
|
140
159
|
# parameter specifies a page number of results to fetch. You can start
|
@@ -160,7 +179,7 @@ module AdvancedBilling
|
|
160
179
|
# payments data
|
161
180
|
# @param [TrueClass | FalseClass] custom_fields Optional parameter: Include
|
162
181
|
# custom fields data
|
163
|
-
# @return [
|
182
|
+
# @return [ListProformaInvoicesResponse] response from the API call
|
164
183
|
def list_proforma_invoices(options = {})
|
165
184
|
new_api_call_builder
|
166
185
|
.request(new_request_builder(HttpMethodEnum::GET,
|
@@ -182,11 +201,10 @@ module AdvancedBilling
|
|
182
201
|
.query_param(new_parameter(options['payments'], key: 'payments'))
|
183
202
|
.query_param(new_parameter(options['custom_fields'], key: 'custom_fields'))
|
184
203
|
.header_param(new_parameter('application/json', key: 'accept'))
|
185
|
-
.auth(Single.new('
|
204
|
+
.auth(Single.new('BasicAuth')))
|
186
205
|
.response(new_response_handler
|
187
206
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
188
|
-
.deserialize_into(
|
189
|
-
.is_response_array(true))
|
207
|
+
.deserialize_into(ListProformaInvoicesResponse.method(:from_hash)))
|
190
208
|
.execute
|
191
209
|
end
|
192
210
|
|
@@ -216,7 +234,7 @@ module AdvancedBilling
|
|
216
234
|
.body_param(new_parameter(body))
|
217
235
|
.header_param(new_parameter('application/json', key: 'accept'))
|
218
236
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
219
|
-
.auth(Single.new('
|
237
|
+
.auth(Single.new('BasicAuth')))
|
220
238
|
.response(new_response_handler
|
221
239
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
222
240
|
.deserialize_into(ProformaInvoice.method(:from_hash))
|
@@ -249,7 +267,7 @@ module AdvancedBilling
|
|
249
267
|
# subscription's upcoming renewal has changed.
|
250
268
|
# @param [Integer] subscription_id Required parameter: The Chargify id of
|
251
269
|
# the subscription
|
252
|
-
# @return [
|
270
|
+
# @return [ProformaInvoice] response from the API call
|
253
271
|
def preview_proforma_invoice(subscription_id)
|
254
272
|
new_api_call_builder
|
255
273
|
.request(new_request_builder(HttpMethodEnum::POST,
|
@@ -259,10 +277,10 @@ module AdvancedBilling
|
|
259
277
|
.is_required(true)
|
260
278
|
.should_encode(true))
|
261
279
|
.header_param(new_parameter('application/json', key: 'accept'))
|
262
|
-
.auth(Single.new('
|
280
|
+
.auth(Single.new('BasicAuth')))
|
263
281
|
.response(new_response_handler
|
264
282
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
265
|
-
.deserialize_into(
|
283
|
+
.deserialize_into(ProformaInvoice.method(:from_hash))
|
266
284
|
.local_error_template('404',
|
267
285
|
'Not Found:\'{$response.body}\'',
|
268
286
|
APIException)
|
@@ -298,7 +316,7 @@ module AdvancedBilling
|
|
298
316
|
.body_param(new_parameter(body))
|
299
317
|
.header_param(new_parameter('application/json', key: 'accept'))
|
300
318
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
301
|
-
.auth(Single.new('
|
319
|
+
.auth(Single.new('BasicAuth')))
|
302
320
|
.response(new_response_handler
|
303
321
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
304
322
|
.deserialize_into(ProformaInvoice.method(:from_hash))
|
@@ -326,22 +344,23 @@ module AdvancedBilling
|
|
326
344
|
# populate a shipping or billing address.
|
327
345
|
# A product and customer first name, last name, and email are the minimum
|
328
346
|
# requirements.
|
329
|
-
# @param [
|
330
|
-
# to include a proforma invoice preview for the first renewal
|
347
|
+
# @param [CreateSignupProformaPreviewInclude] include Optional parameter:
|
348
|
+
# Choose to include a proforma invoice preview for the first renewal. Use in
|
349
|
+
# query `include=next_proforma_invoice`.
|
331
350
|
# @param [CreateSubscriptionRequest] body Optional parameter: Example:
|
332
351
|
# @return [SignupProformaPreviewResponse] response from the API call
|
333
|
-
def preview_signup_proforma_invoice(
|
352
|
+
def preview_signup_proforma_invoice(include: nil,
|
334
353
|
body: nil)
|
335
354
|
new_api_call_builder
|
336
355
|
.request(new_request_builder(HttpMethodEnum::POST,
|
337
356
|
'/subscriptions/proforma_invoices/preview.json',
|
338
357
|
Server::DEFAULT)
|
339
358
|
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
340
|
-
.query_param(new_parameter(
|
359
|
+
.query_param(new_parameter(include, key: 'include'))
|
341
360
|
.body_param(new_parameter(body))
|
342
361
|
.header_param(new_parameter('application/json', key: 'accept'))
|
343
362
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
344
|
-
.auth(Single.new('
|
363
|
+
.auth(Single.new('BasicAuth')))
|
345
364
|
.response(new_response_handler
|
346
365
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
347
366
|
.deserialize_into(SignupProformaPreviewResponse.method(:from_hash))
|
@@ -32,7 +32,7 @@ module AdvancedBilling
|
|
32
32
|
.body_param(new_parameter(body))
|
33
33
|
.header_param(new_parameter('application/json', key: 'accept'))
|
34
34
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
35
|
-
.auth(Single.new('
|
35
|
+
.auth(Single.new('BasicAuth')))
|
36
36
|
.response(new_response_handler
|
37
37
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
38
38
|
.deserialize_into(ReasonCodeResponse.method(:from_hash))
|
@@ -65,7 +65,7 @@ module AdvancedBilling
|
|
65
65
|
.query_param(new_parameter(options['page'], key: 'page'))
|
66
66
|
.query_param(new_parameter(options['per_page'], key: 'per_page'))
|
67
67
|
.header_param(new_parameter('application/json', key: 'accept'))
|
68
|
-
.auth(Single.new('
|
68
|
+
.auth(Single.new('BasicAuth')))
|
69
69
|
.response(new_response_handler
|
70
70
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
71
71
|
.deserialize_into(ReasonCodeResponse.method(:from_hash))
|
@@ -87,7 +87,7 @@ module AdvancedBilling
|
|
87
87
|
.is_required(true)
|
88
88
|
.should_encode(true))
|
89
89
|
.header_param(new_parameter('application/json', key: 'accept'))
|
90
|
-
.auth(Single.new('
|
90
|
+
.auth(Single.new('BasicAuth')))
|
91
91
|
.response(new_response_handler
|
92
92
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
93
93
|
.deserialize_into(ReasonCodeResponse.method(:from_hash))
|
@@ -116,7 +116,7 @@ module AdvancedBilling
|
|
116
116
|
.body_param(new_parameter(body))
|
117
117
|
.header_param(new_parameter('application/json', key: 'accept'))
|
118
118
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
119
|
-
.auth(Single.new('
|
119
|
+
.auth(Single.new('BasicAuth')))
|
120
120
|
.response(new_response_handler
|
121
121
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
122
122
|
.deserialize_into(ReasonCodeResponse.method(:from_hash))
|
@@ -141,7 +141,7 @@ module AdvancedBilling
|
|
141
141
|
.is_required(true)
|
142
142
|
.should_encode(true))
|
143
143
|
.header_param(new_parameter('application/json', key: 'accept'))
|
144
|
-
.auth(Single.new('
|
144
|
+
.auth(Single.new('BasicAuth')))
|
145
145
|
.response(new_response_handler
|
146
146
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
147
147
|
.deserialize_into(ReasonCodesJsonResponse.method(:from_hash))
|
@@ -28,12 +28,12 @@ module AdvancedBilling
|
|
28
28
|
.query_param(new_parameter(code, key: 'code')
|
29
29
|
.is_required(true))
|
30
30
|
.header_param(new_parameter('application/json', key: 'accept'))
|
31
|
-
.auth(Single.new('
|
31
|
+
.auth(Single.new('BasicAuth')))
|
32
32
|
.response(new_response_handler
|
33
33
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
34
34
|
.deserialize_into(ReferralValidationResponse.method(:from_hash))
|
35
35
|
.local_error_template('404',
|
36
|
-
'
|
36
|
+
'Invalid referral code.',
|
37
37
|
SingleStringErrorResponseException))
|
38
38
|
.execute
|
39
39
|
end
|
@@ -55,7 +55,7 @@ module AdvancedBilling
|
|
55
55
|
.query_param(new_parameter(options['page'], key: 'page'))
|
56
56
|
.query_param(new_parameter(options['per_page'], key: 'per_page'))
|
57
57
|
.header_param(new_parameter('application/json', key: 'accept'))
|
58
|
-
.auth(Single.new('
|
58
|
+
.auth(Single.new('BasicAuth')))
|
59
59
|
.response(new_response_handler
|
60
60
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
61
61
|
.deserialize_into(SaleRepSettings.method(:from_hash))
|
@@ -112,7 +112,7 @@ module AdvancedBilling
|
|
112
112
|
.query_param(new_parameter(options['page'], key: 'page'))
|
113
113
|
.query_param(new_parameter(options['per_page'], key: 'per_page'))
|
114
114
|
.header_param(new_parameter('application/json', key: 'accept'))
|
115
|
-
.auth(Single.new('
|
115
|
+
.auth(Single.new('BasicAuth')))
|
116
116
|
.response(new_response_handler
|
117
117
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
118
118
|
.deserialize_into(ListSaleRepItem.method(:from_hash))
|
@@ -179,7 +179,7 @@ module AdvancedBilling
|
|
179
179
|
.query_param(new_parameter(page, key: 'page'))
|
180
180
|
.query_param(new_parameter(per_page, key: 'per_page'))
|
181
181
|
.header_param(new_parameter('application/json', key: 'accept'))
|
182
|
-
.auth(Single.new('
|
182
|
+
.auth(Single.new('BasicAuth')))
|
183
183
|
.response(new_response_handler
|
184
184
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
185
185
|
.deserialize_into(SaleRep.method(:from_hash)))
|
@@ -27,7 +27,7 @@ module AdvancedBilling
|
|
27
27
|
'/site.json',
|
28
28
|
Server::DEFAULT)
|
29
29
|
.header_param(new_parameter('application/json', key: 'accept'))
|
30
|
-
.auth(Single.new('
|
30
|
+
.auth(Single.new('BasicAuth')))
|
31
31
|
.response(new_response_handler
|
32
32
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
33
33
|
.deserialize_into(SiteResponse.method(:from_hash)))
|
@@ -53,7 +53,7 @@ module AdvancedBilling
|
|
53
53
|
'/sites/clear_data.json',
|
54
54
|
Server::DEFAULT)
|
55
55
|
.query_param(new_parameter(cleanup_scope, key: 'cleanup_scope'))
|
56
|
-
.auth(Single.new('
|
56
|
+
.auth(Single.new('BasicAuth')))
|
57
57
|
.response(new_response_handler
|
58
58
|
.is_response_void(true))
|
59
59
|
.execute
|
@@ -80,7 +80,7 @@ module AdvancedBilling
|
|
80
80
|
.query_param(new_parameter(options['page'], key: 'page'))
|
81
81
|
.query_param(new_parameter(options['per_page'], key: 'per_page'))
|
82
82
|
.header_param(new_parameter('application/json', key: 'accept'))
|
83
|
-
.auth(Single.new('
|
83
|
+
.auth(Single.new('BasicAuth')))
|
84
84
|
.response(new_response_handler
|
85
85
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
86
86
|
.deserialize_into(ListPublicKeysResponse.method(:from_hash)))
|
@@ -26,7 +26,7 @@ module AdvancedBilling
|
|
26
26
|
.is_required(true)
|
27
27
|
.should_encode(true))
|
28
28
|
.header_param(new_parameter('application/json', key: 'accept'))
|
29
|
-
.auth(Single.new('
|
29
|
+
.auth(Single.new('BasicAuth')))
|
30
30
|
.response(new_response_handler
|
31
31
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
32
32
|
.deserialize_into(SubscriptionComponentResponse.method(:from_hash))
|
@@ -106,7 +106,7 @@ module AdvancedBilling
|
|
106
106
|
.query_param(new_parameter(options['filter_use_site_exchange_rate'], key: 'filter[use_site_exchange_rate]'))
|
107
107
|
.query_param(new_parameter(options['filter_currencies'], key: 'filter[currencies]'))
|
108
108
|
.header_param(new_parameter('application/json', key: 'accept'))
|
109
|
-
.auth(Single.new('
|
109
|
+
.auth(Single.new('BasicAuth'))
|
110
110
|
.array_serialization_format(ArraySerializationFormat::CSV))
|
111
111
|
.response(new_response_handler
|
112
112
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
@@ -123,9 +123,9 @@ module AdvancedBilling
|
|
123
123
|
# component's current default price point.
|
124
124
|
# @param [Integer] subscription_id Required parameter: The Chargify id of
|
125
125
|
# the subscription
|
126
|
-
# @param [
|
126
|
+
# @param [BulkComponentsPricePointAssignment] body Optional parameter:
|
127
127
|
# Example:
|
128
|
-
# @return [
|
128
|
+
# @return [BulkComponentsPricePointAssignment] response from the API call
|
129
129
|
def bulk_update_subscription_components_price_points(subscription_id,
|
130
130
|
body: nil)
|
131
131
|
new_api_call_builder
|
@@ -139,10 +139,10 @@ module AdvancedBilling
|
|
139
139
|
.body_param(new_parameter(body))
|
140
140
|
.header_param(new_parameter('application/json', key: 'accept'))
|
141
141
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
142
|
-
.auth(Single.new('
|
142
|
+
.auth(Single.new('BasicAuth')))
|
143
143
|
.response(new_response_handler
|
144
144
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
145
|
-
.deserialize_into(
|
145
|
+
.deserialize_into(BulkComponentsPricePointAssignment.method(:from_hash))
|
146
146
|
.local_error_template('422',
|
147
147
|
'HTTP Response Not OK. Status code: {$statusCode}.'\
|
148
148
|
' Response: \'{$response.body}\'.',
|
@@ -165,7 +165,7 @@ module AdvancedBilling
|
|
165
165
|
.is_required(true)
|
166
166
|
.should_encode(true))
|
167
167
|
.header_param(new_parameter('application/json', key: 'accept'))
|
168
|
-
.auth(Single.new('
|
168
|
+
.auth(Single.new('BasicAuth')))
|
169
169
|
.response(new_response_handler
|
170
170
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
171
171
|
.deserialize_into(SubscriptionResponse.method(:from_hash)))
|
@@ -262,7 +262,7 @@ module AdvancedBilling
|
|
262
262
|
.body_param(new_parameter(body))
|
263
263
|
.header_param(new_parameter('application/json', key: 'accept'))
|
264
264
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
265
|
-
.auth(Single.new('
|
265
|
+
.auth(Single.new('BasicAuth')))
|
266
266
|
.response(new_response_handler
|
267
267
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
268
268
|
.deserialize_into(AllocationResponse.method(:from_hash))
|
@@ -318,7 +318,7 @@ module AdvancedBilling
|
|
318
318
|
.should_encode(true))
|
319
319
|
.query_param(new_parameter(page, key: 'page'))
|
320
320
|
.header_param(new_parameter('application/json', key: 'accept'))
|
321
|
-
.auth(Single.new('
|
321
|
+
.auth(Single.new('BasicAuth')))
|
322
322
|
.response(new_response_handler
|
323
323
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
324
324
|
.deserialize_into(AllocationResponse.method(:from_hash))
|
@@ -357,7 +357,7 @@ module AdvancedBilling
|
|
357
357
|
.body_param(new_parameter(body))
|
358
358
|
.header_param(new_parameter('application/json', key: 'accept'))
|
359
359
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
360
|
-
.auth(Single.new('
|
360
|
+
.auth(Single.new('BasicAuth')))
|
361
361
|
.response(new_response_handler
|
362
362
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
363
363
|
.deserialize_into(AllocationResponse.method(:from_hash))
|
@@ -401,7 +401,7 @@ module AdvancedBilling
|
|
401
401
|
.body_param(new_parameter(body))
|
402
402
|
.header_param(new_parameter('application/json', key: 'accept'))
|
403
403
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
404
|
-
.auth(Single.new('
|
404
|
+
.auth(Single.new('BasicAuth')))
|
405
405
|
.response(new_response_handler
|
406
406
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
407
407
|
.deserialize_into(AllocationPreviewResponse.method(:from_hash))
|
@@ -455,9 +455,12 @@ module AdvancedBilling
|
|
455
455
|
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
456
456
|
.body_param(new_parameter(body))
|
457
457
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
458
|
-
.auth(Single.new('
|
458
|
+
.auth(Single.new('BasicAuth')))
|
459
459
|
.response(new_response_handler
|
460
460
|
.is_response_void(true)
|
461
|
+
.local_error_template('404',
|
462
|
+
'Not Found:\'{$response.body}\'',
|
463
|
+
APIException)
|
461
464
|
.local_error_template('422',
|
462
465
|
'HTTP Response Not OK. Status code: {$statusCode}.'\
|
463
466
|
' Response: \'{$response.body}\'.',
|
@@ -508,9 +511,12 @@ module AdvancedBilling
|
|
508
511
|
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
509
512
|
.body_param(new_parameter(body))
|
510
513
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
511
|
-
.auth(Single.new('
|
514
|
+
.auth(Single.new('BasicAuth')))
|
512
515
|
.response(new_response_handler
|
513
516
|
.is_response_void(true)
|
517
|
+
.local_error_template('404',
|
518
|
+
'Not Found:\'{$response.body}\'',
|
519
|
+
APIException)
|
514
520
|
.local_error_template('422',
|
515
521
|
'HTTP Response Not OK. Status code: {$statusCode}.'\
|
516
522
|
' Response: \'{$response.body}\'.',
|
@@ -614,7 +620,7 @@ module AdvancedBilling
|
|
614
620
|
.body_param(new_parameter(body))
|
615
621
|
.header_param(new_parameter('application/json', key: 'accept'))
|
616
622
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
617
|
-
.auth(Single.new('
|
623
|
+
.auth(Single.new('BasicAuth')))
|
618
624
|
.response(new_response_handler
|
619
625
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
620
626
|
.deserialize_into(UsageResponse.method(:from_hash))
|
@@ -690,7 +696,7 @@ module AdvancedBilling
|
|
690
696
|
.query_param(new_parameter(options['page'], key: 'page'))
|
691
697
|
.query_param(new_parameter(options['per_page'], key: 'per_page'))
|
692
698
|
.header_param(new_parameter('application/json', key: 'accept'))
|
693
|
-
.auth(Single.new('
|
699
|
+
.auth(Single.new('BasicAuth')))
|
694
700
|
.response(new_response_handler
|
695
701
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
696
702
|
.deserialize_into(UsageResponse.method(:from_hash))
|
@@ -728,7 +734,7 @@ module AdvancedBilling
|
|
728
734
|
.template_param(new_parameter(component_id, key: 'component_id')
|
729
735
|
.is_required(true)
|
730
736
|
.should_encode(true))
|
731
|
-
.auth(Single.new('
|
737
|
+
.auth(Single.new('BasicAuth')))
|
732
738
|
.response(new_response_handler
|
733
739
|
.is_response_void(true))
|
734
740
|
.execute
|
@@ -754,7 +760,7 @@ module AdvancedBilling
|
|
754
760
|
.template_param(new_parameter(component_id, key: 'component_id')
|
755
761
|
.is_required(true)
|
756
762
|
.should_encode(true))
|
757
|
-
.auth(Single.new('
|
763
|
+
.auth(Single.new('BasicAuth')))
|
758
764
|
.response(new_response_handler
|
759
765
|
.is_response_void(true))
|
760
766
|
.execute
|
@@ -803,7 +809,7 @@ module AdvancedBilling
|
|
803
809
|
.query_param(new_parameter(store_uid, key: 'store_uid'))
|
804
810
|
.body_param(new_parameter(body))
|
805
811
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
806
|
-
.auth(Single.new('
|
812
|
+
.auth(Single.new('BasicAuth')))
|
807
813
|
.response(new_response_handler
|
808
814
|
.is_response_void(true))
|
809
815
|
.execute
|
@@ -841,7 +847,7 @@ module AdvancedBilling
|
|
841
847
|
.query_param(new_parameter(store_uid, key: 'store_uid'))
|
842
848
|
.body_param(new_parameter(body))
|
843
849
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
844
|
-
.auth(Single.new('
|
850
|
+
.auth(Single.new('BasicAuth')))
|
845
851
|
.response(new_response_handler
|
846
852
|
.is_response_void(true))
|
847
853
|
.execute
|
@@ -915,27 +921,27 @@ module AdvancedBilling
|
|
915
921
|
# parameter: The type of filter you'd like to apply to your search. To use
|
916
922
|
# this filter you also have to include the following param in the request
|
917
923
|
# `include=subscription`.
|
918
|
-
# @param [
|
919
|
-
#
|
920
|
-
#
|
921
|
-
#
|
922
|
-
#
|
923
|
-
#
|
924
|
-
# @param [
|
925
|
-
# start date and time (format YYYY-MM-DD HH:MM:SS) with which to filter
|
926
|
-
# date_field. Returns components that belong to the subscription with a
|
924
|
+
# @param [Date] filter_subscription_start_date Optional parameter: The start
|
925
|
+
# date (format YYYY-MM-DD) with which to filter the date_field. Returns
|
926
|
+
# components that belong to the subscription with a timestamp at or after
|
927
|
+
# midnight (12:00:00 AM) in your site’s time zone on the date specified. To
|
928
|
+
# use this filter you also have to include the following param in the
|
929
|
+
# request `include=subscription`.
|
930
|
+
# @param [DateTime] filter_subscription_start_datetime Optional parameter:
|
931
|
+
# The start date and time (format YYYY-MM-DD HH:MM:SS) with which to filter
|
932
|
+
# the date_field. Returns components that belong to the subscription with a
|
927
933
|
# timestamp at or after exact time provided in query. You can specify
|
928
934
|
# timezone in query - otherwise your site''s time zone will be used. If
|
929
935
|
# provided, this parameter will be used instead of start_date. To use this
|
930
936
|
# filter you also have to include the following param in the request
|
931
937
|
# `include=subscription`.
|
932
|
-
# @param [
|
938
|
+
# @param [Date] filter_subscription_end_date Optional parameter: The end
|
933
939
|
# date (format YYYY-MM-DD) with which to filter the date_field. Returns
|
934
940
|
# components that belong to the subscription with a timestamp up to and
|
935
941
|
# including 11:59:59PM in your site’s time zone on the date specified. To
|
936
942
|
# use this filter you also have to include the following param in the
|
937
943
|
# request `include=subscription`.
|
938
|
-
# @param [
|
944
|
+
# @param [DateTime] filter_subscription_end_datetime Optional parameter: The
|
939
945
|
# end date and time (format YYYY-MM-DD HH:MM:SS) with which to filter the
|
940
946
|
# date_field. Returns components that belong to the subscription with a
|
941
947
|
# timestamp at or before exact time provided in query. You can specify
|
@@ -971,7 +977,7 @@ module AdvancedBilling
|
|
971
977
|
.query_param(new_parameter(options['filter_subscription_end_date'], key: 'filter[subscription][end_date]'))
|
972
978
|
.query_param(new_parameter(options['filter_subscription_end_datetime'], key: 'filter[subscription][end_datetime]'))
|
973
979
|
.header_param(new_parameter('application/json', key: 'accept'))
|
974
|
-
.auth(Single.new('
|
980
|
+
.auth(Single.new('BasicAuth'))
|
975
981
|
.array_serialization_format(ArraySerializationFormat::CSV))
|
976
982
|
.response(new_response_handler
|
977
983
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
@@ -28,7 +28,7 @@ module AdvancedBilling
|
|
28
28
|
.body_param(new_parameter(body))
|
29
29
|
.header_param(new_parameter('application/json', key: 'accept'))
|
30
30
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
31
|
-
.auth(Single.new('
|
31
|
+
.auth(Single.new('BasicAuth')))
|
32
32
|
.response(new_response_handler
|
33
33
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
34
34
|
.deserialize_into(SubscriptionGroupPrepaymentResponse.method(:from_hash))
|
@@ -79,7 +79,7 @@ module AdvancedBilling
|
|
79
79
|
.query_param(new_parameter(options['page'], key: 'page'))
|
80
80
|
.query_param(new_parameter(options['per_page'], key: 'per_page'))
|
81
81
|
.header_param(new_parameter('application/json', key: 'accept'))
|
82
|
-
.auth(Single.new('
|
82
|
+
.auth(Single.new('BasicAuth')))
|
83
83
|
.response(new_response_handler
|
84
84
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
85
85
|
.deserialize_into(ListSubscriptionGroupPrepaymentResponse.method(:from_hash))
|
@@ -110,7 +110,7 @@ module AdvancedBilling
|
|
110
110
|
.body_param(new_parameter(body))
|
111
111
|
.header_param(new_parameter('application/json', key: 'accept'))
|
112
112
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
113
|
-
.auth(Single.new('
|
113
|
+
.auth(Single.new('BasicAuth')))
|
114
114
|
.response(new_response_handler
|
115
115
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
116
116
|
.deserialize_into(ServiceCreditResponse.method(:from_hash))
|
@@ -141,7 +141,7 @@ module AdvancedBilling
|
|
141
141
|
.body_param(new_parameter(body))
|
142
142
|
.header_param(new_parameter('application/json', key: 'accept'))
|
143
143
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
144
|
-
.auth(Single.new('
|
144
|
+
.auth(Single.new('BasicAuth')))
|
145
145
|
.response(new_response_handler
|
146
146
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
147
147
|
.deserialize_into(ServiceCredit.method(:from_hash))
|
@@ -31,7 +31,7 @@ module AdvancedBilling
|
|
31
31
|
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
32
32
|
.body_param(new_parameter(body))
|
33
33
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
34
|
-
.auth(Single.new('
|
34
|
+
.auth(Single.new('BasicAuth')))
|
35
35
|
.response(new_response_handler
|
36
36
|
.is_response_void(true)
|
37
37
|
.local_error_template('422',
|
@@ -57,7 +57,7 @@ module AdvancedBilling
|
|
57
57
|
.template_param(new_parameter(uid, key: 'uid')
|
58
58
|
.is_required(true)
|
59
59
|
.should_encode(true))
|
60
|
-
.auth(Single.new('
|
60
|
+
.auth(Single.new('BasicAuth')))
|
61
61
|
.response(new_response_handler
|
62
62
|
.is_response_void(true)
|
63
63
|
.local_error_template('422',
|
@@ -82,7 +82,7 @@ module AdvancedBilling
|
|
82
82
|
.template_param(new_parameter(uid, key: 'uid')
|
83
83
|
.is_required(true)
|
84
84
|
.should_encode(true))
|
85
|
-
.auth(Single.new('
|
85
|
+
.auth(Single.new('BasicAuth')))
|
86
86
|
.response(new_response_handler
|
87
87
|
.is_response_void(true)
|
88
88
|
.local_error_template('422',
|
@@ -143,7 +143,7 @@ module AdvancedBilling
|
|
143
143
|
.body_param(new_parameter(body))
|
144
144
|
.header_param(new_parameter('application/json', key: 'accept'))
|
145
145
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
146
|
-
.auth(Single.new('
|
146
|
+
.auth(Single.new('BasicAuth')))
|
147
147
|
.response(new_response_handler
|
148
148
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
149
149
|
.deserialize_into(ReactivateSubscriptionGroupResponse.method(:from_hash))
|