cbox_billing 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/README.md +215 -0
- data/cbox_billing.gemspec +26 -0
- data/lib/cbox_billing/api/accounting_api.rb +1893 -0
- data/lib/cbox_billing/api/affiliates_api.rb +2009 -0
- data/lib/cbox_billing/api/agreements_api.rb +552 -0
- data/lib/cbox_billing/api/bank_reconciliation_api.rb +505 -0
- data/lib/cbox_billing/api/catalog_api.rb +361 -0
- data/lib/cbox_billing/api/checkout_portal_api.rb +696 -0
- data/lib/cbox_billing/api/coupons_api.rb +538 -0
- data/lib/cbox_billing/api/credit_notes_api.rb +403 -0
- data/lib/cbox_billing/api/disputes_api.rb +540 -0
- data/lib/cbox_billing/api/dunning_api.rb +902 -0
- data/lib/cbox_billing/api/enforcement_api.rb +746 -0
- data/lib/cbox_billing/api/environments_api.rb +343 -0
- data/lib/cbox_billing/api/invoices_api.rb +1662 -0
- data/lib/cbox_billing/api/licence_data_api.rb +619 -0
- data/lib/cbox_billing/api/licenses_api.rb +293 -0
- data/lib/cbox_billing/api/management_api.rb +253 -0
- data/lib/cbox_billing/api/meters_api.rb +538 -0
- data/lib/cbox_billing/api/orders_and_delivery_api.rb +1745 -0
- data/lib/cbox_billing/api/organizations_api.rb +1110 -0
- data/lib/cbox_billing/api/payment_gateways_api.rb +227 -0
- data/lib/cbox_billing/api/payment_intents_api.rb +376 -0
- data/lib/cbox_billing/api/payment_methods_api.rb +96 -0
- data/lib/cbox_billing/api/plans_api.rb +654 -0
- data/lib/cbox_billing/api/product_access_api.rb +2033 -0
- data/lib/cbox_billing/api/quotes_api.rb +1062 -0
- data/lib/cbox_billing/api/seats_api.rb +938 -0
- data/lib/cbox_billing/api/service_connections_api.rb +245 -0
- data/lib/cbox_billing/api/subscriptions_api.rb +4697 -0
- data/lib/cbox_billing/api/tax_returns_api.rb +453 -0
- data/lib/cbox_billing/api/test_mode_api.rb +96 -0
- data/lib/cbox_billing/api/usage_api.rb +1116 -0
- data/lib/cbox_billing/api/webhook_endpoints_api.rb +835 -0
- data/lib/cbox_billing/api_client.rb +441 -0
- data/lib/cbox_billing/api_error.rb +58 -0
- data/lib/cbox_billing/api_model_base.rb +88 -0
- data/lib/cbox_billing/client.rb +49 -0
- data/lib/cbox_billing/configuration.rb +408 -0
- data/lib/cbox_billing/enforcement/client.rb +665 -0
- data/lib/cbox_billing/enforcement/errors.rb +48 -0
- data/lib/cbox_billing/enforcement/stores.rb +129 -0
- data/lib/cbox_billing/enforcement/transport.rb +79 -0
- data/lib/cbox_billing/enforcement/types.rb +63 -0
- data/lib/cbox_billing/enforcement.rb +9 -0
- data/lib/cbox_billing/errors.rb +110 -0
- data/lib/cbox_billing/idempotency.rb +16 -0
- data/lib/cbox_billing/models/accept_agreement201_response.rb +177 -0
- data/lib/cbox_billing/models/accept_agreement_request.rb +294 -0
- data/lib/cbox_billing/models/accept_agreement_request_user.rb +202 -0
- data/lib/cbox_billing/models/access_balance.rb +276 -0
- data/lib/cbox_billing/models/access_balance_request.rb +309 -0
- data/lib/cbox_billing/models/access_batch.rb +321 -0
- data/lib/cbox_billing/models/access_batch_filters.rb +183 -0
- data/lib/cbox_billing/models/access_cancel_request.rb +207 -0
- data/lib/cbox_billing/models/access_commit_request.rb +207 -0
- data/lib/cbox_billing/models/access_entry.rb +383 -0
- data/lib/cbox_billing/models/access_grant.rb +287 -0
- data/lib/cbox_billing/models/access_grant_request.rb +310 -0
- data/lib/cbox_billing/models/access_invitation.rb +404 -0
- data/lib/cbox_billing/models/access_invite_request.rb +337 -0
- data/lib/cbox_billing/models/access_join_request.rb +369 -0
- data/lib/cbox_billing/models/access_program.rb +511 -0
- data/lib/cbox_billing/models/access_program_input.rb +433 -0
- data/lib/cbox_billing/models/access_redeem_request.rb +335 -0
- data/lib/cbox_billing/models/access_redemption.rb +394 -0
- data/lib/cbox_billing/models/access_report.rb +250 -0
- data/lib/cbox_billing/models/access_report_balances.rb +252 -0
- data/lib/cbox_billing/models/access_report_batches.rb +252 -0
- data/lib/cbox_billing/models/access_report_entries.rb +252 -0
- data/lib/cbox_billing/models/access_report_grants.rb +252 -0
- data/lib/cbox_billing/models/access_report_invitations.rb +252 -0
- data/lib/cbox_billing/models/access_report_redemptions.rb +252 -0
- data/lib/cbox_billing/models/access_restore_grant_request.rb +207 -0
- data/lib/cbox_billing/models/access_retry_delivery_request.rb +207 -0
- data/lib/cbox_billing/models/access_revoke_grant_request.rb +207 -0
- data/lib/cbox_billing/models/access_revoke_invitation200_response.rb +195 -0
- data/lib/cbox_billing/models/access_revoke_invitation_request.rb +207 -0
- data/lib/cbox_billing/models/access_select200_response.rb +356 -0
- data/lib/cbox_billing/models/access_select_request.rb +323 -0
- data/lib/cbox_billing/models/account_credit.rb +258 -0
- data/lib/cbox_billing/models/account_credit_movements_inner.rb +255 -0
- data/lib/cbox_billing/models/account_entitlement.rb +240 -0
- data/lib/cbox_billing/models/accounting_connection.rb +336 -0
- data/lib/cbox_billing/models/accounting_connection_company.rb +170 -0
- data/lib/cbox_billing/models/accounting_contact_conflict.rb +308 -0
- data/lib/cbox_billing/models/accounting_contact_import.rb +397 -0
- data/lib/cbox_billing/models/accounting_contact_import_counts.rb +308 -0
- data/lib/cbox_billing/models/accounting_contact_import_row.rb +363 -0
- data/lib/cbox_billing/models/accounting_contact_import_row_candidates_inner.rb +227 -0
- data/lib/cbox_billing/models/accounting_contact_sync.rb +351 -0
- data/lib/cbox_billing/models/accounting_contact_sync_failure.rb +266 -0
- data/lib/cbox_billing/models/accounting_customer_document.rb +318 -0
- data/lib/cbox_billing/models/accounting_customer_link.rb +354 -0
- data/lib/cbox_billing/models/accounting_customer_link_company.rb +180 -0
- data/lib/cbox_billing/models/accounting_customer_link_contact.rb +292 -0
- data/lib/cbox_billing/models/accounting_customer_link_contact_sync.rb +291 -0
- data/lib/cbox_billing/models/accounting_customer_link_contact_sync_conflicts_inner.rb +237 -0
- data/lib/cbox_billing/models/accounting_customer_link_several_contacts_inner.rb +227 -0
- data/lib/cbox_billing/models/accounting_customer_link_shared_with_inner.rb +203 -0
- data/lib/cbox_billing/models/accounting_invoice.rb +532 -0
- data/lib/cbox_billing/models/accounting_invoice_contact.rb +189 -0
- data/lib/cbox_billing/models/accounting_sync.rb +356 -0
- data/lib/cbox_billing/models/accounting_vendor_contact.rb +307 -0
- data/lib/cbox_billing/models/accounting_vendor_link.rb +216 -0
- data/lib/cbox_billing/models/activation_bundle.rb +293 -0
- data/lib/cbox_billing/models/add_dispute_evidence_file201_response.rb +177 -0
- data/lib/cbox_billing/models/add_dispute_evidence_file422_response.rb +104 -0
- data/lib/cbox_billing/models/add_dispute_evidence_file_request.rb +261 -0
- data/lib/cbox_billing/models/add_invoice_item201_response.rb +177 -0
- data/lib/cbox_billing/models/add_invoice_item202_response.rb +228 -0
- data/lib/cbox_billing/models/add_invoice_item_request.rb +248 -0
- data/lib/cbox_billing/models/add_on.rb +305 -0
- data/lib/cbox_billing/models/add_on_preview.rb +170 -0
- data/lib/cbox_billing/models/add_on_request.rb +434 -0
- data/lib/cbox_billing/models/add_on_result.rb +203 -0
- data/lib/cbox_billing/models/add_product_file_request1.rb +233 -0
- data/lib/cbox_billing/models/add_subscription_phase201_response.rb +177 -0
- data/lib/cbox_billing/models/adjust_affiliate_balance_request.rb +257 -0
- data/lib/cbox_billing/models/admit_service_organization200_response.rb +169 -0
- data/lib/cbox_billing/models/affiliate.rb +505 -0
- data/lib/cbox_billing/models/affiliate_commission.rb +520 -0
- data/lib/cbox_billing/models/affiliate_detail.rb +523 -0
- data/lib/cbox_billing/models/affiliate_payout.rb +443 -0
- data/lib/cbox_billing/models/affiliate_payout_run.rb +446 -0
- data/lib/cbox_billing/models/affiliate_payout_run_list.rb +229 -0
- data/lib/cbox_billing/models/affiliate_payout_settings.rb +356 -0
- data/lib/cbox_billing/models/affiliate_portal_link.rb +203 -0
- data/lib/cbox_billing/models/affiliate_program.rb +556 -0
- data/lib/cbox_billing/models/affiliate_program_commission.rb +269 -0
- data/lib/cbox_billing/models/affiliate_rate_plan.rb +273 -0
- data/lib/cbox_billing/models/affiliate_rate_plan_phases_inner.rb +316 -0
- data/lib/cbox_billing/models/affiliate_rate_rule.rb +233 -0
- data/lib/cbox_billing/models/affiliate_referral.rb +325 -0
- data/lib/cbox_billing/models/agreement_block.rb +337 -0
- data/lib/cbox_billing/models/agreement_error.rb +227 -0
- data/lib/cbox_billing/models/agreement_status.rb +453 -0
- data/lib/cbox_billing/models/agreement_status_requires_inner.rb +202 -0
- data/lib/cbox_billing/models/align_renewals_request.rb +264 -0
- data/lib/cbox_billing/models/allowance_window.rb +269 -0
- data/lib/cbox_billing/models/appendix.rb +293 -0
- data/lib/cbox_billing/models/appendix_column.rb +257 -0
- data/lib/cbox_billing/models/apply_catalog409_response.rb +369 -0
- data/lib/cbox_billing/models/apply_subscription_coupon200_response.rb +177 -0
- data/lib/cbox_billing/models/apply_subscription_coupon_request.rb +197 -0
- data/lib/cbox_billing/models/archive_affiliate_program_request.rb +162 -0
- data/lib/cbox_billing/models/auto_top_up.rb +462 -0
- data/lib/cbox_billing/models/auto_top_up_attempts_inner.rb +290 -0
- data/lib/cbox_billing/models/auto_top_up_limits.rb +230 -0
- data/lib/cbox_billing/models/bank_csv_mapping.rb +467 -0
- data/lib/cbox_billing/models/bank_import_result.rb +285 -0
- data/lib/cbox_billing/models/bank_line.rb +486 -0
- data/lib/cbox_billing/models/bank_line_detail.rb +233 -0
- data/lib/cbox_billing/models/bank_line_detail_payments_inner.rb +280 -0
- data/lib/cbox_billing/models/bank_line_detail_suggestions_inner.rb +267 -0
- data/lib/cbox_billing/models/bank_statement.rb +412 -0
- data/lib/cbox_billing/models/bank_statement_import.rb +258 -0
- data/lib/cbox_billing/models/billing_parent.rb +219 -0
- data/lib/cbox_billing/models/billing_policy.rb +299 -0
- data/lib/cbox_billing/models/billing_policy_policy.rb +228 -0
- data/lib/cbox_billing/models/billing_policy_request.rb +323 -0
- data/lib/cbox_billing/models/bundle_benefit.rb +597 -0
- data/lib/cbox_billing/models/bundle_benefit_tiers_inner.rb +230 -0
- data/lib/cbox_billing/models/bundle_consequence.rb +450 -0
- data/lib/cbox_billing/models/bundle_offer.rb +508 -0
- data/lib/cbox_billing/models/bundle_offer_plan.rb +398 -0
- data/lib/cbox_billing/models/bundle_offer_products_to_add_inner.rb +169 -0
- data/lib/cbox_billing/models/bundle_offer_saves.rb +226 -0
- data/lib/cbox_billing/models/cancel_preview.rb +264 -0
- data/lib/cbox_billing/models/cancel_request.rb +256 -0
- data/lib/cbox_billing/models/cancel_subscription200_response.rb +652 -0
- data/lib/cbox_billing/models/catalog_changes.rb +286 -0
- data/lib/cbox_billing/models/catalog_changes_changes_inner.rb +264 -0
- data/lib/cbox_billing/models/catalog_changes_diff_inner.rb +303 -0
- data/lib/cbox_billing/models/catalog_changes_diff_inner_fields_inner.rb +180 -0
- data/lib/cbox_billing/models/catalog_changes_diff_inner_fields_inner_from.rb +105 -0
- data/lib/cbox_billing/models/catalog_changes_impact.rb +215 -0
- data/lib/cbox_billing/models/catalog_changes_impact_bundle_repriced_inner.rb +224 -0
- data/lib/cbox_billing/models/catalog_changes_impact_sample_inner.rb +169 -0
- data/lib/cbox_billing/models/catalog_changes_summary.rb +178 -0
- data/lib/cbox_billing/models/catalog_manifest.rb +215 -0
- data/lib/cbox_billing/models/catalog_manifest_bundles_inner.rb +344 -0
- data/lib/cbox_billing/models/catalog_manifest_bundles_inner_applies_to.rb +199 -0
- data/lib/cbox_billing/models/catalog_manifest_bundles_inner_copy_value.rb +263 -0
- data/lib/cbox_billing/models/catalog_manifest_bundles_inner_discount.rb +286 -0
- data/lib/cbox_billing/models/catalog_manifest_bundles_inner_requires.rb +254 -0
- data/lib/cbox_billing/models/catalog_manifest_existing.rb +242 -0
- data/lib/cbox_billing/models/catalog_manifest_products_inner.rb +246 -0
- data/lib/cbox_billing/models/catalog_manifest_products_inner_features_inner.rb +269 -0
- data/lib/cbox_billing/models/catalog_manifest_products_inner_meters_inner.rb +410 -0
- data/lib/cbox_billing/models/catalog_manifest_products_inner_plans_inner.rb +258 -0
- data/lib/cbox_billing/models/catalog_manifest_products_inner_plans_inner_meters_value.rb +356 -0
- data/lib/cbox_billing/models/catalog_manifest_products_inner_plans_inner_meters_value_price_value.rb +471 -0
- data/lib/cbox_billing/models/catalog_manifest_products_inner_plans_inner_meters_value_price_value_matrix_inner.rb +274 -0
- data/lib/cbox_billing/models/catalog_manifest_products_inner_plans_inner_meters_value_price_value_rates_inner.rb +216 -0
- data/lib/cbox_billing/models/change_subscription_dates200_response.rb +187 -0
- data/lib/cbox_billing/models/change_subscription_dates_request.rb +325 -0
- data/lib/cbox_billing/models/charged_invoice.rb +322 -0
- data/lib/cbox_billing/models/check_service_admission200_response.rb +178 -0
- data/lib/cbox_billing/models/checkout_session_request.rb +354 -0
- data/lib/cbox_billing/models/checkout_session_request_items_inner.rb +217 -0
- data/lib/cbox_billing/models/choose_accounting_contact_import_row200_response.rb +177 -0
- data/lib/cbox_billing/models/clear_subscription_end_date200_response.rb +162 -0
- data/lib/cbox_billing/models/commit_request.rb +214 -0
- data/lib/cbox_billing/models/commit_request_actuals_inner.rb +212 -0
- data/lib/cbox_billing/models/commitment.rb +499 -0
- data/lib/cbox_billing/models/commitment_ramp_step.rb +221 -0
- data/lib/cbox_billing/models/commitment_refusal.rb +239 -0
- data/lib/cbox_billing/models/commitment_request.rb +409 -0
- data/lib/cbox_billing/models/commitment_response.rb +203 -0
- data/lib/cbox_billing/models/commitment_term.rb +227 -0
- data/lib/cbox_billing/models/confirm_accounting_contact_import200_response.rb +177 -0
- data/lib/cbox_billing/models/confirm_accounting_contact_import_request.rb +190 -0
- data/lib/cbox_billing/models/connect_engage_service200_response.rb +212 -0
- data/lib/cbox_billing/models/connect_engage_service_request.rb +267 -0
- data/lib/cbox_billing/models/contract_cap_discount.rb +284 -0
- data/lib/cbox_billing/models/contract_price_cap.rb +332 -0
- data/lib/cbox_billing/models/contract_price_cap_basis.rb +216 -0
- data/lib/cbox_billing/models/coupon.rb +307 -0
- data/lib/cbox_billing/models/coupon_definition.rb +520 -0
- data/lib/cbox_billing/models/coupon_definition_detail.rb +555 -0
- data/lib/cbox_billing/models/coupon_definition_detail_all_of_redemptions.rb +216 -0
- data/lib/cbox_billing/models/coupon_definition_list.rb +226 -0
- data/lib/cbox_billing/models/coupon_deleted.rb +227 -0
- data/lib/cbox_billing/models/coupon_request.rb +537 -0
- data/lib/cbox_billing/models/create_affiliate_payout_request.rb +247 -0
- data/lib/cbox_billing/models/create_affiliate_program_request.rb +423 -0
- data/lib/cbox_billing/models/create_affiliate_program_request_commission.rb +348 -0
- data/lib/cbox_billing/models/create_affiliate_referral_request.rb +178 -0
- data/lib/cbox_billing/models/create_affiliate_request.rb +415 -0
- data/lib/cbox_billing/models/create_credit_purchase422_response.rb +104 -0
- data/lib/cbox_billing/models/create_customers_from_accounting_contact_import200_response.rb +207 -0
- data/lib/cbox_billing/models/create_customers_from_accounting_contact_import200_response_created_inner.rb +204 -0
- data/lib/cbox_billing/models/create_customers_from_accounting_contact_import200_response_refused_inner.rb +204 -0
- data/lib/cbox_billing/models/create_customers_from_accounting_contact_import_request.rb +197 -0
- data/lib/cbox_billing/models/create_download_grant_request.rb +248 -0
- data/lib/cbox_billing/models/create_download_links200_response.rb +205 -0
- data/lib/cbox_billing/models/create_download_links200_response_data_inner.rb +227 -0
- data/lib/cbox_billing/models/create_download_links_request.rb +190 -0
- data/lib/cbox_billing/models/create_environment_request.rb +270 -0
- data/lib/cbox_billing/models/create_license_key_request.rb +273 -0
- data/lib/cbox_billing/models/create_order_request.rb +420 -0
- data/lib/cbox_billing/models/create_order_request_lines_inner.rb +262 -0
- data/lib/cbox_billing/models/create_private_plan_request.rb +318 -0
- data/lib/cbox_billing/models/create_spend_alert_request.rb +295 -0
- data/lib/cbox_billing/models/created_access_invitation.rb +464 -0
- data/lib/cbox_billing/models/created_environment.rb +214 -0
- data/lib/cbox_billing/models/credit_adjustment_applied.rb +247 -0
- data/lib/cbox_billing/models/credit_adjustment_pending.rb +228 -0
- data/lib/cbox_billing/models/credit_adjustment_request.rb +375 -0
- data/lib/cbox_billing/models/credit_delta.rb +229 -0
- data/lib/cbox_billing/models/credit_movement.rb +364 -0
- data/lib/cbox_billing/models/credit_movement_list.rb +226 -0
- data/lib/cbox_billing/models/credit_note.rb +455 -0
- data/lib/cbox_billing/models/credit_note_detail.rb +517 -0
- data/lib/cbox_billing/models/credit_note_detail_all_of_lines.rb +294 -0
- data/lib/cbox_billing/models/credit_note_list.rb +226 -0
- data/lib/cbox_billing/models/credit_pool.rb +567 -0
- data/lib/cbox_billing/models/credit_pool_expiries_inner.rb +241 -0
- data/lib/cbox_billing/models/credit_pool_label.rb +204 -0
- data/lib/cbox_billing/models/credit_pool_list.rb +205 -0
- data/lib/cbox_billing/models/credit_pool_pay_as_you_go.rb +218 -0
- data/lib/cbox_billing/models/credit_pool_period.rb +175 -0
- data/lib/cbox_billing/models/credit_pool_scope.rb +207 -0
- data/lib/cbox_billing/models/credit_pool_scope_conditions_inner.rb +256 -0
- data/lib/cbox_billing/models/credit_purchase.rb +306 -0
- data/lib/cbox_billing/models/credit_purchase_credit.rb +203 -0
- data/lib/cbox_billing/models/customer_contract.rb +227 -0
- data/lib/cbox_billing/models/customer_overage_cap_row.rb +345 -0
- data/lib/cbox_billing/models/customer_overage_cap_row_customer.rb +202 -0
- data/lib/cbox_billing/models/date_change_preview.rb +370 -0
- data/lib/cbox_billing/models/date_change_request.rb +272 -0
- data/lib/cbox_billing/models/delete_entitlement_override200_response.rb +204 -0
- data/lib/cbox_billing/models/delete_overage_cap200_response.rb +203 -0
- data/lib/cbox_billing/models/delete_spend_alert200_response.rb +203 -0
- data/lib/cbox_billing/models/delete_webhook_endpoint200_response.rb +239 -0
- data/lib/cbox_billing/models/delivery.rb +339 -0
- data/lib/cbox_billing/models/destroy_environment200_response.rb +178 -0
- data/lib/cbox_billing/models/detach_payment_method422_response.rb +253 -0
- data/lib/cbox_billing/models/detach_payment_method422_response_errors.rb +162 -0
- data/lib/cbox_billing/models/directory_registration.rb +244 -0
- data/lib/cbox_billing/models/directory_service.rb +472 -0
- data/lib/cbox_billing/models/disable_license_key_request.rb +161 -0
- data/lib/cbox_billing/models/dispute.rb +471 -0
- data/lib/cbox_billing/models/dispute_detail.rb +229 -0
- data/lib/cbox_billing/models/dispute_detail_evidence.rb +205 -0
- data/lib/cbox_billing/models/dispute_detail_evidence_text.rb +200 -0
- data/lib/cbox_billing/models/dispute_detail_pack.rb +193 -0
- data/lib/cbox_billing/models/dispute_detail_pack_sections_inner.rb +269 -0
- data/lib/cbox_billing/models/dispute_evidence.rb +312 -0
- data/lib/cbox_billing/models/dispute_evidence_file.rb +357 -0
- data/lib/cbox_billing/models/dispute_evidence_slot.rb +43 -0
- data/lib/cbox_billing/models/dispute_refusal.rb +256 -0
- data/lib/cbox_billing/models/dispute_status.rb +46 -0
- data/lib/cbox_billing/models/download_grant.rb +401 -0
- data/lib/cbox_billing/models/dunning_hold.rb +344 -0
- data/lib/cbox_billing/models/dunning_state.rb +217 -0
- data/lib/cbox_billing/models/dunning_state_invoice.rb +281 -0
- data/lib/cbox_billing/models/dunning_state_retry.rb +232 -0
- data/lib/cbox_billing/models/e_invoice_refusal.rb +229 -0
- data/lib/cbox_billing/models/effective_billing_policy.rb +298 -0
- data/lib/cbox_billing/models/effective_entitlement.rb +271 -0
- data/lib/cbox_billing/models/effective_usage_threshold.rb +280 -0
- data/lib/cbox_billing/models/entitlement.rb +366 -0
- data/lib/cbox_billing/models/entitlement_override.rb +557 -0
- data/lib/cbox_billing/models/entitlement_override_input.rb +353 -0
- data/lib/cbox_billing/models/entitlement_override_result.rb +591 -0
- data/lib/cbox_billing/models/entitlement_terms.rb +293 -0
- data/lib/cbox_billing/models/entitlements_response.rb +200 -0
- data/lib/cbox_billing/models/environment.rb +379 -0
- data/lib/cbox_billing/models/error_body.rb +242 -0
- data/lib/cbox_billing/models/export_catalog200_response.rb +232 -0
- data/lib/cbox_billing/models/extend_invoice_due_date_request.rb +213 -0
- data/lib/cbox_billing/models/feature.rb +277 -0
- data/lib/cbox_billing/models/feature_check.rb +310 -0
- data/lib/cbox_billing/models/feature_set.rb +179 -0
- data/lib/cbox_billing/models/feature_value.rb +105 -0
- data/lib/cbox_billing/models/first_period.rb +461 -0
- data/lib/cbox_billing/models/gateway_intent.rb +254 -0
- data/lib/cbox_billing/models/get_accounting_connection200_response.rb +163 -0
- data/lib/cbox_billing/models/get_accounting_contact200_response.rb +227 -0
- data/lib/cbox_billing/models/get_accounting_contact_sync200_response.rb +229 -0
- data/lib/cbox_billing/models/get_accounting_invoice_sync200_response.rb +293 -0
- data/lib/cbox_billing/models/get_accounting_invoice_sync200_response_settings.rb +241 -0
- data/lib/cbox_billing/models/get_accounting_invoice_sync200_response_sync.rb +318 -0
- data/lib/cbox_billing/models/get_accounting_organization200_response.rb +231 -0
- data/lib/cbox_billing/models/get_bank_statement200_response.rb +205 -0
- data/lib/cbox_billing/models/get_customer_statement200_response.rb +339 -0
- data/lib/cbox_billing/models/get_customer_statement200_response_account_credit.rb +169 -0
- data/lib/cbox_billing/models/get_customer_statement200_response_activity_inner.rb +334 -0
- data/lib/cbox_billing/models/get_customer_statement200_response_balances_inner.rb +229 -0
- data/lib/cbox_billing/models/get_customer_statement200_response_subscriptions_inner.rb +281 -0
- data/lib/cbox_billing/models/get_customer_statement200_response_subscriptions_inner_next.rb +200 -0
- data/lib/cbox_billing/models/get_latest_accounting_contact_import200_response.rb +163 -0
- data/lib/cbox_billing/models/get_product_delivery200_response.rb +217 -0
- data/lib/cbox_billing/models/get_resource_limits200_response.rb +257 -0
- data/lib/cbox_billing/models/get_service_admission_policy200_response.rb +160 -0
- data/lib/cbox_billing/models/get_service_registrations200_response.rb +179 -0
- data/lib/cbox_billing/models/get_service_registrations200_response_data_inner.rb +190 -0
- data/lib/cbox_billing/models/get_service_registrations_request.rb +284 -0
- data/lib/cbox_billing/models/grandfathered_subscriber.rb +356 -0
- data/lib/cbox_billing/models/grandfathered_subscriber_contract_cap.rb +230 -0
- data/lib/cbox_billing/models/guest_waitlist_input.rb +271 -0
- data/lib/cbox_billing/models/hold_invoice_dunning_request.rb +249 -0
- data/lib/cbox_billing/models/hold_invoice_for_review200_response.rb +177 -0
- data/lib/cbox_billing/models/hosted_session.rb +204 -0
- data/lib/cbox_billing/models/import_bank_statement201_response.rb +203 -0
- data/lib/cbox_billing/models/inline_object.rb +227 -0
- data/lib/cbox_billing/models/inline_object1.rb +255 -0
- data/lib/cbox_billing/models/inline_object2.rb +255 -0
- data/lib/cbox_billing/models/invoice.rb +523 -0
- data/lib/cbox_billing/models/invoice_balance.rb +281 -0
- data/lib/cbox_billing/models/invoice_detail.rb +655 -0
- data/lib/cbox_billing/models/invoice_draft.rb +452 -0
- data/lib/cbox_billing/models/invoice_draft_lines_inner.rb +199 -0
- data/lib/cbox_billing/models/invoice_item.rb +354 -0
- data/lib/cbox_billing/models/invoice_line.rb +295 -0
- data/lib/cbox_billing/models/invoice_list.rb +226 -0
- data/lib/cbox_billing/models/invoice_payment.rb +292 -0
- data/lib/cbox_billing/models/invoice_payment_result.rb +203 -0
- data/lib/cbox_billing/models/join_service_waitlist200_response.rb +163 -0
- data/lib/cbox_billing/models/join_service_waitlist_as_guest200_response.rb +194 -0
- data/lib/cbox_billing/models/join_service_waitlist_request.rb +378 -0
- data/lib/cbox_billing/models/keep_accounting_contact200_response.rb +231 -0
- data/lib/cbox_billing/models/keep_accounting_contact_request.rb +186 -0
- data/lib/cbox_billing/models/lease.rb +266 -0
- data/lib/cbox_billing/models/lease_request.rb +341 -0
- data/lib/cbox_billing/models/leave_feature_waitlist200_response.rb +201 -0
- data/lib/cbox_billing/models/leave_feature_waitlist_request.rb +249 -0
- data/lib/cbox_billing/models/licence_period_document.rb +408 -0
- data/lib/cbox_billing/models/licence_period_document_usage_measures_inner.rb +170 -0
- data/lib/cbox_billing/models/licence_period_list.rb +230 -0
- data/lib/cbox_billing/models/licence_period_summary.rb +344 -0
- data/lib/cbox_billing/models/licence_reportable.rb +204 -0
- data/lib/cbox_billing/models/licence_row_list.rb +244 -0
- data/lib/cbox_billing/models/licence_seat_count.rb +355 -0
- data/lib/cbox_billing/models/licence_seat_ledger_entry.rb +578 -0
- data/lib/cbox_billing/models/licence_seat_ledger_list.rb +217 -0
- data/lib/cbox_billing/models/licence_seat_snapshot_list.rb +243 -0
- data/lib/cbox_billing/models/license.rb +407 -0
- data/lib/cbox_billing/models/license_issue_request.rb +232 -0
- data/lib/cbox_billing/models/license_key.rb +503 -0
- data/lib/cbox_billing/models/license_key_detail.rb +537 -0
- data/lib/cbox_billing/models/license_key_detail_all_of_instances.rb +277 -0
- data/lib/cbox_billing/models/license_renew_request.rb +160 -0
- data/lib/cbox_billing/models/license_revoke_request.rb +160 -0
- data/lib/cbox_billing/models/license_revoke_result.rb +227 -0
- data/lib/cbox_billing/models/limit_increase_decision.rb +368 -0
- data/lib/cbox_billing/models/limit_increase_input.rb +300 -0
- data/lib/cbox_billing/models/limit_increase_request.rb +516 -0
- data/lib/cbox_billing/models/link_accounting_contact200_response.rb +177 -0
- data/lib/cbox_billing/models/link_accounting_contact_request.rb +187 -0
- data/lib/cbox_billing/models/list_access_programs200_response.rb +252 -0
- data/lib/cbox_billing/models/list_accounting_contact_duplicates200_response.rb +205 -0
- data/lib/cbox_billing/models/list_accounting_contact_duplicates200_response_duplicates_inner.rb +205 -0
- data/lib/cbox_billing/models/list_accounting_contact_duplicates200_response_duplicates_inner_organizations_inner.rb +203 -0
- data/lib/cbox_billing/models/list_accounting_contact_import_rows200_response.rb +192 -0
- data/lib/cbox_billing/models/list_accounting_contact_sync_failures200_response.rb +217 -0
- data/lib/cbox_billing/models/list_accounting_contacts200_response.rb +282 -0
- data/lib/cbox_billing/models/list_accounting_organization_invoices200_response.rb +191 -0
- data/lib/cbox_billing/models/list_accounting_syncs200_response.rb +179 -0
- data/lib/cbox_billing/models/list_affiliate_commissions200_response.rb +226 -0
- data/lib/cbox_billing/models/list_affiliate_payout_runs200_response.rb +226 -0
- data/lib/cbox_billing/models/list_affiliate_payouts200_response.rb +226 -0
- data/lib/cbox_billing/models/list_affiliate_programs200_response.rb +226 -0
- data/lib/cbox_billing/models/list_affiliates200_response.rb +226 -0
- data/lib/cbox_billing/models/list_agreements200_response.rb +179 -0
- data/lib/cbox_billing/models/list_all_invoices400_response.rb +177 -0
- data/lib/cbox_billing/models/list_bank_lines200_response.rb +215 -0
- data/lib/cbox_billing/models/list_bank_statements200_response.rb +215 -0
- data/lib/cbox_billing/models/list_connected_financial_events200_response.rb +292 -0
- data/lib/cbox_billing/models/list_connected_production_environments200_response.rb +205 -0
- data/lib/cbox_billing/models/list_connected_production_environments200_response_data_inner.rb +203 -0
- data/lib/cbox_billing/models/list_customer_dunning_holds200_response.rb +179 -0
- data/lib/cbox_billing/models/list_disputes200_response.rb +217 -0
- data/lib/cbox_billing/models/list_download_grants200_response.rb +226 -0
- data/lib/cbox_billing/models/list_entitlement_overrides200_response.rb +207 -0
- data/lib/cbox_billing/models/list_environments200_response.rb +162 -0
- data/lib/cbox_billing/models/list_financial_events200_response.rb +240 -0
- data/lib/cbox_billing/models/list_financial_events200_response_data_inner.rb +342 -0
- data/lib/cbox_billing/models/list_financial_events200_response_data_inner_data.rb +408 -0
- data/lib/cbox_billing/models/list_grandfathered_subscribers200_response.rb +244 -0
- data/lib/cbox_billing/models/list_invoice_drafts200_response.rb +215 -0
- data/lib/cbox_billing/models/list_invoice_items200_response.rb +179 -0
- data/lib/cbox_billing/models/list_invoice_payments200_response.rb +205 -0
- data/lib/cbox_billing/models/list_license_keys200_response.rb +226 -0
- data/lib/cbox_billing/models/list_limit_increase_requests200_response.rb +231 -0
- data/lib/cbox_billing/models/list_one_off_products200_response.rb +179 -0
- data/lib/cbox_billing/models/list_orders200_response.rb +226 -0
- data/lib/cbox_billing/models/list_organization_purchases200_response.rb +205 -0
- data/lib/cbox_billing/models/list_organization_subscriptions200_response.rb +179 -0
- data/lib/cbox_billing/models/list_overage_caps200_response.rb +179 -0
- data/lib/cbox_billing/models/list_plan_moves200_response.rb +179 -0
- data/lib/cbox_billing/models/list_private_plans200_response.rb +179 -0
- data/lib/cbox_billing/models/list_product_files200_response.rb +179 -0
- data/lib/cbox_billing/models/list_scheduled_catalog_changes200_response.rb +179 -0
- data/lib/cbox_billing/models/list_service_directory200_response.rb +249 -0
- data/lib/cbox_billing/models/list_signed_agreements200_response.rb +226 -0
- data/lib/cbox_billing/models/list_spend_alerts200_response.rb +218 -0
- data/lib/cbox_billing/models/list_spend_alerts200_response_spend.rb +222 -0
- data/lib/cbox_billing/models/list_subscription_date_moves200_response.rb +179 -0
- data/lib/cbox_billing/models/list_subscription_schedule200_response.rb +179 -0
- data/lib/cbox_billing/models/list_tax_return_lines200_response.rb +215 -0
- data/lib/cbox_billing/models/list_tax_returns200_response.rb +215 -0
- data/lib/cbox_billing/models/list_unmatched_accounting_invoices200_response.rb +192 -0
- data/lib/cbox_billing/models/lock_subscription_price_request.rb +162 -0
- data/lib/cbox_billing/models/mark_affiliate_payout_paid_request.rb +176 -0
- data/lib/cbox_billing/models/mark_invoice_paid_request.rb +176 -0
- data/lib/cbox_billing/models/match_bank_line_request.rb +197 -0
- data/lib/cbox_billing/models/match_bank_line_request_allocations_inner.rb +221 -0
- data/lib/cbox_billing/models/meter.rb +524 -0
- data/lib/cbox_billing/models/meter_detail.rb +587 -0
- data/lib/cbox_billing/models/meter_detail_all_of_entitlements.rb +260 -0
- data/lib/cbox_billing/models/meter_list.rb +226 -0
- data/lib/cbox_billing/models/meter_request.rb +463 -0
- data/lib/cbox_billing/models/meter_request_resets.rb +237 -0
- data/lib/cbox_billing/models/meter_resets.rb +279 -0
- data/lib/cbox_billing/models/meter_staged.rb +309 -0
- data/lib/cbox_billing/models/meter_staged_changeset.rb +265 -0
- data/lib/cbox_billing/models/money.rb +222 -0
- data/lib/cbox_billing/models/money_amount.rb +203 -0
- data/lib/cbox_billing/models/move_affiliate_referral_request.rb +213 -0
- data/lib/cbox_billing/models/move_affiliate_request.rb +188 -0
- data/lib/cbox_billing/models/negotiated_price.rb +277 -0
- data/lib/cbox_billing/models/new_auto_top_up.rb +277 -0
- data/lib/cbox_billing/models/new_credit_purchase.rb +271 -0
- data/lib/cbox_billing/models/new_invoice.rb +264 -0
- data/lib/cbox_billing/models/new_invoice_line.rb +295 -0
- data/lib/cbox_billing/models/ok.rb +201 -0
- data/lib/cbox_billing/models/one_off_product.rb +359 -0
- data/lib/cbox_billing/models/one_off_purchase.rb +396 -0
- data/lib/cbox_billing/models/one_off_purchase_items_inner.rb +255 -0
- data/lib/cbox_billing/models/one_off_quote.rb +527 -0
- data/lib/cbox_billing/models/one_off_quote_organization.rb +177 -0
- data/lib/cbox_billing/models/one_off_quote_request.rb +324 -0
- data/lib/cbox_billing/models/order.rb +573 -0
- data/lib/cbox_billing/models/order_items_inner.rb +311 -0
- data/lib/cbox_billing/models/organization.rb +545 -0
- data/lib/cbox_billing/models/organization_accounting_contact.rb +255 -0
- data/lib/cbox_billing/models/organization_bundles.rb +310 -0
- data/lib/cbox_billing/models/organization_bundles_active_inner.rb +242 -0
- data/lib/cbox_billing/models/organization_response.rb +177 -0
- data/lib/cbox_billing/models/organization_upsert_request.rb +666 -0
- data/lib/cbox_billing/models/overage_cap.rb +105 -0
- data/lib/cbox_billing/models/overage_cap_binding.rb +263 -0
- data/lib/cbox_billing/models/overage_cap_one_of.rb +186 -0
- data/lib/cbox_billing/models/overage_cap_one_of1.rb +231 -0
- data/lib/cbox_billing/models/overage_cap_state.rb +380 -0
- data/lib/cbox_billing/models/page.rb +192 -0
- data/lib/cbox_billing/models/payment_gateway_failover.rb +233 -0
- data/lib/cbox_billing/models/payment_gateway_failover_failovers_inner.rb +348 -0
- data/lib/cbox_billing/models/payment_gateway_failover_failovers_inner_hops_inner.rb +190 -0
- data/lib/cbox_billing/models/payment_gateway_failover_gateways_inner.rb +230 -0
- data/lib/cbox_billing/models/payment_gateway_failover_gateways_inner_circuit.rb +288 -0
- data/lib/cbox_billing/models/payment_gateway_failover_routing.rb +235 -0
- data/lib/cbox_billing/models/payment_intent_request.rb +254 -0
- data/lib/cbox_billing/models/payment_mandate.rb +253 -0
- data/lib/cbox_billing/models/payment_method.rb +374 -0
- data/lib/cbox_billing/models/payment_method_id_request.rb +177 -0
- data/lib/cbox_billing/models/payment_method_list.rb +226 -0
- data/lib/cbox_billing/models/payment_method_set.rb +180 -0
- data/lib/cbox_billing/models/payment_terms.rb +281 -0
- data/lib/cbox_billing/models/payment_terms_request.rb +235 -0
- data/lib/cbox_billing/models/pending_approval.rb +229 -0
- data/lib/cbox_billing/models/pending_price_change.rb +257 -0
- data/lib/cbox_billing/models/per_value_entitlements.rb +206 -0
- data/lib/cbox_billing/models/per_value_entitlements_values_value.rb +263 -0
- data/lib/cbox_billing/models/plan.rb +425 -0
- data/lib/cbox_billing/models/plan_change_input.rb +224 -0
- data/lib/cbox_billing/models/plan_change_preview.rb +478 -0
- data/lib/cbox_billing/models/plan_change_preview_seat_types_inner.rb +356 -0
- data/lib/cbox_billing/models/plan_change_price_options.rb +280 -0
- data/lib/cbox_billing/models/plan_change_price_options_keep_negotiated.rb +230 -0
- data/lib/cbox_billing/models/plan_change_request.rb +256 -0
- data/lib/cbox_billing/models/plan_change_result.rb +543 -0
- data/lib/cbox_billing/models/plan_features_value.rb +105 -0
- data/lib/cbox_billing/models/plan_list.rb +253 -0
- data/lib/cbox_billing/models/plan_meter_entitlement.rb +250 -0
- data/lib/cbox_billing/models/plan_move.rb +386 -0
- data/lib/cbox_billing/models/plan_move_subscribers.rb +188 -0
- data/lib/cbox_billing/models/plan_price.rb +256 -0
- data/lib/cbox_billing/models/plan_prices_inner.rb +241 -0
- data/lib/cbox_billing/models/plane_invoice_list.rb +226 -0
- data/lib/cbox_billing/models/plane_invoice_list_all_of_data.rb +557 -0
- data/lib/cbox_billing/models/portal_session_request.rb +309 -0
- data/lib/cbox_billing/models/prepare_tax_return200_response.rb +177 -0
- data/lib/cbox_billing/models/prepare_tax_return_request.rb +237 -0
- data/lib/cbox_billing/models/preview_renewal_alignment_request.rb +201 -0
- data/lib/cbox_billing/models/preview_service_invitation200_response.rb +161 -0
- data/lib/cbox_billing/models/preview_service_invitation200_response_invitation.rb +189 -0
- data/lib/cbox_billing/models/preview_service_invitation_request.rb +186 -0
- data/lib/cbox_billing/models/preview_subscription_cancel_request.rb +216 -0
- data/lib/cbox_billing/models/preview_subscription_coupon200_response.rb +205 -0
- data/lib/cbox_billing/models/preview_subscription_coupon_request.rb +186 -0
- data/lib/cbox_billing/models/price_lock.rb +215 -0
- data/lib/cbox_billing/models/price_lock_state.rb +190 -0
- data/lib/cbox_billing/models/price_tax.rb +348 -0
- data/lib/cbox_billing/models/private_plan.rb +380 -0
- data/lib/cbox_billing/models/product_definition_manifest.rb +269 -0
- data/lib/cbox_billing/models/product_definition_manifest_features_inner.rb +333 -0
- data/lib/cbox_billing/models/product_definition_manifest_meters_inner.rb +434 -0
- data/lib/cbox_billing/models/product_file.rb +420 -0
- data/lib/cbox_billing/models/proration_line.rb +203 -0
- data/lib/cbox_billing/models/quantity_preview.rb +321 -0
- data/lib/cbox_billing/models/quantity_request.rb +196 -0
- data/lib/cbox_billing/models/quote.rb +700 -0
- data/lib/cbox_billing/models/quote_all_of_acceptance.rb +206 -0
- data/lib/cbox_billing/models/quote_all_of_approval.rb +201 -0
- data/lib/cbox_billing/models/quote_all_of_grants.rb +205 -0
- data/lib/cbox_billing/models/quote_all_of_lines.rb +284 -0
- data/lib/cbox_billing/models/quote_all_of_terms.rb +285 -0
- data/lib/cbox_billing/models/quote_all_of_terms_ramp.rb +169 -0
- data/lib/cbox_billing/models/quote_all_of_totals.rb +255 -0
- data/lib/cbox_billing/models/quote_all_of_totals_lines.rb +223 -0
- data/lib/cbox_billing/models/quote_line_grants.rb +212 -0
- data/lib/cbox_billing/models/quote_line_grants_features_inner.rb +204 -0
- data/lib/cbox_billing/models/quote_line_grants_meters_inner.rb +260 -0
- data/lib/cbox_billing/models/quote_line_request.rb +368 -0
- data/lib/cbox_billing/models/quote_list.rb +226 -0
- data/lib/cbox_billing/models/quote_request.rb +650 -0
- data/lib/cbox_billing/models/quote_request_ramp_inner.rb +221 -0
- data/lib/cbox_billing/models/quote_signer.rb +434 -0
- data/lib/cbox_billing/models/quote_signer_request.rb +247 -0
- data/lib/cbox_billing/models/quote_signer_signature.rb +296 -0
- data/lib/cbox_billing/models/quote_signing.rb +384 -0
- data/lib/cbox_billing/models/quote_signing_request.rb +278 -0
- data/lib/cbox_billing/models/quote_signing_signed_document.rb +240 -0
- data/lib/cbox_billing/models/quote_summary.rb +440 -0
- data/lib/cbox_billing/models/rate_limit_error_body.rb +177 -0
- data/lib/cbox_billing/models/reconcile_id_signals_inclusion200_response.rb +211 -0
- data/lib/cbox_billing/models/reconcile_id_signals_inclusion_request.rb +162 -0
- data/lib/cbox_billing/models/record_invoice_payment_request.rb +223 -0
- data/lib/cbox_billing/models/recurring_price.rb +230 -0
- data/lib/cbox_billing/models/refund.rb +493 -0
- data/lib/cbox_billing/models/refund_list.rb +179 -0
- data/lib/cbox_billing/models/refund_order_request.rb +223 -0
- data/lib/cbox_billing/models/refund_request.rb +227 -0
- data/lib/cbox_billing/models/refund_result.rb +239 -0
- data/lib/cbox_billing/models/refusal.rb +205 -0
- data/lib/cbox_billing/models/release_invoice_from_review200_response.rb +205 -0
- data/lib/cbox_billing/models/remove_billing_parent_request.rb +186 -0
- data/lib/cbox_billing/models/remove_subscription_coupon200_response.rb +177 -0
- data/lib/cbox_billing/models/remove_subscription_coupon_request.rb +177 -0
- data/lib/cbox_billing/models/reserve_outcome.rb +251 -0
- data/lib/cbox_billing/models/reserve_request.rb +225 -0
- data/lib/cbox_billing/models/reserve_request_meters_inner.rb +212 -0
- data/lib/cbox_billing/models/reset_environment200_response.rb +187 -0
- data/lib/cbox_billing/models/reset_environment_request.rb +162 -0
- data/lib/cbox_billing/models/reset_period.rb +247 -0
- data/lib/cbox_billing/models/resource_limit.rb +392 -0
- data/lib/cbox_billing/models/retry_accounting_sync202_response.rb +177 -0
- data/lib/cbox_billing/models/retry_invoice_dunning_request.rb +176 -0
- data/lib/cbox_billing/models/reverse_invoice_payment_request.rb +186 -0
- data/lib/cbox_billing/models/revoke_limit_increase_request.rb +195 -0
- data/lib/cbox_billing/models/schedule_phase.rb +486 -0
- data/lib/cbox_billing/models/schedule_phase_request.rb +396 -0
- data/lib/cbox_billing/models/schedule_plan_move_request.rb +231 -0
- data/lib/cbox_billing/models/scheduled_catalog_change.rb +331 -0
- data/lib/cbox_billing/models/scheduled_catalog_change_existing.rb +215 -0
- data/lib/cbox_billing/models/seat_breakdown.rb +404 -0
- data/lib/cbox_billing/models/seat_entitlement.rb +267 -0
- data/lib/cbox_billing/models/seat_ledger_entry.rb +440 -0
- data/lib/cbox_billing/models/seat_ledger_page.rb +205 -0
- data/lib/cbox_billing/models/seat_ledger_page_meta.rb +255 -0
- data/lib/cbox_billing/models/seat_reassign_request.rb +187 -0
- data/lib/cbox_billing/models/seat_subject_request.rb +178 -0
- data/lib/cbox_billing/models/seat_type_change.rb +384 -0
- data/lib/cbox_billing/models/seat_type_entitlement.rb +269 -0
- data/lib/cbox_billing/models/seat_type_quantity_request.rb +205 -0
- data/lib/cbox_billing/models/seat_type_response.rb +177 -0
- data/lib/cbox_billing/models/seat_type_state.rb +565 -0
- data/lib/cbox_billing/models/seat_type_state_holders_inner.rb +189 -0
- data/lib/cbox_billing/models/seats_set_request.rb +186 -0
- data/lib/cbox_billing/models/service_admission_identity.rb +237 -0
- data/lib/cbox_billing/models/service_admission_input.rb +388 -0
- data/lib/cbox_billing/models/set_backup_card_consent200_response.rb +189 -0
- data/lib/cbox_billing/models/set_backup_card_consent_request.rb +177 -0
- data/lib/cbox_billing/models/set_billing_parent409_response.rb +227 -0
- data/lib/cbox_billing/models/set_billing_parent_request.rb +212 -0
- data/lib/cbox_billing/models/set_customer_contract_request.rb +197 -0
- data/lib/cbox_billing/models/set_invoice_consolidation_request.rb +177 -0
- data/lib/cbox_billing/models/set_overage_cap422_response.rb +227 -0
- data/lib/cbox_billing/models/set_product_delivery_request.rb +342 -0
- data/lib/cbox_billing/models/set_subscription_purchase_order200_response.rb +189 -0
- data/lib/cbox_billing/models/set_subscription_purchase_order_request.rb +176 -0
- data/lib/cbox_billing/models/setup_intent.rb +302 -0
- data/lib/cbox_billing/models/setup_intent_request.rb +177 -0
- data/lib/cbox_billing/models/show_environment200_response.rb +160 -0
- data/lib/cbox_billing/models/signals_source200_response.rb +214 -0
- data/lib/cbox_billing/models/signals_source200_response_meta.rb +471 -0
- data/lib/cbox_billing/models/signals_source_erasures200_response.rb +214 -0
- data/lib/cbox_billing/models/signals_source_erasures200_response_meta.rb +329 -0
- data/lib/cbox_billing/models/signed_agreement.rb +498 -0
- data/lib/cbox_billing/models/signed_agreement_document.rb +252 -0
- data/lib/cbox_billing/models/skip_accounting_contact_import_rows200_response.rb +177 -0
- data/lib/cbox_billing/models/skip_accounting_contact_import_rows_request.rb +188 -0
- data/lib/cbox_billing/models/skip_invoice_dunning_step_request.rb +186 -0
- data/lib/cbox_billing/models/spend_alert.rb +395 -0
- data/lib/cbox_billing/models/start_accounting_contact_import202_response.rb +177 -0
- data/lib/cbox_billing/models/stop_invoice_dunning_request.rb +247 -0
- data/lib/cbox_billing/models/submit_dispute_evidence_request.rb +178 -0
- data/lib/cbox_billing/models/subscribe_request.rb +373 -0
- data/lib/cbox_billing/models/subscribe_result.rb +215 -0
- data/lib/cbox_billing/models/subscription.rb +617 -0
- data/lib/cbox_billing/models/subscription_bundle.rb +200 -0
- data/lib/cbox_billing/models/subscription_change.rb +505 -0
- data/lib/cbox_billing/models/subscription_change_list.rb +226 -0
- data/lib/cbox_billing/models/subscription_contract.rb +188 -0
- data/lib/cbox_billing/models/subscription_contract_term.rb +385 -0
- data/lib/cbox_billing/models/subscription_date_move.rb +295 -0
- data/lib/cbox_billing/models/subscription_discount.rb +315 -0
- data/lib/cbox_billing/models/subscription_pending_change.rb +171 -0
- data/lib/cbox_billing/models/subscription_standing.rb +230 -0
- data/lib/cbox_billing/models/subscription_terms.rb +459 -0
- data/lib/cbox_billing/models/subscription_terms_price.rb +178 -0
- data/lib/cbox_billing/models/sync_product_definitions200_response.rb +179 -0
- data/lib/cbox_billing/models/sync_product_definitions200_response_data_inner.rb +335 -0
- data/lib/cbox_billing/models/tax_return.rb +663 -0
- data/lib/cbox_billing/models/tax_return_boxes_inner.rb +307 -0
- data/lib/cbox_billing/models/tax_return_corrections_inner.rb +178 -0
- data/lib/cbox_billing/models/tax_return_issues_inner.rb +227 -0
- data/lib/cbox_billing/models/tax_return_line.rb +550 -0
- data/lib/cbox_billing/models/tax_return_line_document.rb +214 -0
- data/lib/cbox_billing/models/tax_return_line_fx.rb +212 -0
- data/lib/cbox_billing/models/tax_return_member_states_inner.rb +250 -0
- data/lib/cbox_billing/models/tax_return_not_from_billing_inner.rb +229 -0
- data/lib/cbox_billing/models/test_clock_advance_request.rb +178 -0
- data/lib/cbox_billing/models/test_clock_advance_result.rb +334 -0
- data/lib/cbox_billing/models/test_clock_advance_result_clock.rb +230 -0
- data/lib/cbox_billing/models/upcoming_invoice.rb +440 -0
- data/lib/cbox_billing/models/upcoming_invoice_first_period.rb +251 -0
- data/lib/cbox_billing/models/upcoming_invoice_interim.rb +245 -0
- data/lib/cbox_billing/models/upcoming_invoice_interim_invoices_inner.rb +286 -0
- data/lib/cbox_billing/models/upcoming_invoice_interim_reconciliation.rb +270 -0
- data/lib/cbox_billing/models/upcoming_invoice_interim_reconciliation_credit_notes_inner.rb +282 -0
- data/lib/cbox_billing/models/upcoming_invoice_lines_inner.rb +282 -0
- data/lib/cbox_billing/models/update_affiliate_program_request.rb +398 -0
- data/lib/cbox_billing/models/update_affiliate_request.rb +321 -0
- data/lib/cbox_billing/models/update_dispute_evidence_request.rb +177 -0
- data/lib/cbox_billing/models/update_dispute_evidence_request_evidence.rb +251 -0
- data/lib/cbox_billing/models/update_entitlement_override_request.rb +309 -0
- data/lib/cbox_billing/models/update_invoice_draft_request.rb +214 -0
- data/lib/cbox_billing/models/update_invoice_draft_request_lines_inner.rb +224 -0
- data/lib/cbox_billing/models/update_license_key_request.rb +186 -0
- data/lib/cbox_billing/models/update_payment_gateway_routing_request.rb +234 -0
- data/lib/cbox_billing/models/update_product_file_request.rb +208 -0
- data/lib/cbox_billing/models/update_spend_alert_request.rb +296 -0
- data/lib/cbox_billing/models/upgrade_offer.rb +189 -0
- data/lib/cbox_billing/models/usage_correction.rb +471 -0
- data/lib/cbox_billing/models/usage_correction_actor.rb +211 -0
- data/lib/cbox_billing/models/usage_correction_adjustment.rb +411 -0
- data/lib/cbox_billing/models/usage_correction_list.rb +226 -0
- data/lib/cbox_billing/models/usage_correction_list_all_of_data.rb +506 -0
- data/lib/cbox_billing/models/usage_corrections_request.rb +246 -0
- data/lib/cbox_billing/models/usage_corrections_request_corrections_inner.rb +413 -0
- data/lib/cbox_billing/models/usage_corrections_result.rb +395 -0
- data/lib/cbox_billing/models/usage_corrections_result_rejected_inner.rb +262 -0
- data/lib/cbox_billing/models/usage_event_values.rb +252 -0
- data/lib/cbox_billing/models/usage_events_request.rb +234 -0
- data/lib/cbox_billing/models/usage_events_request_events_inner.rb +385 -0
- data/lib/cbox_billing/models/usage_events_request_events_inner_dimensions_value.rb +104 -0
- data/lib/cbox_billing/models/usage_events_result.rb +301 -0
- data/lib/cbox_billing/models/usage_events_result_rejected_inner.rb +263 -0
- data/lib/cbox_billing/models/usage_ingest_request.rb +225 -0
- data/lib/cbox_billing/models/usage_ingest_request_entries_inner.rb +290 -0
- data/lib/cbox_billing/models/usage_ingest_result.rb +374 -0
- data/lib/cbox_billing/models/usage_ingest_result_unsupported_meters_inner.rb +203 -0
- data/lib/cbox_billing/models/usage_price.rb +258 -0
- data/lib/cbox_billing/models/usage_summary.rb +205 -0
- data/lib/cbox_billing/models/usage_summary_meters_value.rb +289 -0
- data/lib/cbox_billing/models/usage_summary_meters_value_breakdown_inner.rb +205 -0
- data/lib/cbox_billing/models/usage_summary_period.rb +247 -0
- data/lib/cbox_billing/models/usage_threshold.rb +275 -0
- data/lib/cbox_billing/models/usage_threshold_level.rb +217 -0
- data/lib/cbox_billing/models/usage_threshold_request.rb +248 -0
- data/lib/cbox_billing/models/usage_threshold_subscriptions_inner.rb +201 -0
- data/lib/cbox_billing/models/validation_error_body.rb +206 -0
- data/lib/cbox_billing/models/value_rule.rb +291 -0
- data/lib/cbox_billing/models/value_rules.rb +235 -0
- data/lib/cbox_billing/models/waitlist_answer.rb +105 -0
- data/lib/cbox_billing/models/waitlist_question.rb +411 -0
- data/lib/cbox_billing/models/webhook_delivery.rb +435 -0
- data/lib/cbox_billing/models/webhook_delivery_list.rb +226 -0
- data/lib/cbox_billing/models/webhook_endpoint.rb +347 -0
- data/lib/cbox_billing/models/webhook_endpoint_list.rb +226 -0
- data/lib/cbox_billing/models/webhook_endpoint_request.rb +270 -0
- data/lib/cbox_billing/models/webhook_endpoint_with_secret.rb +367 -0
- data/lib/cbox_billing/models/withdraw_agreement_request.rb +220 -0
- data/lib/cbox_billing/models/withdraw_agreement_request_user.rb +177 -0
- data/lib/cbox_billing/pagination.rb +28 -0
- data/lib/cbox_billing/retry.rb +96 -0
- data/lib/cbox_billing/version.rb +15 -0
- data/lib/cbox_billing/webhook.rb +77 -0
- data/lib/cbox_billing.rb +765 -0
- metadata +824 -0
|
@@ -0,0 +1,902 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Cbox Billing API
|
|
3
|
+
|
|
4
|
+
#The HTTP API of Cbox Billing. Reference: https://github.com/cboxdk/cbox-billing/tree/main/docs/api
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.26.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module CboxBilling
|
|
16
|
+
class DunningApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Give an invoice a later date
|
|
23
|
+
# Moves the date collection follows. The issued document and `due_at` do not change. Reminders, retries and suspension follow the new date, and no retry charges before it. Operator token only.
|
|
24
|
+
# @param org [String] The organization id (the merchant platform's own tenant key).
|
|
25
|
+
# @param number [String] The invoice number.
|
|
26
|
+
# @param extend_invoice_due_date_request [ExtendInvoiceDueDateRequest]
|
|
27
|
+
# @param [Hash] opts the optional parameters
|
|
28
|
+
# @option opts [String] :idempotency_key An opaque, caller-generated key giving this write exactly-once semantics. A retry with the same key replays the first response instead of re-running the effect; reusing it with a different body is `409`.
|
|
29
|
+
# @return [DunningState]
|
|
30
|
+
def extend_invoice_due_date(org, number, extend_invoice_due_date_request, opts = {})
|
|
31
|
+
data, _status_code, _headers = extend_invoice_due_date_with_http_info(org, number, extend_invoice_due_date_request, opts)
|
|
32
|
+
data
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# Give an invoice a later date
|
|
36
|
+
# Moves the date collection follows. The issued document and `due_at` do not change. Reminders, retries and suspension follow the new date, and no retry charges before it. Operator token only.
|
|
37
|
+
# @param org [String] The organization id (the merchant platform's own tenant key).
|
|
38
|
+
# @param number [String] The invoice number.
|
|
39
|
+
# @param extend_invoice_due_date_request [ExtendInvoiceDueDateRequest]
|
|
40
|
+
# @param [Hash] opts the optional parameters
|
|
41
|
+
# @option opts [String] :idempotency_key An opaque, caller-generated key giving this write exactly-once semantics. A retry with the same key replays the first response instead of re-running the effect; reusing it with a different body is `409`.
|
|
42
|
+
# @return [Array<(DunningState, Integer, Hash)>] DunningState data, response status code and response headers
|
|
43
|
+
def extend_invoice_due_date_with_http_info(org, number, extend_invoice_due_date_request, opts = {})
|
|
44
|
+
if @api_client.config.debugging
|
|
45
|
+
@api_client.config.logger.debug 'Calling API: DunningApi.extend_invoice_due_date ...'
|
|
46
|
+
end
|
|
47
|
+
# verify the required parameter 'org' is set
|
|
48
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
49
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling DunningApi.extend_invoice_due_date"
|
|
50
|
+
end
|
|
51
|
+
# verify the required parameter 'number' is set
|
|
52
|
+
if @api_client.config.client_side_validation && number.nil?
|
|
53
|
+
fail ArgumentError, "Missing the required parameter 'number' when calling DunningApi.extend_invoice_due_date"
|
|
54
|
+
end
|
|
55
|
+
# verify the required parameter 'extend_invoice_due_date_request' is set
|
|
56
|
+
if @api_client.config.client_side_validation && extend_invoice_due_date_request.nil?
|
|
57
|
+
fail ArgumentError, "Missing the required parameter 'extend_invoice_due_date_request' when calling DunningApi.extend_invoice_due_date"
|
|
58
|
+
end
|
|
59
|
+
# resource path
|
|
60
|
+
local_var_path = '/invoices/{org}/{number}/due-date'.sub('{org}', CGI.escape(org.to_s)).sub('{number}', CGI.escape(number.to_s))
|
|
61
|
+
|
|
62
|
+
# query parameters
|
|
63
|
+
query_params = opts[:query_params] || {}
|
|
64
|
+
|
|
65
|
+
# header parameters
|
|
66
|
+
header_params = opts[:header_params] || {}
|
|
67
|
+
# HTTP header 'Accept' (if needed)
|
|
68
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
69
|
+
# HTTP header 'Content-Type'
|
|
70
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
71
|
+
if !content_type.nil?
|
|
72
|
+
header_params['Content-Type'] = content_type
|
|
73
|
+
end
|
|
74
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
75
|
+
|
|
76
|
+
# form parameters
|
|
77
|
+
form_params = opts[:form_params] || {}
|
|
78
|
+
|
|
79
|
+
# http body (model)
|
|
80
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(extend_invoice_due_date_request)
|
|
81
|
+
|
|
82
|
+
# return_type
|
|
83
|
+
return_type = opts[:debug_return_type] || 'DunningState'
|
|
84
|
+
|
|
85
|
+
# auth_names
|
|
86
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
87
|
+
|
|
88
|
+
new_options = opts.merge(
|
|
89
|
+
:operation => :"DunningApi.extend_invoice_due_date",
|
|
90
|
+
:header_params => header_params,
|
|
91
|
+
:query_params => query_params,
|
|
92
|
+
:form_params => form_params,
|
|
93
|
+
:body => post_body,
|
|
94
|
+
:auth_names => auth_names,
|
|
95
|
+
:return_type => return_type
|
|
96
|
+
)
|
|
97
|
+
|
|
98
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
99
|
+
if @api_client.config.debugging
|
|
100
|
+
@api_client.config.logger.debug "API called: DunningApi#extend_invoice_due_date\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
101
|
+
end
|
|
102
|
+
return data, status_code, headers
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# Where an invoice stands in dunning
|
|
106
|
+
# The retry schedule, the holds in force, and both dates. `due_at` is what the issued invoice says; `collect_by` is the date collection follows.
|
|
107
|
+
# @param org [String] The organization id (the merchant platform's own tenant key).
|
|
108
|
+
# @param number [String] The invoice number.
|
|
109
|
+
# @param [Hash] opts the optional parameters
|
|
110
|
+
# @return [DunningState]
|
|
111
|
+
def get_invoice_dunning(org, number, opts = {})
|
|
112
|
+
data, _status_code, _headers = get_invoice_dunning_with_http_info(org, number, opts)
|
|
113
|
+
data
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# Where an invoice stands in dunning
|
|
117
|
+
# The retry schedule, the holds in force, and both dates. `due_at` is what the issued invoice says; `collect_by` is the date collection follows.
|
|
118
|
+
# @param org [String] The organization id (the merchant platform's own tenant key).
|
|
119
|
+
# @param number [String] The invoice number.
|
|
120
|
+
# @param [Hash] opts the optional parameters
|
|
121
|
+
# @return [Array<(DunningState, Integer, Hash)>] DunningState data, response status code and response headers
|
|
122
|
+
def get_invoice_dunning_with_http_info(org, number, opts = {})
|
|
123
|
+
if @api_client.config.debugging
|
|
124
|
+
@api_client.config.logger.debug 'Calling API: DunningApi.get_invoice_dunning ...'
|
|
125
|
+
end
|
|
126
|
+
# verify the required parameter 'org' is set
|
|
127
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
128
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling DunningApi.get_invoice_dunning"
|
|
129
|
+
end
|
|
130
|
+
# verify the required parameter 'number' is set
|
|
131
|
+
if @api_client.config.client_side_validation && number.nil?
|
|
132
|
+
fail ArgumentError, "Missing the required parameter 'number' when calling DunningApi.get_invoice_dunning"
|
|
133
|
+
end
|
|
134
|
+
# resource path
|
|
135
|
+
local_var_path = '/invoices/{org}/{number}/dunning'.sub('{org}', CGI.escape(org.to_s)).sub('{number}', CGI.escape(number.to_s))
|
|
136
|
+
|
|
137
|
+
# query parameters
|
|
138
|
+
query_params = opts[:query_params] || {}
|
|
139
|
+
|
|
140
|
+
# header parameters
|
|
141
|
+
header_params = opts[:header_params] || {}
|
|
142
|
+
# HTTP header 'Accept' (if needed)
|
|
143
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
144
|
+
|
|
145
|
+
# form parameters
|
|
146
|
+
form_params = opts[:form_params] || {}
|
|
147
|
+
|
|
148
|
+
# http body (model)
|
|
149
|
+
post_body = opts[:debug_body]
|
|
150
|
+
|
|
151
|
+
# return_type
|
|
152
|
+
return_type = opts[:debug_return_type] || 'DunningState'
|
|
153
|
+
|
|
154
|
+
# auth_names
|
|
155
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
156
|
+
|
|
157
|
+
new_options = opts.merge(
|
|
158
|
+
:operation => :"DunningApi.get_invoice_dunning",
|
|
159
|
+
:header_params => header_params,
|
|
160
|
+
:query_params => query_params,
|
|
161
|
+
:form_params => form_params,
|
|
162
|
+
:body => post_body,
|
|
163
|
+
:auth_names => auth_names,
|
|
164
|
+
:return_type => return_type
|
|
165
|
+
)
|
|
166
|
+
|
|
167
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
168
|
+
if @api_client.config.debugging
|
|
169
|
+
@api_client.config.logger.debug "API called: DunningApi#get_invoice_dunning\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
170
|
+
end
|
|
171
|
+
return data, status_code, headers
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
# Pause, exempt or never suspend a customer
|
|
175
|
+
# New invoices are still charged once; what follows a failed charge stops. Operator token only.
|
|
176
|
+
# @param org [String] The organization id (the merchant platform's own tenant key).
|
|
177
|
+
# @param hold_invoice_dunning_request [HoldInvoiceDunningRequest]
|
|
178
|
+
# @param [Hash] opts the optional parameters
|
|
179
|
+
# @option opts [String] :idempotency_key An opaque, caller-generated key giving this write exactly-once semantics. A retry with the same key replays the first response instead of re-running the effect; reusing it with a different body is `409`.
|
|
180
|
+
# @return [DunningHold]
|
|
181
|
+
def hold_customer_dunning(org, hold_invoice_dunning_request, opts = {})
|
|
182
|
+
data, _status_code, _headers = hold_customer_dunning_with_http_info(org, hold_invoice_dunning_request, opts)
|
|
183
|
+
data
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
# Pause, exempt or never suspend a customer
|
|
187
|
+
# New invoices are still charged once; what follows a failed charge stops. Operator token only.
|
|
188
|
+
# @param org [String] The organization id (the merchant platform's own tenant key).
|
|
189
|
+
# @param hold_invoice_dunning_request [HoldInvoiceDunningRequest]
|
|
190
|
+
# @param [Hash] opts the optional parameters
|
|
191
|
+
# @option opts [String] :idempotency_key An opaque, caller-generated key giving this write exactly-once semantics. A retry with the same key replays the first response instead of re-running the effect; reusing it with a different body is `409`.
|
|
192
|
+
# @return [Array<(DunningHold, Integer, Hash)>] DunningHold data, response status code and response headers
|
|
193
|
+
def hold_customer_dunning_with_http_info(org, hold_invoice_dunning_request, opts = {})
|
|
194
|
+
if @api_client.config.debugging
|
|
195
|
+
@api_client.config.logger.debug 'Calling API: DunningApi.hold_customer_dunning ...'
|
|
196
|
+
end
|
|
197
|
+
# verify the required parameter 'org' is set
|
|
198
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
199
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling DunningApi.hold_customer_dunning"
|
|
200
|
+
end
|
|
201
|
+
# verify the required parameter 'hold_invoice_dunning_request' is set
|
|
202
|
+
if @api_client.config.client_side_validation && hold_invoice_dunning_request.nil?
|
|
203
|
+
fail ArgumentError, "Missing the required parameter 'hold_invoice_dunning_request' when calling DunningApi.hold_customer_dunning"
|
|
204
|
+
end
|
|
205
|
+
# resource path
|
|
206
|
+
local_var_path = '/organizations/{org}/dunning/holds'.sub('{org}', CGI.escape(org.to_s))
|
|
207
|
+
|
|
208
|
+
# query parameters
|
|
209
|
+
query_params = opts[:query_params] || {}
|
|
210
|
+
|
|
211
|
+
# header parameters
|
|
212
|
+
header_params = opts[:header_params] || {}
|
|
213
|
+
# HTTP header 'Accept' (if needed)
|
|
214
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
215
|
+
# HTTP header 'Content-Type'
|
|
216
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
217
|
+
if !content_type.nil?
|
|
218
|
+
header_params['Content-Type'] = content_type
|
|
219
|
+
end
|
|
220
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
221
|
+
|
|
222
|
+
# form parameters
|
|
223
|
+
form_params = opts[:form_params] || {}
|
|
224
|
+
|
|
225
|
+
# http body (model)
|
|
226
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(hold_invoice_dunning_request)
|
|
227
|
+
|
|
228
|
+
# return_type
|
|
229
|
+
return_type = opts[:debug_return_type] || 'DunningHold'
|
|
230
|
+
|
|
231
|
+
# auth_names
|
|
232
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
233
|
+
|
|
234
|
+
new_options = opts.merge(
|
|
235
|
+
:operation => :"DunningApi.hold_customer_dunning",
|
|
236
|
+
:header_params => header_params,
|
|
237
|
+
:query_params => query_params,
|
|
238
|
+
:form_params => form_params,
|
|
239
|
+
:body => post_body,
|
|
240
|
+
:auth_names => auth_names,
|
|
241
|
+
:return_type => return_type
|
|
242
|
+
)
|
|
243
|
+
|
|
244
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
245
|
+
if @api_client.config.debugging
|
|
246
|
+
@api_client.config.logger.debug "API called: DunningApi#hold_customer_dunning\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
247
|
+
end
|
|
248
|
+
return data, status_code, headers
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
# Pause or exempt one invoice
|
|
252
|
+
# Also stops the invoice's first charge. Placing the same kind again replaces the hold. Operator token only.
|
|
253
|
+
# @param org [String] The organization id (the merchant platform's own tenant key).
|
|
254
|
+
# @param number [String] The invoice number.
|
|
255
|
+
# @param hold_invoice_dunning_request [HoldInvoiceDunningRequest]
|
|
256
|
+
# @param [Hash] opts the optional parameters
|
|
257
|
+
# @option opts [String] :idempotency_key An opaque, caller-generated key giving this write exactly-once semantics. A retry with the same key replays the first response instead of re-running the effect; reusing it with a different body is `409`.
|
|
258
|
+
# @return [DunningHold]
|
|
259
|
+
def hold_invoice_dunning(org, number, hold_invoice_dunning_request, opts = {})
|
|
260
|
+
data, _status_code, _headers = hold_invoice_dunning_with_http_info(org, number, hold_invoice_dunning_request, opts)
|
|
261
|
+
data
|
|
262
|
+
end
|
|
263
|
+
|
|
264
|
+
# Pause or exempt one invoice
|
|
265
|
+
# Also stops the invoice's first charge. Placing the same kind again replaces the hold. Operator token only.
|
|
266
|
+
# @param org [String] The organization id (the merchant platform's own tenant key).
|
|
267
|
+
# @param number [String] The invoice number.
|
|
268
|
+
# @param hold_invoice_dunning_request [HoldInvoiceDunningRequest]
|
|
269
|
+
# @param [Hash] opts the optional parameters
|
|
270
|
+
# @option opts [String] :idempotency_key An opaque, caller-generated key giving this write exactly-once semantics. A retry with the same key replays the first response instead of re-running the effect; reusing it with a different body is `409`.
|
|
271
|
+
# @return [Array<(DunningHold, Integer, Hash)>] DunningHold data, response status code and response headers
|
|
272
|
+
def hold_invoice_dunning_with_http_info(org, number, hold_invoice_dunning_request, opts = {})
|
|
273
|
+
if @api_client.config.debugging
|
|
274
|
+
@api_client.config.logger.debug 'Calling API: DunningApi.hold_invoice_dunning ...'
|
|
275
|
+
end
|
|
276
|
+
# verify the required parameter 'org' is set
|
|
277
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
278
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling DunningApi.hold_invoice_dunning"
|
|
279
|
+
end
|
|
280
|
+
# verify the required parameter 'number' is set
|
|
281
|
+
if @api_client.config.client_side_validation && number.nil?
|
|
282
|
+
fail ArgumentError, "Missing the required parameter 'number' when calling DunningApi.hold_invoice_dunning"
|
|
283
|
+
end
|
|
284
|
+
# verify the required parameter 'hold_invoice_dunning_request' is set
|
|
285
|
+
if @api_client.config.client_side_validation && hold_invoice_dunning_request.nil?
|
|
286
|
+
fail ArgumentError, "Missing the required parameter 'hold_invoice_dunning_request' when calling DunningApi.hold_invoice_dunning"
|
|
287
|
+
end
|
|
288
|
+
# resource path
|
|
289
|
+
local_var_path = '/invoices/{org}/{number}/dunning/holds'.sub('{org}', CGI.escape(org.to_s)).sub('{number}', CGI.escape(number.to_s))
|
|
290
|
+
|
|
291
|
+
# query parameters
|
|
292
|
+
query_params = opts[:query_params] || {}
|
|
293
|
+
|
|
294
|
+
# header parameters
|
|
295
|
+
header_params = opts[:header_params] || {}
|
|
296
|
+
# HTTP header 'Accept' (if needed)
|
|
297
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
298
|
+
# HTTP header 'Content-Type'
|
|
299
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
300
|
+
if !content_type.nil?
|
|
301
|
+
header_params['Content-Type'] = content_type
|
|
302
|
+
end
|
|
303
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
304
|
+
|
|
305
|
+
# form parameters
|
|
306
|
+
form_params = opts[:form_params] || {}
|
|
307
|
+
|
|
308
|
+
# http body (model)
|
|
309
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(hold_invoice_dunning_request)
|
|
310
|
+
|
|
311
|
+
# return_type
|
|
312
|
+
return_type = opts[:debug_return_type] || 'DunningHold'
|
|
313
|
+
|
|
314
|
+
# auth_names
|
|
315
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
316
|
+
|
|
317
|
+
new_options = opts.merge(
|
|
318
|
+
:operation => :"DunningApi.hold_invoice_dunning",
|
|
319
|
+
:header_params => header_params,
|
|
320
|
+
:query_params => query_params,
|
|
321
|
+
:form_params => form_params,
|
|
322
|
+
:body => post_body,
|
|
323
|
+
:auth_names => auth_names,
|
|
324
|
+
:return_type => return_type
|
|
325
|
+
)
|
|
326
|
+
|
|
327
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
328
|
+
if @api_client.config.debugging
|
|
329
|
+
@api_client.config.logger.debug "API called: DunningApi#hold_invoice_dunning\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
330
|
+
end
|
|
331
|
+
return data, status_code, headers
|
|
332
|
+
end
|
|
333
|
+
|
|
334
|
+
# The holds in force on a customer
|
|
335
|
+
# @param org [String] The organization id (the merchant platform's own tenant key).
|
|
336
|
+
# @param [Hash] opts the optional parameters
|
|
337
|
+
# @option opts [String] :product The product key whose subscription to address (INT-2). A product-bound token is always confined to its own product; naming another is a `404`. An unbound token without it addresses the organization's newest serving subscription for the reference.
|
|
338
|
+
# @option opts [String] :reference What inside the organization the subscription is for — a Cbox Sites website id (decision D6). Exact: omitted means the organization-level subscription. Usage and allowances for a reference count under the subject `org#reference`. Also accepted in the JSON body of a `POST`.
|
|
339
|
+
# @return [ListCustomerDunningHolds200Response]
|
|
340
|
+
def list_customer_dunning_holds(org, opts = {})
|
|
341
|
+
data, _status_code, _headers = list_customer_dunning_holds_with_http_info(org, opts)
|
|
342
|
+
data
|
|
343
|
+
end
|
|
344
|
+
|
|
345
|
+
# The holds in force on a customer
|
|
346
|
+
# @param org [String] The organization id (the merchant platform's own tenant key).
|
|
347
|
+
# @param [Hash] opts the optional parameters
|
|
348
|
+
# @option opts [String] :product The product key whose subscription to address (INT-2). A product-bound token is always confined to its own product; naming another is a `404`. An unbound token without it addresses the organization's newest serving subscription for the reference.
|
|
349
|
+
# @option opts [String] :reference What inside the organization the subscription is for — a Cbox Sites website id (decision D6). Exact: omitted means the organization-level subscription. Usage and allowances for a reference count under the subject `org#reference`. Also accepted in the JSON body of a `POST`.
|
|
350
|
+
# @return [Array<(ListCustomerDunningHolds200Response, Integer, Hash)>] ListCustomerDunningHolds200Response data, response status code and response headers
|
|
351
|
+
def list_customer_dunning_holds_with_http_info(org, opts = {})
|
|
352
|
+
if @api_client.config.debugging
|
|
353
|
+
@api_client.config.logger.debug 'Calling API: DunningApi.list_customer_dunning_holds ...'
|
|
354
|
+
end
|
|
355
|
+
# verify the required parameter 'org' is set
|
|
356
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
357
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling DunningApi.list_customer_dunning_holds"
|
|
358
|
+
end
|
|
359
|
+
pattern = Regexp.new(/^[A-Za-z0-9._:-]{1,191}$/)
|
|
360
|
+
if @api_client.config.client_side_validation && !opts[:'reference'].nil? && opts[:'reference'] !~ pattern
|
|
361
|
+
fail ArgumentError, "invalid value for 'opts[:\"reference\"]' when calling DunningApi.list_customer_dunning_holds, must conform to the pattern #{pattern}."
|
|
362
|
+
end
|
|
363
|
+
|
|
364
|
+
# resource path
|
|
365
|
+
local_var_path = '/organizations/{org}/dunning/holds'.sub('{org}', CGI.escape(org.to_s))
|
|
366
|
+
|
|
367
|
+
# query parameters
|
|
368
|
+
query_params = opts[:query_params] || {}
|
|
369
|
+
query_params[:'product'] = opts[:'product'] if !opts[:'product'].nil?
|
|
370
|
+
query_params[:'reference'] = opts[:'reference'] if !opts[:'reference'].nil?
|
|
371
|
+
|
|
372
|
+
# header parameters
|
|
373
|
+
header_params = opts[:header_params] || {}
|
|
374
|
+
# HTTP header 'Accept' (if needed)
|
|
375
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
376
|
+
|
|
377
|
+
# form parameters
|
|
378
|
+
form_params = opts[:form_params] || {}
|
|
379
|
+
|
|
380
|
+
# http body (model)
|
|
381
|
+
post_body = opts[:debug_body]
|
|
382
|
+
|
|
383
|
+
# return_type
|
|
384
|
+
return_type = opts[:debug_return_type] || 'ListCustomerDunningHolds200Response'
|
|
385
|
+
|
|
386
|
+
# auth_names
|
|
387
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
388
|
+
|
|
389
|
+
new_options = opts.merge(
|
|
390
|
+
:operation => :"DunningApi.list_customer_dunning_holds",
|
|
391
|
+
:header_params => header_params,
|
|
392
|
+
:query_params => query_params,
|
|
393
|
+
:form_params => form_params,
|
|
394
|
+
:body => post_body,
|
|
395
|
+
:auth_names => auth_names,
|
|
396
|
+
:return_type => return_type
|
|
397
|
+
)
|
|
398
|
+
|
|
399
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
400
|
+
if @api_client.config.debugging
|
|
401
|
+
@api_client.config.logger.debug "API called: DunningApi#list_customer_dunning_holds\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
402
|
+
end
|
|
403
|
+
return data, status_code, headers
|
|
404
|
+
end
|
|
405
|
+
|
|
406
|
+
# Mark an invoice paid
|
|
407
|
+
# Records what remains as a payment, closes the invoice, sends the receipt and ends its dunning. Operator token only.
|
|
408
|
+
# @param org [String] The organization id (the merchant platform's own tenant key).
|
|
409
|
+
# @param number [String] The invoice number.
|
|
410
|
+
# @param [Hash] opts the optional parameters
|
|
411
|
+
# @option opts [String] :idempotency_key An opaque, caller-generated key giving this write exactly-once semantics. A retry with the same key replays the first response instead of re-running the effect; reusing it with a different body is `409`.
|
|
412
|
+
# @option opts [MarkInvoicePaidRequest] :mark_invoice_paid_request
|
|
413
|
+
# @return [DunningState]
|
|
414
|
+
def mark_invoice_paid(org, number, opts = {})
|
|
415
|
+
data, _status_code, _headers = mark_invoice_paid_with_http_info(org, number, opts)
|
|
416
|
+
data
|
|
417
|
+
end
|
|
418
|
+
|
|
419
|
+
# Mark an invoice paid
|
|
420
|
+
# Records what remains as a payment, closes the invoice, sends the receipt and ends its dunning. Operator token only.
|
|
421
|
+
# @param org [String] The organization id (the merchant platform's own tenant key).
|
|
422
|
+
# @param number [String] The invoice number.
|
|
423
|
+
# @param [Hash] opts the optional parameters
|
|
424
|
+
# @option opts [String] :idempotency_key An opaque, caller-generated key giving this write exactly-once semantics. A retry with the same key replays the first response instead of re-running the effect; reusing it with a different body is `409`.
|
|
425
|
+
# @option opts [MarkInvoicePaidRequest] :mark_invoice_paid_request
|
|
426
|
+
# @return [Array<(DunningState, Integer, Hash)>] DunningState data, response status code and response headers
|
|
427
|
+
def mark_invoice_paid_with_http_info(org, number, opts = {})
|
|
428
|
+
if @api_client.config.debugging
|
|
429
|
+
@api_client.config.logger.debug 'Calling API: DunningApi.mark_invoice_paid ...'
|
|
430
|
+
end
|
|
431
|
+
# verify the required parameter 'org' is set
|
|
432
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
433
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling DunningApi.mark_invoice_paid"
|
|
434
|
+
end
|
|
435
|
+
# verify the required parameter 'number' is set
|
|
436
|
+
if @api_client.config.client_side_validation && number.nil?
|
|
437
|
+
fail ArgumentError, "Missing the required parameter 'number' when calling DunningApi.mark_invoice_paid"
|
|
438
|
+
end
|
|
439
|
+
# resource path
|
|
440
|
+
local_var_path = '/invoices/{org}/{number}/mark-paid'.sub('{org}', CGI.escape(org.to_s)).sub('{number}', CGI.escape(number.to_s))
|
|
441
|
+
|
|
442
|
+
# query parameters
|
|
443
|
+
query_params = opts[:query_params] || {}
|
|
444
|
+
|
|
445
|
+
# header parameters
|
|
446
|
+
header_params = opts[:header_params] || {}
|
|
447
|
+
# HTTP header 'Accept' (if needed)
|
|
448
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
449
|
+
# HTTP header 'Content-Type'
|
|
450
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
451
|
+
if !content_type.nil?
|
|
452
|
+
header_params['Content-Type'] = content_type
|
|
453
|
+
end
|
|
454
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
455
|
+
|
|
456
|
+
# form parameters
|
|
457
|
+
form_params = opts[:form_params] || {}
|
|
458
|
+
|
|
459
|
+
# http body (model)
|
|
460
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'mark_invoice_paid_request'])
|
|
461
|
+
|
|
462
|
+
# return_type
|
|
463
|
+
return_type = opts[:debug_return_type] || 'DunningState'
|
|
464
|
+
|
|
465
|
+
# auth_names
|
|
466
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
467
|
+
|
|
468
|
+
new_options = opts.merge(
|
|
469
|
+
:operation => :"DunningApi.mark_invoice_paid",
|
|
470
|
+
:header_params => header_params,
|
|
471
|
+
:query_params => query_params,
|
|
472
|
+
:form_params => form_params,
|
|
473
|
+
:body => post_body,
|
|
474
|
+
:auth_names => auth_names,
|
|
475
|
+
:return_type => return_type
|
|
476
|
+
)
|
|
477
|
+
|
|
478
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
479
|
+
if @api_client.config.debugging
|
|
480
|
+
@api_client.config.logger.debug "API called: DunningApi#mark_invoice_paid\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
481
|
+
end
|
|
482
|
+
return data, status_code, headers
|
|
483
|
+
end
|
|
484
|
+
|
|
485
|
+
# End a hold on a customer early
|
|
486
|
+
# Operator token only.
|
|
487
|
+
# @param org [String] The organization id (the merchant platform's own tenant key).
|
|
488
|
+
# @param hold [String] The hold's public id (`dhld_…`).
|
|
489
|
+
# @param skip_invoice_dunning_step_request [SkipInvoiceDunningStepRequest]
|
|
490
|
+
# @param [Hash] opts the optional parameters
|
|
491
|
+
# @option opts [String] :idempotency_key An opaque, caller-generated key giving this write exactly-once semantics. A retry with the same key replays the first response instead of re-running the effect; reusing it with a different body is `409`.
|
|
492
|
+
# @return [DunningHold]
|
|
493
|
+
def release_customer_dunning_hold(org, hold, skip_invoice_dunning_step_request, opts = {})
|
|
494
|
+
data, _status_code, _headers = release_customer_dunning_hold_with_http_info(org, hold, skip_invoice_dunning_step_request, opts)
|
|
495
|
+
data
|
|
496
|
+
end
|
|
497
|
+
|
|
498
|
+
# End a hold on a customer early
|
|
499
|
+
# Operator token only.
|
|
500
|
+
# @param org [String] The organization id (the merchant platform's own tenant key).
|
|
501
|
+
# @param hold [String] The hold's public id (`dhld_…`).
|
|
502
|
+
# @param skip_invoice_dunning_step_request [SkipInvoiceDunningStepRequest]
|
|
503
|
+
# @param [Hash] opts the optional parameters
|
|
504
|
+
# @option opts [String] :idempotency_key An opaque, caller-generated key giving this write exactly-once semantics. A retry with the same key replays the first response instead of re-running the effect; reusing it with a different body is `409`.
|
|
505
|
+
# @return [Array<(DunningHold, Integer, Hash)>] DunningHold data, response status code and response headers
|
|
506
|
+
def release_customer_dunning_hold_with_http_info(org, hold, skip_invoice_dunning_step_request, opts = {})
|
|
507
|
+
if @api_client.config.debugging
|
|
508
|
+
@api_client.config.logger.debug 'Calling API: DunningApi.release_customer_dunning_hold ...'
|
|
509
|
+
end
|
|
510
|
+
# verify the required parameter 'org' is set
|
|
511
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
512
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling DunningApi.release_customer_dunning_hold"
|
|
513
|
+
end
|
|
514
|
+
# verify the required parameter 'hold' is set
|
|
515
|
+
if @api_client.config.client_side_validation && hold.nil?
|
|
516
|
+
fail ArgumentError, "Missing the required parameter 'hold' when calling DunningApi.release_customer_dunning_hold"
|
|
517
|
+
end
|
|
518
|
+
# verify the required parameter 'skip_invoice_dunning_step_request' is set
|
|
519
|
+
if @api_client.config.client_side_validation && skip_invoice_dunning_step_request.nil?
|
|
520
|
+
fail ArgumentError, "Missing the required parameter 'skip_invoice_dunning_step_request' when calling DunningApi.release_customer_dunning_hold"
|
|
521
|
+
end
|
|
522
|
+
# resource path
|
|
523
|
+
local_var_path = '/organizations/{org}/dunning/holds/{hold}/release'.sub('{org}', CGI.escape(org.to_s)).sub('{hold}', CGI.escape(hold.to_s))
|
|
524
|
+
|
|
525
|
+
# query parameters
|
|
526
|
+
query_params = opts[:query_params] || {}
|
|
527
|
+
|
|
528
|
+
# header parameters
|
|
529
|
+
header_params = opts[:header_params] || {}
|
|
530
|
+
# HTTP header 'Accept' (if needed)
|
|
531
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
532
|
+
# HTTP header 'Content-Type'
|
|
533
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
534
|
+
if !content_type.nil?
|
|
535
|
+
header_params['Content-Type'] = content_type
|
|
536
|
+
end
|
|
537
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
538
|
+
|
|
539
|
+
# form parameters
|
|
540
|
+
form_params = opts[:form_params] || {}
|
|
541
|
+
|
|
542
|
+
# http body (model)
|
|
543
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(skip_invoice_dunning_step_request)
|
|
544
|
+
|
|
545
|
+
# return_type
|
|
546
|
+
return_type = opts[:debug_return_type] || 'DunningHold'
|
|
547
|
+
|
|
548
|
+
# auth_names
|
|
549
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
550
|
+
|
|
551
|
+
new_options = opts.merge(
|
|
552
|
+
:operation => :"DunningApi.release_customer_dunning_hold",
|
|
553
|
+
:header_params => header_params,
|
|
554
|
+
:query_params => query_params,
|
|
555
|
+
:form_params => form_params,
|
|
556
|
+
:body => post_body,
|
|
557
|
+
:auth_names => auth_names,
|
|
558
|
+
:return_type => return_type
|
|
559
|
+
)
|
|
560
|
+
|
|
561
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
562
|
+
if @api_client.config.debugging
|
|
563
|
+
@api_client.config.logger.debug "API called: DunningApi#release_customer_dunning_hold\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
564
|
+
end
|
|
565
|
+
return data, status_code, headers
|
|
566
|
+
end
|
|
567
|
+
|
|
568
|
+
# End a hold on an invoice early
|
|
569
|
+
# The collection date and the retry schedule move forward by as long as the hold ran. Operator token only.
|
|
570
|
+
# @param org [String] The organization id (the merchant platform's own tenant key).
|
|
571
|
+
# @param number [String] The invoice number.
|
|
572
|
+
# @param hold [String] The hold's public id (`dhld_…`).
|
|
573
|
+
# @param skip_invoice_dunning_step_request [SkipInvoiceDunningStepRequest]
|
|
574
|
+
# @param [Hash] opts the optional parameters
|
|
575
|
+
# @option opts [String] :idempotency_key An opaque, caller-generated key giving this write exactly-once semantics. A retry with the same key replays the first response instead of re-running the effect; reusing it with a different body is `409`.
|
|
576
|
+
# @return [DunningHold]
|
|
577
|
+
def release_invoice_dunning_hold(org, number, hold, skip_invoice_dunning_step_request, opts = {})
|
|
578
|
+
data, _status_code, _headers = release_invoice_dunning_hold_with_http_info(org, number, hold, skip_invoice_dunning_step_request, opts)
|
|
579
|
+
data
|
|
580
|
+
end
|
|
581
|
+
|
|
582
|
+
# End a hold on an invoice early
|
|
583
|
+
# The collection date and the retry schedule move forward by as long as the hold ran. Operator token only.
|
|
584
|
+
# @param org [String] The organization id (the merchant platform's own tenant key).
|
|
585
|
+
# @param number [String] The invoice number.
|
|
586
|
+
# @param hold [String] The hold's public id (`dhld_…`).
|
|
587
|
+
# @param skip_invoice_dunning_step_request [SkipInvoiceDunningStepRequest]
|
|
588
|
+
# @param [Hash] opts the optional parameters
|
|
589
|
+
# @option opts [String] :idempotency_key An opaque, caller-generated key giving this write exactly-once semantics. A retry with the same key replays the first response instead of re-running the effect; reusing it with a different body is `409`.
|
|
590
|
+
# @return [Array<(DunningHold, Integer, Hash)>] DunningHold data, response status code and response headers
|
|
591
|
+
def release_invoice_dunning_hold_with_http_info(org, number, hold, skip_invoice_dunning_step_request, opts = {})
|
|
592
|
+
if @api_client.config.debugging
|
|
593
|
+
@api_client.config.logger.debug 'Calling API: DunningApi.release_invoice_dunning_hold ...'
|
|
594
|
+
end
|
|
595
|
+
# verify the required parameter 'org' is set
|
|
596
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
597
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling DunningApi.release_invoice_dunning_hold"
|
|
598
|
+
end
|
|
599
|
+
# verify the required parameter 'number' is set
|
|
600
|
+
if @api_client.config.client_side_validation && number.nil?
|
|
601
|
+
fail ArgumentError, "Missing the required parameter 'number' when calling DunningApi.release_invoice_dunning_hold"
|
|
602
|
+
end
|
|
603
|
+
# verify the required parameter 'hold' is set
|
|
604
|
+
if @api_client.config.client_side_validation && hold.nil?
|
|
605
|
+
fail ArgumentError, "Missing the required parameter 'hold' when calling DunningApi.release_invoice_dunning_hold"
|
|
606
|
+
end
|
|
607
|
+
# verify the required parameter 'skip_invoice_dunning_step_request' is set
|
|
608
|
+
if @api_client.config.client_side_validation && skip_invoice_dunning_step_request.nil?
|
|
609
|
+
fail ArgumentError, "Missing the required parameter 'skip_invoice_dunning_step_request' when calling DunningApi.release_invoice_dunning_hold"
|
|
610
|
+
end
|
|
611
|
+
# resource path
|
|
612
|
+
local_var_path = '/invoices/{org}/{number}/dunning/holds/{hold}/release'.sub('{org}', CGI.escape(org.to_s)).sub('{number}', CGI.escape(number.to_s)).sub('{hold}', CGI.escape(hold.to_s))
|
|
613
|
+
|
|
614
|
+
# query parameters
|
|
615
|
+
query_params = opts[:query_params] || {}
|
|
616
|
+
|
|
617
|
+
# header parameters
|
|
618
|
+
header_params = opts[:header_params] || {}
|
|
619
|
+
# HTTP header 'Accept' (if needed)
|
|
620
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
621
|
+
# HTTP header 'Content-Type'
|
|
622
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
623
|
+
if !content_type.nil?
|
|
624
|
+
header_params['Content-Type'] = content_type
|
|
625
|
+
end
|
|
626
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
627
|
+
|
|
628
|
+
# form parameters
|
|
629
|
+
form_params = opts[:form_params] || {}
|
|
630
|
+
|
|
631
|
+
# http body (model)
|
|
632
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(skip_invoice_dunning_step_request)
|
|
633
|
+
|
|
634
|
+
# return_type
|
|
635
|
+
return_type = opts[:debug_return_type] || 'DunningHold'
|
|
636
|
+
|
|
637
|
+
# auth_names
|
|
638
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
639
|
+
|
|
640
|
+
new_options = opts.merge(
|
|
641
|
+
:operation => :"DunningApi.release_invoice_dunning_hold",
|
|
642
|
+
:header_params => header_params,
|
|
643
|
+
:query_params => query_params,
|
|
644
|
+
:form_params => form_params,
|
|
645
|
+
:body => post_body,
|
|
646
|
+
:auth_names => auth_names,
|
|
647
|
+
:return_type => return_type
|
|
648
|
+
)
|
|
649
|
+
|
|
650
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
651
|
+
if @api_client.config.debugging
|
|
652
|
+
@api_client.config.logger.debug "API called: DunningApi#release_invoice_dunning_hold\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
653
|
+
end
|
|
654
|
+
return data, status_code, headers
|
|
655
|
+
end
|
|
656
|
+
|
|
657
|
+
# Charge now
|
|
658
|
+
# On a live schedule this fires the next attempt. On an exhausted or stopped one it is one extra charge; if it fails the schedule stays ended, no terminal action runs and the customer hears nothing. Operator token only.
|
|
659
|
+
# @param org [String] The organization id (the merchant platform's own tenant key).
|
|
660
|
+
# @param number [String] The invoice number.
|
|
661
|
+
# @param [Hash] opts the optional parameters
|
|
662
|
+
# @option opts [String] :idempotency_key An opaque, caller-generated key giving this write exactly-once semantics. A retry with the same key replays the first response instead of re-running the effect; reusing it with a different body is `409`.
|
|
663
|
+
# @option opts [RetryInvoiceDunningRequest] :retry_invoice_dunning_request
|
|
664
|
+
# @return [DunningState]
|
|
665
|
+
def retry_invoice_dunning(org, number, opts = {})
|
|
666
|
+
data, _status_code, _headers = retry_invoice_dunning_with_http_info(org, number, opts)
|
|
667
|
+
data
|
|
668
|
+
end
|
|
669
|
+
|
|
670
|
+
# Charge now
|
|
671
|
+
# On a live schedule this fires the next attempt. On an exhausted or stopped one it is one extra charge; if it fails the schedule stays ended, no terminal action runs and the customer hears nothing. Operator token only.
|
|
672
|
+
# @param org [String] The organization id (the merchant platform's own tenant key).
|
|
673
|
+
# @param number [String] The invoice number.
|
|
674
|
+
# @param [Hash] opts the optional parameters
|
|
675
|
+
# @option opts [String] :idempotency_key An opaque, caller-generated key giving this write exactly-once semantics. A retry with the same key replays the first response instead of re-running the effect; reusing it with a different body is `409`.
|
|
676
|
+
# @option opts [RetryInvoiceDunningRequest] :retry_invoice_dunning_request
|
|
677
|
+
# @return [Array<(DunningState, Integer, Hash)>] DunningState data, response status code and response headers
|
|
678
|
+
def retry_invoice_dunning_with_http_info(org, number, opts = {})
|
|
679
|
+
if @api_client.config.debugging
|
|
680
|
+
@api_client.config.logger.debug 'Calling API: DunningApi.retry_invoice_dunning ...'
|
|
681
|
+
end
|
|
682
|
+
# verify the required parameter 'org' is set
|
|
683
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
684
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling DunningApi.retry_invoice_dunning"
|
|
685
|
+
end
|
|
686
|
+
# verify the required parameter 'number' is set
|
|
687
|
+
if @api_client.config.client_side_validation && number.nil?
|
|
688
|
+
fail ArgumentError, "Missing the required parameter 'number' when calling DunningApi.retry_invoice_dunning"
|
|
689
|
+
end
|
|
690
|
+
# resource path
|
|
691
|
+
local_var_path = '/invoices/{org}/{number}/dunning/retry'.sub('{org}', CGI.escape(org.to_s)).sub('{number}', CGI.escape(number.to_s))
|
|
692
|
+
|
|
693
|
+
# query parameters
|
|
694
|
+
query_params = opts[:query_params] || {}
|
|
695
|
+
|
|
696
|
+
# header parameters
|
|
697
|
+
header_params = opts[:header_params] || {}
|
|
698
|
+
# HTTP header 'Accept' (if needed)
|
|
699
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
700
|
+
# HTTP header 'Content-Type'
|
|
701
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
702
|
+
if !content_type.nil?
|
|
703
|
+
header_params['Content-Type'] = content_type
|
|
704
|
+
end
|
|
705
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
706
|
+
|
|
707
|
+
# form parameters
|
|
708
|
+
form_params = opts[:form_params] || {}
|
|
709
|
+
|
|
710
|
+
# http body (model)
|
|
711
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'retry_invoice_dunning_request'])
|
|
712
|
+
|
|
713
|
+
# return_type
|
|
714
|
+
return_type = opts[:debug_return_type] || 'DunningState'
|
|
715
|
+
|
|
716
|
+
# auth_names
|
|
717
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
718
|
+
|
|
719
|
+
new_options = opts.merge(
|
|
720
|
+
:operation => :"DunningApi.retry_invoice_dunning",
|
|
721
|
+
:header_params => header_params,
|
|
722
|
+
:query_params => query_params,
|
|
723
|
+
:form_params => form_params,
|
|
724
|
+
:body => post_body,
|
|
725
|
+
:auth_names => auth_names,
|
|
726
|
+
:return_type => return_type
|
|
727
|
+
)
|
|
728
|
+
|
|
729
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
730
|
+
if @api_client.config.debugging
|
|
731
|
+
@api_client.config.logger.debug "API called: DunningApi#retry_invoice_dunning\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
732
|
+
end
|
|
733
|
+
return data, status_code, headers
|
|
734
|
+
end
|
|
735
|
+
|
|
736
|
+
# Skip the next retry step
|
|
737
|
+
# Passes over the next attempt without charging. The last step cannot be skipped. Operator token only.
|
|
738
|
+
# @param org [String] The organization id (the merchant platform's own tenant key).
|
|
739
|
+
# @param number [String] The invoice number.
|
|
740
|
+
# @param skip_invoice_dunning_step_request [SkipInvoiceDunningStepRequest]
|
|
741
|
+
# @param [Hash] opts the optional parameters
|
|
742
|
+
# @option opts [String] :idempotency_key An opaque, caller-generated key giving this write exactly-once semantics. A retry with the same key replays the first response instead of re-running the effect; reusing it with a different body is `409`.
|
|
743
|
+
# @return [DunningState]
|
|
744
|
+
def skip_invoice_dunning_step(org, number, skip_invoice_dunning_step_request, opts = {})
|
|
745
|
+
data, _status_code, _headers = skip_invoice_dunning_step_with_http_info(org, number, skip_invoice_dunning_step_request, opts)
|
|
746
|
+
data
|
|
747
|
+
end
|
|
748
|
+
|
|
749
|
+
# Skip the next retry step
|
|
750
|
+
# Passes over the next attempt without charging. The last step cannot be skipped. Operator token only.
|
|
751
|
+
# @param org [String] The organization id (the merchant platform's own tenant key).
|
|
752
|
+
# @param number [String] The invoice number.
|
|
753
|
+
# @param skip_invoice_dunning_step_request [SkipInvoiceDunningStepRequest]
|
|
754
|
+
# @param [Hash] opts the optional parameters
|
|
755
|
+
# @option opts [String] :idempotency_key An opaque, caller-generated key giving this write exactly-once semantics. A retry with the same key replays the first response instead of re-running the effect; reusing it with a different body is `409`.
|
|
756
|
+
# @return [Array<(DunningState, Integer, Hash)>] DunningState data, response status code and response headers
|
|
757
|
+
def skip_invoice_dunning_step_with_http_info(org, number, skip_invoice_dunning_step_request, opts = {})
|
|
758
|
+
if @api_client.config.debugging
|
|
759
|
+
@api_client.config.logger.debug 'Calling API: DunningApi.skip_invoice_dunning_step ...'
|
|
760
|
+
end
|
|
761
|
+
# verify the required parameter 'org' is set
|
|
762
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
763
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling DunningApi.skip_invoice_dunning_step"
|
|
764
|
+
end
|
|
765
|
+
# verify the required parameter 'number' is set
|
|
766
|
+
if @api_client.config.client_side_validation && number.nil?
|
|
767
|
+
fail ArgumentError, "Missing the required parameter 'number' when calling DunningApi.skip_invoice_dunning_step"
|
|
768
|
+
end
|
|
769
|
+
# verify the required parameter 'skip_invoice_dunning_step_request' is set
|
|
770
|
+
if @api_client.config.client_side_validation && skip_invoice_dunning_step_request.nil?
|
|
771
|
+
fail ArgumentError, "Missing the required parameter 'skip_invoice_dunning_step_request' when calling DunningApi.skip_invoice_dunning_step"
|
|
772
|
+
end
|
|
773
|
+
# resource path
|
|
774
|
+
local_var_path = '/invoices/{org}/{number}/dunning/skip'.sub('{org}', CGI.escape(org.to_s)).sub('{number}', CGI.escape(number.to_s))
|
|
775
|
+
|
|
776
|
+
# query parameters
|
|
777
|
+
query_params = opts[:query_params] || {}
|
|
778
|
+
|
|
779
|
+
# header parameters
|
|
780
|
+
header_params = opts[:header_params] || {}
|
|
781
|
+
# HTTP header 'Accept' (if needed)
|
|
782
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
783
|
+
# HTTP header 'Content-Type'
|
|
784
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
785
|
+
if !content_type.nil?
|
|
786
|
+
header_params['Content-Type'] = content_type
|
|
787
|
+
end
|
|
788
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
789
|
+
|
|
790
|
+
# form parameters
|
|
791
|
+
form_params = opts[:form_params] || {}
|
|
792
|
+
|
|
793
|
+
# http body (model)
|
|
794
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(skip_invoice_dunning_step_request)
|
|
795
|
+
|
|
796
|
+
# return_type
|
|
797
|
+
return_type = opts[:debug_return_type] || 'DunningState'
|
|
798
|
+
|
|
799
|
+
# auth_names
|
|
800
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
801
|
+
|
|
802
|
+
new_options = opts.merge(
|
|
803
|
+
:operation => :"DunningApi.skip_invoice_dunning_step",
|
|
804
|
+
:header_params => header_params,
|
|
805
|
+
:query_params => query_params,
|
|
806
|
+
:form_params => form_params,
|
|
807
|
+
:body => post_body,
|
|
808
|
+
:auth_names => auth_names,
|
|
809
|
+
:return_type => return_type
|
|
810
|
+
)
|
|
811
|
+
|
|
812
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
813
|
+
if @api_client.config.debugging
|
|
814
|
+
@api_client.config.logger.debug "API called: DunningApi#skip_invoice_dunning_step\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
815
|
+
end
|
|
816
|
+
return data, status_code, headers
|
|
817
|
+
end
|
|
818
|
+
|
|
819
|
+
# Stop retries, or everything
|
|
820
|
+
# `retries` leaves reminders and suspension running. `everything` also exempts the invoice, so they stop too. Operator token only.
|
|
821
|
+
# @param org [String] The organization id (the merchant platform's own tenant key).
|
|
822
|
+
# @param number [String] The invoice number.
|
|
823
|
+
# @param stop_invoice_dunning_request [StopInvoiceDunningRequest]
|
|
824
|
+
# @param [Hash] opts the optional parameters
|
|
825
|
+
# @option opts [String] :idempotency_key An opaque, caller-generated key giving this write exactly-once semantics. A retry with the same key replays the first response instead of re-running the effect; reusing it with a different body is `409`.
|
|
826
|
+
# @return [DunningState]
|
|
827
|
+
def stop_invoice_dunning(org, number, stop_invoice_dunning_request, opts = {})
|
|
828
|
+
data, _status_code, _headers = stop_invoice_dunning_with_http_info(org, number, stop_invoice_dunning_request, opts)
|
|
829
|
+
data
|
|
830
|
+
end
|
|
831
|
+
|
|
832
|
+
# Stop retries, or everything
|
|
833
|
+
# `retries` leaves reminders and suspension running. `everything` also exempts the invoice, so they stop too. Operator token only.
|
|
834
|
+
# @param org [String] The organization id (the merchant platform's own tenant key).
|
|
835
|
+
# @param number [String] The invoice number.
|
|
836
|
+
# @param stop_invoice_dunning_request [StopInvoiceDunningRequest]
|
|
837
|
+
# @param [Hash] opts the optional parameters
|
|
838
|
+
# @option opts [String] :idempotency_key An opaque, caller-generated key giving this write exactly-once semantics. A retry with the same key replays the first response instead of re-running the effect; reusing it with a different body is `409`.
|
|
839
|
+
# @return [Array<(DunningState, Integer, Hash)>] DunningState data, response status code and response headers
|
|
840
|
+
def stop_invoice_dunning_with_http_info(org, number, stop_invoice_dunning_request, opts = {})
|
|
841
|
+
if @api_client.config.debugging
|
|
842
|
+
@api_client.config.logger.debug 'Calling API: DunningApi.stop_invoice_dunning ...'
|
|
843
|
+
end
|
|
844
|
+
# verify the required parameter 'org' is set
|
|
845
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
846
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling DunningApi.stop_invoice_dunning"
|
|
847
|
+
end
|
|
848
|
+
# verify the required parameter 'number' is set
|
|
849
|
+
if @api_client.config.client_side_validation && number.nil?
|
|
850
|
+
fail ArgumentError, "Missing the required parameter 'number' when calling DunningApi.stop_invoice_dunning"
|
|
851
|
+
end
|
|
852
|
+
# verify the required parameter 'stop_invoice_dunning_request' is set
|
|
853
|
+
if @api_client.config.client_side_validation && stop_invoice_dunning_request.nil?
|
|
854
|
+
fail ArgumentError, "Missing the required parameter 'stop_invoice_dunning_request' when calling DunningApi.stop_invoice_dunning"
|
|
855
|
+
end
|
|
856
|
+
# resource path
|
|
857
|
+
local_var_path = '/invoices/{org}/{number}/dunning/stop'.sub('{org}', CGI.escape(org.to_s)).sub('{number}', CGI.escape(number.to_s))
|
|
858
|
+
|
|
859
|
+
# query parameters
|
|
860
|
+
query_params = opts[:query_params] || {}
|
|
861
|
+
|
|
862
|
+
# header parameters
|
|
863
|
+
header_params = opts[:header_params] || {}
|
|
864
|
+
# HTTP header 'Accept' (if needed)
|
|
865
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
866
|
+
# HTTP header 'Content-Type'
|
|
867
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
868
|
+
if !content_type.nil?
|
|
869
|
+
header_params['Content-Type'] = content_type
|
|
870
|
+
end
|
|
871
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
872
|
+
|
|
873
|
+
# form parameters
|
|
874
|
+
form_params = opts[:form_params] || {}
|
|
875
|
+
|
|
876
|
+
# http body (model)
|
|
877
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(stop_invoice_dunning_request)
|
|
878
|
+
|
|
879
|
+
# return_type
|
|
880
|
+
return_type = opts[:debug_return_type] || 'DunningState'
|
|
881
|
+
|
|
882
|
+
# auth_names
|
|
883
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
884
|
+
|
|
885
|
+
new_options = opts.merge(
|
|
886
|
+
:operation => :"DunningApi.stop_invoice_dunning",
|
|
887
|
+
:header_params => header_params,
|
|
888
|
+
:query_params => query_params,
|
|
889
|
+
:form_params => form_params,
|
|
890
|
+
:body => post_body,
|
|
891
|
+
:auth_names => auth_names,
|
|
892
|
+
:return_type => return_type
|
|
893
|
+
)
|
|
894
|
+
|
|
895
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
896
|
+
if @api_client.config.debugging
|
|
897
|
+
@api_client.config.logger.debug "API called: DunningApi#stop_invoice_dunning\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
898
|
+
end
|
|
899
|
+
return data, status_code, headers
|
|
900
|
+
end
|
|
901
|
+
end
|
|
902
|
+
end
|