solifyn 1.0.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/Gemfile +9 -0
- data/README.md +344 -0
- data/Rakefile +10 -0
- data/docs/AddCollectionProductsDto.md +18 -0
- data/docs/Addon.md +26 -0
- data/docs/AddonCreate.md +26 -0
- data/docs/AddonUpdate.md +24 -0
- data/docs/AffiliateApi.md +845 -0
- data/docs/ApiKeyResponseDto.md +34 -0
- data/docs/AppPortalUrlResponseDto.md +18 -0
- data/docs/BalanceApi.md +184 -0
- data/docs/BillingApi.md +68 -0
- data/docs/Brand.md +40 -0
- data/docs/BrandCreate.md +28 -0
- data/docs/BrandUpdate.md +28 -0
- data/docs/BrandsApi.md +286 -0
- data/docs/Business.md +56 -0
- data/docs/BusinessCreate.md +18 -0
- data/docs/BusinessFullCreate.md +26 -0
- data/docs/BusinessFullCreateResponse.md +20 -0
- data/docs/BusinessesApi.md +350 -0
- data/docs/ChatApi.md +246 -0
- data/docs/CheckoutApi.md +405 -0
- data/docs/CheckoutLinkMessageResponseDto.md +18 -0
- data/docs/CheckoutLinkResponseDto.md +50 -0
- data/docs/CheckoutLinksApi.md +356 -0
- data/docs/CheckoutResponseDto.md +22 -0
- data/docs/CheckoutSessionDetailsDto.md +38 -0
- data/docs/CollectionArchivedResponseDto.md +18 -0
- data/docs/CollectionDetailResponseDto.md +36 -0
- data/docs/CollectionProductDeletedResponseDto.md +18 -0
- data/docs/CollectionProductDto.md +84 -0
- data/docs/CollectionProductEntry.md +20 -0
- data/docs/CollectionProductRefDto.md +20 -0
- data/docs/CollectionProductUpdatedResponseDto.md +18 -0
- data/docs/CollectionResponseDto.md +36 -0
- data/docs/CollectionUnarchivedResponseDto.md +18 -0
- data/docs/CollectionUpdatedResponseDto.md +18 -0
- data/docs/CollectionsApi.md +711 -0
- data/docs/CommunityApi.md +497 -0
- data/docs/CreateApiKeyDto.md +20 -0
- data/docs/CreateCheckoutDto.md +36 -0
- data/docs/CreateCheckoutLinkDto.md +44 -0
- data/docs/CreateCollectionCheckoutDto.md +26 -0
- data/docs/CreateCollectionDto.md +26 -0
- data/docs/CreateCustomerDto.md +26 -0
- data/docs/CreateMeterDto.md +32 -0
- data/docs/CreateSetupCheckoutDto.md +26 -0
- data/docs/CreateWebhookEndpointDto.md +22 -0
- data/docs/CustomerListResponseDto.md +20 -0
- data/docs/CustomerMessageResponseDto.md +18 -0
- data/docs/CustomerResponseDto.md +38 -0
- data/docs/CustomerSharedInviteResponseDto.md +22 -0
- data/docs/CustomersApi.md +356 -0
- data/docs/DashboardStatsDto.md +24 -0
- data/docs/DefaultApi.md +930 -0
- data/docs/DeveloperApi.md +628 -0
- data/docs/DigitalFileApi.md +187 -0
- data/docs/Discount.md +42 -0
- data/docs/DiscountCreate.md +36 -0
- data/docs/DiscountUpdate.md +34 -0
- data/docs/DiscountsApi.md +441 -0
- data/docs/DiscountsList200Response.md +24 -0
- data/docs/DiscountsList200ResponsePagination.md +22 -0
- data/docs/Dispute.md +58 -0
- data/docs/DisputeAttachmentDto.md +18 -0
- data/docs/DisputeEvidenceDto.md +24 -0
- data/docs/DisputeEvidenceUpdate.md +24 -0
- data/docs/DisputeFileUpload.md +24 -0
- data/docs/DisputeList.md +20 -0
- data/docs/DisputeListMetaDto.md +24 -0
- data/docs/DisputesApi.md +442 -0
- data/docs/Instance.md +30 -0
- data/docs/Invoice.md +26 -0
- data/docs/License.md +48 -0
- data/docs/LicenseApi.md +716 -0
- data/docs/LicenseKeysApi.md +716 -0
- data/docs/LicenseKeysClientApi.md +289 -0
- data/docs/LicenseSubDto.md +30 -0
- data/docs/LicenseValidationResponse.md +22 -0
- data/docs/LicensesActivateRequest.md +22 -0
- data/docs/LicensesCreateRequest.md +26 -0
- data/docs/LicensesDeactivate200Response.md +18 -0
- data/docs/LicensesDeactivateRequest.md +18 -0
- data/docs/LicensesUpdateInstancePostRequest.md +20 -0
- data/docs/LicensesUpdateRequest.md +22 -0
- data/docs/LicensesVerifyRequest.md +20 -0
- data/docs/MeterDetailResponseDto.md +44 -0
- data/docs/MeterEventsResponseDto.md +22 -0
- data/docs/MeterIngestEventDto.md +28 -0
- data/docs/MeterIngestRequestDto.md +18 -0
- data/docs/MeterIngestResponseDto.md +22 -0
- data/docs/MeterQuantitiesCostDto.md +26 -0
- data/docs/MeterQuantitiesResponseDto.md +24 -0
- data/docs/MeterResponseDto.md +40 -0
- data/docs/MeterUsageEventDto.md +30 -0
- data/docs/MetersApi.md +515 -0
- data/docs/OperationalWebhookEndpointHeadersInDto.md +18 -0
- data/docs/OperationalWebhookEndpointHeadersResponseDto.md +20 -0
- data/docs/OperationalWebhookEndpointInDto.md +32 -0
- data/docs/OperationalWebhookEndpointListResponseDto.md +24 -0
- data/docs/OperationalWebhookEndpointResponseDto.md +38 -0
- data/docs/OperationalWebhookEndpointSecretInDto.md +18 -0
- data/docs/OperationalWebhookEndpointSecretResponseDto.md +18 -0
- data/docs/OperationalWebhookEndpointUpdateDto.md +30 -0
- data/docs/Order.md +68 -0
- data/docs/OrderBilling.md +26 -0
- data/docs/OrderBillingUpdate.md +26 -0
- data/docs/OrderCustomer.md +24 -0
- data/docs/OrderDetail.md +22 -0
- data/docs/OrderList.md +20 -0
- data/docs/OrderProductCart.md +26 -0
- data/docs/OrderRefund.md +32 -0
- data/docs/OrderRefundCreate.md +26 -0
- data/docs/OrderUpdate.md +18 -0
- data/docs/OrdersApi.md +369 -0
- data/docs/PartnerApi.md +125 -0
- data/docs/PayoutAccessToken.md +20 -0
- data/docs/PayoutAccount.md +22 -0
- data/docs/PayoutAccountLink.md +20 -0
- data/docs/PayoutMethod.md +24 -0
- data/docs/PayoutMethodList.md +18 -0
- data/docs/PayoutVerification.md +24 -0
- data/docs/PayoutVerificationList.md +18 -0
- data/docs/PayoutsApi.md +579 -0
- data/docs/PricePreviewResponseDto.md +24 -0
- data/docs/Product.md +82 -0
- data/docs/ProductAddOnsApi.md +433 -0
- data/docs/ProductCreate.md +62 -0
- data/docs/ProductCreateAddonsInner.md +26 -0
- data/docs/ProductCreateCustomFieldsInner.md +24 -0
- data/docs/ProductMessageResponseDto.md +18 -0
- data/docs/ProductSubDto.md +22 -0
- data/docs/ProductUpdate.md +62 -0
- data/docs/ProductsApi.md +445 -0
- data/docs/ProductsArchive200Response.md +18 -0
- data/docs/ProductsList200Response.md +20 -0
- data/docs/ProductsList200ResponsePagination.md +20 -0
- data/docs/ProductsUnarchive200Response.md +18 -0
- data/docs/Refund.md +42 -0
- data/docs/RefundRequestsApi.md +311 -0
- data/docs/RefundsChargebacksApi.md +215 -0
- data/docs/ResolvedAddon.md +24 -0
- data/docs/RevokeSeatDto.md +20 -0
- data/docs/Subscription.md +68 -0
- data/docs/SubscriptionAction.md +30 -0
- data/docs/SubscriptionCompanyDto.md +20 -0
- data/docs/SubscriptionDetail.md +24 -0
- data/docs/SubscriptionDetailProduct.md +28 -0
- data/docs/SubscriptionList.md +20 -0
- data/docs/SubscriptionMemberDto.md +18 -0
- data/docs/SubscriptionPlanDto.md +20 -0
- data/docs/SubscriptionProductDto.md +22 -0
- data/docs/SubscriptionSeatAdjustment.md +34 -0
- data/docs/SubscriptionUserDto.md +24 -0
- data/docs/SubscriptionsAction201Response.md +49 -0
- data/docs/SubscriptionsApi.md +223 -0
- data/docs/SupportedCurrenciesResponseDto.md +20 -0
- data/docs/TicketApi.md +318 -0
- data/docs/UpdateCheckoutLinkDto.md +44 -0
- data/docs/UpdateCollectionDto.md +22 -0
- data/docs/UpdateCollectionProductDto.md +18 -0
- data/docs/UpdateCustomerDto.md +24 -0
- data/docs/UpdateInstanceDto.md +20 -0
- data/docs/UpdateMeterDto.md +32 -0
- data/docs/UpdateWebhookEndpointDto.md +24 -0
- data/docs/UserPage.md +26 -0
- data/docs/UserProfileThemesApi.md +345 -0
- data/docs/UserSettings.md +34 -0
- data/docs/UserSettingsUpdate.md +76 -0
- data/docs/UserStats.md +20 -0
- data/docs/UserTheme.md +26 -0
- data/docs/UserThemeUpdate.md +22 -0
- data/docs/WebhookApi.md +128 -0
- data/docs/WebhookDeliveryResponseDto.md +34 -0
- data/docs/WebhookDisputePayload.md +42 -0
- data/docs/WebhookEndpointApi.md +574 -0
- data/docs/WebhookEndpointResponseDto.md +34 -0
- data/docs/WebhookLicensePayload.md +48 -0
- data/docs/WebhookPaymentPayload.md +116 -0
- data/docs/WebhookPaymentPayloadBillingAddress.md +30 -0
- data/docs/WebhookRefundPayload.md +38 -0
- data/docs/WebhookSubscriptionPayload.md +44 -0
- data/docs/WhopApiKeysRotation.md +18 -0
- data/docs/Withdrawal.md +46 -0
- data/docs/WithdrawalCreate.md +22 -0
- data/docs/WithdrawalList.md +20 -0
- data/git_push.sh +57 -0
- data/lib/solifyn/api/affiliate_api.rb +760 -0
- data/lib/solifyn/api/balance_api.rb +175 -0
- data/lib/solifyn/api/billing_api.rb +77 -0
- data/lib/solifyn/api/brands_api.rb +284 -0
- data/lib/solifyn/api/businesses_api.rb +338 -0
- data/lib/solifyn/api/chat_api.rb +232 -0
- data/lib/solifyn/api/checkout_api.rb +427 -0
- data/lib/solifyn/api/checkout_links_api.rb +347 -0
- data/lib/solifyn/api/collections_api.rb +690 -0
- data/lib/solifyn/api/community_api.rb +466 -0
- data/lib/solifyn/api/customers_api.rb +347 -0
- data/lib/solifyn/api/default_api.rb +828 -0
- data/lib/solifyn/api/developer_api.rb +631 -0
- data/lib/solifyn/api/digital_file_api.rb +181 -0
- data/lib/solifyn/api/discounts_api.rb +437 -0
- data/lib/solifyn/api/disputes_api.rb +424 -0
- data/lib/solifyn/api/license_api.rb +702 -0
- data/lib/solifyn/api/license_keys_api.rb +702 -0
- data/lib/solifyn/api/license_keys_client_api.rb +295 -0
- data/lib/solifyn/api/meters_api.rb +508 -0
- data/lib/solifyn/api/orders_api.rb +372 -0
- data/lib/solifyn/api/partner_api.rb +124 -0
- data/lib/solifyn/api/payouts_api.rb +520 -0
- data/lib/solifyn/api/product_add_ons_api.rb +432 -0
- data/lib/solifyn/api/products_api.rb +438 -0
- data/lib/solifyn/api/refund_requests_api.rb +305 -0
- data/lib/solifyn/api/refunds_chargebacks_api.rb +214 -0
- data/lib/solifyn/api/subscriptions_api.rb +230 -0
- data/lib/solifyn/api/ticket_api.rb +328 -0
- data/lib/solifyn/api/user_profile_themes_api.rb +313 -0
- data/lib/solifyn/api/webhook_api.rb +131 -0
- data/lib/solifyn/api/webhook_endpoint_api.rb +597 -0
- data/lib/solifyn/api_client.rb +394 -0
- data/lib/solifyn/api_error.rb +58 -0
- data/lib/solifyn/configuration.rb +313 -0
- data/lib/solifyn/models/add_collection_products_dto.rb +224 -0
- data/lib/solifyn/models/addon.rb +290 -0
- data/lib/solifyn/models/addon_create.rb +276 -0
- data/lib/solifyn/models/addon_update.rb +245 -0
- data/lib/solifyn/models/api_key_response_dto.rb +336 -0
- data/lib/solifyn/models/app_portal_url_response_dto.rb +221 -0
- data/lib/solifyn/models/brand.rb +367 -0
- data/lib/solifyn/models/brand_create.rb +310 -0
- data/lib/solifyn/models/brand_update.rb +303 -0
- data/lib/solifyn/models/business.rb +482 -0
- data/lib/solifyn/models/business_create.rb +241 -0
- data/lib/solifyn/models/business_full_create.rb +288 -0
- data/lib/solifyn/models/business_full_create_response.rb +239 -0
- data/lib/solifyn/models/checkout_link_message_response_dto.rb +222 -0
- data/lib/solifyn/models/checkout_link_response_dto.rb +410 -0
- data/lib/solifyn/models/checkout_response_dto.rb +256 -0
- data/lib/solifyn/models/checkout_session_details_dto.rb +350 -0
- data/lib/solifyn/models/collection_archived_response_dto.rb +222 -0
- data/lib/solifyn/models/collection_detail_response_dto.rb +390 -0
- data/lib/solifyn/models/collection_product_deleted_response_dto.rb +222 -0
- data/lib/solifyn/models/collection_product_dto.rb +826 -0
- data/lib/solifyn/models/collection_product_entry.rb +258 -0
- data/lib/solifyn/models/collection_product_ref_dto.rb +239 -0
- data/lib/solifyn/models/collection_product_updated_response_dto.rb +222 -0
- data/lib/solifyn/models/collection_response_dto.rb +390 -0
- data/lib/solifyn/models/collection_unarchived_response_dto.rb +222 -0
- data/lib/solifyn/models/collection_updated_response_dto.rb +222 -0
- data/lib/solifyn/models/create_api_key_dto.rb +234 -0
- data/lib/solifyn/models/create_checkout_dto.rb +314 -0
- data/lib/solifyn/models/create_checkout_link_dto.rb +582 -0
- data/lib/solifyn/models/create_collection_checkout_dto.rb +264 -0
- data/lib/solifyn/models/create_collection_dto.rb +305 -0
- data/lib/solifyn/models/create_customer_dto.rb +345 -0
- data/lib/solifyn/models/create_meter_dto.rb +344 -0
- data/lib/solifyn/models/create_setup_checkout_dto.rb +264 -0
- data/lib/solifyn/models/create_webhook_endpoint_dto.rb +251 -0
- data/lib/solifyn/models/customer_list_response_dto.rb +241 -0
- data/lib/solifyn/models/customer_message_response_dto.rb +222 -0
- data/lib/solifyn/models/customer_response_dto.rb +350 -0
- data/lib/solifyn/models/customer_shared_invite_response_dto.rb +249 -0
- data/lib/solifyn/models/dashboard_stats_dto.rb +273 -0
- data/lib/solifyn/models/discount.rb +466 -0
- data/lib/solifyn/models/discount_create.rb +362 -0
- data/lib/solifyn/models/discount_update.rb +331 -0
- data/lib/solifyn/models/discounts_list200_response.rb +273 -0
- data/lib/solifyn/models/discounts_list200_response_pagination.rb +256 -0
- data/lib/solifyn/models/dispute.rb +492 -0
- data/lib/solifyn/models/dispute_attachment_dto.rb +222 -0
- data/lib/solifyn/models/dispute_evidence_dto.rb +245 -0
- data/lib/solifyn/models/dispute_evidence_update.rb +245 -0
- data/lib/solifyn/models/dispute_file_upload.rb +259 -0
- data/lib/solifyn/models/dispute_list.rb +241 -0
- data/lib/solifyn/models/dispute_list_meta_dto.rb +273 -0
- data/lib/solifyn/models/instance.rb +325 -0
- data/lib/solifyn/models/invoice.rb +291 -0
- data/lib/solifyn/models/license.rb +512 -0
- data/lib/solifyn/models/license_sub_dto.rb +310 -0
- data/lib/solifyn/models/license_validation_response.rb +253 -0
- data/lib/solifyn/models/licenses_activate_request.rb +256 -0
- data/lib/solifyn/models/licenses_create_request.rb +269 -0
- data/lib/solifyn/models/licenses_deactivate200_response.rb +214 -0
- data/lib/solifyn/models/licenses_deactivate_request.rb +222 -0
- data/lib/solifyn/models/licenses_update_instance_post_request.rb +225 -0
- data/lib/solifyn/models/licenses_update_request.rb +266 -0
- data/lib/solifyn/models/licenses_verify_request.rb +239 -0
- data/lib/solifyn/models/meter_detail_response_dto.rb +454 -0
- data/lib/solifyn/models/meter_events_response_dto.rb +259 -0
- data/lib/solifyn/models/meter_ingest_event_dto.rb +290 -0
- data/lib/solifyn/models/meter_ingest_request_dto.rb +224 -0
- data/lib/solifyn/models/meter_ingest_response_dto.rb +258 -0
- data/lib/solifyn/models/meter_quantities_cost_dto.rb +290 -0
- data/lib/solifyn/models/meter_quantities_response_dto.rb +276 -0
- data/lib/solifyn/models/meter_response_dto.rb +418 -0
- data/lib/solifyn/models/meter_usage_event_dto.rb +319 -0
- data/lib/solifyn/models/operational_webhook_endpoint_headers_in_dto.rb +222 -0
- data/lib/solifyn/models/operational_webhook_endpoint_headers_response_dto.rb +241 -0
- data/lib/solifyn/models/operational_webhook_endpoint_in_dto.rb +315 -0
- data/lib/solifyn/models/operational_webhook_endpoint_list_response_dto.rb +257 -0
- data/lib/solifyn/models/operational_webhook_endpoint_response_dto.rb +363 -0
- data/lib/solifyn/models/operational_webhook_endpoint_secret_in_dto.rb +215 -0
- data/lib/solifyn/models/operational_webhook_endpoint_secret_response_dto.rb +221 -0
- data/lib/solifyn/models/operational_webhook_endpoint_update_dto.rb +303 -0
- data/lib/solifyn/models/order.rb +582 -0
- data/lib/solifyn/models/order_billing.rb +255 -0
- data/lib/solifyn/models/order_billing_update.rb +250 -0
- data/lib/solifyn/models/order_customer.rb +266 -0
- data/lib/solifyn/models/order_detail.rb +237 -0
- data/lib/solifyn/models/order_list.rb +241 -0
- data/lib/solifyn/models/order_product_cart.rb +283 -0
- data/lib/solifyn/models/order_refund.rb +334 -0
- data/lib/solifyn/models/order_refund_create.rb +278 -0
- data/lib/solifyn/models/order_update.rb +214 -0
- data/lib/solifyn/models/payout_access_token.rb +239 -0
- data/lib/solifyn/models/payout_account.rb +249 -0
- data/lib/solifyn/models/payout_account_link.rb +239 -0
- data/lib/solifyn/models/payout_method.rb +266 -0
- data/lib/solifyn/models/payout_method_list.rb +224 -0
- data/lib/solifyn/models/payout_verification.rb +266 -0
- data/lib/solifyn/models/payout_verification_list.rb +224 -0
- data/lib/solifyn/models/price_preview_response_dto.rb +273 -0
- data/lib/solifyn/models/product.rb +810 -0
- data/lib/solifyn/models/product_create.rb +527 -0
- data/lib/solifyn/models/product_create_addons_inner.rb +250 -0
- data/lib/solifyn/models/product_create_custom_fields_inner.rb +241 -0
- data/lib/solifyn/models/product_message_response_dto.rb +222 -0
- data/lib/solifyn/models/product_sub_dto.rb +253 -0
- data/lib/solifyn/models/product_update.rb +501 -0
- data/lib/solifyn/models/products_archive200_response.rb +214 -0
- data/lib/solifyn/models/products_list200_response.rb +239 -0
- data/lib/solifyn/models/products_list200_response_pagination.rb +239 -0
- data/lib/solifyn/models/products_unarchive200_response.rb +214 -0
- data/lib/solifyn/models/refund.rb +425 -0
- data/lib/solifyn/models/resolved_addon.rb +273 -0
- data/lib/solifyn/models/revoke_seat_dto.rb +239 -0
- data/lib/solifyn/models/subscription.rb +627 -0
- data/lib/solifyn/models/subscription_action.rb +392 -0
- data/lib/solifyn/models/subscription_company_dto.rb +239 -0
- data/lib/solifyn/models/subscription_detail.rb +278 -0
- data/lib/solifyn/models/subscription_detail_product.rb +300 -0
- data/lib/solifyn/models/subscription_list.rb +241 -0
- data/lib/solifyn/models/subscription_member_dto.rb +222 -0
- data/lib/solifyn/models/subscription_plan_dto.rb +232 -0
- data/lib/solifyn/models/subscription_product_dto.rb +249 -0
- data/lib/solifyn/models/subscription_seat_adjustment.rb +359 -0
- data/lib/solifyn/models/subscription_user_dto.rb +273 -0
- data/lib/solifyn/models/subscriptions_action201_response.rb +105 -0
- data/lib/solifyn/models/supported_currencies_response_dto.rb +239 -0
- data/lib/solifyn/models/update_checkout_link_dto.rb +575 -0
- data/lib/solifyn/models/update_collection_dto.rb +235 -0
- data/lib/solifyn/models/update_collection_product_dto.rb +241 -0
- data/lib/solifyn/models/update_customer_dto.rb +302 -0
- data/lib/solifyn/models/update_instance_dto.rb +225 -0
- data/lib/solifyn/models/update_meter_dto.rb +321 -0
- data/lib/solifyn/models/update_webhook_endpoint_dto.rb +281 -0
- data/lib/solifyn/models/user_page.rb +290 -0
- data/lib/solifyn/models/user_settings.rb +337 -0
- data/lib/solifyn/models/user_settings_update.rb +505 -0
- data/lib/solifyn/models/user_stats.rb +241 -0
- data/lib/solifyn/models/user_theme.rb +276 -0
- data/lib/solifyn/models/user_theme_update.rb +235 -0
- data/lib/solifyn/models/webhook_delivery_response_dto.rb +328 -0
- data/lib/solifyn/models/webhook_dispute_payload.rb +324 -0
- data/lib/solifyn/models/webhook_endpoint_response_dto.rb +339 -0
- data/lib/solifyn/models/webhook_license_payload.rb +512 -0
- data/lib/solifyn/models/webhook_payment_payload.rb +659 -0
- data/lib/solifyn/models/webhook_payment_payload_billing_address.rb +268 -0
- data/lib/solifyn/models/webhook_refund_payload.rb +306 -0
- data/lib/solifyn/models/webhook_subscription_payload.rb +333 -0
- data/lib/solifyn/models/whop_api_keys_rotation.rb +222 -0
- data/lib/solifyn/models/withdrawal.rb +411 -0
- data/lib/solifyn/models/withdrawal_create.rb +249 -0
- data/lib/solifyn/models/withdrawal_list.rb +241 -0
- data/lib/solifyn/version.rb +15 -0
- data/lib/solifyn.rb +191 -0
- data/solifyn.gemspec +39 -0
- data/spec/api/affiliate_api_spec.rb +165 -0
- data/spec/api/balance_api_spec.rb +62 -0
- data/spec/api/billing_api_spec.rb +46 -0
- data/spec/api/brands_api_spec.rb +83 -0
- data/spec/api/businesses_api_spec.rb +93 -0
- data/spec/api/chat_api_spec.rb +72 -0
- data/spec/api/checkout_api_spec.rb +99 -0
- data/spec/api/checkout_links_api_spec.rb +95 -0
- data/spec/api/collections_api_spec.rb +158 -0
- data/spec/api/community_api_spec.rb +113 -0
- data/spec/api/customers_api_spec.rb +95 -0
- data/spec/api/default_api_spec.rb +191 -0
- data/spec/api/developer_api_spec.rb +120 -0
- data/spec/api/digital_file_api_spec.rb +63 -0
- data/spec/api/discounts_api_spec.rb +113 -0
- data/spec/api/disputes_api_spec.rb +113 -0
- data/spec/api/license_api_spec.rb +160 -0
- data/spec/api/license_keys_api_spec.rb +160 -0
- data/spec/api/license_keys_client_api_spec.rb +84 -0
- data/spec/api/meters_api_spec.rb +125 -0
- data/spec/api/orders_api_spec.rb +103 -0
- data/spec/api/partner_api_spec.rb +53 -0
- data/spec/api/payouts_api_spec.rb +133 -0
- data/spec/api/product_add_ons_api_spec.rb +111 -0
- data/spec/api/products_api_spec.rb +115 -0
- data/spec/api/refund_requests_api_spec.rb +88 -0
- data/spec/api/refunds_chargebacks_api_spec.rb +71 -0
- data/spec/api/subscriptions_api_spec.rb +73 -0
- data/spec/api/ticket_api_spec.rb +86 -0
- data/spec/api/user_profile_themes_api_spec.rb +91 -0
- data/spec/api/webhook_api_spec.rb +54 -0
- data/spec/api/webhook_endpoint_api_spec.rb +136 -0
- data/spec/models/add_collection_products_dto_spec.rb +36 -0
- data/spec/models/addon_create_spec.rb +60 -0
- data/spec/models/addon_spec.rb +60 -0
- data/spec/models/addon_update_spec.rb +54 -0
- data/spec/models/api_key_response_dto_spec.rb +84 -0
- data/spec/models/app_portal_url_response_dto_spec.rb +36 -0
- data/spec/models/brand_create_spec.rb +66 -0
- data/spec/models/brand_spec.rb +102 -0
- data/spec/models/brand_update_spec.rb +66 -0
- data/spec/models/business_create_spec.rb +36 -0
- data/spec/models/business_full_create_response_spec.rb +42 -0
- data/spec/models/business_full_create_spec.rb +60 -0
- data/spec/models/business_spec.rb +150 -0
- data/spec/models/checkout_link_message_response_dto_spec.rb +36 -0
- data/spec/models/checkout_link_response_dto_spec.rb +132 -0
- data/spec/models/checkout_response_dto_spec.rb +48 -0
- data/spec/models/checkout_session_details_dto_spec.rb +96 -0
- data/spec/models/collection_archived_response_dto_spec.rb +36 -0
- data/spec/models/collection_detail_response_dto_spec.rb +94 -0
- data/spec/models/collection_product_deleted_response_dto_spec.rb +36 -0
- data/spec/models/collection_product_dto_spec.rb +236 -0
- data/spec/models/collection_product_entry_spec.rb +42 -0
- data/spec/models/collection_product_ref_dto_spec.rb +42 -0
- data/spec/models/collection_product_updated_response_dto_spec.rb +36 -0
- data/spec/models/collection_response_dto_spec.rb +94 -0
- data/spec/models/collection_unarchived_response_dto_spec.rb +36 -0
- data/spec/models/collection_updated_response_dto_spec.rb +36 -0
- data/spec/models/create_api_key_dto_spec.rb +42 -0
- data/spec/models/create_checkout_dto_spec.rb +90 -0
- data/spec/models/create_checkout_link_dto_spec.rb +114 -0
- data/spec/models/create_collection_checkout_dto_spec.rb +60 -0
- data/spec/models/create_collection_dto_spec.rb +64 -0
- data/spec/models/create_customer_dto_spec.rb +60 -0
- data/spec/models/create_meter_dto_spec.rb +82 -0
- data/spec/models/create_setup_checkout_dto_spec.rb +60 -0
- data/spec/models/create_webhook_endpoint_dto_spec.rb +48 -0
- data/spec/models/customer_list_response_dto_spec.rb +42 -0
- data/spec/models/customer_message_response_dto_spec.rb +36 -0
- data/spec/models/customer_response_dto_spec.rb +96 -0
- data/spec/models/customer_shared_invite_response_dto_spec.rb +48 -0
- data/spec/models/dashboard_stats_dto_spec.rb +54 -0
- data/spec/models/discount_create_spec.rb +94 -0
- data/spec/models/discount_spec.rb +116 -0
- data/spec/models/discount_update_spec.rb +88 -0
- data/spec/models/discounts_list200_response_pagination_spec.rb +48 -0
- data/spec/models/discounts_list200_response_spec.rb +54 -0
- data/spec/models/dispute_attachment_dto_spec.rb +36 -0
- data/spec/models/dispute_evidence_dto_spec.rb +54 -0
- data/spec/models/dispute_evidence_update_spec.rb +54 -0
- data/spec/models/dispute_file_upload_spec.rb +54 -0
- data/spec/models/dispute_list_meta_dto_spec.rb +54 -0
- data/spec/models/dispute_list_spec.rb +42 -0
- data/spec/models/dispute_spec.rb +156 -0
- data/spec/models/instance_spec.rb +72 -0
- data/spec/models/invoice_spec.rb +60 -0
- data/spec/models/license_spec.rb +130 -0
- data/spec/models/license_sub_dto_spec.rb +72 -0
- data/spec/models/license_validation_response_spec.rb +48 -0
- data/spec/models/licenses_activate_request_spec.rb +48 -0
- data/spec/models/licenses_create_request_spec.rb +60 -0
- data/spec/models/licenses_deactivate200_response_spec.rb +36 -0
- data/spec/models/licenses_deactivate_request_spec.rb +36 -0
- data/spec/models/licenses_update_instance_post_request_spec.rb +42 -0
- data/spec/models/licenses_update_request_spec.rb +52 -0
- data/spec/models/licenses_verify_request_spec.rb +42 -0
- data/spec/models/meter_detail_response_dto_spec.rb +118 -0
- data/spec/models/meter_events_response_dto_spec.rb +48 -0
- data/spec/models/meter_ingest_event_dto_spec.rb +66 -0
- data/spec/models/meter_ingest_request_dto_spec.rb +36 -0
- data/spec/models/meter_ingest_response_dto_spec.rb +48 -0
- data/spec/models/meter_quantities_cost_dto_spec.rb +60 -0
- data/spec/models/meter_quantities_response_dto_spec.rb +54 -0
- data/spec/models/meter_response_dto_spec.rb +106 -0
- data/spec/models/meter_usage_event_dto_spec.rb +72 -0
- data/spec/models/operational_webhook_endpoint_headers_in_dto_spec.rb +36 -0
- data/spec/models/operational_webhook_endpoint_headers_response_dto_spec.rb +42 -0
- data/spec/models/operational_webhook_endpoint_in_dto_spec.rb +78 -0
- data/spec/models/operational_webhook_endpoint_list_response_dto_spec.rb +54 -0
- data/spec/models/operational_webhook_endpoint_response_dto_spec.rb +96 -0
- data/spec/models/operational_webhook_endpoint_secret_in_dto_spec.rb +36 -0
- data/spec/models/operational_webhook_endpoint_secret_response_dto_spec.rb +36 -0
- data/spec/models/operational_webhook_endpoint_update_dto_spec.rb +72 -0
- data/spec/models/order_billing_spec.rb +60 -0
- data/spec/models/order_billing_update_spec.rb +60 -0
- data/spec/models/order_customer_spec.rb +54 -0
- data/spec/models/order_detail_spec.rb +48 -0
- data/spec/models/order_list_spec.rb +42 -0
- data/spec/models/order_product_cart_spec.rb +60 -0
- data/spec/models/order_refund_create_spec.rb +60 -0
- data/spec/models/order_refund_spec.rb +78 -0
- data/spec/models/order_spec.rb +180 -0
- data/spec/models/order_update_spec.rb +36 -0
- data/spec/models/payout_access_token_spec.rb +42 -0
- data/spec/models/payout_account_link_spec.rb +42 -0
- data/spec/models/payout_account_spec.rb +48 -0
- data/spec/models/payout_method_list_spec.rb +36 -0
- data/spec/models/payout_method_spec.rb +54 -0
- data/spec/models/payout_verification_list_spec.rb +36 -0
- data/spec/models/payout_verification_spec.rb +54 -0
- data/spec/models/price_preview_response_dto_spec.rb +54 -0
- data/spec/models/product_create_addons_inner_spec.rb +60 -0
- data/spec/models/product_create_custom_fields_inner_spec.rb +54 -0
- data/spec/models/product_create_spec.rb +170 -0
- data/spec/models/product_message_response_dto_spec.rb +36 -0
- data/spec/models/product_spec.rb +230 -0
- data/spec/models/product_sub_dto_spec.rb +48 -0
- data/spec/models/product_update_spec.rb +170 -0
- data/spec/models/products_archive200_response_spec.rb +36 -0
- data/spec/models/products_list200_response_pagination_spec.rb +42 -0
- data/spec/models/products_list200_response_spec.rb +42 -0
- data/spec/models/products_unarchive200_response_spec.rb +36 -0
- data/spec/models/refund_spec.rb +112 -0
- data/spec/models/resolved_addon_spec.rb +54 -0
- data/spec/models/revoke_seat_dto_spec.rb +42 -0
- data/spec/models/subscription_action_spec.rb +80 -0
- data/spec/models/subscription_company_dto_spec.rb +42 -0
- data/spec/models/subscription_detail_product_spec.rb +66 -0
- data/spec/models/subscription_detail_spec.rb +54 -0
- data/spec/models/subscription_list_spec.rb +42 -0
- data/spec/models/subscription_member_dto_spec.rb +36 -0
- data/spec/models/subscription_plan_dto_spec.rb +42 -0
- data/spec/models/subscription_product_dto_spec.rb +48 -0
- data/spec/models/subscription_seat_adjustment_spec.rb +84 -0
- data/spec/models/subscription_spec.rb +186 -0
- data/spec/models/subscription_user_dto_spec.rb +54 -0
- data/spec/models/subscriptions_action201_response_spec.rb +32 -0
- data/spec/models/supported_currencies_response_dto_spec.rb +42 -0
- data/spec/models/update_checkout_link_dto_spec.rb +114 -0
- data/spec/models/update_collection_dto_spec.rb +48 -0
- data/spec/models/update_collection_product_dto_spec.rb +36 -0
- data/spec/models/update_customer_dto_spec.rb +54 -0
- data/spec/models/update_instance_dto_spec.rb +42 -0
- data/spec/models/update_meter_dto_spec.rb +82 -0
- data/spec/models/update_webhook_endpoint_dto_spec.rb +58 -0
- data/spec/models/user_page_spec.rb +60 -0
- data/spec/models/user_settings_spec.rb +84 -0
- data/spec/models/user_settings_update_spec.rb +210 -0
- data/spec/models/user_stats_spec.rb +42 -0
- data/spec/models/user_theme_spec.rb +60 -0
- data/spec/models/user_theme_update_spec.rb +48 -0
- data/spec/models/webhook_delivery_response_dto_spec.rb +84 -0
- data/spec/models/webhook_dispute_payload_spec.rb +108 -0
- data/spec/models/webhook_endpoint_response_dto_spec.rb +84 -0
- data/spec/models/webhook_license_payload_spec.rb +130 -0
- data/spec/models/webhook_payment_payload_billing_address_spec.rb +72 -0
- data/spec/models/webhook_payment_payload_spec.rb +330 -0
- data/spec/models/webhook_refund_payload_spec.rb +96 -0
- data/spec/models/webhook_subscription_payload_spec.rb +114 -0
- data/spec/models/whop_api_keys_rotation_spec.rb +36 -0
- data/spec/models/withdrawal_create_spec.rb +48 -0
- data/spec/models/withdrawal_list_spec.rb +42 -0
- data/spec/models/withdrawal_spec.rb +120 -0
- data/spec/spec_helper.rb +111 -0
- metadata +831 -0
|
@@ -0,0 +1,597 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Solifyn API
|
|
3
|
+
|
|
4
|
+
#Welcome to the Solifyn API Reference. Leverage our secure endpoints to manage products and issue, validate, and manage software license keys programmatically.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.10.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module Solifyn
|
|
16
|
+
class WebhookEndpointApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Create Operational Webhook Endpoint
|
|
23
|
+
# @param operational_webhook_endpoint_in_dto [OperationalWebhookEndpointInDto]
|
|
24
|
+
# @param [Hash] opts the optional parameters
|
|
25
|
+
# @return [OperationalWebhookEndpointResponseDto]
|
|
26
|
+
def operational_webhook_controller_create(operational_webhook_endpoint_in_dto, opts = {})
|
|
27
|
+
data, _status_code, _headers = operational_webhook_controller_create_with_http_info(operational_webhook_endpoint_in_dto, opts)
|
|
28
|
+
data
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# Create Operational Webhook Endpoint
|
|
32
|
+
# @param operational_webhook_endpoint_in_dto [OperationalWebhookEndpointInDto]
|
|
33
|
+
# @param [Hash] opts the optional parameters
|
|
34
|
+
# @return [Array<(OperationalWebhookEndpointResponseDto, Integer, Hash)>] OperationalWebhookEndpointResponseDto data, response status code and response headers
|
|
35
|
+
def operational_webhook_controller_create_with_http_info(operational_webhook_endpoint_in_dto, opts = {})
|
|
36
|
+
if @api_client.config.debugging
|
|
37
|
+
@api_client.config.logger.debug 'Calling API: WebhookEndpointApi.operational_webhook_controller_create ...'
|
|
38
|
+
end
|
|
39
|
+
# verify the required parameter 'operational_webhook_endpoint_in_dto' is set
|
|
40
|
+
if @api_client.config.client_side_validation && operational_webhook_endpoint_in_dto.nil?
|
|
41
|
+
fail ArgumentError, "Missing the required parameter 'operational_webhook_endpoint_in_dto' when calling WebhookEndpointApi.operational_webhook_controller_create"
|
|
42
|
+
end
|
|
43
|
+
# resource path
|
|
44
|
+
local_var_path = '/v1/operational-webhook/endpoint'
|
|
45
|
+
|
|
46
|
+
# query parameters
|
|
47
|
+
query_params = opts[:query_params] || {}
|
|
48
|
+
|
|
49
|
+
# header parameters
|
|
50
|
+
header_params = opts[:header_params] || {}
|
|
51
|
+
# HTTP header 'Accept' (if needed)
|
|
52
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
53
|
+
# HTTP header 'Content-Type'
|
|
54
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
55
|
+
if !content_type.nil?
|
|
56
|
+
header_params['Content-Type'] = content_type
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# form parameters
|
|
60
|
+
form_params = opts[:form_params] || {}
|
|
61
|
+
|
|
62
|
+
# http body (model)
|
|
63
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(operational_webhook_endpoint_in_dto)
|
|
64
|
+
|
|
65
|
+
# return_type
|
|
66
|
+
return_type = opts[:debug_return_type] || 'OperationalWebhookEndpointResponseDto'
|
|
67
|
+
|
|
68
|
+
# auth_names
|
|
69
|
+
auth_names = opts[:debug_auth_names] || []
|
|
70
|
+
|
|
71
|
+
new_options = opts.merge(
|
|
72
|
+
:operation => :"WebhookEndpointApi.operational_webhook_controller_create",
|
|
73
|
+
:header_params => header_params,
|
|
74
|
+
:query_params => query_params,
|
|
75
|
+
:form_params => form_params,
|
|
76
|
+
:body => post_body,
|
|
77
|
+
:auth_names => auth_names,
|
|
78
|
+
:return_type => return_type
|
|
79
|
+
)
|
|
80
|
+
|
|
81
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
82
|
+
if @api_client.config.debugging
|
|
83
|
+
@api_client.config.logger.debug "API called: WebhookEndpointApi#operational_webhook_controller_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
84
|
+
end
|
|
85
|
+
return data, status_code, headers
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Delete Operational Webhook Endpoint
|
|
89
|
+
# @param id [String] The endpoint ID or UID
|
|
90
|
+
# @param [Hash] opts the optional parameters
|
|
91
|
+
# @return [nil]
|
|
92
|
+
def operational_webhook_controller_delete(id, opts = {})
|
|
93
|
+
operational_webhook_controller_delete_with_http_info(id, opts)
|
|
94
|
+
nil
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# Delete Operational Webhook Endpoint
|
|
98
|
+
# @param id [String] The endpoint ID or UID
|
|
99
|
+
# @param [Hash] opts the optional parameters
|
|
100
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
101
|
+
def operational_webhook_controller_delete_with_http_info(id, opts = {})
|
|
102
|
+
if @api_client.config.debugging
|
|
103
|
+
@api_client.config.logger.debug 'Calling API: WebhookEndpointApi.operational_webhook_controller_delete ...'
|
|
104
|
+
end
|
|
105
|
+
# verify the required parameter 'id' is set
|
|
106
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
107
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling WebhookEndpointApi.operational_webhook_controller_delete"
|
|
108
|
+
end
|
|
109
|
+
# resource path
|
|
110
|
+
local_var_path = '/v1/operational-webhook/endpoint/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
111
|
+
|
|
112
|
+
# query parameters
|
|
113
|
+
query_params = opts[:query_params] || {}
|
|
114
|
+
|
|
115
|
+
# header parameters
|
|
116
|
+
header_params = opts[:header_params] || {}
|
|
117
|
+
|
|
118
|
+
# form parameters
|
|
119
|
+
form_params = opts[:form_params] || {}
|
|
120
|
+
|
|
121
|
+
# http body (model)
|
|
122
|
+
post_body = opts[:debug_body]
|
|
123
|
+
|
|
124
|
+
# return_type
|
|
125
|
+
return_type = opts[:debug_return_type]
|
|
126
|
+
|
|
127
|
+
# auth_names
|
|
128
|
+
auth_names = opts[:debug_auth_names] || []
|
|
129
|
+
|
|
130
|
+
new_options = opts.merge(
|
|
131
|
+
:operation => :"WebhookEndpointApi.operational_webhook_controller_delete",
|
|
132
|
+
:header_params => header_params,
|
|
133
|
+
:query_params => query_params,
|
|
134
|
+
:form_params => form_params,
|
|
135
|
+
:body => post_body,
|
|
136
|
+
:auth_names => auth_names,
|
|
137
|
+
:return_type => return_type
|
|
138
|
+
)
|
|
139
|
+
|
|
140
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
141
|
+
if @api_client.config.debugging
|
|
142
|
+
@api_client.config.logger.debug "API called: WebhookEndpointApi#operational_webhook_controller_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
143
|
+
end
|
|
144
|
+
return data, status_code, headers
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
# Get Operational Webhook Endpoint
|
|
148
|
+
# @param id [String] The endpoint ID or UID
|
|
149
|
+
# @param [Hash] opts the optional parameters
|
|
150
|
+
# @return [OperationalWebhookEndpointResponseDto]
|
|
151
|
+
def operational_webhook_controller_get(id, opts = {})
|
|
152
|
+
data, _status_code, _headers = operational_webhook_controller_get_with_http_info(id, opts)
|
|
153
|
+
data
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
# Get Operational Webhook Endpoint
|
|
157
|
+
# @param id [String] The endpoint ID or UID
|
|
158
|
+
# @param [Hash] opts the optional parameters
|
|
159
|
+
# @return [Array<(OperationalWebhookEndpointResponseDto, Integer, Hash)>] OperationalWebhookEndpointResponseDto data, response status code and response headers
|
|
160
|
+
def operational_webhook_controller_get_with_http_info(id, opts = {})
|
|
161
|
+
if @api_client.config.debugging
|
|
162
|
+
@api_client.config.logger.debug 'Calling API: WebhookEndpointApi.operational_webhook_controller_get ...'
|
|
163
|
+
end
|
|
164
|
+
# verify the required parameter 'id' is set
|
|
165
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
166
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling WebhookEndpointApi.operational_webhook_controller_get"
|
|
167
|
+
end
|
|
168
|
+
# resource path
|
|
169
|
+
local_var_path = '/v1/operational-webhook/endpoint/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
170
|
+
|
|
171
|
+
# query parameters
|
|
172
|
+
query_params = opts[:query_params] || {}
|
|
173
|
+
|
|
174
|
+
# header parameters
|
|
175
|
+
header_params = opts[:header_params] || {}
|
|
176
|
+
# HTTP header 'Accept' (if needed)
|
|
177
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
178
|
+
|
|
179
|
+
# form parameters
|
|
180
|
+
form_params = opts[:form_params] || {}
|
|
181
|
+
|
|
182
|
+
# http body (model)
|
|
183
|
+
post_body = opts[:debug_body]
|
|
184
|
+
|
|
185
|
+
# return_type
|
|
186
|
+
return_type = opts[:debug_return_type] || 'OperationalWebhookEndpointResponseDto'
|
|
187
|
+
|
|
188
|
+
# auth_names
|
|
189
|
+
auth_names = opts[:debug_auth_names] || []
|
|
190
|
+
|
|
191
|
+
new_options = opts.merge(
|
|
192
|
+
:operation => :"WebhookEndpointApi.operational_webhook_controller_get",
|
|
193
|
+
:header_params => header_params,
|
|
194
|
+
:query_params => query_params,
|
|
195
|
+
:form_params => form_params,
|
|
196
|
+
:body => post_body,
|
|
197
|
+
:auth_names => auth_names,
|
|
198
|
+
:return_type => return_type
|
|
199
|
+
)
|
|
200
|
+
|
|
201
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
202
|
+
if @api_client.config.debugging
|
|
203
|
+
@api_client.config.logger.debug "API called: WebhookEndpointApi#operational_webhook_controller_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
204
|
+
end
|
|
205
|
+
return data, status_code, headers
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
# Get Operational Webhook Endpoint Headers
|
|
209
|
+
# @param id [String] The endpoint ID or UID
|
|
210
|
+
# @param [Hash] opts the optional parameters
|
|
211
|
+
# @return [OperationalWebhookEndpointHeadersResponseDto]
|
|
212
|
+
def operational_webhook_controller_get_headers(id, opts = {})
|
|
213
|
+
data, _status_code, _headers = operational_webhook_controller_get_headers_with_http_info(id, opts)
|
|
214
|
+
data
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
# Get Operational Webhook Endpoint Headers
|
|
218
|
+
# @param id [String] The endpoint ID or UID
|
|
219
|
+
# @param [Hash] opts the optional parameters
|
|
220
|
+
# @return [Array<(OperationalWebhookEndpointHeadersResponseDto, Integer, Hash)>] OperationalWebhookEndpointHeadersResponseDto data, response status code and response headers
|
|
221
|
+
def operational_webhook_controller_get_headers_with_http_info(id, opts = {})
|
|
222
|
+
if @api_client.config.debugging
|
|
223
|
+
@api_client.config.logger.debug 'Calling API: WebhookEndpointApi.operational_webhook_controller_get_headers ...'
|
|
224
|
+
end
|
|
225
|
+
# verify the required parameter 'id' is set
|
|
226
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
227
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling WebhookEndpointApi.operational_webhook_controller_get_headers"
|
|
228
|
+
end
|
|
229
|
+
# resource path
|
|
230
|
+
local_var_path = '/v1/operational-webhook/endpoint/{id}/headers'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
231
|
+
|
|
232
|
+
# query parameters
|
|
233
|
+
query_params = opts[:query_params] || {}
|
|
234
|
+
|
|
235
|
+
# header parameters
|
|
236
|
+
header_params = opts[:header_params] || {}
|
|
237
|
+
# HTTP header 'Accept' (if needed)
|
|
238
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
239
|
+
|
|
240
|
+
# form parameters
|
|
241
|
+
form_params = opts[:form_params] || {}
|
|
242
|
+
|
|
243
|
+
# http body (model)
|
|
244
|
+
post_body = opts[:debug_body]
|
|
245
|
+
|
|
246
|
+
# return_type
|
|
247
|
+
return_type = opts[:debug_return_type] || 'OperationalWebhookEndpointHeadersResponseDto'
|
|
248
|
+
|
|
249
|
+
# auth_names
|
|
250
|
+
auth_names = opts[:debug_auth_names] || []
|
|
251
|
+
|
|
252
|
+
new_options = opts.merge(
|
|
253
|
+
:operation => :"WebhookEndpointApi.operational_webhook_controller_get_headers",
|
|
254
|
+
:header_params => header_params,
|
|
255
|
+
:query_params => query_params,
|
|
256
|
+
:form_params => form_params,
|
|
257
|
+
:body => post_body,
|
|
258
|
+
:auth_names => auth_names,
|
|
259
|
+
:return_type => return_type
|
|
260
|
+
)
|
|
261
|
+
|
|
262
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
263
|
+
if @api_client.config.debugging
|
|
264
|
+
@api_client.config.logger.debug "API called: WebhookEndpointApi#operational_webhook_controller_get_headers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
265
|
+
end
|
|
266
|
+
return data, status_code, headers
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
# Get Operational Webhook Endpoint Secret
|
|
270
|
+
# @param id [String] The endpoint ID or UID
|
|
271
|
+
# @param [Hash] opts the optional parameters
|
|
272
|
+
# @return [OperationalWebhookEndpointSecretResponseDto]
|
|
273
|
+
def operational_webhook_controller_get_secret(id, opts = {})
|
|
274
|
+
data, _status_code, _headers = operational_webhook_controller_get_secret_with_http_info(id, opts)
|
|
275
|
+
data
|
|
276
|
+
end
|
|
277
|
+
|
|
278
|
+
# Get Operational Webhook Endpoint Secret
|
|
279
|
+
# @param id [String] The endpoint ID or UID
|
|
280
|
+
# @param [Hash] opts the optional parameters
|
|
281
|
+
# @return [Array<(OperationalWebhookEndpointSecretResponseDto, Integer, Hash)>] OperationalWebhookEndpointSecretResponseDto data, response status code and response headers
|
|
282
|
+
def operational_webhook_controller_get_secret_with_http_info(id, opts = {})
|
|
283
|
+
if @api_client.config.debugging
|
|
284
|
+
@api_client.config.logger.debug 'Calling API: WebhookEndpointApi.operational_webhook_controller_get_secret ...'
|
|
285
|
+
end
|
|
286
|
+
# verify the required parameter 'id' is set
|
|
287
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
288
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling WebhookEndpointApi.operational_webhook_controller_get_secret"
|
|
289
|
+
end
|
|
290
|
+
# resource path
|
|
291
|
+
local_var_path = '/v1/operational-webhook/endpoint/{id}/secret'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
292
|
+
|
|
293
|
+
# query parameters
|
|
294
|
+
query_params = opts[:query_params] || {}
|
|
295
|
+
|
|
296
|
+
# header parameters
|
|
297
|
+
header_params = opts[:header_params] || {}
|
|
298
|
+
# HTTP header 'Accept' (if needed)
|
|
299
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
300
|
+
|
|
301
|
+
# form parameters
|
|
302
|
+
form_params = opts[:form_params] || {}
|
|
303
|
+
|
|
304
|
+
# http body (model)
|
|
305
|
+
post_body = opts[:debug_body]
|
|
306
|
+
|
|
307
|
+
# return_type
|
|
308
|
+
return_type = opts[:debug_return_type] || 'OperationalWebhookEndpointSecretResponseDto'
|
|
309
|
+
|
|
310
|
+
# auth_names
|
|
311
|
+
auth_names = opts[:debug_auth_names] || []
|
|
312
|
+
|
|
313
|
+
new_options = opts.merge(
|
|
314
|
+
:operation => :"WebhookEndpointApi.operational_webhook_controller_get_secret",
|
|
315
|
+
:header_params => header_params,
|
|
316
|
+
:query_params => query_params,
|
|
317
|
+
:form_params => form_params,
|
|
318
|
+
:body => post_body,
|
|
319
|
+
:auth_names => auth_names,
|
|
320
|
+
:return_type => return_type
|
|
321
|
+
)
|
|
322
|
+
|
|
323
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
324
|
+
if @api_client.config.debugging
|
|
325
|
+
@api_client.config.logger.debug "API called: WebhookEndpointApi#operational_webhook_controller_get_secret\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
326
|
+
end
|
|
327
|
+
return data, status_code, headers
|
|
328
|
+
end
|
|
329
|
+
|
|
330
|
+
# List Operational Webhook Endpoints
|
|
331
|
+
# @param [Hash] opts the optional parameters
|
|
332
|
+
# @return [OperationalWebhookEndpointListResponseDto]
|
|
333
|
+
def operational_webhook_controller_list(opts = {})
|
|
334
|
+
data, _status_code, _headers = operational_webhook_controller_list_with_http_info(opts)
|
|
335
|
+
data
|
|
336
|
+
end
|
|
337
|
+
|
|
338
|
+
# List Operational Webhook Endpoints
|
|
339
|
+
# @param [Hash] opts the optional parameters
|
|
340
|
+
# @return [Array<(OperationalWebhookEndpointListResponseDto, Integer, Hash)>] OperationalWebhookEndpointListResponseDto data, response status code and response headers
|
|
341
|
+
def operational_webhook_controller_list_with_http_info(opts = {})
|
|
342
|
+
if @api_client.config.debugging
|
|
343
|
+
@api_client.config.logger.debug 'Calling API: WebhookEndpointApi.operational_webhook_controller_list ...'
|
|
344
|
+
end
|
|
345
|
+
# resource path
|
|
346
|
+
local_var_path = '/v1/operational-webhook/endpoint'
|
|
347
|
+
|
|
348
|
+
# query parameters
|
|
349
|
+
query_params = opts[:query_params] || {}
|
|
350
|
+
|
|
351
|
+
# header parameters
|
|
352
|
+
header_params = opts[:header_params] || {}
|
|
353
|
+
# HTTP header 'Accept' (if needed)
|
|
354
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
355
|
+
|
|
356
|
+
# form parameters
|
|
357
|
+
form_params = opts[:form_params] || {}
|
|
358
|
+
|
|
359
|
+
# http body (model)
|
|
360
|
+
post_body = opts[:debug_body]
|
|
361
|
+
|
|
362
|
+
# return_type
|
|
363
|
+
return_type = opts[:debug_return_type] || 'OperationalWebhookEndpointListResponseDto'
|
|
364
|
+
|
|
365
|
+
# auth_names
|
|
366
|
+
auth_names = opts[:debug_auth_names] || []
|
|
367
|
+
|
|
368
|
+
new_options = opts.merge(
|
|
369
|
+
:operation => :"WebhookEndpointApi.operational_webhook_controller_list",
|
|
370
|
+
:header_params => header_params,
|
|
371
|
+
:query_params => query_params,
|
|
372
|
+
:form_params => form_params,
|
|
373
|
+
:body => post_body,
|
|
374
|
+
:auth_names => auth_names,
|
|
375
|
+
:return_type => return_type
|
|
376
|
+
)
|
|
377
|
+
|
|
378
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
379
|
+
if @api_client.config.debugging
|
|
380
|
+
@api_client.config.logger.debug "API called: WebhookEndpointApi#operational_webhook_controller_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
381
|
+
end
|
|
382
|
+
return data, status_code, headers
|
|
383
|
+
end
|
|
384
|
+
|
|
385
|
+
# Rotate Operational Webhook Endpoint Secret
|
|
386
|
+
# @param id [String] The endpoint ID or UID
|
|
387
|
+
# @param operational_webhook_endpoint_secret_in_dto [OperationalWebhookEndpointSecretInDto]
|
|
388
|
+
# @param [Hash] opts the optional parameters
|
|
389
|
+
# @return [nil]
|
|
390
|
+
def operational_webhook_controller_rotate_secret(id, operational_webhook_endpoint_secret_in_dto, opts = {})
|
|
391
|
+
operational_webhook_controller_rotate_secret_with_http_info(id, operational_webhook_endpoint_secret_in_dto, opts)
|
|
392
|
+
nil
|
|
393
|
+
end
|
|
394
|
+
|
|
395
|
+
# Rotate Operational Webhook Endpoint Secret
|
|
396
|
+
# @param id [String] The endpoint ID or UID
|
|
397
|
+
# @param operational_webhook_endpoint_secret_in_dto [OperationalWebhookEndpointSecretInDto]
|
|
398
|
+
# @param [Hash] opts the optional parameters
|
|
399
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
400
|
+
def operational_webhook_controller_rotate_secret_with_http_info(id, operational_webhook_endpoint_secret_in_dto, opts = {})
|
|
401
|
+
if @api_client.config.debugging
|
|
402
|
+
@api_client.config.logger.debug 'Calling API: WebhookEndpointApi.operational_webhook_controller_rotate_secret ...'
|
|
403
|
+
end
|
|
404
|
+
# verify the required parameter 'id' is set
|
|
405
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
406
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling WebhookEndpointApi.operational_webhook_controller_rotate_secret"
|
|
407
|
+
end
|
|
408
|
+
# verify the required parameter 'operational_webhook_endpoint_secret_in_dto' is set
|
|
409
|
+
if @api_client.config.client_side_validation && operational_webhook_endpoint_secret_in_dto.nil?
|
|
410
|
+
fail ArgumentError, "Missing the required parameter 'operational_webhook_endpoint_secret_in_dto' when calling WebhookEndpointApi.operational_webhook_controller_rotate_secret"
|
|
411
|
+
end
|
|
412
|
+
# resource path
|
|
413
|
+
local_var_path = '/v1/operational-webhook/endpoint/{id}/secret/rotate'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
414
|
+
|
|
415
|
+
# query parameters
|
|
416
|
+
query_params = opts[:query_params] || {}
|
|
417
|
+
|
|
418
|
+
# header parameters
|
|
419
|
+
header_params = opts[:header_params] || {}
|
|
420
|
+
# HTTP header 'Content-Type'
|
|
421
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
422
|
+
if !content_type.nil?
|
|
423
|
+
header_params['Content-Type'] = content_type
|
|
424
|
+
end
|
|
425
|
+
|
|
426
|
+
# form parameters
|
|
427
|
+
form_params = opts[:form_params] || {}
|
|
428
|
+
|
|
429
|
+
# http body (model)
|
|
430
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(operational_webhook_endpoint_secret_in_dto)
|
|
431
|
+
|
|
432
|
+
# return_type
|
|
433
|
+
return_type = opts[:debug_return_type]
|
|
434
|
+
|
|
435
|
+
# auth_names
|
|
436
|
+
auth_names = opts[:debug_auth_names] || []
|
|
437
|
+
|
|
438
|
+
new_options = opts.merge(
|
|
439
|
+
:operation => :"WebhookEndpointApi.operational_webhook_controller_rotate_secret",
|
|
440
|
+
:header_params => header_params,
|
|
441
|
+
:query_params => query_params,
|
|
442
|
+
:form_params => form_params,
|
|
443
|
+
:body => post_body,
|
|
444
|
+
:auth_names => auth_names,
|
|
445
|
+
:return_type => return_type
|
|
446
|
+
)
|
|
447
|
+
|
|
448
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
449
|
+
if @api_client.config.debugging
|
|
450
|
+
@api_client.config.logger.debug "API called: WebhookEndpointApi#operational_webhook_controller_rotate_secret\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
451
|
+
end
|
|
452
|
+
return data, status_code, headers
|
|
453
|
+
end
|
|
454
|
+
|
|
455
|
+
# Update Operational Webhook Endpoint
|
|
456
|
+
# @param id [String] The endpoint ID or UID
|
|
457
|
+
# @param operational_webhook_endpoint_update_dto [OperationalWebhookEndpointUpdateDto]
|
|
458
|
+
# @param [Hash] opts the optional parameters
|
|
459
|
+
# @return [OperationalWebhookEndpointResponseDto]
|
|
460
|
+
def operational_webhook_controller_update(id, operational_webhook_endpoint_update_dto, opts = {})
|
|
461
|
+
data, _status_code, _headers = operational_webhook_controller_update_with_http_info(id, operational_webhook_endpoint_update_dto, opts)
|
|
462
|
+
data
|
|
463
|
+
end
|
|
464
|
+
|
|
465
|
+
# Update Operational Webhook Endpoint
|
|
466
|
+
# @param id [String] The endpoint ID or UID
|
|
467
|
+
# @param operational_webhook_endpoint_update_dto [OperationalWebhookEndpointUpdateDto]
|
|
468
|
+
# @param [Hash] opts the optional parameters
|
|
469
|
+
# @return [Array<(OperationalWebhookEndpointResponseDto, Integer, Hash)>] OperationalWebhookEndpointResponseDto data, response status code and response headers
|
|
470
|
+
def operational_webhook_controller_update_with_http_info(id, operational_webhook_endpoint_update_dto, opts = {})
|
|
471
|
+
if @api_client.config.debugging
|
|
472
|
+
@api_client.config.logger.debug 'Calling API: WebhookEndpointApi.operational_webhook_controller_update ...'
|
|
473
|
+
end
|
|
474
|
+
# verify the required parameter 'id' is set
|
|
475
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
476
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling WebhookEndpointApi.operational_webhook_controller_update"
|
|
477
|
+
end
|
|
478
|
+
# verify the required parameter 'operational_webhook_endpoint_update_dto' is set
|
|
479
|
+
if @api_client.config.client_side_validation && operational_webhook_endpoint_update_dto.nil?
|
|
480
|
+
fail ArgumentError, "Missing the required parameter 'operational_webhook_endpoint_update_dto' when calling WebhookEndpointApi.operational_webhook_controller_update"
|
|
481
|
+
end
|
|
482
|
+
# resource path
|
|
483
|
+
local_var_path = '/v1/operational-webhook/endpoint/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
484
|
+
|
|
485
|
+
# query parameters
|
|
486
|
+
query_params = opts[:query_params] || {}
|
|
487
|
+
|
|
488
|
+
# header parameters
|
|
489
|
+
header_params = opts[:header_params] || {}
|
|
490
|
+
# HTTP header 'Accept' (if needed)
|
|
491
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
492
|
+
# HTTP header 'Content-Type'
|
|
493
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
494
|
+
if !content_type.nil?
|
|
495
|
+
header_params['Content-Type'] = content_type
|
|
496
|
+
end
|
|
497
|
+
|
|
498
|
+
# form parameters
|
|
499
|
+
form_params = opts[:form_params] || {}
|
|
500
|
+
|
|
501
|
+
# http body (model)
|
|
502
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(operational_webhook_endpoint_update_dto)
|
|
503
|
+
|
|
504
|
+
# return_type
|
|
505
|
+
return_type = opts[:debug_return_type] || 'OperationalWebhookEndpointResponseDto'
|
|
506
|
+
|
|
507
|
+
# auth_names
|
|
508
|
+
auth_names = opts[:debug_auth_names] || []
|
|
509
|
+
|
|
510
|
+
new_options = opts.merge(
|
|
511
|
+
:operation => :"WebhookEndpointApi.operational_webhook_controller_update",
|
|
512
|
+
:header_params => header_params,
|
|
513
|
+
:query_params => query_params,
|
|
514
|
+
:form_params => form_params,
|
|
515
|
+
:body => post_body,
|
|
516
|
+
:auth_names => auth_names,
|
|
517
|
+
:return_type => return_type
|
|
518
|
+
)
|
|
519
|
+
|
|
520
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
521
|
+
if @api_client.config.debugging
|
|
522
|
+
@api_client.config.logger.debug "API called: WebhookEndpointApi#operational_webhook_controller_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
523
|
+
end
|
|
524
|
+
return data, status_code, headers
|
|
525
|
+
end
|
|
526
|
+
|
|
527
|
+
# Set Operational Webhook Endpoint Headers
|
|
528
|
+
# @param id [String] The endpoint ID or UID
|
|
529
|
+
# @param operational_webhook_endpoint_headers_in_dto [OperationalWebhookEndpointHeadersInDto]
|
|
530
|
+
# @param [Hash] opts the optional parameters
|
|
531
|
+
# @return [nil]
|
|
532
|
+
def operational_webhook_controller_update_headers(id, operational_webhook_endpoint_headers_in_dto, opts = {})
|
|
533
|
+
operational_webhook_controller_update_headers_with_http_info(id, operational_webhook_endpoint_headers_in_dto, opts)
|
|
534
|
+
nil
|
|
535
|
+
end
|
|
536
|
+
|
|
537
|
+
# Set Operational Webhook Endpoint Headers
|
|
538
|
+
# @param id [String] The endpoint ID or UID
|
|
539
|
+
# @param operational_webhook_endpoint_headers_in_dto [OperationalWebhookEndpointHeadersInDto]
|
|
540
|
+
# @param [Hash] opts the optional parameters
|
|
541
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
542
|
+
def operational_webhook_controller_update_headers_with_http_info(id, operational_webhook_endpoint_headers_in_dto, opts = {})
|
|
543
|
+
if @api_client.config.debugging
|
|
544
|
+
@api_client.config.logger.debug 'Calling API: WebhookEndpointApi.operational_webhook_controller_update_headers ...'
|
|
545
|
+
end
|
|
546
|
+
# verify the required parameter 'id' is set
|
|
547
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
548
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling WebhookEndpointApi.operational_webhook_controller_update_headers"
|
|
549
|
+
end
|
|
550
|
+
# verify the required parameter 'operational_webhook_endpoint_headers_in_dto' is set
|
|
551
|
+
if @api_client.config.client_side_validation && operational_webhook_endpoint_headers_in_dto.nil?
|
|
552
|
+
fail ArgumentError, "Missing the required parameter 'operational_webhook_endpoint_headers_in_dto' when calling WebhookEndpointApi.operational_webhook_controller_update_headers"
|
|
553
|
+
end
|
|
554
|
+
# resource path
|
|
555
|
+
local_var_path = '/v1/operational-webhook/endpoint/{id}/headers'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
556
|
+
|
|
557
|
+
# query parameters
|
|
558
|
+
query_params = opts[:query_params] || {}
|
|
559
|
+
|
|
560
|
+
# header parameters
|
|
561
|
+
header_params = opts[:header_params] || {}
|
|
562
|
+
# HTTP header 'Content-Type'
|
|
563
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
564
|
+
if !content_type.nil?
|
|
565
|
+
header_params['Content-Type'] = content_type
|
|
566
|
+
end
|
|
567
|
+
|
|
568
|
+
# form parameters
|
|
569
|
+
form_params = opts[:form_params] || {}
|
|
570
|
+
|
|
571
|
+
# http body (model)
|
|
572
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(operational_webhook_endpoint_headers_in_dto)
|
|
573
|
+
|
|
574
|
+
# return_type
|
|
575
|
+
return_type = opts[:debug_return_type]
|
|
576
|
+
|
|
577
|
+
# auth_names
|
|
578
|
+
auth_names = opts[:debug_auth_names] || []
|
|
579
|
+
|
|
580
|
+
new_options = opts.merge(
|
|
581
|
+
:operation => :"WebhookEndpointApi.operational_webhook_controller_update_headers",
|
|
582
|
+
:header_params => header_params,
|
|
583
|
+
:query_params => query_params,
|
|
584
|
+
:form_params => form_params,
|
|
585
|
+
:body => post_body,
|
|
586
|
+
:auth_names => auth_names,
|
|
587
|
+
:return_type => return_type
|
|
588
|
+
)
|
|
589
|
+
|
|
590
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
591
|
+
if @api_client.config.debugging
|
|
592
|
+
@api_client.config.logger.debug "API called: WebhookEndpointApi#operational_webhook_controller_update_headers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
593
|
+
end
|
|
594
|
+
return data, status_code, headers
|
|
595
|
+
end
|
|
596
|
+
end
|
|
597
|
+
end
|