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,659 @@
|
|
|
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 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Solifyn
|
|
17
|
+
class WebhookPaymentPayload
|
|
18
|
+
# Internal payment ID.
|
|
19
|
+
attr_accessor :id
|
|
20
|
+
|
|
21
|
+
attr_accessor :status
|
|
22
|
+
|
|
23
|
+
attr_accessor :substatus
|
|
24
|
+
|
|
25
|
+
attr_accessor :customer_id
|
|
26
|
+
|
|
27
|
+
attr_accessor :customer_email
|
|
28
|
+
|
|
29
|
+
attr_accessor :customer_name
|
|
30
|
+
|
|
31
|
+
attr_accessor :customer_username
|
|
32
|
+
|
|
33
|
+
attr_accessor :product_title
|
|
34
|
+
|
|
35
|
+
attr_accessor :product_route
|
|
36
|
+
|
|
37
|
+
attr_accessor :plan_id
|
|
38
|
+
|
|
39
|
+
attr_accessor :membership_id
|
|
40
|
+
|
|
41
|
+
attr_accessor :membership_status
|
|
42
|
+
|
|
43
|
+
attr_accessor :billing_reason
|
|
44
|
+
|
|
45
|
+
# Dollar value, 2 d.p.
|
|
46
|
+
attr_accessor :amount
|
|
47
|
+
|
|
48
|
+
attr_accessor :subtotal
|
|
49
|
+
|
|
50
|
+
attr_accessor :usd_total
|
|
51
|
+
|
|
52
|
+
attr_accessor :fee_amount
|
|
53
|
+
|
|
54
|
+
attr_accessor :amount_after_fees
|
|
55
|
+
|
|
56
|
+
attr_accessor :tax_amount
|
|
57
|
+
|
|
58
|
+
attr_accessor :tax_behavior
|
|
59
|
+
|
|
60
|
+
attr_accessor :tax_refunded_amount
|
|
61
|
+
|
|
62
|
+
attr_accessor :refunded_amount
|
|
63
|
+
|
|
64
|
+
attr_accessor :settlement_amount
|
|
65
|
+
|
|
66
|
+
attr_accessor :settlement_currency
|
|
67
|
+
|
|
68
|
+
attr_accessor :settlement_exchange_rate
|
|
69
|
+
|
|
70
|
+
attr_accessor :currency
|
|
71
|
+
|
|
72
|
+
attr_accessor :refundable
|
|
73
|
+
|
|
74
|
+
attr_accessor :retryable
|
|
75
|
+
|
|
76
|
+
attr_accessor :auto_refunded
|
|
77
|
+
|
|
78
|
+
attr_accessor :payment_method
|
|
79
|
+
|
|
80
|
+
attr_accessor :card_brand
|
|
81
|
+
|
|
82
|
+
attr_accessor :card_last4
|
|
83
|
+
|
|
84
|
+
attr_accessor :card_exp_month
|
|
85
|
+
|
|
86
|
+
attr_accessor :card_exp_year
|
|
87
|
+
|
|
88
|
+
attr_accessor :billing_address
|
|
89
|
+
|
|
90
|
+
attr_accessor :license_key
|
|
91
|
+
|
|
92
|
+
attr_accessor :files_snapshot
|
|
93
|
+
|
|
94
|
+
attr_accessor :checkout_id
|
|
95
|
+
|
|
96
|
+
attr_accessor :discount_code
|
|
97
|
+
|
|
98
|
+
attr_accessor :failure_message
|
|
99
|
+
|
|
100
|
+
attr_accessor :paid_at
|
|
101
|
+
|
|
102
|
+
attr_accessor :refunded_at
|
|
103
|
+
|
|
104
|
+
attr_accessor :dispute_alerted_at
|
|
105
|
+
|
|
106
|
+
attr_accessor :last_payment_attempt
|
|
107
|
+
|
|
108
|
+
attr_accessor :next_payment_attempt
|
|
109
|
+
|
|
110
|
+
attr_accessor :created_at
|
|
111
|
+
|
|
112
|
+
attr_accessor :updated_at
|
|
113
|
+
|
|
114
|
+
attr_accessor :payment_event_type
|
|
115
|
+
|
|
116
|
+
attr_accessor :last_event_type
|
|
117
|
+
|
|
118
|
+
attr_accessor :business_id
|
|
119
|
+
|
|
120
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
121
|
+
def self.attribute_map
|
|
122
|
+
{
|
|
123
|
+
:'id' => :'id',
|
|
124
|
+
:'status' => :'status',
|
|
125
|
+
:'substatus' => :'substatus',
|
|
126
|
+
:'customer_id' => :'customerId',
|
|
127
|
+
:'customer_email' => :'customerEmail',
|
|
128
|
+
:'customer_name' => :'customerName',
|
|
129
|
+
:'customer_username' => :'customerUsername',
|
|
130
|
+
:'product_title' => :'productTitle',
|
|
131
|
+
:'product_route' => :'productRoute',
|
|
132
|
+
:'plan_id' => :'planId',
|
|
133
|
+
:'membership_id' => :'membershipId',
|
|
134
|
+
:'membership_status' => :'membershipStatus',
|
|
135
|
+
:'billing_reason' => :'billingReason',
|
|
136
|
+
:'amount' => :'amount',
|
|
137
|
+
:'subtotal' => :'subtotal',
|
|
138
|
+
:'usd_total' => :'usdTotal',
|
|
139
|
+
:'fee_amount' => :'feeAmount',
|
|
140
|
+
:'amount_after_fees' => :'amountAfterFees',
|
|
141
|
+
:'tax_amount' => :'taxAmount',
|
|
142
|
+
:'tax_behavior' => :'taxBehavior',
|
|
143
|
+
:'tax_refunded_amount' => :'taxRefundedAmount',
|
|
144
|
+
:'refunded_amount' => :'refundedAmount',
|
|
145
|
+
:'settlement_amount' => :'settlementAmount',
|
|
146
|
+
:'settlement_currency' => :'settlementCurrency',
|
|
147
|
+
:'settlement_exchange_rate' => :'settlementExchangeRate',
|
|
148
|
+
:'currency' => :'currency',
|
|
149
|
+
:'refundable' => :'refundable',
|
|
150
|
+
:'retryable' => :'retryable',
|
|
151
|
+
:'auto_refunded' => :'autoRefunded',
|
|
152
|
+
:'payment_method' => :'paymentMethod',
|
|
153
|
+
:'card_brand' => :'cardBrand',
|
|
154
|
+
:'card_last4' => :'cardLast4',
|
|
155
|
+
:'card_exp_month' => :'cardExpMonth',
|
|
156
|
+
:'card_exp_year' => :'cardExpYear',
|
|
157
|
+
:'billing_address' => :'billingAddress',
|
|
158
|
+
:'license_key' => :'licenseKey',
|
|
159
|
+
:'files_snapshot' => :'filesSnapshot',
|
|
160
|
+
:'checkout_id' => :'checkoutId',
|
|
161
|
+
:'discount_code' => :'discountCode',
|
|
162
|
+
:'failure_message' => :'failureMessage',
|
|
163
|
+
:'paid_at' => :'paidAt',
|
|
164
|
+
:'refunded_at' => :'refundedAt',
|
|
165
|
+
:'dispute_alerted_at' => :'disputeAlertedAt',
|
|
166
|
+
:'last_payment_attempt' => :'lastPaymentAttempt',
|
|
167
|
+
:'next_payment_attempt' => :'nextPaymentAttempt',
|
|
168
|
+
:'created_at' => :'createdAt',
|
|
169
|
+
:'updated_at' => :'updatedAt',
|
|
170
|
+
:'payment_event_type' => :'paymentEventType',
|
|
171
|
+
:'last_event_type' => :'lastEventType',
|
|
172
|
+
:'business_id' => :'businessId'
|
|
173
|
+
}
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
# Returns all the JSON keys this model knows about
|
|
177
|
+
def self.acceptable_attributes
|
|
178
|
+
attribute_map.values
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
# Attribute type mapping.
|
|
182
|
+
def self.openapi_types
|
|
183
|
+
{
|
|
184
|
+
:'id' => :'String',
|
|
185
|
+
:'status' => :'String',
|
|
186
|
+
:'substatus' => :'String',
|
|
187
|
+
:'customer_id' => :'String',
|
|
188
|
+
:'customer_email' => :'String',
|
|
189
|
+
:'customer_name' => :'String',
|
|
190
|
+
:'customer_username' => :'String',
|
|
191
|
+
:'product_title' => :'String',
|
|
192
|
+
:'product_route' => :'String',
|
|
193
|
+
:'plan_id' => :'String',
|
|
194
|
+
:'membership_id' => :'String',
|
|
195
|
+
:'membership_status' => :'String',
|
|
196
|
+
:'billing_reason' => :'String',
|
|
197
|
+
:'amount' => :'String',
|
|
198
|
+
:'subtotal' => :'String',
|
|
199
|
+
:'usd_total' => :'String',
|
|
200
|
+
:'fee_amount' => :'String',
|
|
201
|
+
:'amount_after_fees' => :'String',
|
|
202
|
+
:'tax_amount' => :'String',
|
|
203
|
+
:'tax_behavior' => :'String',
|
|
204
|
+
:'tax_refunded_amount' => :'String',
|
|
205
|
+
:'refunded_amount' => :'String',
|
|
206
|
+
:'settlement_amount' => :'String',
|
|
207
|
+
:'settlement_currency' => :'String',
|
|
208
|
+
:'settlement_exchange_rate' => :'String',
|
|
209
|
+
:'currency' => :'String',
|
|
210
|
+
:'refundable' => :'Boolean',
|
|
211
|
+
:'retryable' => :'Boolean',
|
|
212
|
+
:'auto_refunded' => :'Boolean',
|
|
213
|
+
:'payment_method' => :'String',
|
|
214
|
+
:'card_brand' => :'String',
|
|
215
|
+
:'card_last4' => :'String',
|
|
216
|
+
:'card_exp_month' => :'Integer',
|
|
217
|
+
:'card_exp_year' => :'Integer',
|
|
218
|
+
:'billing_address' => :'WebhookPaymentPayloadBillingAddress',
|
|
219
|
+
:'license_key' => :'String',
|
|
220
|
+
:'files_snapshot' => :'Array<Object>',
|
|
221
|
+
:'checkout_id' => :'String',
|
|
222
|
+
:'discount_code' => :'String',
|
|
223
|
+
:'failure_message' => :'String',
|
|
224
|
+
:'paid_at' => :'Time',
|
|
225
|
+
:'refunded_at' => :'Time',
|
|
226
|
+
:'dispute_alerted_at' => :'Time',
|
|
227
|
+
:'last_payment_attempt' => :'Time',
|
|
228
|
+
:'next_payment_attempt' => :'Time',
|
|
229
|
+
:'created_at' => :'Time',
|
|
230
|
+
:'updated_at' => :'Time',
|
|
231
|
+
:'payment_event_type' => :'String',
|
|
232
|
+
:'last_event_type' => :'String',
|
|
233
|
+
:'business_id' => :'String'
|
|
234
|
+
}
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
# List of attributes with nullable: true
|
|
238
|
+
def self.openapi_nullable
|
|
239
|
+
Set.new([
|
|
240
|
+
])
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
# Initializes the object
|
|
244
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
245
|
+
def initialize(attributes = {})
|
|
246
|
+
if (!attributes.is_a?(Hash))
|
|
247
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Solifyn::WebhookPaymentPayload` initialize method"
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
251
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
252
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
253
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Solifyn::WebhookPaymentPayload`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
254
|
+
end
|
|
255
|
+
h[k.to_sym] = v
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
if attributes.key?(:'id')
|
|
259
|
+
self.id = attributes[:'id']
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
if attributes.key?(:'status')
|
|
263
|
+
self.status = attributes[:'status']
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
if attributes.key?(:'substatus')
|
|
267
|
+
self.substatus = attributes[:'substatus']
|
|
268
|
+
end
|
|
269
|
+
|
|
270
|
+
if attributes.key?(:'customer_id')
|
|
271
|
+
self.customer_id = attributes[:'customer_id']
|
|
272
|
+
end
|
|
273
|
+
|
|
274
|
+
if attributes.key?(:'customer_email')
|
|
275
|
+
self.customer_email = attributes[:'customer_email']
|
|
276
|
+
end
|
|
277
|
+
|
|
278
|
+
if attributes.key?(:'customer_name')
|
|
279
|
+
self.customer_name = attributes[:'customer_name']
|
|
280
|
+
end
|
|
281
|
+
|
|
282
|
+
if attributes.key?(:'customer_username')
|
|
283
|
+
self.customer_username = attributes[:'customer_username']
|
|
284
|
+
end
|
|
285
|
+
|
|
286
|
+
if attributes.key?(:'product_title')
|
|
287
|
+
self.product_title = attributes[:'product_title']
|
|
288
|
+
end
|
|
289
|
+
|
|
290
|
+
if attributes.key?(:'product_route')
|
|
291
|
+
self.product_route = attributes[:'product_route']
|
|
292
|
+
end
|
|
293
|
+
|
|
294
|
+
if attributes.key?(:'plan_id')
|
|
295
|
+
self.plan_id = attributes[:'plan_id']
|
|
296
|
+
end
|
|
297
|
+
|
|
298
|
+
if attributes.key?(:'membership_id')
|
|
299
|
+
self.membership_id = attributes[:'membership_id']
|
|
300
|
+
end
|
|
301
|
+
|
|
302
|
+
if attributes.key?(:'membership_status')
|
|
303
|
+
self.membership_status = attributes[:'membership_status']
|
|
304
|
+
end
|
|
305
|
+
|
|
306
|
+
if attributes.key?(:'billing_reason')
|
|
307
|
+
self.billing_reason = attributes[:'billing_reason']
|
|
308
|
+
end
|
|
309
|
+
|
|
310
|
+
if attributes.key?(:'amount')
|
|
311
|
+
self.amount = attributes[:'amount']
|
|
312
|
+
end
|
|
313
|
+
|
|
314
|
+
if attributes.key?(:'subtotal')
|
|
315
|
+
self.subtotal = attributes[:'subtotal']
|
|
316
|
+
end
|
|
317
|
+
|
|
318
|
+
if attributes.key?(:'usd_total')
|
|
319
|
+
self.usd_total = attributes[:'usd_total']
|
|
320
|
+
end
|
|
321
|
+
|
|
322
|
+
if attributes.key?(:'fee_amount')
|
|
323
|
+
self.fee_amount = attributes[:'fee_amount']
|
|
324
|
+
end
|
|
325
|
+
|
|
326
|
+
if attributes.key?(:'amount_after_fees')
|
|
327
|
+
self.amount_after_fees = attributes[:'amount_after_fees']
|
|
328
|
+
end
|
|
329
|
+
|
|
330
|
+
if attributes.key?(:'tax_amount')
|
|
331
|
+
self.tax_amount = attributes[:'tax_amount']
|
|
332
|
+
end
|
|
333
|
+
|
|
334
|
+
if attributes.key?(:'tax_behavior')
|
|
335
|
+
self.tax_behavior = attributes[:'tax_behavior']
|
|
336
|
+
end
|
|
337
|
+
|
|
338
|
+
if attributes.key?(:'tax_refunded_amount')
|
|
339
|
+
self.tax_refunded_amount = attributes[:'tax_refunded_amount']
|
|
340
|
+
end
|
|
341
|
+
|
|
342
|
+
if attributes.key?(:'refunded_amount')
|
|
343
|
+
self.refunded_amount = attributes[:'refunded_amount']
|
|
344
|
+
end
|
|
345
|
+
|
|
346
|
+
if attributes.key?(:'settlement_amount')
|
|
347
|
+
self.settlement_amount = attributes[:'settlement_amount']
|
|
348
|
+
end
|
|
349
|
+
|
|
350
|
+
if attributes.key?(:'settlement_currency')
|
|
351
|
+
self.settlement_currency = attributes[:'settlement_currency']
|
|
352
|
+
end
|
|
353
|
+
|
|
354
|
+
if attributes.key?(:'settlement_exchange_rate')
|
|
355
|
+
self.settlement_exchange_rate = attributes[:'settlement_exchange_rate']
|
|
356
|
+
end
|
|
357
|
+
|
|
358
|
+
if attributes.key?(:'currency')
|
|
359
|
+
self.currency = attributes[:'currency']
|
|
360
|
+
end
|
|
361
|
+
|
|
362
|
+
if attributes.key?(:'refundable')
|
|
363
|
+
self.refundable = attributes[:'refundable']
|
|
364
|
+
end
|
|
365
|
+
|
|
366
|
+
if attributes.key?(:'retryable')
|
|
367
|
+
self.retryable = attributes[:'retryable']
|
|
368
|
+
end
|
|
369
|
+
|
|
370
|
+
if attributes.key?(:'auto_refunded')
|
|
371
|
+
self.auto_refunded = attributes[:'auto_refunded']
|
|
372
|
+
end
|
|
373
|
+
|
|
374
|
+
if attributes.key?(:'payment_method')
|
|
375
|
+
self.payment_method = attributes[:'payment_method']
|
|
376
|
+
end
|
|
377
|
+
|
|
378
|
+
if attributes.key?(:'card_brand')
|
|
379
|
+
self.card_brand = attributes[:'card_brand']
|
|
380
|
+
end
|
|
381
|
+
|
|
382
|
+
if attributes.key?(:'card_last4')
|
|
383
|
+
self.card_last4 = attributes[:'card_last4']
|
|
384
|
+
end
|
|
385
|
+
|
|
386
|
+
if attributes.key?(:'card_exp_month')
|
|
387
|
+
self.card_exp_month = attributes[:'card_exp_month']
|
|
388
|
+
end
|
|
389
|
+
|
|
390
|
+
if attributes.key?(:'card_exp_year')
|
|
391
|
+
self.card_exp_year = attributes[:'card_exp_year']
|
|
392
|
+
end
|
|
393
|
+
|
|
394
|
+
if attributes.key?(:'billing_address')
|
|
395
|
+
self.billing_address = attributes[:'billing_address']
|
|
396
|
+
end
|
|
397
|
+
|
|
398
|
+
if attributes.key?(:'license_key')
|
|
399
|
+
self.license_key = attributes[:'license_key']
|
|
400
|
+
end
|
|
401
|
+
|
|
402
|
+
if attributes.key?(:'files_snapshot')
|
|
403
|
+
if (value = attributes[:'files_snapshot']).is_a?(Array)
|
|
404
|
+
self.files_snapshot = value
|
|
405
|
+
end
|
|
406
|
+
end
|
|
407
|
+
|
|
408
|
+
if attributes.key?(:'checkout_id')
|
|
409
|
+
self.checkout_id = attributes[:'checkout_id']
|
|
410
|
+
end
|
|
411
|
+
|
|
412
|
+
if attributes.key?(:'discount_code')
|
|
413
|
+
self.discount_code = attributes[:'discount_code']
|
|
414
|
+
end
|
|
415
|
+
|
|
416
|
+
if attributes.key?(:'failure_message')
|
|
417
|
+
self.failure_message = attributes[:'failure_message']
|
|
418
|
+
end
|
|
419
|
+
|
|
420
|
+
if attributes.key?(:'paid_at')
|
|
421
|
+
self.paid_at = attributes[:'paid_at']
|
|
422
|
+
end
|
|
423
|
+
|
|
424
|
+
if attributes.key?(:'refunded_at')
|
|
425
|
+
self.refunded_at = attributes[:'refunded_at']
|
|
426
|
+
end
|
|
427
|
+
|
|
428
|
+
if attributes.key?(:'dispute_alerted_at')
|
|
429
|
+
self.dispute_alerted_at = attributes[:'dispute_alerted_at']
|
|
430
|
+
end
|
|
431
|
+
|
|
432
|
+
if attributes.key?(:'last_payment_attempt')
|
|
433
|
+
self.last_payment_attempt = attributes[:'last_payment_attempt']
|
|
434
|
+
end
|
|
435
|
+
|
|
436
|
+
if attributes.key?(:'next_payment_attempt')
|
|
437
|
+
self.next_payment_attempt = attributes[:'next_payment_attempt']
|
|
438
|
+
end
|
|
439
|
+
|
|
440
|
+
if attributes.key?(:'created_at')
|
|
441
|
+
self.created_at = attributes[:'created_at']
|
|
442
|
+
end
|
|
443
|
+
|
|
444
|
+
if attributes.key?(:'updated_at')
|
|
445
|
+
self.updated_at = attributes[:'updated_at']
|
|
446
|
+
end
|
|
447
|
+
|
|
448
|
+
if attributes.key?(:'payment_event_type')
|
|
449
|
+
self.payment_event_type = attributes[:'payment_event_type']
|
|
450
|
+
end
|
|
451
|
+
|
|
452
|
+
if attributes.key?(:'last_event_type')
|
|
453
|
+
self.last_event_type = attributes[:'last_event_type']
|
|
454
|
+
end
|
|
455
|
+
|
|
456
|
+
if attributes.key?(:'business_id')
|
|
457
|
+
self.business_id = attributes[:'business_id']
|
|
458
|
+
end
|
|
459
|
+
end
|
|
460
|
+
|
|
461
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
462
|
+
# @return Array for valid properties with the reasons
|
|
463
|
+
def list_invalid_properties
|
|
464
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
465
|
+
invalid_properties = Array.new
|
|
466
|
+
invalid_properties
|
|
467
|
+
end
|
|
468
|
+
|
|
469
|
+
# Check to see if the all the properties in the model are valid
|
|
470
|
+
# @return true if the model is valid
|
|
471
|
+
def valid?
|
|
472
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
473
|
+
true
|
|
474
|
+
end
|
|
475
|
+
|
|
476
|
+
# Checks equality by comparing each attribute.
|
|
477
|
+
# @param [Object] Object to be compared
|
|
478
|
+
def ==(o)
|
|
479
|
+
return true if self.equal?(o)
|
|
480
|
+
self.class == o.class &&
|
|
481
|
+
id == o.id &&
|
|
482
|
+
status == o.status &&
|
|
483
|
+
substatus == o.substatus &&
|
|
484
|
+
customer_id == o.customer_id &&
|
|
485
|
+
customer_email == o.customer_email &&
|
|
486
|
+
customer_name == o.customer_name &&
|
|
487
|
+
customer_username == o.customer_username &&
|
|
488
|
+
product_title == o.product_title &&
|
|
489
|
+
product_route == o.product_route &&
|
|
490
|
+
plan_id == o.plan_id &&
|
|
491
|
+
membership_id == o.membership_id &&
|
|
492
|
+
membership_status == o.membership_status &&
|
|
493
|
+
billing_reason == o.billing_reason &&
|
|
494
|
+
amount == o.amount &&
|
|
495
|
+
subtotal == o.subtotal &&
|
|
496
|
+
usd_total == o.usd_total &&
|
|
497
|
+
fee_amount == o.fee_amount &&
|
|
498
|
+
amount_after_fees == o.amount_after_fees &&
|
|
499
|
+
tax_amount == o.tax_amount &&
|
|
500
|
+
tax_behavior == o.tax_behavior &&
|
|
501
|
+
tax_refunded_amount == o.tax_refunded_amount &&
|
|
502
|
+
refunded_amount == o.refunded_amount &&
|
|
503
|
+
settlement_amount == o.settlement_amount &&
|
|
504
|
+
settlement_currency == o.settlement_currency &&
|
|
505
|
+
settlement_exchange_rate == o.settlement_exchange_rate &&
|
|
506
|
+
currency == o.currency &&
|
|
507
|
+
refundable == o.refundable &&
|
|
508
|
+
retryable == o.retryable &&
|
|
509
|
+
auto_refunded == o.auto_refunded &&
|
|
510
|
+
payment_method == o.payment_method &&
|
|
511
|
+
card_brand == o.card_brand &&
|
|
512
|
+
card_last4 == o.card_last4 &&
|
|
513
|
+
card_exp_month == o.card_exp_month &&
|
|
514
|
+
card_exp_year == o.card_exp_year &&
|
|
515
|
+
billing_address == o.billing_address &&
|
|
516
|
+
license_key == o.license_key &&
|
|
517
|
+
files_snapshot == o.files_snapshot &&
|
|
518
|
+
checkout_id == o.checkout_id &&
|
|
519
|
+
discount_code == o.discount_code &&
|
|
520
|
+
failure_message == o.failure_message &&
|
|
521
|
+
paid_at == o.paid_at &&
|
|
522
|
+
refunded_at == o.refunded_at &&
|
|
523
|
+
dispute_alerted_at == o.dispute_alerted_at &&
|
|
524
|
+
last_payment_attempt == o.last_payment_attempt &&
|
|
525
|
+
next_payment_attempt == o.next_payment_attempt &&
|
|
526
|
+
created_at == o.created_at &&
|
|
527
|
+
updated_at == o.updated_at &&
|
|
528
|
+
payment_event_type == o.payment_event_type &&
|
|
529
|
+
last_event_type == o.last_event_type &&
|
|
530
|
+
business_id == o.business_id
|
|
531
|
+
end
|
|
532
|
+
|
|
533
|
+
# @see the `==` method
|
|
534
|
+
# @param [Object] Object to be compared
|
|
535
|
+
def eql?(o)
|
|
536
|
+
self == o
|
|
537
|
+
end
|
|
538
|
+
|
|
539
|
+
# Calculates hash code according to all attributes.
|
|
540
|
+
# @return [Integer] Hash code
|
|
541
|
+
def hash
|
|
542
|
+
[id, status, substatus, customer_id, customer_email, customer_name, customer_username, product_title, product_route, plan_id, membership_id, membership_status, billing_reason, amount, subtotal, usd_total, fee_amount, amount_after_fees, tax_amount, tax_behavior, tax_refunded_amount, refunded_amount, settlement_amount, settlement_currency, settlement_exchange_rate, currency, refundable, retryable, auto_refunded, payment_method, card_brand, card_last4, card_exp_month, card_exp_year, billing_address, license_key, files_snapshot, checkout_id, discount_code, failure_message, paid_at, refunded_at, dispute_alerted_at, last_payment_attempt, next_payment_attempt, created_at, updated_at, payment_event_type, last_event_type, business_id].hash
|
|
543
|
+
end
|
|
544
|
+
|
|
545
|
+
# Builds the object from hash
|
|
546
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
547
|
+
# @return [Object] Returns the model itself
|
|
548
|
+
def self.build_from_hash(attributes)
|
|
549
|
+
return nil unless attributes.is_a?(Hash)
|
|
550
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
551
|
+
transformed_hash = {}
|
|
552
|
+
openapi_types.each_pair do |key, type|
|
|
553
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
554
|
+
transformed_hash["#{key}"] = nil
|
|
555
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
556
|
+
# check to ensure the input is an array given that the attribute
|
|
557
|
+
# is documented as an array but the input is not
|
|
558
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
559
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
560
|
+
end
|
|
561
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
562
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
563
|
+
end
|
|
564
|
+
end
|
|
565
|
+
new(transformed_hash)
|
|
566
|
+
end
|
|
567
|
+
|
|
568
|
+
# Deserializes the data based on type
|
|
569
|
+
# @param string type Data type
|
|
570
|
+
# @param string value Value to be deserialized
|
|
571
|
+
# @return [Object] Deserialized data
|
|
572
|
+
def self._deserialize(type, value)
|
|
573
|
+
case type.to_sym
|
|
574
|
+
when :Time
|
|
575
|
+
Time.parse(value)
|
|
576
|
+
when :Date
|
|
577
|
+
Date.parse(value)
|
|
578
|
+
when :String
|
|
579
|
+
value.to_s
|
|
580
|
+
when :Integer
|
|
581
|
+
value.to_i
|
|
582
|
+
when :Float
|
|
583
|
+
value.to_f
|
|
584
|
+
when :Boolean
|
|
585
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
586
|
+
true
|
|
587
|
+
else
|
|
588
|
+
false
|
|
589
|
+
end
|
|
590
|
+
when :Object
|
|
591
|
+
# generic object (usually a Hash), return directly
|
|
592
|
+
value
|
|
593
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
594
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
595
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
596
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
597
|
+
k_type = Regexp.last_match[:k_type]
|
|
598
|
+
v_type = Regexp.last_match[:v_type]
|
|
599
|
+
{}.tap do |hash|
|
|
600
|
+
value.each do |k, v|
|
|
601
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
602
|
+
end
|
|
603
|
+
end
|
|
604
|
+
else # model
|
|
605
|
+
# models (e.g. Pet) or oneOf
|
|
606
|
+
klass = Solifyn.const_get(type)
|
|
607
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
608
|
+
end
|
|
609
|
+
end
|
|
610
|
+
|
|
611
|
+
# Returns the string representation of the object
|
|
612
|
+
# @return [String] String presentation of the object
|
|
613
|
+
def to_s
|
|
614
|
+
to_hash.to_s
|
|
615
|
+
end
|
|
616
|
+
|
|
617
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
618
|
+
# @return [Hash] Returns the object in the form of hash
|
|
619
|
+
def to_body
|
|
620
|
+
to_hash
|
|
621
|
+
end
|
|
622
|
+
|
|
623
|
+
# Returns the object in the form of hash
|
|
624
|
+
# @return [Hash] Returns the object in the form of hash
|
|
625
|
+
def to_hash
|
|
626
|
+
hash = {}
|
|
627
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
628
|
+
value = self.send(attr)
|
|
629
|
+
if value.nil?
|
|
630
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
631
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
632
|
+
end
|
|
633
|
+
|
|
634
|
+
hash[param] = _to_hash(value)
|
|
635
|
+
end
|
|
636
|
+
hash
|
|
637
|
+
end
|
|
638
|
+
|
|
639
|
+
# Outputs non-array value in the form of hash
|
|
640
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
641
|
+
# @param [Object] value Any valid value
|
|
642
|
+
# @return [Hash] Returns the value in the form of hash
|
|
643
|
+
def _to_hash(value)
|
|
644
|
+
if value.is_a?(Array)
|
|
645
|
+
value.compact.map { |v| _to_hash(v) }
|
|
646
|
+
elsif value.is_a?(Hash)
|
|
647
|
+
{}.tap do |hash|
|
|
648
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
649
|
+
end
|
|
650
|
+
elsif value.respond_to? :to_hash
|
|
651
|
+
value.to_hash
|
|
652
|
+
else
|
|
653
|
+
value
|
|
654
|
+
end
|
|
655
|
+
end
|
|
656
|
+
|
|
657
|
+
end
|
|
658
|
+
|
|
659
|
+
end
|