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,1110 @@
|
|
|
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 OrganizationsApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Cancel a pending increase request
|
|
23
|
+
# Product-scoped resource ceilings. No price, invoice or monetary credit limit changes. Name product or use a product-bound token. Review and revocation require an operator token. See the management guide for replay, expiry and admission requirements.
|
|
24
|
+
# @param org [String] The organization id (the merchant platform's own tenant key).
|
|
25
|
+
# @param id [String] The request's public id (`lir_…`).
|
|
26
|
+
# @param [Hash] opts the optional parameters
|
|
27
|
+
# @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.
|
|
28
|
+
# @return [LimitIncreaseRequest]
|
|
29
|
+
def cancel_limit_increase(org, id, opts = {})
|
|
30
|
+
data, _status_code, _headers = cancel_limit_increase_with_http_info(org, id, opts)
|
|
31
|
+
data
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Cancel a pending increase request
|
|
35
|
+
# Product-scoped resource ceilings. No price, invoice or monetary credit limit changes. Name product or use a product-bound token. Review and revocation require an operator token. See the management guide for replay, expiry and admission requirements.
|
|
36
|
+
# @param org [String] The organization id (the merchant platform's own tenant key).
|
|
37
|
+
# @param id [String] The request's public id (`lir_…`).
|
|
38
|
+
# @param [Hash] opts the optional parameters
|
|
39
|
+
# @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.
|
|
40
|
+
# @return [Array<(LimitIncreaseRequest, Integer, Hash)>] LimitIncreaseRequest data, response status code and response headers
|
|
41
|
+
def cancel_limit_increase_with_http_info(org, id, opts = {})
|
|
42
|
+
if @api_client.config.debugging
|
|
43
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.cancel_limit_increase ...'
|
|
44
|
+
end
|
|
45
|
+
# verify the required parameter 'org' is set
|
|
46
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
47
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling OrganizationsApi.cancel_limit_increase"
|
|
48
|
+
end
|
|
49
|
+
# verify the required parameter 'id' is set
|
|
50
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
51
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.cancel_limit_increase"
|
|
52
|
+
end
|
|
53
|
+
# resource path
|
|
54
|
+
local_var_path = '/organizations/{org}/limit-increase-requests/{id}/cancel'.sub('{org}', CGI.escape(org.to_s)).sub('{id}', CGI.escape(id.to_s))
|
|
55
|
+
|
|
56
|
+
# query parameters
|
|
57
|
+
query_params = opts[:query_params] || {}
|
|
58
|
+
query_params[:'product'] = opts[:'product'] if !opts[:'product'].nil?
|
|
59
|
+
|
|
60
|
+
# header parameters
|
|
61
|
+
header_params = opts[:header_params] || {}
|
|
62
|
+
# HTTP header 'Accept' (if needed)
|
|
63
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
64
|
+
|
|
65
|
+
# form parameters
|
|
66
|
+
form_params = opts[:form_params] || {}
|
|
67
|
+
|
|
68
|
+
# http body (model)
|
|
69
|
+
post_body = opts[:debug_body]
|
|
70
|
+
|
|
71
|
+
# return_type
|
|
72
|
+
return_type = opts[:debug_return_type] || 'LimitIncreaseRequest'
|
|
73
|
+
|
|
74
|
+
# auth_names
|
|
75
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
76
|
+
|
|
77
|
+
new_options = opts.merge(
|
|
78
|
+
:operation => :"OrganizationsApi.cancel_limit_increase",
|
|
79
|
+
:header_params => header_params,
|
|
80
|
+
:query_params => query_params,
|
|
81
|
+
:form_params => form_params,
|
|
82
|
+
:body => post_body,
|
|
83
|
+
:auth_names => auth_names,
|
|
84
|
+
:return_type => return_type
|
|
85
|
+
)
|
|
86
|
+
|
|
87
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
88
|
+
if @api_client.config.debugging
|
|
89
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#cancel_limit_increase\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
90
|
+
end
|
|
91
|
+
return data, status_code, headers
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# Approve or reject an increase
|
|
95
|
+
# Product-scoped resource ceilings. No price, invoice or monetary credit limit changes. Name product or use a product-bound token. Review and revocation require an operator token. See the management guide for replay, expiry and admission requirements.
|
|
96
|
+
# @param org [String] The organization id (the merchant platform's own tenant key).
|
|
97
|
+
# @param id [String] The request's public id (`lir_…`).
|
|
98
|
+
# @param limit_increase_decision [LimitIncreaseDecision]
|
|
99
|
+
# @param [Hash] opts the optional parameters
|
|
100
|
+
# @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.
|
|
101
|
+
# @return [LimitIncreaseRequest]
|
|
102
|
+
def decide_limit_increase(org, id, limit_increase_decision, opts = {})
|
|
103
|
+
data, _status_code, _headers = decide_limit_increase_with_http_info(org, id, limit_increase_decision, opts)
|
|
104
|
+
data
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# Approve or reject an increase
|
|
108
|
+
# Product-scoped resource ceilings. No price, invoice or monetary credit limit changes. Name product or use a product-bound token. Review and revocation require an operator token. See the management guide for replay, expiry and admission requirements.
|
|
109
|
+
# @param org [String] The organization id (the merchant platform's own tenant key).
|
|
110
|
+
# @param id [String] The request's public id (`lir_…`).
|
|
111
|
+
# @param limit_increase_decision [LimitIncreaseDecision]
|
|
112
|
+
# @param [Hash] opts the optional parameters
|
|
113
|
+
# @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.
|
|
114
|
+
# @return [Array<(LimitIncreaseRequest, Integer, Hash)>] LimitIncreaseRequest data, response status code and response headers
|
|
115
|
+
def decide_limit_increase_with_http_info(org, id, limit_increase_decision, opts = {})
|
|
116
|
+
if @api_client.config.debugging
|
|
117
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.decide_limit_increase ...'
|
|
118
|
+
end
|
|
119
|
+
# verify the required parameter 'org' is set
|
|
120
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
121
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling OrganizationsApi.decide_limit_increase"
|
|
122
|
+
end
|
|
123
|
+
# verify the required parameter 'id' is set
|
|
124
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
125
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.decide_limit_increase"
|
|
126
|
+
end
|
|
127
|
+
# verify the required parameter 'limit_increase_decision' is set
|
|
128
|
+
if @api_client.config.client_side_validation && limit_increase_decision.nil?
|
|
129
|
+
fail ArgumentError, "Missing the required parameter 'limit_increase_decision' when calling OrganizationsApi.decide_limit_increase"
|
|
130
|
+
end
|
|
131
|
+
# resource path
|
|
132
|
+
local_var_path = '/organizations/{org}/limit-increase-requests/{id}/decision'.sub('{org}', CGI.escape(org.to_s)).sub('{id}', CGI.escape(id.to_s))
|
|
133
|
+
|
|
134
|
+
# query parameters
|
|
135
|
+
query_params = opts[:query_params] || {}
|
|
136
|
+
query_params[:'product'] = opts[:'product'] if !opts[:'product'].nil?
|
|
137
|
+
|
|
138
|
+
# header parameters
|
|
139
|
+
header_params = opts[:header_params] || {}
|
|
140
|
+
# HTTP header 'Accept' (if needed)
|
|
141
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
142
|
+
# HTTP header 'Content-Type'
|
|
143
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
144
|
+
if !content_type.nil?
|
|
145
|
+
header_params['Content-Type'] = content_type
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
# form parameters
|
|
149
|
+
form_params = opts[:form_params] || {}
|
|
150
|
+
|
|
151
|
+
# http body (model)
|
|
152
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(limit_increase_decision)
|
|
153
|
+
|
|
154
|
+
# return_type
|
|
155
|
+
return_type = opts[:debug_return_type] || 'LimitIncreaseRequest'
|
|
156
|
+
|
|
157
|
+
# auth_names
|
|
158
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
159
|
+
|
|
160
|
+
new_options = opts.merge(
|
|
161
|
+
:operation => :"OrganizationsApi.decide_limit_increase",
|
|
162
|
+
:header_params => header_params,
|
|
163
|
+
:query_params => query_params,
|
|
164
|
+
:form_params => form_params,
|
|
165
|
+
:body => post_body,
|
|
166
|
+
:auth_names => auth_names,
|
|
167
|
+
:return_type => return_type
|
|
168
|
+
)
|
|
169
|
+
|
|
170
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
171
|
+
if @api_client.config.debugging
|
|
172
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#decide_limit_increase\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
173
|
+
end
|
|
174
|
+
return data, status_code, headers
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
# Remove an entitlement override
|
|
178
|
+
# The layers below decide again. **Operator tokens only.** Audited, and sends `entitlements.changed` with `change` set to `removed`.
|
|
179
|
+
# @param org [String] The organization id (the merchant platform's own tenant key).
|
|
180
|
+
# @param id [String] The override's public id (`ovr_…`).
|
|
181
|
+
# @param [Hash] opts the optional parameters
|
|
182
|
+
# @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`.
|
|
183
|
+
# @return [DeleteEntitlementOverride200Response]
|
|
184
|
+
def delete_entitlement_override(org, id, opts = {})
|
|
185
|
+
data, _status_code, _headers = delete_entitlement_override_with_http_info(org, id, opts)
|
|
186
|
+
data
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
# Remove an entitlement override
|
|
190
|
+
# The layers below decide again. **Operator tokens only.** Audited, and sends `entitlements.changed` with `change` set to `removed`.
|
|
191
|
+
# @param org [String] The organization id (the merchant platform's own tenant key).
|
|
192
|
+
# @param id [String] The override's public id (`ovr_…`).
|
|
193
|
+
# @param [Hash] opts the optional parameters
|
|
194
|
+
# @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`.
|
|
195
|
+
# @return [Array<(DeleteEntitlementOverride200Response, Integer, Hash)>] DeleteEntitlementOverride200Response data, response status code and response headers
|
|
196
|
+
def delete_entitlement_override_with_http_info(org, id, opts = {})
|
|
197
|
+
if @api_client.config.debugging
|
|
198
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.delete_entitlement_override ...'
|
|
199
|
+
end
|
|
200
|
+
# verify the required parameter 'org' is set
|
|
201
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
202
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling OrganizationsApi.delete_entitlement_override"
|
|
203
|
+
end
|
|
204
|
+
# verify the required parameter 'id' is set
|
|
205
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
206
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.delete_entitlement_override"
|
|
207
|
+
end
|
|
208
|
+
# resource path
|
|
209
|
+
local_var_path = '/organizations/{org}/entitlement-overrides/{id}'.sub('{org}', CGI.escape(org.to_s)).sub('{id}', CGI.escape(id.to_s))
|
|
210
|
+
|
|
211
|
+
# query parameters
|
|
212
|
+
query_params = opts[:query_params] || {}
|
|
213
|
+
|
|
214
|
+
# header parameters
|
|
215
|
+
header_params = opts[:header_params] || {}
|
|
216
|
+
# HTTP header 'Accept' (if needed)
|
|
217
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
218
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
219
|
+
|
|
220
|
+
# form parameters
|
|
221
|
+
form_params = opts[:form_params] || {}
|
|
222
|
+
|
|
223
|
+
# http body (model)
|
|
224
|
+
post_body = opts[:debug_body]
|
|
225
|
+
|
|
226
|
+
# return_type
|
|
227
|
+
return_type = opts[:debug_return_type] || 'DeleteEntitlementOverride200Response'
|
|
228
|
+
|
|
229
|
+
# auth_names
|
|
230
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
231
|
+
|
|
232
|
+
new_options = opts.merge(
|
|
233
|
+
:operation => :"OrganizationsApi.delete_entitlement_override",
|
|
234
|
+
:header_params => header_params,
|
|
235
|
+
:query_params => query_params,
|
|
236
|
+
:form_params => form_params,
|
|
237
|
+
:body => post_body,
|
|
238
|
+
:auth_names => auth_names,
|
|
239
|
+
:return_type => return_type
|
|
240
|
+
)
|
|
241
|
+
|
|
242
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
243
|
+
if @api_client.config.debugging
|
|
244
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#delete_entitlement_override\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
245
|
+
end
|
|
246
|
+
return data, status_code, headers
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
# Who pays for this organization, and who it pays for
|
|
250
|
+
# @param org [String] The organization id (the merchant platform's own tenant key).
|
|
251
|
+
# @param [Hash] opts the optional parameters
|
|
252
|
+
# @return [BillingParent]
|
|
253
|
+
def get_billing_parent(org, opts = {})
|
|
254
|
+
data, _status_code, _headers = get_billing_parent_with_http_info(org, opts)
|
|
255
|
+
data
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
# Who pays for this organization, and who it pays for
|
|
259
|
+
# @param org [String] The organization id (the merchant platform's own tenant key).
|
|
260
|
+
# @param [Hash] opts the optional parameters
|
|
261
|
+
# @return [Array<(BillingParent, Integer, Hash)>] BillingParent data, response status code and response headers
|
|
262
|
+
def get_billing_parent_with_http_info(org, opts = {})
|
|
263
|
+
if @api_client.config.debugging
|
|
264
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_billing_parent ...'
|
|
265
|
+
end
|
|
266
|
+
# verify the required parameter 'org' is set
|
|
267
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
268
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling OrganizationsApi.get_billing_parent"
|
|
269
|
+
end
|
|
270
|
+
# resource path
|
|
271
|
+
local_var_path = '/organizations/{org}/billing-parent'.sub('{org}', CGI.escape(org.to_s))
|
|
272
|
+
|
|
273
|
+
# query parameters
|
|
274
|
+
query_params = opts[:query_params] || {}
|
|
275
|
+
|
|
276
|
+
# header parameters
|
|
277
|
+
header_params = opts[:header_params] || {}
|
|
278
|
+
# HTTP header 'Accept' (if needed)
|
|
279
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
280
|
+
|
|
281
|
+
# form parameters
|
|
282
|
+
form_params = opts[:form_params] || {}
|
|
283
|
+
|
|
284
|
+
# http body (model)
|
|
285
|
+
post_body = opts[:debug_body]
|
|
286
|
+
|
|
287
|
+
# return_type
|
|
288
|
+
return_type = opts[:debug_return_type] || 'BillingParent'
|
|
289
|
+
|
|
290
|
+
# auth_names
|
|
291
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
292
|
+
|
|
293
|
+
new_options = opts.merge(
|
|
294
|
+
:operation => :"OrganizationsApi.get_billing_parent",
|
|
295
|
+
:header_params => header_params,
|
|
296
|
+
:query_params => query_params,
|
|
297
|
+
:form_params => form_params,
|
|
298
|
+
:body => post_body,
|
|
299
|
+
:auth_names => auth_names,
|
|
300
|
+
:return_type => return_type
|
|
301
|
+
)
|
|
302
|
+
|
|
303
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
304
|
+
if @api_client.config.debugging
|
|
305
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#get_billing_parent\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
306
|
+
end
|
|
307
|
+
return data, status_code, headers
|
|
308
|
+
end
|
|
309
|
+
|
|
310
|
+
# Read an organization's billing details
|
|
311
|
+
# The customer's billing details as they stand, for an app that shows them read-only next to a link to the hosted portal. The answer is the `organization` that `PUT /organizations/{org}` with `customer_account: true` returns: the name, billing email and phone, the address (`billing_country` is ISO 3166-1 alpha-2, `billing_subdivision` ISO 3166-2), `tax_id` with its verdict `tax_id_validated`, `purchaser_type`, `ean_number`, `order_reference` and `billing_currency`, with `account: owned`. The details are the customer's, so every product of the tenant reads them. It never creates the organization: an unknown one is `404`. An org-scoped token may read only its own organization (`403` otherwise). It needs `organizations:read`; `organizations:write` does not include it.
|
|
312
|
+
# @param org [String] The organization id (the merchant platform's own tenant key).
|
|
313
|
+
# @param [Hash] opts the optional parameters
|
|
314
|
+
# @return [OrganizationResponse]
|
|
315
|
+
def get_organization(org, opts = {})
|
|
316
|
+
data, _status_code, _headers = get_organization_with_http_info(org, opts)
|
|
317
|
+
data
|
|
318
|
+
end
|
|
319
|
+
|
|
320
|
+
# Read an organization's billing details
|
|
321
|
+
# The customer's billing details as they stand, for an app that shows them read-only next to a link to the hosted portal. The answer is the `organization` that `PUT /organizations/{org}` with `customer_account: true` returns: the name, billing email and phone, the address (`billing_country` is ISO 3166-1 alpha-2, `billing_subdivision` ISO 3166-2), `tax_id` with its verdict `tax_id_validated`, `purchaser_type`, `ean_number`, `order_reference` and `billing_currency`, with `account: owned`. The details are the customer's, so every product of the tenant reads them. It never creates the organization: an unknown one is `404`. An org-scoped token may read only its own organization (`403` otherwise). It needs `organizations:read`; `organizations:write` does not include it.
|
|
322
|
+
# @param org [String] The organization id (the merchant platform's own tenant key).
|
|
323
|
+
# @param [Hash] opts the optional parameters
|
|
324
|
+
# @return [Array<(OrganizationResponse, Integer, Hash)>] OrganizationResponse data, response status code and response headers
|
|
325
|
+
def get_organization_with_http_info(org, opts = {})
|
|
326
|
+
if @api_client.config.debugging
|
|
327
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization ...'
|
|
328
|
+
end
|
|
329
|
+
# verify the required parameter 'org' is set
|
|
330
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
331
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling OrganizationsApi.get_organization"
|
|
332
|
+
end
|
|
333
|
+
# resource path
|
|
334
|
+
local_var_path = '/organizations/{org}'.sub('{org}', CGI.escape(org.to_s))
|
|
335
|
+
|
|
336
|
+
# query parameters
|
|
337
|
+
query_params = opts[:query_params] || {}
|
|
338
|
+
|
|
339
|
+
# header parameters
|
|
340
|
+
header_params = opts[:header_params] || {}
|
|
341
|
+
# HTTP header 'Accept' (if needed)
|
|
342
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
343
|
+
|
|
344
|
+
# form parameters
|
|
345
|
+
form_params = opts[:form_params] || {}
|
|
346
|
+
|
|
347
|
+
# http body (model)
|
|
348
|
+
post_body = opts[:debug_body]
|
|
349
|
+
|
|
350
|
+
# return_type
|
|
351
|
+
return_type = opts[:debug_return_type] || 'OrganizationResponse'
|
|
352
|
+
|
|
353
|
+
# auth_names
|
|
354
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
355
|
+
|
|
356
|
+
new_options = opts.merge(
|
|
357
|
+
:operation => :"OrganizationsApi.get_organization",
|
|
358
|
+
:header_params => header_params,
|
|
359
|
+
:query_params => query_params,
|
|
360
|
+
:form_params => form_params,
|
|
361
|
+
:body => post_body,
|
|
362
|
+
:auth_names => auth_names,
|
|
363
|
+
:return_type => return_type
|
|
364
|
+
)
|
|
365
|
+
|
|
366
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
367
|
+
if @api_client.config.debugging
|
|
368
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#get_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
369
|
+
end
|
|
370
|
+
return data, status_code, headers
|
|
371
|
+
end
|
|
372
|
+
|
|
373
|
+
# Read effective organization resource ceilings
|
|
374
|
+
# Product-scoped resource ceilings. No price, invoice or monetary credit limit changes. Name product or use a product-bound token. Review and revocation require an operator token. See the management guide for replay, expiry and admission requirements.
|
|
375
|
+
# @param org [String] The organization id (the merchant platform's own tenant key).
|
|
376
|
+
# @param [Hash] opts the optional parameters
|
|
377
|
+
# @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.
|
|
378
|
+
# @return [GetResourceLimits200Response]
|
|
379
|
+
def get_resource_limits(org, opts = {})
|
|
380
|
+
data, _status_code, _headers = get_resource_limits_with_http_info(org, opts)
|
|
381
|
+
data
|
|
382
|
+
end
|
|
383
|
+
|
|
384
|
+
# Read effective organization resource ceilings
|
|
385
|
+
# Product-scoped resource ceilings. No price, invoice or monetary credit limit changes. Name product or use a product-bound token. Review and revocation require an operator token. See the management guide for replay, expiry and admission requirements.
|
|
386
|
+
# @param org [String] The organization id (the merchant platform's own tenant key).
|
|
387
|
+
# @param [Hash] opts the optional parameters
|
|
388
|
+
# @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.
|
|
389
|
+
# @return [Array<(GetResourceLimits200Response, Integer, Hash)>] GetResourceLimits200Response data, response status code and response headers
|
|
390
|
+
def get_resource_limits_with_http_info(org, opts = {})
|
|
391
|
+
if @api_client.config.debugging
|
|
392
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_resource_limits ...'
|
|
393
|
+
end
|
|
394
|
+
# verify the required parameter 'org' is set
|
|
395
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
396
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling OrganizationsApi.get_resource_limits"
|
|
397
|
+
end
|
|
398
|
+
# resource path
|
|
399
|
+
local_var_path = '/organizations/{org}/limits'.sub('{org}', CGI.escape(org.to_s))
|
|
400
|
+
|
|
401
|
+
# query parameters
|
|
402
|
+
query_params = opts[:query_params] || {}
|
|
403
|
+
query_params[:'product'] = opts[:'product'] if !opts[:'product'].nil?
|
|
404
|
+
|
|
405
|
+
# header parameters
|
|
406
|
+
header_params = opts[:header_params] || {}
|
|
407
|
+
# HTTP header 'Accept' (if needed)
|
|
408
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
409
|
+
|
|
410
|
+
# form parameters
|
|
411
|
+
form_params = opts[:form_params] || {}
|
|
412
|
+
|
|
413
|
+
# http body (model)
|
|
414
|
+
post_body = opts[:debug_body]
|
|
415
|
+
|
|
416
|
+
# return_type
|
|
417
|
+
return_type = opts[:debug_return_type] || 'GetResourceLimits200Response'
|
|
418
|
+
|
|
419
|
+
# auth_names
|
|
420
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
421
|
+
|
|
422
|
+
new_options = opts.merge(
|
|
423
|
+
:operation => :"OrganizationsApi.get_resource_limits",
|
|
424
|
+
:header_params => header_params,
|
|
425
|
+
:query_params => query_params,
|
|
426
|
+
:form_params => form_params,
|
|
427
|
+
:body => post_body,
|
|
428
|
+
:auth_names => auth_names,
|
|
429
|
+
:return_type => return_type
|
|
430
|
+
)
|
|
431
|
+
|
|
432
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
433
|
+
if @api_client.config.debugging
|
|
434
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#get_resource_limits\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
435
|
+
end
|
|
436
|
+
return data, status_code, headers
|
|
437
|
+
end
|
|
438
|
+
|
|
439
|
+
# A customer's entitlement overrides and what they hold
|
|
440
|
+
# Every entitlement override of the customer, oldest first, in every status. An override changes one meter's access, allowance, overage or per-value rules for the customer, or for one of its subscriptions. **Operator tokens only**: a customer's own token gets `403`. `effective` says, for each meter an override names and each serving subscription, what the plan gives (`plan`), what the subscription holds with the overrides applied (`effective`), and which overrides applied (`overrides`). The layers are the plan, then the subscription's override, then the customer's override, which wins. A field left `null` on an override leaves it to the layer below.
|
|
441
|
+
# @param org [String] The organization id (the merchant platform's own tenant key).
|
|
442
|
+
# @param [Hash] opts the optional parameters
|
|
443
|
+
# @return [ListEntitlementOverrides200Response]
|
|
444
|
+
def list_entitlement_overrides(org, opts = {})
|
|
445
|
+
data, _status_code, _headers = list_entitlement_overrides_with_http_info(org, opts)
|
|
446
|
+
data
|
|
447
|
+
end
|
|
448
|
+
|
|
449
|
+
# A customer's entitlement overrides and what they hold
|
|
450
|
+
# Every entitlement override of the customer, oldest first, in every status. An override changes one meter's access, allowance, overage or per-value rules for the customer, or for one of its subscriptions. **Operator tokens only**: a customer's own token gets `403`. `effective` says, for each meter an override names and each serving subscription, what the plan gives (`plan`), what the subscription holds with the overrides applied (`effective`), and which overrides applied (`overrides`). The layers are the plan, then the subscription's override, then the customer's override, which wins. A field left `null` on an override leaves it to the layer below.
|
|
451
|
+
# @param org [String] The organization id (the merchant platform's own tenant key).
|
|
452
|
+
# @param [Hash] opts the optional parameters
|
|
453
|
+
# @return [Array<(ListEntitlementOverrides200Response, Integer, Hash)>] ListEntitlementOverrides200Response data, response status code and response headers
|
|
454
|
+
def list_entitlement_overrides_with_http_info(org, opts = {})
|
|
455
|
+
if @api_client.config.debugging
|
|
456
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.list_entitlement_overrides ...'
|
|
457
|
+
end
|
|
458
|
+
# verify the required parameter 'org' is set
|
|
459
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
460
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling OrganizationsApi.list_entitlement_overrides"
|
|
461
|
+
end
|
|
462
|
+
# resource path
|
|
463
|
+
local_var_path = '/organizations/{org}/entitlement-overrides'.sub('{org}', CGI.escape(org.to_s))
|
|
464
|
+
|
|
465
|
+
# query parameters
|
|
466
|
+
query_params = opts[:query_params] || {}
|
|
467
|
+
|
|
468
|
+
# header parameters
|
|
469
|
+
header_params = opts[:header_params] || {}
|
|
470
|
+
# HTTP header 'Accept' (if needed)
|
|
471
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
472
|
+
|
|
473
|
+
# form parameters
|
|
474
|
+
form_params = opts[:form_params] || {}
|
|
475
|
+
|
|
476
|
+
# http body (model)
|
|
477
|
+
post_body = opts[:debug_body]
|
|
478
|
+
|
|
479
|
+
# return_type
|
|
480
|
+
return_type = opts[:debug_return_type] || 'ListEntitlementOverrides200Response'
|
|
481
|
+
|
|
482
|
+
# auth_names
|
|
483
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
484
|
+
|
|
485
|
+
new_options = opts.merge(
|
|
486
|
+
:operation => :"OrganizationsApi.list_entitlement_overrides",
|
|
487
|
+
:header_params => header_params,
|
|
488
|
+
:query_params => query_params,
|
|
489
|
+
:form_params => form_params,
|
|
490
|
+
:body => post_body,
|
|
491
|
+
:auth_names => auth_names,
|
|
492
|
+
:return_type => return_type
|
|
493
|
+
)
|
|
494
|
+
|
|
495
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
496
|
+
if @api_client.config.debugging
|
|
497
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#list_entitlement_overrides\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
498
|
+
end
|
|
499
|
+
return data, status_code, headers
|
|
500
|
+
end
|
|
501
|
+
|
|
502
|
+
# List increase requests
|
|
503
|
+
# Product-scoped resource ceilings. No price, invoice or monetary credit limit changes. Name product or use a product-bound token. Review and revocation require an operator token. See the management guide for replay, expiry and admission requirements.
|
|
504
|
+
# @param org [String] The organization id (the merchant platform's own tenant key).
|
|
505
|
+
# @param [Hash] opts the optional parameters
|
|
506
|
+
# @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.
|
|
507
|
+
# @return [ListLimitIncreaseRequests200Response]
|
|
508
|
+
def list_limit_increase_requests(org, opts = {})
|
|
509
|
+
data, _status_code, _headers = list_limit_increase_requests_with_http_info(org, opts)
|
|
510
|
+
data
|
|
511
|
+
end
|
|
512
|
+
|
|
513
|
+
# List increase requests
|
|
514
|
+
# Product-scoped resource ceilings. No price, invoice or monetary credit limit changes. Name product or use a product-bound token. Review and revocation require an operator token. See the management guide for replay, expiry and admission requirements.
|
|
515
|
+
# @param org [String] The organization id (the merchant platform's own tenant key).
|
|
516
|
+
# @param [Hash] opts the optional parameters
|
|
517
|
+
# @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.
|
|
518
|
+
# @return [Array<(ListLimitIncreaseRequests200Response, Integer, Hash)>] ListLimitIncreaseRequests200Response data, response status code and response headers
|
|
519
|
+
def list_limit_increase_requests_with_http_info(org, opts = {})
|
|
520
|
+
if @api_client.config.debugging
|
|
521
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.list_limit_increase_requests ...'
|
|
522
|
+
end
|
|
523
|
+
# verify the required parameter 'org' is set
|
|
524
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
525
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling OrganizationsApi.list_limit_increase_requests"
|
|
526
|
+
end
|
|
527
|
+
# resource path
|
|
528
|
+
local_var_path = '/organizations/{org}/limit-increase-requests'.sub('{org}', CGI.escape(org.to_s))
|
|
529
|
+
|
|
530
|
+
# query parameters
|
|
531
|
+
query_params = opts[:query_params] || {}
|
|
532
|
+
query_params[:'product'] = opts[:'product'] if !opts[:'product'].nil?
|
|
533
|
+
|
|
534
|
+
# header parameters
|
|
535
|
+
header_params = opts[:header_params] || {}
|
|
536
|
+
# HTTP header 'Accept' (if needed)
|
|
537
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
538
|
+
|
|
539
|
+
# form parameters
|
|
540
|
+
form_params = opts[:form_params] || {}
|
|
541
|
+
|
|
542
|
+
# http body (model)
|
|
543
|
+
post_body = opts[:debug_body]
|
|
544
|
+
|
|
545
|
+
# return_type
|
|
546
|
+
return_type = opts[:debug_return_type] || 'ListLimitIncreaseRequests200Response'
|
|
547
|
+
|
|
548
|
+
# auth_names
|
|
549
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
550
|
+
|
|
551
|
+
new_options = opts.merge(
|
|
552
|
+
:operation => :"OrganizationsApi.list_limit_increase_requests",
|
|
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(:GET, local_var_path, new_options)
|
|
562
|
+
if @api_client.config.debugging
|
|
563
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#list_limit_increase_requests\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
564
|
+
end
|
|
565
|
+
return data, status_code, headers
|
|
566
|
+
end
|
|
567
|
+
|
|
568
|
+
# This organization pays for itself again
|
|
569
|
+
# Applies from its next invoice. Takes an operator token.
|
|
570
|
+
# @param org [String] The organization id (the merchant platform's own tenant key).
|
|
571
|
+
# @param remove_billing_parent_request [RemoveBillingParentRequest]
|
|
572
|
+
# @param [Hash] opts the optional parameters
|
|
573
|
+
# @return [BillingParent]
|
|
574
|
+
def remove_billing_parent(org, remove_billing_parent_request, opts = {})
|
|
575
|
+
data, _status_code, _headers = remove_billing_parent_with_http_info(org, remove_billing_parent_request, opts)
|
|
576
|
+
data
|
|
577
|
+
end
|
|
578
|
+
|
|
579
|
+
# This organization pays for itself again
|
|
580
|
+
# Applies from its next invoice. Takes an operator token.
|
|
581
|
+
# @param org [String] The organization id (the merchant platform's own tenant key).
|
|
582
|
+
# @param remove_billing_parent_request [RemoveBillingParentRequest]
|
|
583
|
+
# @param [Hash] opts the optional parameters
|
|
584
|
+
# @return [Array<(BillingParent, Integer, Hash)>] BillingParent data, response status code and response headers
|
|
585
|
+
def remove_billing_parent_with_http_info(org, remove_billing_parent_request, opts = {})
|
|
586
|
+
if @api_client.config.debugging
|
|
587
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.remove_billing_parent ...'
|
|
588
|
+
end
|
|
589
|
+
# verify the required parameter 'org' is set
|
|
590
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
591
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling OrganizationsApi.remove_billing_parent"
|
|
592
|
+
end
|
|
593
|
+
# verify the required parameter 'remove_billing_parent_request' is set
|
|
594
|
+
if @api_client.config.client_side_validation && remove_billing_parent_request.nil?
|
|
595
|
+
fail ArgumentError, "Missing the required parameter 'remove_billing_parent_request' when calling OrganizationsApi.remove_billing_parent"
|
|
596
|
+
end
|
|
597
|
+
# resource path
|
|
598
|
+
local_var_path = '/organizations/{org}/billing-parent'.sub('{org}', CGI.escape(org.to_s))
|
|
599
|
+
|
|
600
|
+
# query parameters
|
|
601
|
+
query_params = opts[:query_params] || {}
|
|
602
|
+
|
|
603
|
+
# header parameters
|
|
604
|
+
header_params = opts[:header_params] || {}
|
|
605
|
+
# HTTP header 'Accept' (if needed)
|
|
606
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
607
|
+
# HTTP header 'Content-Type'
|
|
608
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
609
|
+
if !content_type.nil?
|
|
610
|
+
header_params['Content-Type'] = content_type
|
|
611
|
+
end
|
|
612
|
+
|
|
613
|
+
# form parameters
|
|
614
|
+
form_params = opts[:form_params] || {}
|
|
615
|
+
|
|
616
|
+
# http body (model)
|
|
617
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(remove_billing_parent_request)
|
|
618
|
+
|
|
619
|
+
# return_type
|
|
620
|
+
return_type = opts[:debug_return_type] || 'BillingParent'
|
|
621
|
+
|
|
622
|
+
# auth_names
|
|
623
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
624
|
+
|
|
625
|
+
new_options = opts.merge(
|
|
626
|
+
:operation => :"OrganizationsApi.remove_billing_parent",
|
|
627
|
+
:header_params => header_params,
|
|
628
|
+
:query_params => query_params,
|
|
629
|
+
:form_params => form_params,
|
|
630
|
+
:body => post_body,
|
|
631
|
+
:auth_names => auth_names,
|
|
632
|
+
:return_type => return_type
|
|
633
|
+
)
|
|
634
|
+
|
|
635
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
636
|
+
if @api_client.config.debugging
|
|
637
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#remove_billing_parent\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
638
|
+
end
|
|
639
|
+
return data, status_code, headers
|
|
640
|
+
end
|
|
641
|
+
|
|
642
|
+
# Request a higher resource ceiling
|
|
643
|
+
# Product-scoped resource ceilings. No price, invoice or monetary credit limit changes. Name product or use a product-bound token. Review and revocation require an operator token. See the management guide for replay, expiry and admission requirements.
|
|
644
|
+
# @param org [String] The organization id (the merchant platform's own tenant key).
|
|
645
|
+
# @param limit_increase_input [LimitIncreaseInput]
|
|
646
|
+
# @param [Hash] opts the optional parameters
|
|
647
|
+
# @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.
|
|
648
|
+
# @return [LimitIncreaseRequest]
|
|
649
|
+
def request_limit_increase(org, limit_increase_input, opts = {})
|
|
650
|
+
data, _status_code, _headers = request_limit_increase_with_http_info(org, limit_increase_input, opts)
|
|
651
|
+
data
|
|
652
|
+
end
|
|
653
|
+
|
|
654
|
+
# Request a higher resource ceiling
|
|
655
|
+
# Product-scoped resource ceilings. No price, invoice or monetary credit limit changes. Name product or use a product-bound token. Review and revocation require an operator token. See the management guide for replay, expiry and admission requirements.
|
|
656
|
+
# @param org [String] The organization id (the merchant platform's own tenant key).
|
|
657
|
+
# @param limit_increase_input [LimitIncreaseInput]
|
|
658
|
+
# @param [Hash] opts the optional parameters
|
|
659
|
+
# @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.
|
|
660
|
+
# @return [Array<(LimitIncreaseRequest, Integer, Hash)>] LimitIncreaseRequest data, response status code and response headers
|
|
661
|
+
def request_limit_increase_with_http_info(org, limit_increase_input, opts = {})
|
|
662
|
+
if @api_client.config.debugging
|
|
663
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.request_limit_increase ...'
|
|
664
|
+
end
|
|
665
|
+
# verify the required parameter 'org' is set
|
|
666
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
667
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling OrganizationsApi.request_limit_increase"
|
|
668
|
+
end
|
|
669
|
+
# verify the required parameter 'limit_increase_input' is set
|
|
670
|
+
if @api_client.config.client_side_validation && limit_increase_input.nil?
|
|
671
|
+
fail ArgumentError, "Missing the required parameter 'limit_increase_input' when calling OrganizationsApi.request_limit_increase"
|
|
672
|
+
end
|
|
673
|
+
# resource path
|
|
674
|
+
local_var_path = '/organizations/{org}/limit-increase-requests'.sub('{org}', CGI.escape(org.to_s))
|
|
675
|
+
|
|
676
|
+
# query parameters
|
|
677
|
+
query_params = opts[:query_params] || {}
|
|
678
|
+
query_params[:'product'] = opts[:'product'] if !opts[:'product'].nil?
|
|
679
|
+
|
|
680
|
+
# header parameters
|
|
681
|
+
header_params = opts[:header_params] || {}
|
|
682
|
+
# HTTP header 'Accept' (if needed)
|
|
683
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
684
|
+
# HTTP header 'Content-Type'
|
|
685
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
686
|
+
if !content_type.nil?
|
|
687
|
+
header_params['Content-Type'] = content_type
|
|
688
|
+
end
|
|
689
|
+
|
|
690
|
+
# form parameters
|
|
691
|
+
form_params = opts[:form_params] || {}
|
|
692
|
+
|
|
693
|
+
# http body (model)
|
|
694
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(limit_increase_input)
|
|
695
|
+
|
|
696
|
+
# return_type
|
|
697
|
+
return_type = opts[:debug_return_type] || 'LimitIncreaseRequest'
|
|
698
|
+
|
|
699
|
+
# auth_names
|
|
700
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
701
|
+
|
|
702
|
+
new_options = opts.merge(
|
|
703
|
+
:operation => :"OrganizationsApi.request_limit_increase",
|
|
704
|
+
:header_params => header_params,
|
|
705
|
+
:query_params => query_params,
|
|
706
|
+
:form_params => form_params,
|
|
707
|
+
:body => post_body,
|
|
708
|
+
:auth_names => auth_names,
|
|
709
|
+
:return_type => return_type
|
|
710
|
+
)
|
|
711
|
+
|
|
712
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
713
|
+
if @api_client.config.debugging
|
|
714
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#request_limit_increase\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
715
|
+
end
|
|
716
|
+
return data, status_code, headers
|
|
717
|
+
end
|
|
718
|
+
|
|
719
|
+
# Revoke an approved increase without deleting its decision
|
|
720
|
+
# Product-scoped resource ceilings. No price, invoice or monetary credit limit changes. Name product or use a product-bound token. Review and revocation require an operator token. See the management guide for replay, expiry and admission requirements.
|
|
721
|
+
# @param org [String] The organization id (the merchant platform's own tenant key).
|
|
722
|
+
# @param id [String] The request's public id (`lir_…`).
|
|
723
|
+
# @param revoke_limit_increase_request [RevokeLimitIncreaseRequest]
|
|
724
|
+
# @param [Hash] opts the optional parameters
|
|
725
|
+
# @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.
|
|
726
|
+
# @return [LimitIncreaseRequest]
|
|
727
|
+
def revoke_limit_increase(org, id, revoke_limit_increase_request, opts = {})
|
|
728
|
+
data, _status_code, _headers = revoke_limit_increase_with_http_info(org, id, revoke_limit_increase_request, opts)
|
|
729
|
+
data
|
|
730
|
+
end
|
|
731
|
+
|
|
732
|
+
# Revoke an approved increase without deleting its decision
|
|
733
|
+
# Product-scoped resource ceilings. No price, invoice or monetary credit limit changes. Name product or use a product-bound token. Review and revocation require an operator token. See the management guide for replay, expiry and admission requirements.
|
|
734
|
+
# @param org [String] The organization id (the merchant platform's own tenant key).
|
|
735
|
+
# @param id [String] The request's public id (`lir_…`).
|
|
736
|
+
# @param revoke_limit_increase_request [RevokeLimitIncreaseRequest]
|
|
737
|
+
# @param [Hash] opts the optional parameters
|
|
738
|
+
# @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.
|
|
739
|
+
# @return [Array<(LimitIncreaseRequest, Integer, Hash)>] LimitIncreaseRequest data, response status code and response headers
|
|
740
|
+
def revoke_limit_increase_with_http_info(org, id, revoke_limit_increase_request, opts = {})
|
|
741
|
+
if @api_client.config.debugging
|
|
742
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.revoke_limit_increase ...'
|
|
743
|
+
end
|
|
744
|
+
# verify the required parameter 'org' is set
|
|
745
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
746
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling OrganizationsApi.revoke_limit_increase"
|
|
747
|
+
end
|
|
748
|
+
# verify the required parameter 'id' is set
|
|
749
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
750
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.revoke_limit_increase"
|
|
751
|
+
end
|
|
752
|
+
# verify the required parameter 'revoke_limit_increase_request' is set
|
|
753
|
+
if @api_client.config.client_side_validation && revoke_limit_increase_request.nil?
|
|
754
|
+
fail ArgumentError, "Missing the required parameter 'revoke_limit_increase_request' when calling OrganizationsApi.revoke_limit_increase"
|
|
755
|
+
end
|
|
756
|
+
# resource path
|
|
757
|
+
local_var_path = '/organizations/{org}/limit-increase-requests/{id}/revoke'.sub('{org}', CGI.escape(org.to_s)).sub('{id}', CGI.escape(id.to_s))
|
|
758
|
+
|
|
759
|
+
# query parameters
|
|
760
|
+
query_params = opts[:query_params] || {}
|
|
761
|
+
query_params[:'product'] = opts[:'product'] if !opts[:'product'].nil?
|
|
762
|
+
|
|
763
|
+
# header parameters
|
|
764
|
+
header_params = opts[:header_params] || {}
|
|
765
|
+
# HTTP header 'Accept' (if needed)
|
|
766
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
767
|
+
# HTTP header 'Content-Type'
|
|
768
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
769
|
+
if !content_type.nil?
|
|
770
|
+
header_params['Content-Type'] = content_type
|
|
771
|
+
end
|
|
772
|
+
|
|
773
|
+
# form parameters
|
|
774
|
+
form_params = opts[:form_params] || {}
|
|
775
|
+
|
|
776
|
+
# http body (model)
|
|
777
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(revoke_limit_increase_request)
|
|
778
|
+
|
|
779
|
+
# return_type
|
|
780
|
+
return_type = opts[:debug_return_type] || 'LimitIncreaseRequest'
|
|
781
|
+
|
|
782
|
+
# auth_names
|
|
783
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
784
|
+
|
|
785
|
+
new_options = opts.merge(
|
|
786
|
+
:operation => :"OrganizationsApi.revoke_limit_increase",
|
|
787
|
+
:header_params => header_params,
|
|
788
|
+
:query_params => query_params,
|
|
789
|
+
:form_params => form_params,
|
|
790
|
+
:body => post_body,
|
|
791
|
+
:auth_names => auth_names,
|
|
792
|
+
:return_type => return_type
|
|
793
|
+
)
|
|
794
|
+
|
|
795
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
796
|
+
if @api_client.config.debugging
|
|
797
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#revoke_limit_increase\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
798
|
+
end
|
|
799
|
+
return data, status_code, headers
|
|
800
|
+
end
|
|
801
|
+
|
|
802
|
+
# Override a meter entitlement for a customer or a subscription
|
|
803
|
+
# Create the override for its scope and meter, or replace the one standing there: one override stands per (customer or subscription, meter). Leave `subscription_id` out for the customer's own override. **Operator tokens only.** Send at least one of `enabled`, `allowance`, `overage`, `overage_cap` and `value_rules`. A field left out or `null` leaves it to the layer below. `value_rules` is merged value by value over the plan's rules: a value it names takes this rule, every other value keeps the plan's. Rules on another dimension replace the plan's whole. `reason` is required. `expires_at` must be in the future; the override stops applying at that moment and is marked `expired` within five minutes. An override changes entitlements only. It never adds a charge, a seat or a subscription, and never reprices anything: usage it lets through is billed, if at all, at the plan's own price. Every change is audited and sends `entitlements.changed`. `201` when created, `200` when it replaced one. A `422` has the shape `{error: invalid, message, errors}`.
|
|
804
|
+
# @param org [String] The organization id (the merchant platform's own tenant key).
|
|
805
|
+
# @param entitlement_override_input [EntitlementOverrideInput]
|
|
806
|
+
# @param [Hash] opts the optional parameters
|
|
807
|
+
# @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`.
|
|
808
|
+
# @return [EntitlementOverrideResult]
|
|
809
|
+
def save_entitlement_override(org, entitlement_override_input, opts = {})
|
|
810
|
+
data, _status_code, _headers = save_entitlement_override_with_http_info(org, entitlement_override_input, opts)
|
|
811
|
+
data
|
|
812
|
+
end
|
|
813
|
+
|
|
814
|
+
# Override a meter entitlement for a customer or a subscription
|
|
815
|
+
# Create the override for its scope and meter, or replace the one standing there: one override stands per (customer or subscription, meter). Leave `subscription_id` out for the customer's own override. **Operator tokens only.** Send at least one of `enabled`, `allowance`, `overage`, `overage_cap` and `value_rules`. A field left out or `null` leaves it to the layer below. `value_rules` is merged value by value over the plan's rules: a value it names takes this rule, every other value keeps the plan's. Rules on another dimension replace the plan's whole. `reason` is required. `expires_at` must be in the future; the override stops applying at that moment and is marked `expired` within five minutes. An override changes entitlements only. It never adds a charge, a seat or a subscription, and never reprices anything: usage it lets through is billed, if at all, at the plan's own price. Every change is audited and sends `entitlements.changed`. `201` when created, `200` when it replaced one. A `422` has the shape `{error: invalid, message, errors}`.
|
|
816
|
+
# @param org [String] The organization id (the merchant platform's own tenant key).
|
|
817
|
+
# @param entitlement_override_input [EntitlementOverrideInput]
|
|
818
|
+
# @param [Hash] opts the optional parameters
|
|
819
|
+
# @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`.
|
|
820
|
+
# @return [Array<(EntitlementOverrideResult, Integer, Hash)>] EntitlementOverrideResult data, response status code and response headers
|
|
821
|
+
def save_entitlement_override_with_http_info(org, entitlement_override_input, opts = {})
|
|
822
|
+
if @api_client.config.debugging
|
|
823
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.save_entitlement_override ...'
|
|
824
|
+
end
|
|
825
|
+
# verify the required parameter 'org' is set
|
|
826
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
827
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling OrganizationsApi.save_entitlement_override"
|
|
828
|
+
end
|
|
829
|
+
# verify the required parameter 'entitlement_override_input' is set
|
|
830
|
+
if @api_client.config.client_side_validation && entitlement_override_input.nil?
|
|
831
|
+
fail ArgumentError, "Missing the required parameter 'entitlement_override_input' when calling OrganizationsApi.save_entitlement_override"
|
|
832
|
+
end
|
|
833
|
+
# resource path
|
|
834
|
+
local_var_path = '/organizations/{org}/entitlement-overrides'.sub('{org}', CGI.escape(org.to_s))
|
|
835
|
+
|
|
836
|
+
# query parameters
|
|
837
|
+
query_params = opts[:query_params] || {}
|
|
838
|
+
|
|
839
|
+
# header parameters
|
|
840
|
+
header_params = opts[:header_params] || {}
|
|
841
|
+
# HTTP header 'Accept' (if needed)
|
|
842
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
843
|
+
# HTTP header 'Content-Type'
|
|
844
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
845
|
+
if !content_type.nil?
|
|
846
|
+
header_params['Content-Type'] = content_type
|
|
847
|
+
end
|
|
848
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
849
|
+
|
|
850
|
+
# form parameters
|
|
851
|
+
form_params = opts[:form_params] || {}
|
|
852
|
+
|
|
853
|
+
# http body (model)
|
|
854
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(entitlement_override_input)
|
|
855
|
+
|
|
856
|
+
# return_type
|
|
857
|
+
return_type = opts[:debug_return_type] || 'EntitlementOverrideResult'
|
|
858
|
+
|
|
859
|
+
# auth_names
|
|
860
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
861
|
+
|
|
862
|
+
new_options = opts.merge(
|
|
863
|
+
:operation => :"OrganizationsApi.save_entitlement_override",
|
|
864
|
+
:header_params => header_params,
|
|
865
|
+
:query_params => query_params,
|
|
866
|
+
:form_params => form_params,
|
|
867
|
+
:body => post_body,
|
|
868
|
+
:auth_names => auth_names,
|
|
869
|
+
:return_type => return_type
|
|
870
|
+
)
|
|
871
|
+
|
|
872
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
873
|
+
if @api_client.config.debugging
|
|
874
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#save_entitlement_override\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
875
|
+
end
|
|
876
|
+
return data, status_code, headers
|
|
877
|
+
end
|
|
878
|
+
|
|
879
|
+
# Let another organization pay for this one
|
|
880
|
+
# From the next invoice, this organization's invoices are issued to the parent, taxed for the parent and collected from it. Subscriptions, entitlements and usage stay here. If the parent is suspended, what it pays for is withheld too. An issued invoice stays where it is. One level only, the same environment and the same currency: otherwise 409 with `error` one of `self`, `has_children`, `parent_has_parent`, `erased`, `currency_mismatch`. Takes an operator token.
|
|
881
|
+
# @param org [String] The organization id (the merchant platform's own tenant key).
|
|
882
|
+
# @param set_billing_parent_request [SetBillingParentRequest]
|
|
883
|
+
# @param [Hash] opts the optional parameters
|
|
884
|
+
# @return [BillingParent]
|
|
885
|
+
def set_billing_parent(org, set_billing_parent_request, opts = {})
|
|
886
|
+
data, _status_code, _headers = set_billing_parent_with_http_info(org, set_billing_parent_request, opts)
|
|
887
|
+
data
|
|
888
|
+
end
|
|
889
|
+
|
|
890
|
+
# Let another organization pay for this one
|
|
891
|
+
# From the next invoice, this organization's invoices are issued to the parent, taxed for the parent and collected from it. Subscriptions, entitlements and usage stay here. If the parent is suspended, what it pays for is withheld too. An issued invoice stays where it is. One level only, the same environment and the same currency: otherwise 409 with `error` one of `self`, `has_children`, `parent_has_parent`, `erased`, `currency_mismatch`. Takes an operator token.
|
|
892
|
+
# @param org [String] The organization id (the merchant platform's own tenant key).
|
|
893
|
+
# @param set_billing_parent_request [SetBillingParentRequest]
|
|
894
|
+
# @param [Hash] opts the optional parameters
|
|
895
|
+
# @return [Array<(BillingParent, Integer, Hash)>] BillingParent data, response status code and response headers
|
|
896
|
+
def set_billing_parent_with_http_info(org, set_billing_parent_request, opts = {})
|
|
897
|
+
if @api_client.config.debugging
|
|
898
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.set_billing_parent ...'
|
|
899
|
+
end
|
|
900
|
+
# verify the required parameter 'org' is set
|
|
901
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
902
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling OrganizationsApi.set_billing_parent"
|
|
903
|
+
end
|
|
904
|
+
# verify the required parameter 'set_billing_parent_request' is set
|
|
905
|
+
if @api_client.config.client_side_validation && set_billing_parent_request.nil?
|
|
906
|
+
fail ArgumentError, "Missing the required parameter 'set_billing_parent_request' when calling OrganizationsApi.set_billing_parent"
|
|
907
|
+
end
|
|
908
|
+
# resource path
|
|
909
|
+
local_var_path = '/organizations/{org}/billing-parent'.sub('{org}', CGI.escape(org.to_s))
|
|
910
|
+
|
|
911
|
+
# query parameters
|
|
912
|
+
query_params = opts[:query_params] || {}
|
|
913
|
+
|
|
914
|
+
# header parameters
|
|
915
|
+
header_params = opts[:header_params] || {}
|
|
916
|
+
# HTTP header 'Accept' (if needed)
|
|
917
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
918
|
+
# HTTP header 'Content-Type'
|
|
919
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
920
|
+
if !content_type.nil?
|
|
921
|
+
header_params['Content-Type'] = content_type
|
|
922
|
+
end
|
|
923
|
+
|
|
924
|
+
# form parameters
|
|
925
|
+
form_params = opts[:form_params] || {}
|
|
926
|
+
|
|
927
|
+
# http body (model)
|
|
928
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(set_billing_parent_request)
|
|
929
|
+
|
|
930
|
+
# return_type
|
|
931
|
+
return_type = opts[:debug_return_type] || 'BillingParent'
|
|
932
|
+
|
|
933
|
+
# auth_names
|
|
934
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
935
|
+
|
|
936
|
+
new_options = opts.merge(
|
|
937
|
+
:operation => :"OrganizationsApi.set_billing_parent",
|
|
938
|
+
:header_params => header_params,
|
|
939
|
+
:query_params => query_params,
|
|
940
|
+
:form_params => form_params,
|
|
941
|
+
:body => post_body,
|
|
942
|
+
:auth_names => auth_names,
|
|
943
|
+
:return_type => return_type
|
|
944
|
+
)
|
|
945
|
+
|
|
946
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
947
|
+
if @api_client.config.debugging
|
|
948
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#set_billing_parent\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
949
|
+
end
|
|
950
|
+
return data, status_code, headers
|
|
951
|
+
end
|
|
952
|
+
|
|
953
|
+
# Change, turn off or turn on an entitlement override
|
|
954
|
+
# Send only what changes. `meter` and `subscription_id` cannot change: save a new override for another scope or meter. `status: disabled` keeps the override but stops it applying; `status: active` turns it back on, unless it has expired. An expired override cannot be turned on again: save a new one. **Operator tokens only.** Audited, and sends `entitlements.changed`.
|
|
955
|
+
# @param org [String] The organization id (the merchant platform's own tenant key).
|
|
956
|
+
# @param id [String] The override's public id (`ovr_…`).
|
|
957
|
+
# @param update_entitlement_override_request [UpdateEntitlementOverrideRequest]
|
|
958
|
+
# @param [Hash] opts the optional parameters
|
|
959
|
+
# @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`.
|
|
960
|
+
# @return [EntitlementOverrideResult]
|
|
961
|
+
def update_entitlement_override(org, id, update_entitlement_override_request, opts = {})
|
|
962
|
+
data, _status_code, _headers = update_entitlement_override_with_http_info(org, id, update_entitlement_override_request, opts)
|
|
963
|
+
data
|
|
964
|
+
end
|
|
965
|
+
|
|
966
|
+
# Change, turn off or turn on an entitlement override
|
|
967
|
+
# Send only what changes. `meter` and `subscription_id` cannot change: save a new override for another scope or meter. `status: disabled` keeps the override but stops it applying; `status: active` turns it back on, unless it has expired. An expired override cannot be turned on again: save a new one. **Operator tokens only.** Audited, and sends `entitlements.changed`.
|
|
968
|
+
# @param org [String] The organization id (the merchant platform's own tenant key).
|
|
969
|
+
# @param id [String] The override's public id (`ovr_…`).
|
|
970
|
+
# @param update_entitlement_override_request [UpdateEntitlementOverrideRequest]
|
|
971
|
+
# @param [Hash] opts the optional parameters
|
|
972
|
+
# @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`.
|
|
973
|
+
# @return [Array<(EntitlementOverrideResult, Integer, Hash)>] EntitlementOverrideResult data, response status code and response headers
|
|
974
|
+
def update_entitlement_override_with_http_info(org, id, update_entitlement_override_request, opts = {})
|
|
975
|
+
if @api_client.config.debugging
|
|
976
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.update_entitlement_override ...'
|
|
977
|
+
end
|
|
978
|
+
# verify the required parameter 'org' is set
|
|
979
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
980
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling OrganizationsApi.update_entitlement_override"
|
|
981
|
+
end
|
|
982
|
+
# verify the required parameter 'id' is set
|
|
983
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
984
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.update_entitlement_override"
|
|
985
|
+
end
|
|
986
|
+
# verify the required parameter 'update_entitlement_override_request' is set
|
|
987
|
+
if @api_client.config.client_side_validation && update_entitlement_override_request.nil?
|
|
988
|
+
fail ArgumentError, "Missing the required parameter 'update_entitlement_override_request' when calling OrganizationsApi.update_entitlement_override"
|
|
989
|
+
end
|
|
990
|
+
# resource path
|
|
991
|
+
local_var_path = '/organizations/{org}/entitlement-overrides/{id}'.sub('{org}', CGI.escape(org.to_s)).sub('{id}', CGI.escape(id.to_s))
|
|
992
|
+
|
|
993
|
+
# query parameters
|
|
994
|
+
query_params = opts[:query_params] || {}
|
|
995
|
+
|
|
996
|
+
# header parameters
|
|
997
|
+
header_params = opts[:header_params] || {}
|
|
998
|
+
# HTTP header 'Accept' (if needed)
|
|
999
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1000
|
+
# HTTP header 'Content-Type'
|
|
1001
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1002
|
+
if !content_type.nil?
|
|
1003
|
+
header_params['Content-Type'] = content_type
|
|
1004
|
+
end
|
|
1005
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
1006
|
+
|
|
1007
|
+
# form parameters
|
|
1008
|
+
form_params = opts[:form_params] || {}
|
|
1009
|
+
|
|
1010
|
+
# http body (model)
|
|
1011
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_entitlement_override_request)
|
|
1012
|
+
|
|
1013
|
+
# return_type
|
|
1014
|
+
return_type = opts[:debug_return_type] || 'EntitlementOverrideResult'
|
|
1015
|
+
|
|
1016
|
+
# auth_names
|
|
1017
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1018
|
+
|
|
1019
|
+
new_options = opts.merge(
|
|
1020
|
+
:operation => :"OrganizationsApi.update_entitlement_override",
|
|
1021
|
+
:header_params => header_params,
|
|
1022
|
+
:query_params => query_params,
|
|
1023
|
+
:form_params => form_params,
|
|
1024
|
+
:body => post_body,
|
|
1025
|
+
:auth_names => auth_names,
|
|
1026
|
+
:return_type => return_type
|
|
1027
|
+
)
|
|
1028
|
+
|
|
1029
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
1030
|
+
if @api_client.config.debugging
|
|
1031
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#update_entitlement_override\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1032
|
+
end
|
|
1033
|
+
return data, status_code, headers
|
|
1034
|
+
end
|
|
1035
|
+
|
|
1036
|
+
# Upsert a billing organization (idempotent)
|
|
1037
|
+
# Idempotent upsert of the organization a merchant platform bills for. The org id is the platform's own tenant key. `billing_currency` participates in the one-way currency lock — it is applied only on **create**, never rewritten for an existing org. Send the full billing address before selling a paid plan. Tax is resolved from `billing_country`, and for a US state or a Canadian province from `billing_subdivision` too; every invoice prints the street, postal code and city (`billing_address_line1`, `billing_postal_code`, `billing_city`; no postal code where the country has none). A paid subscribe or plan change on an organization without them is refused with `422 billing_address_required`, naming the `missing` fields. Each address field is optional here and applied only when sent; send `null` to clear one. The address is copied onto every document at issue, so a later change never alters an invoice already issued. One product owns the organization's account (INT-13): the one whose token created it, or the first one to subscribe it while its owner holds no subscription on it. A product-bound token writes the account when its product owns it, or nobody owns it and no other product bills it. Any other product-bound token is still answered `200`, never `404`, with `account: shared`. That upsert changes nothing the owner set (name, billing email, address, locale, purchaser type, EAN, order reference) and only fills `billing_country` and `billing_subdivision` while the organization has no country. When the caller's product bills the organization, or no other product does (the caller's subscribe would take the account over), it also fills the name, billing email, address, `purchaser_type`, `ean_number` and `order_reference` fields that are still empty; upsert again after subscribing to write them in full. Its answer leaves out the owner's billing email, address and order reference. `purchaser_type` states who the customer buys as (a state government, a charity, an embassy under EU Art. 151, a public body). It asks the place's own rule and never exempts by itself: most rules relieve only against a verified exemption certificate of a matching kind. A Danish public body (`public_body` in `DK`) needs a valid `ean_number` before an invoice can be issued; until then its invoices are held and issued once it is set.
|
|
1038
|
+
# @param org [String] The organization id (the merchant platform's own tenant key).
|
|
1039
|
+
# @param organization_upsert_request [OrganizationUpsertRequest]
|
|
1040
|
+
# @param [Hash] opts the optional parameters
|
|
1041
|
+
# @return [OrganizationResponse]
|
|
1042
|
+
def upsert_organization(org, organization_upsert_request, opts = {})
|
|
1043
|
+
data, _status_code, _headers = upsert_organization_with_http_info(org, organization_upsert_request, opts)
|
|
1044
|
+
data
|
|
1045
|
+
end
|
|
1046
|
+
|
|
1047
|
+
# Upsert a billing organization (idempotent)
|
|
1048
|
+
# Idempotent upsert of the organization a merchant platform bills for. The org id is the platform's own tenant key. `billing_currency` participates in the one-way currency lock — it is applied only on **create**, never rewritten for an existing org. Send the full billing address before selling a paid plan. Tax is resolved from `billing_country`, and for a US state or a Canadian province from `billing_subdivision` too; every invoice prints the street, postal code and city (`billing_address_line1`, `billing_postal_code`, `billing_city`; no postal code where the country has none). A paid subscribe or plan change on an organization without them is refused with `422 billing_address_required`, naming the `missing` fields. Each address field is optional here and applied only when sent; send `null` to clear one. The address is copied onto every document at issue, so a later change never alters an invoice already issued. One product owns the organization's account (INT-13): the one whose token created it, or the first one to subscribe it while its owner holds no subscription on it. A product-bound token writes the account when its product owns it, or nobody owns it and no other product bills it. Any other product-bound token is still answered `200`, never `404`, with `account: shared`. That upsert changes nothing the owner set (name, billing email, address, locale, purchaser type, EAN, order reference) and only fills `billing_country` and `billing_subdivision` while the organization has no country. When the caller's product bills the organization, or no other product does (the caller's subscribe would take the account over), it also fills the name, billing email, address, `purchaser_type`, `ean_number` and `order_reference` fields that are still empty; upsert again after subscribing to write them in full. Its answer leaves out the owner's billing email, address and order reference. `purchaser_type` states who the customer buys as (a state government, a charity, an embassy under EU Art. 151, a public body). It asks the place's own rule and never exempts by itself: most rules relieve only against a verified exemption certificate of a matching kind. A Danish public body (`public_body` in `DK`) needs a valid `ean_number` before an invoice can be issued; until then its invoices are held and issued once it is set.
|
|
1049
|
+
# @param org [String] The organization id (the merchant platform's own tenant key).
|
|
1050
|
+
# @param organization_upsert_request [OrganizationUpsertRequest]
|
|
1051
|
+
# @param [Hash] opts the optional parameters
|
|
1052
|
+
# @return [Array<(OrganizationResponse, Integer, Hash)>] OrganizationResponse data, response status code and response headers
|
|
1053
|
+
def upsert_organization_with_http_info(org, organization_upsert_request, opts = {})
|
|
1054
|
+
if @api_client.config.debugging
|
|
1055
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.upsert_organization ...'
|
|
1056
|
+
end
|
|
1057
|
+
# verify the required parameter 'org' is set
|
|
1058
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
1059
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling OrganizationsApi.upsert_organization"
|
|
1060
|
+
end
|
|
1061
|
+
# verify the required parameter 'organization_upsert_request' is set
|
|
1062
|
+
if @api_client.config.client_side_validation && organization_upsert_request.nil?
|
|
1063
|
+
fail ArgumentError, "Missing the required parameter 'organization_upsert_request' when calling OrganizationsApi.upsert_organization"
|
|
1064
|
+
end
|
|
1065
|
+
# resource path
|
|
1066
|
+
local_var_path = '/organizations/{org}'.sub('{org}', CGI.escape(org.to_s))
|
|
1067
|
+
|
|
1068
|
+
# query parameters
|
|
1069
|
+
query_params = opts[:query_params] || {}
|
|
1070
|
+
|
|
1071
|
+
# header parameters
|
|
1072
|
+
header_params = opts[:header_params] || {}
|
|
1073
|
+
# HTTP header 'Accept' (if needed)
|
|
1074
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1075
|
+
# HTTP header 'Content-Type'
|
|
1076
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1077
|
+
if !content_type.nil?
|
|
1078
|
+
header_params['Content-Type'] = content_type
|
|
1079
|
+
end
|
|
1080
|
+
|
|
1081
|
+
# form parameters
|
|
1082
|
+
form_params = opts[:form_params] || {}
|
|
1083
|
+
|
|
1084
|
+
# http body (model)
|
|
1085
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(organization_upsert_request)
|
|
1086
|
+
|
|
1087
|
+
# return_type
|
|
1088
|
+
return_type = opts[:debug_return_type] || 'OrganizationResponse'
|
|
1089
|
+
|
|
1090
|
+
# auth_names
|
|
1091
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1092
|
+
|
|
1093
|
+
new_options = opts.merge(
|
|
1094
|
+
:operation => :"OrganizationsApi.upsert_organization",
|
|
1095
|
+
:header_params => header_params,
|
|
1096
|
+
:query_params => query_params,
|
|
1097
|
+
:form_params => form_params,
|
|
1098
|
+
:body => post_body,
|
|
1099
|
+
:auth_names => auth_names,
|
|
1100
|
+
:return_type => return_type
|
|
1101
|
+
)
|
|
1102
|
+
|
|
1103
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
1104
|
+
if @api_client.config.debugging
|
|
1105
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#upsert_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1106
|
+
end
|
|
1107
|
+
return data, status_code, headers
|
|
1108
|
+
end
|
|
1109
|
+
end
|
|
1110
|
+
end
|