archil-openapi 0.0.45__tar.gz → 0.0.46__tar.gz
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.
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/PKG-INFO +1 -1
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/pyproject.toml +1 -1
- archil_openapi-0.0.46/src/archil_openapi/api/billing/cancel_billing_subscription.py +198 -0
- archil_openapi-0.0.46/src/archil_openapi/api/billing/change_billing_subscription.py +206 -0
- archil_openapi-0.0.46/src/archil_openapi/api/billing/create_billing_subscription.py +211 -0
- archil_openapi-0.0.46/src/archil_openapi/api/billing/get_billing_credits.py +207 -0
- archil_openapi-0.0.46/src/archil_openapi/api/billing/get_billing_operation.py +190 -0
- archil_openapi-0.0.46/src/archil_openapi/api/billing/keep_billing_subscription.py +182 -0
- archil_openapi-0.0.46/src/archil_openapi/api/billing/pay_billing_invoice.py +221 -0
- archil_openapi-0.0.46/src/archil_openapi/api/billing/preview_billing_subscription.py +211 -0
- archil_openapi-0.0.46/src/archil_openapi/api/billing/withdraw_billing_scheduled_change.py +144 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/__init__.py +92 -0
- archil_openapi-0.0.46/src/archil_openapi/models/api_response_billing_cancellation.py +73 -0
- archil_openapi-0.0.46/src/archil_openapi/models/api_response_billing_credits.py +84 -0
- archil_openapi-0.0.46/src/archil_openapi/models/api_response_billing_operation.py +73 -0
- archil_openapi-0.0.46/src/archil_openapi/models/api_response_billing_subscription_preview.py +73 -0
- archil_openapi-0.0.46/src/archil_openapi/models/api_response_billing_subscription_state.py +73 -0
- archil_openapi-0.0.46/src/archil_openapi/models/billing_balance_transaction.py +119 -0
- archil_openapi-0.0.46/src/archil_openapi/models/billing_cancel_request.py +82 -0
- archil_openapi-0.0.46/src/archil_openapi/models/billing_cancel_request_reason.py +57 -0
- archil_openapi-0.0.46/src/archil_openapi/models/billing_cancel_request_reason_feedback.py +15 -0
- archil_openapi-0.0.46/src/archil_openapi/models/billing_cancel_request_timing.py +8 -0
- archil_openapi-0.0.46/src/archil_openapi/models/billing_cancellation.py +83 -0
- archil_openapi-0.0.46/src/archil_openapi/models/billing_cancellation_settlement.py +110 -0
- archil_openapi-0.0.46/src/archil_openapi/models/billing_cancellation_settlement_method.py +8 -0
- archil_openapi-0.0.46/src/archil_openapi/models/billing_change_request.py +78 -0
- archil_openapi-0.0.46/src/archil_openapi/models/billing_change_request_plan.py +9 -0
- archil_openapi-0.0.46/src/archil_openapi/models/billing_change_request_timing.py +9 -0
- archil_openapi-0.0.46/src/archil_openapi/models/billing_credits.py +97 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/billing_invoice_detail.py +34 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/billing_invoice_summary.py +37 -1
- archil_openapi-0.0.46/src/archil_openapi/models/billing_keep_request.py +41 -0
- archil_openapi-0.0.46/src/archil_openapi/models/billing_next_action.py +82 -0
- archil_openapi-0.0.46/src/archil_openapi/models/billing_next_action_type.py +10 -0
- archil_openapi-0.0.46/src/archil_openapi/models/billing_operation.py +206 -0
- archil_openapi-0.0.46/src/archil_openapi/models/billing_operation_failure.py +70 -0
- archil_openapi-0.0.46/src/archil_openapi/models/billing_operation_invoice.py +83 -0
- archil_openapi-0.0.46/src/archil_openapi/models/billing_operation_plan.py +11 -0
- archil_openapi-0.0.46/src/archil_openapi/models/billing_operation_state.py +10 -0
- archil_openapi-0.0.46/src/archil_openapi/models/billing_operation_status.py +13 -0
- archil_openapi-0.0.46/src/archil_openapi/models/billing_operation_type.py +9 -0
- archil_openapi-0.0.46/src/archil_openapi/models/billing_pay_invoice_request.py +52 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/billing_payment_health.py +29 -0
- archil_openapi-0.0.46/src/archil_openapi/models/billing_preview_line.py +107 -0
- archil_openapi-0.0.46/src/archil_openapi/models/billing_preview_request.py +66 -0
- archil_openapi-0.0.46/src/archil_openapi/models/billing_preview_request_plan.py +9 -0
- archil_openapi-0.0.46/src/archil_openapi/models/billing_preview_request_timing.py +9 -0
- archil_openapi-0.0.46/src/archil_openapi/models/billing_recurring_price.py +112 -0
- archil_openapi-0.0.46/src/archil_openapi/models/billing_recurring_price_component.py +9 -0
- archil_openapi-0.0.46/src/archil_openapi/models/billing_recurring_price_usage_type.py +9 -0
- archil_openapi-0.0.46/src/archil_openapi/models/billing_state_conflict.py +100 -0
- archil_openapi-0.0.46/src/archil_openapi/models/billing_subscribe_request.py +78 -0
- archil_openapi-0.0.46/src/archil_openapi/models/billing_subscribe_request_plan.py +9 -0
- archil_openapi-0.0.46/src/archil_openapi/models/billing_subscription_preview.py +237 -0
- archil_openapi-0.0.46/src/archil_openapi/models/billing_subscription_preview_current_plan.py +12 -0
- archil_openapi-0.0.46/src/archil_openapi/models/billing_subscription_preview_kind.py +11 -0
- archil_openapi-0.0.46/src/archil_openapi/models/billing_subscription_preview_qualifications_item.py +12 -0
- archil_openapi-0.0.46/src/archil_openapi/models/billing_subscription_preview_target_plan.py +9 -0
- archil_openapi-0.0.46/src/archil_openapi/models/billing_subscription_preview_timing.py +9 -0
- archil_openapi-0.0.46/src/archil_openapi/models/billing_subscription_state.py +119 -0
- archil_openapi-0.0.46/src/archil_openapi/models/billing_subscription_state_plan.py +11 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/billing_summary_actions.py +8 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/LICENSE +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/README.md +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/__init__.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/__init__.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/activity/__init__.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/activity/list_activity.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/api_tokens/__init__.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/api_tokens/create_api_token.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/api_tokens/delete_api_token.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/api_tokens/list_api_tokens.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/billing/__init__.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/billing/create_billing_setup_intent.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/billing/delete_billing_payment_method.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/billing/get_billing_invoice.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/billing/get_billing_profile.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/billing/get_billing_summary.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/billing/list_billing_invoices.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/billing/list_billing_payment_methods.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/billing/set_billing_default_payment_method.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/billing/update_billing_payment_method.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/billing/update_billing_profile.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/disk_configuration/__init__.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/disk_configuration/get_allowed_i_ps.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/disk_configuration/list_delegations.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/disk_configuration/revoke_delegation.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/disk_configuration/set_allowed_i_ps.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/disk_users/__init__.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/disk_users/add_disk_user.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/disk_users/remove_disk_user.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/disks/__init__.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/disks/create_branch.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/disks/create_disk.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/disks/create_share_url.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/disks/delete_disk.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/disks/exec_.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/disks/exec_disk.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/disks/get_branch.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/disks/get_disk.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/disks/grep_disk.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/disks/list_branches.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/disks/list_disks.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/sandboxes/__init__.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/sandboxes/create_image.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/sandboxes/create_sandbox.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/sandboxes/create_sandbox_connection.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/sandboxes/create_sandbox_port_token.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/sandboxes/delete_sandbox.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/sandboxes/delete_sandbox_port.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/sandboxes/delete_sandbox_port_token.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/sandboxes/expose_sandbox_port.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/sandboxes/fork_sandbox.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/sandboxes/get_image.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/sandboxes/get_sandbox.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/sandboxes/get_sandbox_network.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/sandboxes/get_sandbox_port_token.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/sandboxes/list_sandbox_port_tokens.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/sandboxes/list_sandbox_ports.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/sandboxes/list_sandboxes.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/sandboxes/pause_sandbox.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/sandboxes/resume_sandbox.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/sandboxes/set_sandbox_timeout.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/sandboxes/start_sandbox.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/sandboxes/stop_sandbox.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/api/sandboxes/update_sandbox_network.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/client.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/errors.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/activity_event.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/activity_event_details.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/activity_event_level.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/api_response_activity_list.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/api_response_allowed_i_ps.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/api_response_allowed_i_ps_data.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/api_response_authorized_user.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/api_response_billing_default_payment_method.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/api_response_billing_default_payment_method_data.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/api_response_billing_default_payment_method_data_scope.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/api_response_billing_invoice_detail.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/api_response_billing_invoices.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/api_response_billing_method_removed.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/api_response_billing_method_removed_data.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/api_response_billing_payment_method.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/api_response_billing_payment_methods.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/api_response_billing_profile.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/api_response_billing_setup_intent.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/api_response_billing_setup_intent_data.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/api_response_billing_summary.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/api_response_create_disk.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/api_response_create_disk_data.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/api_response_created_sandbox_port_token.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/api_response_delegations.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/api_response_delegations_data.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/api_response_disk.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/api_response_disk_list.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/api_response_empty.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/api_response_exec.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/api_response_exec_disk.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/api_response_grep_disk.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/api_response_image.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/api_response_message.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/api_response_message_data.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/api_response_sandbox.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/api_response_sandbox_connection.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/api_response_sandbox_list.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/api_response_sandbox_list_data.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/api_response_sandbox_network.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/api_response_sandbox_port.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/api_response_sandbox_port_list.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/api_response_sandbox_port_token.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/api_response_sandbox_port_token_list.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/api_response_share_url.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/api_response_share_url_data.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/api_response_token_created.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/api_response_token_created_data.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/api_response_token_list.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/api_response_token_list_data.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/api_token_response.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/authorized_user.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/authorized_user_status.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/authorized_user_type.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/aws_sts_user.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/aws_sts_user_type.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/azure_blob_storage.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/azure_blob_storage_type.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/billing_address.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/billing_address_patch.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/billing_credit_note.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/billing_invoice_credit.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/billing_invoice_line.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/billing_invoice_tax.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/billing_owner.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/billing_owner_type.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/billing_payment_health_status.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/billing_payment_method.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/billing_payment_method_billing_details.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/billing_payment_method_card.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/billing_period.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/billing_profile.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/billing_profile_billing_mode.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/billing_profile_validation_error.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/billing_profile_validation_error_code.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/billing_profile_validation_error_data.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/billing_profile_validation_error_data_field_errors.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/billing_scheduled_change.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/billing_scheduled_change_target_plan.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/billing_scheduled_change_type.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/billing_summary.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/billing_summary_billing_mode.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/billing_summary_plan.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/branch_api_response.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/branch_list_api_response.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/branch_response.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/cloudflare_r2.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/cloudflare_r2_type.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/connected_client.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/create_api_token_request.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/create_branch_request.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/create_disk_request.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/create_image_request.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/create_sandbox_port_token_request.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/create_sandbox_request.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/create_sandbox_request_env.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/create_share_url_request.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/created_sandbox_port_token.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/delegation_entry.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/disk_metrics.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/disk_response.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/disk_response_capabilities_item.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/disk_response_status.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/error_response.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/exec_disk_request.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/exec_disk_result.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/exec_mount.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/exec_request.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/exec_request_disks.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/exec_timing.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/fork_sandbox_request.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/google_cloud_storage.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/google_cloud_storage_type.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/grep_disk_request.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/grep_disk_result.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/grep_match.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/grep_stopped_reason.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/image.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/image_failure_reason.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/image_state.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/list_activity_level_item.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/mount_config_response.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/mount_response.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/mount_response_access_mode.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/mount_response_authorization_type.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/mount_response_connection_status.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/mount_response_type.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/registry_auth.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/remove_disk_user_user_type.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/revoke_delegation_request.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/root_attrs.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/s3.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/s3_compatible.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/s3_compatible_type.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/s3_type.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/sandbox.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/sandbox_connection.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/sandbox_egress_policy.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/sandbox_egress_rule.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/sandbox_egress_transform.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/sandbox_egress_transform_headers.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/sandbox_endpoint.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/sandbox_mount.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/sandbox_network.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/sandbox_network_action.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/sandbox_platform.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/sandbox_port.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/sandbox_port_list.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/sandbox_port_token.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/sandbox_port_token_list.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/sandbox_state.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/sandbox_timeout_request.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/set_allowed_i_ps_body.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/set_billing_default_payment_method_body.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/start_sandbox_request.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/token_user.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/token_user_type.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/update_billing_payment_method_body.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/models/update_billing_profile_body.py +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/py.typed +0 -0
- {archil_openapi-0.0.45 → archil_openapi-0.0.46}/src/archil_openapi/types.py +0 -0
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Optional, Union
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
from ... import errors
|
|
7
|
+
from ...client import AuthenticatedClient, Client
|
|
8
|
+
from ...models.api_response_billing_cancellation import ApiResponseBillingCancellation
|
|
9
|
+
from ...models.billing_cancel_request import BillingCancelRequest
|
|
10
|
+
from ...models.billing_state_conflict import BillingStateConflict
|
|
11
|
+
from ...models.error_response import ErrorResponse
|
|
12
|
+
from ...types import Response
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def _get_kwargs(
|
|
16
|
+
*,
|
|
17
|
+
body: BillingCancelRequest,
|
|
18
|
+
) -> dict[str, Any]:
|
|
19
|
+
headers: dict[str, Any] = {}
|
|
20
|
+
|
|
21
|
+
_kwargs: dict[str, Any] = {
|
|
22
|
+
"method": "post",
|
|
23
|
+
"url": "/api/billing/subscription/cancel",
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
_kwargs["json"] = body.to_dict()
|
|
27
|
+
|
|
28
|
+
headers["Content-Type"] = "application/json"
|
|
29
|
+
|
|
30
|
+
_kwargs["headers"] = headers
|
|
31
|
+
return _kwargs
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def _parse_response(
|
|
35
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
36
|
+
) -> Optional[Union[ApiResponseBillingCancellation, BillingStateConflict, ErrorResponse]]:
|
|
37
|
+
if response.status_code == 200:
|
|
38
|
+
response_200 = ApiResponseBillingCancellation.from_dict(response.json())
|
|
39
|
+
|
|
40
|
+
return response_200
|
|
41
|
+
|
|
42
|
+
if response.status_code == 400:
|
|
43
|
+
response_400 = ErrorResponse.from_dict(response.json())
|
|
44
|
+
|
|
45
|
+
return response_400
|
|
46
|
+
|
|
47
|
+
if response.status_code == 401:
|
|
48
|
+
response_401 = ErrorResponse.from_dict(response.json())
|
|
49
|
+
|
|
50
|
+
return response_401
|
|
51
|
+
|
|
52
|
+
if response.status_code == 409:
|
|
53
|
+
response_409 = BillingStateConflict.from_dict(response.json())
|
|
54
|
+
|
|
55
|
+
return response_409
|
|
56
|
+
|
|
57
|
+
if response.status_code == 502:
|
|
58
|
+
response_502 = ErrorResponse.from_dict(response.json())
|
|
59
|
+
|
|
60
|
+
return response_502
|
|
61
|
+
|
|
62
|
+
if client.raise_on_unexpected_status:
|
|
63
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
64
|
+
else:
|
|
65
|
+
return None
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
def _build_response(
|
|
69
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
70
|
+
) -> Response[Union[ApiResponseBillingCancellation, BillingStateConflict, ErrorResponse]]:
|
|
71
|
+
return Response(
|
|
72
|
+
status_code=HTTPStatus(response.status_code),
|
|
73
|
+
content=response.content,
|
|
74
|
+
headers=response.headers,
|
|
75
|
+
parsed=_parse_response(client=client, response=response),
|
|
76
|
+
)
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
def sync_detailed(
|
|
80
|
+
*,
|
|
81
|
+
client: AuthenticatedClient,
|
|
82
|
+
body: BillingCancelRequest,
|
|
83
|
+
) -> Response[Union[ApiResponseBillingCancellation, BillingStateConflict, ErrorResponse]]:
|
|
84
|
+
"""Cancel renewal at the end of the current period
|
|
85
|
+
|
|
86
|
+
The subscription stays active until effectiveEndAt. Usage for the final period is billed on the
|
|
87
|
+
final invoice at that time. Cancelling an already-cancelling subscription returns its current state.
|
|
88
|
+
Subscribing again after the subscription ends uses the purchase flow.
|
|
89
|
+
|
|
90
|
+
Args:
|
|
91
|
+
body (BillingCancelRequest):
|
|
92
|
+
|
|
93
|
+
Raises:
|
|
94
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
95
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
96
|
+
|
|
97
|
+
Returns:
|
|
98
|
+
Response[Union[ApiResponseBillingCancellation, BillingStateConflict, ErrorResponse]]
|
|
99
|
+
"""
|
|
100
|
+
|
|
101
|
+
kwargs = _get_kwargs(
|
|
102
|
+
body=body,
|
|
103
|
+
)
|
|
104
|
+
|
|
105
|
+
response = client.get_httpx_client().request(
|
|
106
|
+
**kwargs,
|
|
107
|
+
)
|
|
108
|
+
|
|
109
|
+
return _build_response(client=client, response=response)
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
def sync(
|
|
113
|
+
*,
|
|
114
|
+
client: AuthenticatedClient,
|
|
115
|
+
body: BillingCancelRequest,
|
|
116
|
+
) -> Optional[Union[ApiResponseBillingCancellation, BillingStateConflict, ErrorResponse]]:
|
|
117
|
+
"""Cancel renewal at the end of the current period
|
|
118
|
+
|
|
119
|
+
The subscription stays active until effectiveEndAt. Usage for the final period is billed on the
|
|
120
|
+
final invoice at that time. Cancelling an already-cancelling subscription returns its current state.
|
|
121
|
+
Subscribing again after the subscription ends uses the purchase flow.
|
|
122
|
+
|
|
123
|
+
Args:
|
|
124
|
+
body (BillingCancelRequest):
|
|
125
|
+
|
|
126
|
+
Raises:
|
|
127
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
128
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
129
|
+
|
|
130
|
+
Returns:
|
|
131
|
+
Union[ApiResponseBillingCancellation, BillingStateConflict, ErrorResponse]
|
|
132
|
+
"""
|
|
133
|
+
|
|
134
|
+
return sync_detailed(
|
|
135
|
+
client=client,
|
|
136
|
+
body=body,
|
|
137
|
+
).parsed
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
async def asyncio_detailed(
|
|
141
|
+
*,
|
|
142
|
+
client: AuthenticatedClient,
|
|
143
|
+
body: BillingCancelRequest,
|
|
144
|
+
) -> Response[Union[ApiResponseBillingCancellation, BillingStateConflict, ErrorResponse]]:
|
|
145
|
+
"""Cancel renewal at the end of the current period
|
|
146
|
+
|
|
147
|
+
The subscription stays active until effectiveEndAt. Usage for the final period is billed on the
|
|
148
|
+
final invoice at that time. Cancelling an already-cancelling subscription returns its current state.
|
|
149
|
+
Subscribing again after the subscription ends uses the purchase flow.
|
|
150
|
+
|
|
151
|
+
Args:
|
|
152
|
+
body (BillingCancelRequest):
|
|
153
|
+
|
|
154
|
+
Raises:
|
|
155
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
156
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
157
|
+
|
|
158
|
+
Returns:
|
|
159
|
+
Response[Union[ApiResponseBillingCancellation, BillingStateConflict, ErrorResponse]]
|
|
160
|
+
"""
|
|
161
|
+
|
|
162
|
+
kwargs = _get_kwargs(
|
|
163
|
+
body=body,
|
|
164
|
+
)
|
|
165
|
+
|
|
166
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
167
|
+
|
|
168
|
+
return _build_response(client=client, response=response)
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
async def asyncio(
|
|
172
|
+
*,
|
|
173
|
+
client: AuthenticatedClient,
|
|
174
|
+
body: BillingCancelRequest,
|
|
175
|
+
) -> Optional[Union[ApiResponseBillingCancellation, BillingStateConflict, ErrorResponse]]:
|
|
176
|
+
"""Cancel renewal at the end of the current period
|
|
177
|
+
|
|
178
|
+
The subscription stays active until effectiveEndAt. Usage for the final period is billed on the
|
|
179
|
+
final invoice at that time. Cancelling an already-cancelling subscription returns its current state.
|
|
180
|
+
Subscribing again after the subscription ends uses the purchase flow.
|
|
181
|
+
|
|
182
|
+
Args:
|
|
183
|
+
body (BillingCancelRequest):
|
|
184
|
+
|
|
185
|
+
Raises:
|
|
186
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
187
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
188
|
+
|
|
189
|
+
Returns:
|
|
190
|
+
Union[ApiResponseBillingCancellation, BillingStateConflict, ErrorResponse]
|
|
191
|
+
"""
|
|
192
|
+
|
|
193
|
+
return (
|
|
194
|
+
await asyncio_detailed(
|
|
195
|
+
client=client,
|
|
196
|
+
body=body,
|
|
197
|
+
)
|
|
198
|
+
).parsed
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Optional, Union
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
from ... import errors
|
|
7
|
+
from ...client import AuthenticatedClient, Client
|
|
8
|
+
from ...models.api_response_billing_operation import ApiResponseBillingOperation
|
|
9
|
+
from ...models.billing_change_request import BillingChangeRequest
|
|
10
|
+
from ...models.billing_state_conflict import BillingStateConflict
|
|
11
|
+
from ...models.error_response import ErrorResponse
|
|
12
|
+
from ...types import Response
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def _get_kwargs(
|
|
16
|
+
*,
|
|
17
|
+
body: BillingChangeRequest,
|
|
18
|
+
) -> dict[str, Any]:
|
|
19
|
+
headers: dict[str, Any] = {}
|
|
20
|
+
|
|
21
|
+
_kwargs: dict[str, Any] = {
|
|
22
|
+
"method": "post",
|
|
23
|
+
"url": "/api/billing/subscription/change",
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
_kwargs["json"] = body.to_dict()
|
|
27
|
+
|
|
28
|
+
headers["Content-Type"] = "application/json"
|
|
29
|
+
|
|
30
|
+
_kwargs["headers"] = headers
|
|
31
|
+
return _kwargs
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def _parse_response(
|
|
35
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
36
|
+
) -> Optional[Union[ApiResponseBillingOperation, BillingStateConflict, ErrorResponse]]:
|
|
37
|
+
if response.status_code == 200:
|
|
38
|
+
response_200 = ApiResponseBillingOperation.from_dict(response.json())
|
|
39
|
+
|
|
40
|
+
return response_200
|
|
41
|
+
|
|
42
|
+
if response.status_code == 400:
|
|
43
|
+
response_400 = ErrorResponse.from_dict(response.json())
|
|
44
|
+
|
|
45
|
+
return response_400
|
|
46
|
+
|
|
47
|
+
if response.status_code == 401:
|
|
48
|
+
response_401 = ErrorResponse.from_dict(response.json())
|
|
49
|
+
|
|
50
|
+
return response_401
|
|
51
|
+
|
|
52
|
+
if response.status_code == 409:
|
|
53
|
+
response_409 = BillingStateConflict.from_dict(response.json())
|
|
54
|
+
|
|
55
|
+
return response_409
|
|
56
|
+
|
|
57
|
+
if response.status_code == 502:
|
|
58
|
+
response_502 = ErrorResponse.from_dict(response.json())
|
|
59
|
+
|
|
60
|
+
return response_502
|
|
61
|
+
|
|
62
|
+
if client.raise_on_unexpected_status:
|
|
63
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
64
|
+
else:
|
|
65
|
+
return None
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
def _build_response(
|
|
69
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
70
|
+
) -> Response[Union[ApiResponseBillingOperation, BillingStateConflict, ErrorResponse]]:
|
|
71
|
+
return Response(
|
|
72
|
+
status_code=HTTPStatus(response.status_code),
|
|
73
|
+
content=response.content,
|
|
74
|
+
headers=response.headers,
|
|
75
|
+
parsed=_parse_response(client=client, response=response),
|
|
76
|
+
)
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
def sync_detailed(
|
|
80
|
+
*,
|
|
81
|
+
client: AuthenticatedClient,
|
|
82
|
+
body: BillingChangeRequest,
|
|
83
|
+
) -> Response[Union[ApiResponseBillingOperation, BillingStateConflict, ErrorResponse]]:
|
|
84
|
+
"""Change plan
|
|
85
|
+
|
|
86
|
+
Applies an upgrade immediately, charging the prorated base price, or schedules a downgrade for the
|
|
87
|
+
end of the current period. The existing subscription is updated; no second subscription is created.
|
|
88
|
+
An upgrade whose payment needs authentication stays pending until the confirmation secret is
|
|
89
|
+
confirmed, and is discarded by the payment processor if it is not completed in time. Retrying with
|
|
90
|
+
the same operationId returns the same operation.
|
|
91
|
+
|
|
92
|
+
Args:
|
|
93
|
+
body (BillingChangeRequest):
|
|
94
|
+
|
|
95
|
+
Raises:
|
|
96
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
97
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
98
|
+
|
|
99
|
+
Returns:
|
|
100
|
+
Response[Union[ApiResponseBillingOperation, BillingStateConflict, ErrorResponse]]
|
|
101
|
+
"""
|
|
102
|
+
|
|
103
|
+
kwargs = _get_kwargs(
|
|
104
|
+
body=body,
|
|
105
|
+
)
|
|
106
|
+
|
|
107
|
+
response = client.get_httpx_client().request(
|
|
108
|
+
**kwargs,
|
|
109
|
+
)
|
|
110
|
+
|
|
111
|
+
return _build_response(client=client, response=response)
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
def sync(
|
|
115
|
+
*,
|
|
116
|
+
client: AuthenticatedClient,
|
|
117
|
+
body: BillingChangeRequest,
|
|
118
|
+
) -> Optional[Union[ApiResponseBillingOperation, BillingStateConflict, ErrorResponse]]:
|
|
119
|
+
"""Change plan
|
|
120
|
+
|
|
121
|
+
Applies an upgrade immediately, charging the prorated base price, or schedules a downgrade for the
|
|
122
|
+
end of the current period. The existing subscription is updated; no second subscription is created.
|
|
123
|
+
An upgrade whose payment needs authentication stays pending until the confirmation secret is
|
|
124
|
+
confirmed, and is discarded by the payment processor if it is not completed in time. Retrying with
|
|
125
|
+
the same operationId returns the same operation.
|
|
126
|
+
|
|
127
|
+
Args:
|
|
128
|
+
body (BillingChangeRequest):
|
|
129
|
+
|
|
130
|
+
Raises:
|
|
131
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
132
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
133
|
+
|
|
134
|
+
Returns:
|
|
135
|
+
Union[ApiResponseBillingOperation, BillingStateConflict, ErrorResponse]
|
|
136
|
+
"""
|
|
137
|
+
|
|
138
|
+
return sync_detailed(
|
|
139
|
+
client=client,
|
|
140
|
+
body=body,
|
|
141
|
+
).parsed
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
async def asyncio_detailed(
|
|
145
|
+
*,
|
|
146
|
+
client: AuthenticatedClient,
|
|
147
|
+
body: BillingChangeRequest,
|
|
148
|
+
) -> Response[Union[ApiResponseBillingOperation, BillingStateConflict, ErrorResponse]]:
|
|
149
|
+
"""Change plan
|
|
150
|
+
|
|
151
|
+
Applies an upgrade immediately, charging the prorated base price, or schedules a downgrade for the
|
|
152
|
+
end of the current period. The existing subscription is updated; no second subscription is created.
|
|
153
|
+
An upgrade whose payment needs authentication stays pending until the confirmation secret is
|
|
154
|
+
confirmed, and is discarded by the payment processor if it is not completed in time. Retrying with
|
|
155
|
+
the same operationId returns the same operation.
|
|
156
|
+
|
|
157
|
+
Args:
|
|
158
|
+
body (BillingChangeRequest):
|
|
159
|
+
|
|
160
|
+
Raises:
|
|
161
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
162
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
163
|
+
|
|
164
|
+
Returns:
|
|
165
|
+
Response[Union[ApiResponseBillingOperation, BillingStateConflict, ErrorResponse]]
|
|
166
|
+
"""
|
|
167
|
+
|
|
168
|
+
kwargs = _get_kwargs(
|
|
169
|
+
body=body,
|
|
170
|
+
)
|
|
171
|
+
|
|
172
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
173
|
+
|
|
174
|
+
return _build_response(client=client, response=response)
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
async def asyncio(
|
|
178
|
+
*,
|
|
179
|
+
client: AuthenticatedClient,
|
|
180
|
+
body: BillingChangeRequest,
|
|
181
|
+
) -> Optional[Union[ApiResponseBillingOperation, BillingStateConflict, ErrorResponse]]:
|
|
182
|
+
"""Change plan
|
|
183
|
+
|
|
184
|
+
Applies an upgrade immediately, charging the prorated base price, or schedules a downgrade for the
|
|
185
|
+
end of the current period. The existing subscription is updated; no second subscription is created.
|
|
186
|
+
An upgrade whose payment needs authentication stays pending until the confirmation secret is
|
|
187
|
+
confirmed, and is discarded by the payment processor if it is not completed in time. Retrying with
|
|
188
|
+
the same operationId returns the same operation.
|
|
189
|
+
|
|
190
|
+
Args:
|
|
191
|
+
body (BillingChangeRequest):
|
|
192
|
+
|
|
193
|
+
Raises:
|
|
194
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
195
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
196
|
+
|
|
197
|
+
Returns:
|
|
198
|
+
Union[ApiResponseBillingOperation, BillingStateConflict, ErrorResponse]
|
|
199
|
+
"""
|
|
200
|
+
|
|
201
|
+
return (
|
|
202
|
+
await asyncio_detailed(
|
|
203
|
+
client=client,
|
|
204
|
+
body=body,
|
|
205
|
+
)
|
|
206
|
+
).parsed
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Optional, Union
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
from ... import errors
|
|
7
|
+
from ...client import AuthenticatedClient, Client
|
|
8
|
+
from ...models.api_response_billing_operation import ApiResponseBillingOperation
|
|
9
|
+
from ...models.billing_state_conflict import BillingStateConflict
|
|
10
|
+
from ...models.billing_subscribe_request import BillingSubscribeRequest
|
|
11
|
+
from ...models.error_response import ErrorResponse
|
|
12
|
+
from ...types import Response
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def _get_kwargs(
|
|
16
|
+
*,
|
|
17
|
+
body: BillingSubscribeRequest,
|
|
18
|
+
) -> dict[str, Any]:
|
|
19
|
+
headers: dict[str, Any] = {}
|
|
20
|
+
|
|
21
|
+
_kwargs: dict[str, Any] = {
|
|
22
|
+
"method": "post",
|
|
23
|
+
"url": "/api/billing/subscriptions",
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
_kwargs["json"] = body.to_dict()
|
|
27
|
+
|
|
28
|
+
headers["Content-Type"] = "application/json"
|
|
29
|
+
|
|
30
|
+
_kwargs["headers"] = headers
|
|
31
|
+
return _kwargs
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def _parse_response(
|
|
35
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
36
|
+
) -> Optional[Union[ApiResponseBillingOperation, BillingStateConflict, ErrorResponse]]:
|
|
37
|
+
if response.status_code == 200:
|
|
38
|
+
response_200 = ApiResponseBillingOperation.from_dict(response.json())
|
|
39
|
+
|
|
40
|
+
return response_200
|
|
41
|
+
|
|
42
|
+
if response.status_code == 400:
|
|
43
|
+
response_400 = ErrorResponse.from_dict(response.json())
|
|
44
|
+
|
|
45
|
+
return response_400
|
|
46
|
+
|
|
47
|
+
if response.status_code == 401:
|
|
48
|
+
response_401 = ErrorResponse.from_dict(response.json())
|
|
49
|
+
|
|
50
|
+
return response_401
|
|
51
|
+
|
|
52
|
+
if response.status_code == 404:
|
|
53
|
+
response_404 = ErrorResponse.from_dict(response.json())
|
|
54
|
+
|
|
55
|
+
return response_404
|
|
56
|
+
|
|
57
|
+
if response.status_code == 409:
|
|
58
|
+
response_409 = BillingStateConflict.from_dict(response.json())
|
|
59
|
+
|
|
60
|
+
return response_409
|
|
61
|
+
|
|
62
|
+
if response.status_code == 502:
|
|
63
|
+
response_502 = ErrorResponse.from_dict(response.json())
|
|
64
|
+
|
|
65
|
+
return response_502
|
|
66
|
+
|
|
67
|
+
if client.raise_on_unexpected_status:
|
|
68
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
69
|
+
else:
|
|
70
|
+
return None
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
def _build_response(
|
|
74
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
75
|
+
) -> Response[Union[ApiResponseBillingOperation, BillingStateConflict, ErrorResponse]]:
|
|
76
|
+
return Response(
|
|
77
|
+
status_code=HTTPStatus(response.status_code),
|
|
78
|
+
content=response.content,
|
|
79
|
+
headers=response.headers,
|
|
80
|
+
parsed=_parse_response(client=client, response=response),
|
|
81
|
+
)
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
def sync_detailed(
|
|
85
|
+
*,
|
|
86
|
+
client: AuthenticatedClient,
|
|
87
|
+
body: BillingSubscribeRequest,
|
|
88
|
+
) -> Response[Union[ApiResponseBillingOperation, BillingStateConflict, ErrorResponse]]:
|
|
89
|
+
"""Subscribe to a previewed plan
|
|
90
|
+
|
|
91
|
+
Subscribes to a plan at current prices. Pass a saved paymentMethodId or a completed setupIntentId to
|
|
92
|
+
charge it; omit both to receive a confirmation secret for entering a new payment method. Retrying
|
|
93
|
+
with the same operationId returns the same operation instead of starting another purchase, and an
|
|
94
|
+
unfinished purchase for the same plan is resumed. Accounts that already have a subscription use POST
|
|
95
|
+
/api/billing/subscription/change.
|
|
96
|
+
|
|
97
|
+
Args:
|
|
98
|
+
body (BillingSubscribeRequest):
|
|
99
|
+
|
|
100
|
+
Raises:
|
|
101
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
102
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
103
|
+
|
|
104
|
+
Returns:
|
|
105
|
+
Response[Union[ApiResponseBillingOperation, BillingStateConflict, ErrorResponse]]
|
|
106
|
+
"""
|
|
107
|
+
|
|
108
|
+
kwargs = _get_kwargs(
|
|
109
|
+
body=body,
|
|
110
|
+
)
|
|
111
|
+
|
|
112
|
+
response = client.get_httpx_client().request(
|
|
113
|
+
**kwargs,
|
|
114
|
+
)
|
|
115
|
+
|
|
116
|
+
return _build_response(client=client, response=response)
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
def sync(
|
|
120
|
+
*,
|
|
121
|
+
client: AuthenticatedClient,
|
|
122
|
+
body: BillingSubscribeRequest,
|
|
123
|
+
) -> Optional[Union[ApiResponseBillingOperation, BillingStateConflict, ErrorResponse]]:
|
|
124
|
+
"""Subscribe to a previewed plan
|
|
125
|
+
|
|
126
|
+
Subscribes to a plan at current prices. Pass a saved paymentMethodId or a completed setupIntentId to
|
|
127
|
+
charge it; omit both to receive a confirmation secret for entering a new payment method. Retrying
|
|
128
|
+
with the same operationId returns the same operation instead of starting another purchase, and an
|
|
129
|
+
unfinished purchase for the same plan is resumed. Accounts that already have a subscription use POST
|
|
130
|
+
/api/billing/subscription/change.
|
|
131
|
+
|
|
132
|
+
Args:
|
|
133
|
+
body (BillingSubscribeRequest):
|
|
134
|
+
|
|
135
|
+
Raises:
|
|
136
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
137
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
138
|
+
|
|
139
|
+
Returns:
|
|
140
|
+
Union[ApiResponseBillingOperation, BillingStateConflict, ErrorResponse]
|
|
141
|
+
"""
|
|
142
|
+
|
|
143
|
+
return sync_detailed(
|
|
144
|
+
client=client,
|
|
145
|
+
body=body,
|
|
146
|
+
).parsed
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
async def asyncio_detailed(
|
|
150
|
+
*,
|
|
151
|
+
client: AuthenticatedClient,
|
|
152
|
+
body: BillingSubscribeRequest,
|
|
153
|
+
) -> Response[Union[ApiResponseBillingOperation, BillingStateConflict, ErrorResponse]]:
|
|
154
|
+
"""Subscribe to a previewed plan
|
|
155
|
+
|
|
156
|
+
Subscribes to a plan at current prices. Pass a saved paymentMethodId or a completed setupIntentId to
|
|
157
|
+
charge it; omit both to receive a confirmation secret for entering a new payment method. Retrying
|
|
158
|
+
with the same operationId returns the same operation instead of starting another purchase, and an
|
|
159
|
+
unfinished purchase for the same plan is resumed. Accounts that already have a subscription use POST
|
|
160
|
+
/api/billing/subscription/change.
|
|
161
|
+
|
|
162
|
+
Args:
|
|
163
|
+
body (BillingSubscribeRequest):
|
|
164
|
+
|
|
165
|
+
Raises:
|
|
166
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
167
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
168
|
+
|
|
169
|
+
Returns:
|
|
170
|
+
Response[Union[ApiResponseBillingOperation, BillingStateConflict, ErrorResponse]]
|
|
171
|
+
"""
|
|
172
|
+
|
|
173
|
+
kwargs = _get_kwargs(
|
|
174
|
+
body=body,
|
|
175
|
+
)
|
|
176
|
+
|
|
177
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
178
|
+
|
|
179
|
+
return _build_response(client=client, response=response)
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
async def asyncio(
|
|
183
|
+
*,
|
|
184
|
+
client: AuthenticatedClient,
|
|
185
|
+
body: BillingSubscribeRequest,
|
|
186
|
+
) -> Optional[Union[ApiResponseBillingOperation, BillingStateConflict, ErrorResponse]]:
|
|
187
|
+
"""Subscribe to a previewed plan
|
|
188
|
+
|
|
189
|
+
Subscribes to a plan at current prices. Pass a saved paymentMethodId or a completed setupIntentId to
|
|
190
|
+
charge it; omit both to receive a confirmation secret for entering a new payment method. Retrying
|
|
191
|
+
with the same operationId returns the same operation instead of starting another purchase, and an
|
|
192
|
+
unfinished purchase for the same plan is resumed. Accounts that already have a subscription use POST
|
|
193
|
+
/api/billing/subscription/change.
|
|
194
|
+
|
|
195
|
+
Args:
|
|
196
|
+
body (BillingSubscribeRequest):
|
|
197
|
+
|
|
198
|
+
Raises:
|
|
199
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
200
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
201
|
+
|
|
202
|
+
Returns:
|
|
203
|
+
Union[ApiResponseBillingOperation, BillingStateConflict, ErrorResponse]
|
|
204
|
+
"""
|
|
205
|
+
|
|
206
|
+
return (
|
|
207
|
+
await asyncio_detailed(
|
|
208
|
+
client=client,
|
|
209
|
+
body=body,
|
|
210
|
+
)
|
|
211
|
+
).parsed
|