{"openapi":"3.1.0","info":{"title":"Transactions Service API","description":"FastAPI Transactions Service - subscriptions, payments, and transaction history","version":"0.3.0"},"paths":{"/subscriptions/plans/{plan_id}":{"get":{"tags":["Subscriptions"],"summary":"Get subscription plan details","description":"Get details of a specific subscription plan.","operationId":"get_subscription_plan_subscriptions_plans__plan_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Plan Id"}},{"name":"cc","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Country code override","title":"Cc"},"description":"Country code override"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GResponse_SubscriptionPlanDetailResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/subscriptions/me":{"get":{"tags":["Subscriptions"],"summary":"Get current user's subscription","description":"Get the current user's active subscription details.\n    \n    - Returns subscription plan, status, dates\n    - Includes payment method details (safe data only)\n    - Shows next payment amount and frequency","operationId":"get_my_subscription_subscriptions_me_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cc","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Country code for pricing","title":"Cc"},"description":"Country code for pricing"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GResponse_Union_UserSubscriptionResponseSchema__NoneType__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/subscriptions/summary/{subscription_id}":{"get":{"tags":["Subscriptions"],"summary":"Get subscription purchase summary","description":"Get pricing summary before purchasing a subscription.\n    \n    - Calculates total with taxes and discounts\n    - Validates coupon if provided\n    - Returns breakdown of all charges","operationId":"get_subscription_summary_subscriptions_summary__subscription_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"subscription_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Subscription Id"}},{"name":"period","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Period ID","title":"Period"},"description":"Period ID"},{"name":"coupon","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Coupon code","title":"Coupon"},"description":"Coupon code"},{"name":"cc","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Country code","title":"Cc"},"description":"Country code"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GResponse_SubscriptionSummaryResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/subscriptions/purchase":{"post":{"tags":["Subscriptions"],"summary":"Purchase subscription","description":"Initiate a subscription purchase.\n    \n    - Creates subscription record\n    - For recurring paid plans: Creates Razorpay subscription and returns details\n    - For hourly/daily paid plans: Creates Razorpay order and returns checkout details\n    - For free plans: Activates subscription immediately\n    - Supports optional tax details: `tax_id` and `tax_type`","operationId":"purchase_subscription_api_subscriptions_purchase_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cc","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Country alpha2 code","title":"Cc"},"description":"Country alpha2 code"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseSubscriptionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GResponse_SubscriptionPurchaseResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/subscriptions/verify-payment":{"post":{"tags":["Subscriptions"],"summary":"Verify subscription payment","description":"Verify Razorpay payment signature after payment completion.\n    \n    - Verifies signature using Razorpay SDK\n    - Updates subscription status to Processing","operationId":"verify_subscription_payment_subscriptions_verify_payment_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/g__schemas__billing__subscription_schemas__PaymentVerificationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/subscriptions/cancel":{"delete":{"tags":["Subscriptions"],"summary":"Cancel subscription","description":"Cancel the user's active subscription.\n    \n    - For free plans: Expires immediately\n    - For paid plans: Cancels with gateway, expires at end of billing cycle","operationId":"cancel_subscription_subscriptions_cancel_delete","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CancelSubscriptionRequest"},{"type":"null"}],"title":"Request"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GResponse_SubscriptionCancelResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/subscriptions/status":{"get":{"tags":["Subscriptions"],"summary":"Get subscription status","description":"Get current user's subscription status","operationId":"get_subscription_status_subscriptions_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GResponse_SubscriptionStatusSchema_"}}}}},"security":[{"HTTPBearer":[]}]}},"/subscriptions/display-plans-text":{"get":{"tags":["Subscriptions"],"summary":"Get subscription plans display text","description":"Get display text for subscription plans based on user's region and language","operationId":"get_subscription_plans_display_text_subscriptions_display_plans_text_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GResponse_SubscriptionPlanTextDetailsPageSchema_"}}}}}}},"/subscriptions/plans-page":{"get":{"tags":["Subscriptions"],"summary":"Get subscription plans page details","description":"Get subscription plans page details including display texts and plan information","operationId":"subscription_plans_page_api_subscriptions_plans_page_get","parameters":[{"name":"cc","in":"query","required":false,"schema":{"type":"string","description":"Country code override","default":"IN","title":"Cc"},"description":"Country code override"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GResponse_SubscriptionPlanPageDetailsSchema_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/transactions":{"get":{"tags":["Transactions"],"summary":"Get transaction history","description":"Get user's transaction history with pagination.\n    \n    - Returns all transactions ordered by date (newest first)\n    - Can filter by transaction type\n    - Includes payment details (safe data only)","operationId":"get_transaction_history_transactions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Filter by type: 1=Event, 2=Subscription","title":"Type"},"description":"Filter by type: 1=Event, 2=Subscription"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Items per page","default":20,"title":"Per Page"},"description":"Items per page"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GResponse_TransactionListResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/transactions/subscriptions":{"get":{"tags":["Transactions"],"summary":"Get subscription transactions","description":"Get user's subscription purchase transactions only.","operationId":"get_subscription_transactions_transactions_subscriptions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Items per page","default":20,"title":"Per Page"},"description":"Items per page"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GResponse_TransactionListResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/transactions/events":{"get":{"tags":["Transactions"],"summary":"Get event transactions","description":"Get user's event purchase transactions only.","operationId":"get_event_transactions_transactions_events_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Items per page","default":20,"title":"Per Page"},"description":"Items per page"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GResponse_TransactionListResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/transactions/{transaction_id}":{"get":{"tags":["Transactions"],"summary":"Get transaction details","description":"Get details of a specific transaction.\n    \n    - Returns full transaction info including payment details\n    - User can only view their own transactions","operationId":"get_transaction_details_transactions__transaction_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"transaction_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Transaction Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GResponse_TransactionResponseSchema_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/transactions/{transaction_id}/status":{"get":{"tags":["Transactions"],"summary":"Get transaction status","description":"Get current status of a transaction.\n    \n    Useful for polling payment status.","operationId":"get_transaction_status_transactions__transaction_id__status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"transaction_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Transaction Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GResponse_TransactionStatusResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/transactions/{transaction_id}/invoice":{"get":{"tags":["Transactions"],"summary":"Get transaction invoice","description":"Get invoice data for a transaction.\n    \n    - Returns invoice details including line items, charges, billing info\n    - Returns Razorpay invoice URL if available","operationId":"get_transaction_invoice_transactions__transaction_id__invoice_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"transaction_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Transaction Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GResponse_InvoiceResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/transactions/purchase-history":{"get":{"tags":["Transactions"],"summary":"Get purchase history","description":"Get user's transaction/purchase history","operationId":"get_purchase_history_transactions_purchase_history_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"type","in":"query","required":false,"schema":{"type":"string","description":"Filter: 'failed', 'completed', or all","title":"Type"},"description":"Filter: 'failed', 'completed', or all"},{"name":"cc","in":"query","required":false,"schema":{"type":"string","default":"IN","title":"Cc"}},{"name":"transaction_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Specific transaction ID","title":"Transaction Id"},"description":"Specific transaction ID"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GResponse_PaginatedResponse_TransactionResponseSchema__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/transactions/user-purchase-history/{user_id}":{"get":{"tags":["Transactions"],"summary":"Get purchase history","description":"Get user's transaction/purchase history","operationId":"get_user_purchase_history_transactions_user_purchase_history__user_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}},{"name":"type","in":"query","required":false,"schema":{"type":"string","description":"Filter: 'failed', 'completed', or all","title":"Type"},"description":"Filter: 'failed', 'completed', or all"},{"name":"cc","in":"query","required":false,"schema":{"type":"string","default":"IN","title":"Cc"}},{"name":"transaction_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Specific transaction ID","title":"Transaction Id"},"description":"Specific transaction ID"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GResponse_PaginatedResponse_TransactionResponseSchema__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/coupons/validate":{"get":{"tags":["Coupons"],"summary":"Validate coupon for subscription","description":"Validate a coupon code for subscription purchase.\n    \n    - Checks if coupon exists and is valid\n    - Validates coupon is applicable to the subscription plan\n    - Returns discount percentage and amount","operationId":"validate_coupon_coupons_validate_get","parameters":[{"name":"coupon","in":"query","required":true,"schema":{"type":"string","description":"Coupon code to validate","title":"Coupon"},"description":"Coupon code to validate"},{"name":"subscription","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Subscription plan ID","title":"Subscription"},"description":"Subscription plan ID"},{"name":"period","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Period ID","title":"Period"},"description":"Period ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GResponse_CouponValidationResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Coupons"],"summary":"Validate coupon (POST)","description":"Validate a coupon code for subscription purchase (POST method).\n    \n    Same as GET but accepts body for complex requests.","operationId":"validate_coupon_post_coupons_validate_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CouponValidationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GResponse_CouponValidationResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/coupons/coupons/{coupon_id}":{"get":{"tags":["Coupons"],"summary":"Get coupon details","description":"Get details of a coupon by ID or code.","operationId":"get_coupon_details_coupons_coupons__coupon_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"coupon_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Coupon Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GResponse_List_CouponResponseSchema__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/coupons/coupons/{coupon_id}/events":{"get":{"tags":["Coupons"],"summary":"Get events valid for a coupon","description":"Get paginated list of events that a coupon can be applied to.","operationId":"get_coupon_events_coupons_coupons__coupon_id__events_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"coupon_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Coupon Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Items per page","default":20,"title":"Per Page"},"description":"Items per page"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GResponse_EventListResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/coupons/coupons":{"get":{"tags":["Coupons"],"summary":"Search coupons","description":"Search available coupons with optional filters.","operationId":"search_coupons_coupons_coupons_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search query for coupon code","title":"Q"},"description":"Search query for coupon code"},{"name":"coupon_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/CouponType"},{"type":"null"}],"description":"Filter by coupon type","title":"Coupon Type"},"description":"Filter by coupon type"},{"name":"event","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by event ID","title":"Event"},"description":"Filter by event ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GResponse_PaginatedResponse_CouponResponseSchema__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payments/verify-signature":{"post":{"tags":["Payments"],"summary":"Verify Razorpay payment signature","description":"Verify the payment signature from Razorpay after a payment is completed.\n    Supports both one-time orders and subscription payments.","operationId":"verify_payment_signature_payments_verify_signature_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apps__billing__apis__payments_api__PaymentVerificationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/apple-iap/validate":{"post":{"tags":["Apple IAP"],"summary":"Validate Apple IAP transaction","description":"Validate an Apple In-App Purchase transaction and return subscription status.\n    - Validates the transaction with App Store Server API\n    - Updates the user's subscription status in the database\n    - Returns the current subscription status and details","operationId":"validate_apple_iap_transaction_apple_iap_validate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppleIAPValidationRequestSchema"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GResponse_AppleIAPValidationResponseSchema_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/apple-iap/validate-ownership":{"post":{"tags":["Apple IAP"],"summary":"Validate Apple subscription ownership lock","description":"Validates whether an Apple subscription lineage is currently\n    locked to another backend user.\n\n    This endpoint:\n    - checks existing subscription ownership\n    - verifies active ownership lock state\n    - determines whether the subscription can be linked/relinked","operationId":"validate_apple_iap_ownership_apple_iap_validate_ownership_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppleIAPValidationRequestSchema"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GResponse_AppleProviderOwnershipLockResponseSchema_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/google-iap/validate":{"post":{"tags":["Google IAP"],"summary":"Validate Google Play subscription purchase","description":"Validate a Google Play Billing subscription purchase token and return\n    normalized subscription status.\n    - Validates the purchase with the Google Play Developer API\n    - Updates the user's subscription status in the database\n    - Records transaction history for the purchase token lifecycle","operationId":"validate_google_iap_purchase_google_iap_validate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleIAPValidationRequestSchema"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GResponse_GoogleIAPValidationResponseSchema_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/google-iap/validate-ownership":{"post":{"tags":["Google IAP"],"summary":"Validate Google Play subscription ownership lock","description":"Validates whether a Google Play subscription lineage is currently\n    locked to another backend user.\n\n    This endpoint:\n    - checks existing subscription ownership\n    - validates active ownership lock state\n    - determines whether the subscription can be linked/relinked","operationId":"validate_google_iap_ownership_google_iap_validate_ownership_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleIAPValidationRequestSchema"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GResponse_GoogleProviderOwnershipLockResponseSchema_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/health":{"get":{"tags":["health"],"summary":"Health Check","operationId":"health_check_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/":{"get":{"tags":["transactions"],"summary":"Root","operationId":"root__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"AppleIAPValidationRequestSchema":{"properties":{"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Createdat","description":"Timestamp when the record was created"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat","description":"Timestamp when the record was last updated"},"transactionId":{"type":"string","title":"Transactionid","description":"Apple transaction ID from StoreKit 2"},"signedTransactionInfo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signedtransactioninfo","description":"Optional signed transaction JWS from client-side StoreKit 2"},"originalTransactionId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Originaltransactionid","description":"Optional original transaction ID for consistency checks"},"environment":{"$ref":"#/components/schemas/PG_ENVIRONMENT","description":"Optional preferred Apple environment; auto-fallback still applies","default":"sandbox"},"productId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Productid","description":"Expected product ID (for validation/mapping)"},"appAccountToken":{"anyOf":[{"type":"string"},{"type":"string","format":"uuid"},{"type":"null"}],"title":"Appaccounttoken","description":"Optional opaque identifier(UUID) from client for cross-checking"},"periodType":{"anyOf":[{"$ref":"#/components/schemas/SubscriptionPlanPeriodEnum"},{"type":"null"}],"description":"Optional subscription period type (e.g., yearly, monthly) for consistency checks"}},"type":"object","required":["transactionId"],"title":"AppleIAPValidationRequestSchema","description":"Request schema for Apple IAP validation.\n\nUses StoreKit 2 / App Store Server API transaction identifiers,\nnot legacy receipt payloads."},"AppleIAPValidationResponseSchema":{"properties":{"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Createdat","description":"Timestamp when the record was created"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat","description":"Timestamp when the record was last updated"},"isValid":{"type":"boolean","title":"Isvalid","description":"Whether receipt is valid"},"subscriptionStatus":{"anyOf":[{"$ref":"#/components/schemas/UserSubscriptionStatusEnum"},{"type":"null"}],"description":"Subscription status as UserSubscriptionStatusEnum integer value"},"expiryDate":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expirydate","description":"Subscription expiry date (UTC)"},"productId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Productid","description":"Apple product ID (e.g., ggl_monthly)"},"transactionId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transactionid","description":"Latest transaction ID"},"originalTransactionId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Originaltransactionid","description":"Stable ID across renewals (primary key for Apple subs)"},"environment":{"$ref":"#/components/schemas/PG_ENVIRONMENT","description":"Apple environment","default":"production"},"autoRenewing":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Autorenewing","description":"Whether subscription is set to auto-renew"},"isTrial":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Istrial","description":"Whether this is a trial period"},"raw":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Raw","description":"Raw Apple response (optional, for debugging)"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error","description":"Error message if validation failed (for debugging)"}},"type":"object","required":["isValid"],"title":"AppleIAPValidationResponseSchema","description":"Response schema for Apple IAP validation."},"AppleProviderOwnershipLockResponseSchema":{"properties":{"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Createdat","description":"Timestamp when the record was created"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat","description":"Timestamp when the record was last updated"},"transactionId":{"type":"string","title":"Transactionid","description":"Apple transaction ID from StoreKit 2"},"signedTransactionInfo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signedtransactioninfo","description":"Optional signed transaction JWS from client-side StoreKit 2"},"originalTransactionId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Originaltransactionid","description":"Optional original transaction ID for consistency checks"},"environment":{"$ref":"#/components/schemas/PG_ENVIRONMENT","description":"Optional preferred Apple environment; auto-fallback still applies","default":"sandbox"},"productId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Productid","description":"Expected product ID (for validation/mapping)"},"appAccountToken":{"anyOf":[{"type":"string"},{"type":"string","format":"uuid"},{"type":"null"}],"title":"Appaccounttoken","description":"Optional opaque identifier(UUID) from client for cross-checking"},"periodType":{"anyOf":[{"$ref":"#/components/schemas/SubscriptionPlanPeriodEnum"},{"type":"null"}],"description":"Optional subscription period type (e.g., yearly, monthly) for consistency checks"},"hasActiveLock":{"type":"boolean","title":"Hasactivelock","description":"Whether there is an active ownership lock"},"canLink":{"type":"boolean","title":"Canlink","description":"Whether the subscription can be linked to this account"},"userId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Userid","description":"ID of the current user making the request"}},"type":"object","required":["transactionId","hasActiveLock","canLink"],"title":"AppleProviderOwnershipLockResponseSchema","description":"Response schema for validating Apple IAP subscription ownership lock."},"CancelSubscriptionRequest":{"properties":{"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","title":"CancelSubscriptionRequest","description":"Cancel subscription request."},"CouponResponseSchema":{"properties":{"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Createdat"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat","description":"Timestamp when the record was last updated"},"id":{"type":"string","format":"uuid","title":"Id"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"code":{"type":"string","title":"Code"},"couponType":{"$ref":"#/components/schemas/CouponType"},"thumbnailUrls":{"items":{"type":"string"},"type":"array","title":"Thumbnailurls"},"expiryDate":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expirydate"},"providerOfferId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Providerofferid"},"discountType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Discounttype"},"discountValue":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Discountvalue"},"maxDiscountAmount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Maxdiscountamount"},"isValid":{"type":"boolean","title":"Isvalid"},"isVisible":{"type":"boolean","title":"Isvisible"}},"type":"object","required":["id","title","code","couponType","thumbnailUrls","isValid","isVisible"],"title":"CouponResponseSchema"},"CouponType":{"type":"string","enum":["subscription","event_ticket","content"],"title":"CouponType","description":"Type of coupon."},"CouponValidationRequest":{"properties":{"coupon":{"type":"string","title":"Coupon"},"subscription":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subscription"},"period":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Period"}},"type":"object","required":["coupon"],"title":"CouponValidationRequest","description":"Coupon validation request."},"CouponValidationResponse":{"properties":{"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Createdat","description":"Timestamp when the record was created"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat","description":"Timestamp when the record was last updated"},"valid":{"type":"boolean","title":"Valid","default":true},"message":{"type":"string","title":"Message","default":"Coupon validated"},"discount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Discount"},"discountPercent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Discountpercent"},"providerOfferId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Providerofferid"},"couponCode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Couponcode"}},"type":"object","title":"CouponValidationResponse","description":"Coupon validation response."},"CurrencySchema":{"properties":{"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Createdat","description":"Timestamp when the record was created"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat","description":"Timestamp when the record was last updated"},"symbol":{"type":"string","title":"Symbol"},"abbrev":{"type":"string","title":"Abbrev"}},"type":"object","required":["symbol","abbrev"],"title":"CurrencySchema","description":"Currency display schema."},"ErrorDetailSchema":{"properties":{"error_code":{"type":"string","title":"Error Code","description":"Machine-readable error code (e.g., VALIDATION_ERROR, JWT_EXPIRED)"},"error_type":{"type":"string","title":"Error Type","description":"Exception class name or error category"},"details":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Details","description":"Additional error details (e.g., validation field errors)"}},"additionalProperties":false,"type":"object","required":["error_code","error_type"],"title":"ErrorDetailSchema","description":"Detailed error information for API responses."},"EventListResponse":{"properties":{"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Createdat","description":"Timestamp when the record was created"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat","description":"Timestamp when the record was last updated"},"events":{"items":{"$ref":"#/components/schemas/EventShortSchema"},"type":"array","title":"Events"},"total":{"type":"integer","title":"Total","default":0},"page":{"type":"integer","title":"Page","default":1},"perPage":{"type":"integer","title":"Perpage","default":10}},"type":"object","title":"EventListResponse","description":"Paginated event list response."},"EventShortSchema":{"properties":{"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Createdat"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat","description":"Timestamp when the record was last updated"},"id":{"type":"string","format":"uuid","title":"Id"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"eventType":{"type":"integer","title":"Eventtype"},"status":{"type":"integer","title":"Status"},"eventCost":{"type":"integer","title":"Eventcost"},"maxParticipants":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Maxparticipants"},"eventAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Eventat"},"eventDuration":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Eventduration"},"thumbnailUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnailurl"},"featuredPictureUrl":{"items":{"type":"string"},"type":"array","title":"Featuredpictureurl"},"totalBookmarks":{"type":"integer","title":"Totalbookmarks","default":0},"totalViews":{"type":"integer","title":"Totalviews","default":0},"leadArtists":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Leadartists"},"isBookmarked":{"type":"boolean","title":"Isbookmarked","default":false}},"type":"object","required":["id","title","eventType","status","eventCost"],"title":"EventShortSchema","description":"Minimal event information for lists and embeddings.\nUsed in home page, search results, etc."},"GResponse":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message","default":"Request processed successfully"},"status":{"type":"integer","title":"Status","default":200},"data":{"anyOf":[{},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorDetailSchema"},{"type":"null"}],"description":"Error details when success=False"}},"additionalProperties":false,"type":"object","title":"GResponse","description":"Generic API response wrapper."},"GResponse_AppleIAPValidationResponseSchema_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message","default":"Request processed successfully"},"status":{"type":"integer","title":"Status","default":200},"data":{"anyOf":[{"$ref":"#/components/schemas/AppleIAPValidationResponseSchema"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorDetailSchema"},{"type":"null"}],"description":"Error details when success=False"}},"additionalProperties":false,"type":"object","title":"GResponse[AppleIAPValidationResponseSchema]"},"GResponse_AppleProviderOwnershipLockResponseSchema_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message","default":"Request processed successfully"},"status":{"type":"integer","title":"Status","default":200},"data":{"anyOf":[{"$ref":"#/components/schemas/AppleProviderOwnershipLockResponseSchema"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorDetailSchema"},{"type":"null"}],"description":"Error details when success=False"}},"additionalProperties":false,"type":"object","title":"GResponse[AppleProviderOwnershipLockResponseSchema]"},"GResponse_CouponValidationResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message","default":"Request processed successfully"},"status":{"type":"integer","title":"Status","default":200},"data":{"anyOf":[{"$ref":"#/components/schemas/CouponValidationResponse"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorDetailSchema"},{"type":"null"}],"description":"Error details when success=False"}},"additionalProperties":false,"type":"object","title":"GResponse[CouponValidationResponse]"},"GResponse_EventListResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message","default":"Request processed successfully"},"status":{"type":"integer","title":"Status","default":200},"data":{"anyOf":[{"$ref":"#/components/schemas/EventListResponse"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorDetailSchema"},{"type":"null"}],"description":"Error details when success=False"}},"additionalProperties":false,"type":"object","title":"GResponse[EventListResponse]"},"GResponse_GoogleIAPValidationResponseSchema_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message","default":"Request processed successfully"},"status":{"type":"integer","title":"Status","default":200},"data":{"anyOf":[{"$ref":"#/components/schemas/GoogleIAPValidationResponseSchema"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorDetailSchema"},{"type":"null"}],"description":"Error details when success=False"}},"additionalProperties":false,"type":"object","title":"GResponse[GoogleIAPValidationResponseSchema]"},"GResponse_GoogleProviderOwnershipLockResponseSchema_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message","default":"Request processed successfully"},"status":{"type":"integer","title":"Status","default":200},"data":{"anyOf":[{"$ref":"#/components/schemas/GoogleProviderOwnershipLockResponseSchema"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorDetailSchema"},{"type":"null"}],"description":"Error details when success=False"}},"additionalProperties":false,"type":"object","title":"GResponse[GoogleProviderOwnershipLockResponseSchema]"},"GResponse_InvoiceResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message","default":"Request processed successfully"},"status":{"type":"integer","title":"Status","default":200},"data":{"anyOf":[{"$ref":"#/components/schemas/InvoiceResponse"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorDetailSchema"},{"type":"null"}],"description":"Error details when success=False"}},"additionalProperties":false,"type":"object","title":"GResponse[InvoiceResponse]"},"GResponse_List_CouponResponseSchema__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message","default":"Request processed successfully"},"status":{"type":"integer","title":"Status","default":200},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/CouponResponseSchema"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorDetailSchema"},{"type":"null"}],"description":"Error details when success=False"}},"additionalProperties":false,"type":"object","title":"GResponse[List[CouponResponseSchema]]"},"GResponse_PaginatedResponse_CouponResponseSchema__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message","default":"Request processed successfully"},"status":{"type":"integer","title":"Status","default":200},"data":{"anyOf":[{"$ref":"#/components/schemas/PaginatedResponse_CouponResponseSchema_"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorDetailSchema"},{"type":"null"}],"description":"Error details when success=False"}},"additionalProperties":false,"type":"object","title":"GResponse[PaginatedResponse[CouponResponseSchema]]"},"GResponse_PaginatedResponse_TransactionResponseSchema__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message","default":"Request processed successfully"},"status":{"type":"integer","title":"Status","default":200},"data":{"anyOf":[{"$ref":"#/components/schemas/PaginatedResponse_TransactionResponseSchema_"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorDetailSchema"},{"type":"null"}],"description":"Error details when success=False"}},"additionalProperties":false,"type":"object","title":"GResponse[PaginatedResponse[TransactionResponseSchema]]"},"GResponse_SubscriptionCancelResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message","default":"Request processed successfully"},"status":{"type":"integer","title":"Status","default":200},"data":{"anyOf":[{"$ref":"#/components/schemas/SubscriptionCancelResponse"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorDetailSchema"},{"type":"null"}],"description":"Error details when success=False"}},"additionalProperties":false,"type":"object","title":"GResponse[SubscriptionCancelResponse]"},"GResponse_SubscriptionPlanDetailResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message","default":"Request processed successfully"},"status":{"type":"integer","title":"Status","default":200},"data":{"anyOf":[{"$ref":"#/components/schemas/SubscriptionPlanDetailResponse"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorDetailSchema"},{"type":"null"}],"description":"Error details when success=False"}},"additionalProperties":false,"type":"object","title":"GResponse[SubscriptionPlanDetailResponse]"},"GResponse_SubscriptionPlanPageDetailsSchema_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message","default":"Request processed successfully"},"status":{"type":"integer","title":"Status","default":200},"data":{"anyOf":[{"$ref":"#/components/schemas/SubscriptionPlanPageDetailsSchema"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorDetailSchema"},{"type":"null"}],"description":"Error details when success=False"}},"additionalProperties":false,"type":"object","title":"GResponse[SubscriptionPlanPageDetailsSchema]"},"GResponse_SubscriptionPlanTextDetailsPageSchema_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message","default":"Request processed successfully"},"status":{"type":"integer","title":"Status","default":200},"data":{"anyOf":[{"$ref":"#/components/schemas/SubscriptionPlanTextDetailsPageSchema"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorDetailSchema"},{"type":"null"}],"description":"Error details when success=False"}},"additionalProperties":false,"type":"object","title":"GResponse[SubscriptionPlanTextDetailsPageSchema]"},"GResponse_SubscriptionPurchaseResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message","default":"Request processed successfully"},"status":{"type":"integer","title":"Status","default":200},"data":{"anyOf":[{"$ref":"#/components/schemas/SubscriptionPurchaseResponse"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorDetailSchema"},{"type":"null"}],"description":"Error details when success=False"}},"additionalProperties":false,"type":"object","title":"GResponse[SubscriptionPurchaseResponse]"},"GResponse_SubscriptionStatusSchema_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message","default":"Request processed successfully"},"status":{"type":"integer","title":"Status","default":200},"data":{"anyOf":[{"$ref":"#/components/schemas/SubscriptionStatusSchema"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorDetailSchema"},{"type":"null"}],"description":"Error details when success=False"}},"additionalProperties":false,"type":"object","title":"GResponse[SubscriptionStatusSchema]"},"GResponse_SubscriptionSummaryResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message","default":"Request processed successfully"},"status":{"type":"integer","title":"Status","default":200},"data":{"anyOf":[{"$ref":"#/components/schemas/SubscriptionSummaryResponse"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorDetailSchema"},{"type":"null"}],"description":"Error details when success=False"}},"additionalProperties":false,"type":"object","title":"GResponse[SubscriptionSummaryResponse]"},"GResponse_TransactionListResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message","default":"Request processed successfully"},"status":{"type":"integer","title":"Status","default":200},"data":{"anyOf":[{"$ref":"#/components/schemas/TransactionListResponse"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorDetailSchema"},{"type":"null"}],"description":"Error details when success=False"}},"additionalProperties":false,"type":"object","title":"GResponse[TransactionListResponse]"},"GResponse_TransactionResponseSchema_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message","default":"Request processed successfully"},"status":{"type":"integer","title":"Status","default":200},"data":{"anyOf":[{"$ref":"#/components/schemas/TransactionResponseSchema"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorDetailSchema"},{"type":"null"}],"description":"Error details when success=False"}},"additionalProperties":false,"type":"object","title":"GResponse[TransactionResponseSchema]"},"GResponse_TransactionStatusResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message","default":"Request processed successfully"},"status":{"type":"integer","title":"Status","default":200},"data":{"anyOf":[{"$ref":"#/components/schemas/TransactionStatusResponse"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorDetailSchema"},{"type":"null"}],"description":"Error details when success=False"}},"additionalProperties":false,"type":"object","title":"GResponse[TransactionStatusResponse]"},"GResponse_Union_UserSubscriptionResponseSchema__NoneType__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message","default":"Request processed successfully"},"status":{"type":"integer","title":"Status","default":200},"data":{"anyOf":[{"$ref":"#/components/schemas/UserSubscriptionResponseSchema"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorDetailSchema"},{"type":"null"}],"description":"Error details when success=False"}},"additionalProperties":false,"type":"object","title":"GResponse[Union[UserSubscriptionResponseSchema, NoneType]]"},"GdpZoneShortSchema":{"properties":{"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Createdat","description":"Timestamp when the record was created"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat","description":"Timestamp when the record was last updated"},"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"currency":{"type":"string","title":"Currency"},"symbol":{"type":"string","title":"Symbol"}},"type":"object","required":["id","name","currency","symbol"],"title":"GdpZoneShortSchema","description":"Short GDP zone schema."},"GoogleIAPValidationRequestSchema":{"properties":{"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Createdat","description":"Timestamp when the record was created"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat","description":"Timestamp when the record was last updated"},"purchaseToken":{"type":"string","title":"Purchasetoken","description":"Google Play purchase token from BillingClient"},"packageName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Packagename","description":"Optional Android package name override; defaults to server config"},"productId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Productid","description":"Expected Google Play product ID for consistency checks"}},"type":"object","required":["purchaseToken"],"title":"GoogleIAPValidationRequestSchema","description":"Request schema for Google Play subscription validation."},"GoogleIAPValidationResponseSchema":{"properties":{"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Createdat","description":"Timestamp when the record was created"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat","description":"Timestamp when the record was last updated"},"isValid":{"type":"boolean","title":"Isvalid","description":"Whether the purchase token is valid"},"subscriptionStatus":{"anyOf":[{"$ref":"#/components/schemas/UserSubscriptionStatusEnum"},{"type":"null"}],"description":"Subscription status as UserSubscriptionStatusEnum integer value"},"expiryDate":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expirydate","description":"Subscription expiry date (UTC)"},"productId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Productid","description":"Google Play product ID for the subscription"},"purchaseToken":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Purchasetoken","description":"Current Google Play purchase token"},"linkedPurchaseToken":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linkedpurchasetoken","description":"Previous purchase token during upgrade, downgrade, or resubscribe"},"orderId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Orderid","description":"Latest Google Play order id"},"packageName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Packagename","description":"Android package name used for validation"},"acknowledgementState":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Acknowledgementstate","description":"Google acknowledgement state"},"environment":{"$ref":"#/components/schemas/PG_ENVIRONMENT","description":"Google Play environment inferred from purchase type","default":"production"},"autoRenewing":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Autorenewing","description":"Whether the subscription is set to auto-renew"},"isTrial":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Istrial","description":"Whether the current line item is a trial phase"},"raw":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Raw","description":"Raw Google Play API response (optional, for debugging)"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error","description":"Error message if validation failed (for debugging)"}},"type":"object","required":["isValid"],"title":"GoogleIAPValidationResponseSchema","description":"Response schema for Google Play subscription validation."},"GoogleProviderOwnershipLockResponseSchema":{"properties":{"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Createdat","description":"Timestamp when the record was created"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat","description":"Timestamp when the record was last updated"},"purchaseToken":{"type":"string","title":"Purchasetoken","description":"Google Play purchase token from BillingClient"},"packageName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Packagename","description":"Optional Android package name override; defaults to server config"},"productId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Productid","description":"Expected Google Play product ID for consistency checks"},"hasActiveLock":{"type":"boolean","title":"Hasactivelock","description":"Whether there is an active ownership lock"},"canLink":{"type":"boolean","title":"Canlink","description":"Whether the subscription can be linked to this account"},"userId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Userid","description":"ID of the current user making the request"}},"type":"object","required":["purchaseToken","hasActiveLock","canLink"],"title":"GoogleProviderOwnershipLockResponseSchema","description":"Response schema for validating Google IAP subscription ownership lock."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"InvoiceParticularSchema":{"properties":{"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Createdat","description":"Timestamp when the record was created"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat","description":"Timestamp when the record was last updated"},"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Id"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"quantity":{"type":"integer","title":"Quantity","default":1},"price":{"type":"number","title":"Price","default":0.0},"contentId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Contentid"},"entityType":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Entitytype"},"productId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Productid"},"servicePeriod":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Serviceperiod"},"unitPrice":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Unitprice"},"tax":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Tax"},"unitTotalPrice":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Unittotalprice"},"hsnCode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hsncode"}},"additionalProperties":true,"type":"object","title":"InvoiceParticularSchema","description":"Invoice line item (Applies to invoice payloads)."},"InvoiceResponse":{"properties":{"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Createdat","description":"Timestamp when the record was created"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat","description":"Timestamp when the record was last updated"},"total":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total"},"currency":{"type":"string","title":"Currency"},"symbol":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Symbol"},"conversionRate":{"type":"number","title":"Conversionrate","default":1.0},"ratio":{"type":"number","title":"Ratio","default":1.0},"rzpInvoiceUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rzpinvoiceurl"},"originalInvoiceUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Originalinvoiceurl"},"particulars":{"items":{"$ref":"#/components/schemas/InvoiceParticularSchema"},"type":"array","title":"Particulars"},"charges":{"items":{"$ref":"#/components/schemas/TransactionChargeSchema"},"type":"array","title":"Charges"},"billingAddress":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Billingaddress"},"transactionDate":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Transactiondate"},"taxId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Taxid"},"taxType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Taxtype"}},"type":"object","required":["currency"],"title":"InvoiceResponse","description":"Invoice response schema."},"LeadArtistShortSchema":{"properties":{"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Createdat","description":"Timestamp when the record was created"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat","description":"Timestamp when the record was last updated"},"id":{"type":"string","format":"uuid","title":"Id"},"stageName":{"type":"string","title":"Stagename"},"firstName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Firstname"},"lastName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lastname"},"verifiedMember":{"type":"boolean","title":"Verifiedmember","default":false},"coreMember":{"type":"boolean","title":"Coremember","default":false},"profilePicture":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}],"title":"Profilepicture"}},"type":"object","required":["id","stageName"],"title":"LeadArtistShortSchema","description":"Minimal artist info for embedding in content responses.\nUsed across Content, Album, Playlist responses."},"OrderSummaryLineItem":{"properties":{"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Createdat","description":"Timestamp when the record was created"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat","description":"Timestamp when the record was last updated"},"label":{"type":"string","title":"Label"},"amount":{"type":"number","title":"Amount"}},"type":"object","required":["label","amount"],"title":"OrderSummaryLineItem","description":"Order summary line item."},"PG_ENVIRONMENT":{"type":"string","enum":["sandbox","production"],"title":"PG_ENVIRONMENT"},"PaginatedResponse_CouponResponseSchema_":{"properties":{"list":{"items":{"$ref":"#/components/schemas/CouponResponseSchema"},"type":"array","title":"List"},"meta":{"$ref":"#/components/schemas/PaginationMeta"}},"type":"object","required":["meta"],"title":"PaginatedResponse[CouponResponseSchema]"},"PaginatedResponse_TransactionResponseSchema_":{"properties":{"list":{"items":{"$ref":"#/components/schemas/TransactionResponseSchema"},"type":"array","title":"List"},"meta":{"$ref":"#/components/schemas/PaginationMeta"}},"type":"object","required":["meta"],"title":"PaginatedResponse[TransactionResponseSchema]"},"PaginationMeta":{"properties":{"total":{"type":"integer","title":"Total","default":0},"page":{"type":"integer","title":"Page","default":0},"per_page":{"type":"integer","title":"Per Page","default":0}},"type":"object","title":"PaginationMeta","description":"Pagination metadata for list responses."},"PaymentGatewayType":{"type":"integer","enum":[0,1,2,3,4],"title":"PaymentGatewayType"},"PaymentMethodType":{"type":"integer","enum":[1,2,3,4,5,6],"title":"PaymentMethodType"},"PricingSchema":{"properties":{"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Createdat","description":"Timestamp when the record was created"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat","description":"Timestamp when the record was last updated"},"total":{"type":"number","title":"Total"},"currency":{"type":"string","title":"Currency"},"paymentGateway":{"type":"integer","title":"Paymentgateway"},"zone":{"type":"string","title":"Zone"}},"type":"object","required":["total","currency","paymentGateway","zone"],"title":"PricingSchema","description":"Pricing summary."},"PurchaseSubscriptionRequest":{"properties":{"subscription":{"type":"string","format":"uuid","title":"Subscription","description":"Subscription plan ID"},"period":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Period","description":"Period ID (optional)"},"coupon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Coupon","description":"Coupon code (optional)"},"offer_rzp_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Offer Rzp Id"},"tax_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Tax Id","description":"User tax identification number (GST/VAT/EIN/etc.)"},"tax_type":{"anyOf":[{"$ref":"#/components/schemas/USER_TAX_TYPE"},{"type":"null"}],"description":"Type of tax ID (GST, VAT, EIN, etc.)"}},"type":"object","required":["subscription"],"title":"PurchaseSubscriptionRequest","description":"Purchase subscription request."},"SubscriptionCancelResponse":{"properties":{"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Createdat","description":"Timestamp when the record was created"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat","description":"Timestamp when the record was last updated"},"message":{"type":"string","title":"Message","default":"Subscription cancelled successfully"},"subscription":{"anyOf":[{"$ref":"#/components/schemas/UserSubscriptionResponseSchema"},{"type":"null"}]}},"type":"object","title":"SubscriptionCancelResponse","description":"Subscription cancel response."},"SubscriptionPeriodResponse":{"properties":{"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Createdat"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat"},"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"interval":{"type":"integer","title":"Interval"},"period":{"type":"string","title":"Period"},"isEnabled":{"type":"boolean","title":"Isenabled"}},"type":"object","required":["id","name","interval","period","isEnabled"],"title":"SubscriptionPeriodResponse","description":"Subscription period response."},"SubscriptionPlanDetailResponse":{"properties":{"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Createdat"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat","description":"Timestamp when the record was last updated"},"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"notes":{"items":{"type":"string"},"type":"array","title":"Notes"},"isVisible":{"type":"boolean","title":"Isvisible","default":true},"isEnabled":{"type":"boolean","title":"Isenabled","default":true},"isFree":{"type":"boolean","title":"Isfree","default":false},"isPopular":{"type":"boolean","title":"Ispopular","default":false},"position":{"type":"integer","title":"Position","default":0},"config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Config"},"gdpZone":{"anyOf":[{"$ref":"#/components/schemas/SubscriptionPlanGdpZoneDetailSchema"},{"type":"null"}]},"appleProductId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Appleproductid"},"googleProductId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Googleproductid"}},"type":"object","required":["id","name"],"title":"SubscriptionPlanDetailResponse","description":"Detailed subscription plan with GDP zone pricing."},"SubscriptionPlanGdpZoneDetailSchema":{"properties":{"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Createdat","description":"Timestamp when the record was created"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat","description":"Timestamp when the record was last updated"},"zone":{"anyOf":[{"$ref":"#/components/schemas/GdpZoneShortSchema"},{"type":"null"}]},"isEnabled":{"type":"boolean","title":"Isenabled","default":true},"periods":{"items":{"$ref":"#/components/schemas/SubscriptionPlanPeriodDetailSchema"},"type":"array","title":"Periods"}},"type":"object","title":"SubscriptionPlanGdpZoneDetailSchema","description":"GDP zone with pricing details."},"SubscriptionPlanIconTextSchema":{"properties":{"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Createdat","description":"Timestamp when the record was created"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat","description":"Timestamp when the record was last updated"},"text":{"type":"string","title":"Text"},"icon":{"type":"string","title":"Icon"}},"type":"object","required":["text","icon"],"title":"SubscriptionPlanIconTextSchema","description":"Schema for icon + text item."},"SubscriptionPlanPageDetailsSchema":{"properties":{"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Createdat","description":"Timestamp when the record was created"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat","description":"Timestamp when the record was last updated"},"plans":{"items":{"$ref":"#/components/schemas/SubscriptionPlanDetailResponse"},"type":"array","title":"Plans"},"pageDetails":{"$ref":"#/components/schemas/SubscriptionPlanTextDetailsPageSchema"}},"type":"object","required":["pageDetails"],"title":"SubscriptionPlanPageDetailsSchema","description":"Subscription plan details for subscription plan page."},"SubscriptionPlanPeriodDetailSchema":{"properties":{"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Createdat","description":"Timestamp when the record was created"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat","description":"Timestamp when the record was last updated"},"period":{"$ref":"#/components/schemas/SubscriptionPeriodResponse"},"amount":{"type":"number","title":"Amount"},"discount":{"type":"number","title":"Discount","default":0.0},"gatewayPlan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gatewayplan"},"isRecurring":{"type":"boolean","title":"Isrecurring","default":false},"purchaseType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Purchasetype"},"durationText":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Durationtext"},"durationSeconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Durationseconds"}},"type":"object","required":["period","amount"],"title":"SubscriptionPlanPeriodDetailSchema","description":"Detailed period with pricing."},"SubscriptionPlanPeriodEnum":{"type":"string","enum":["hourly","daily","weekly","monthly","yearly"],"title":"SubscriptionPlanPeriodEnum"},"SubscriptionPlanResponseSchema":{"properties":{"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Createdat"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat"},"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"notes":{"items":{"type":"string"},"type":"array","title":"Notes"},"isVisible":{"type":"boolean","title":"Isvisible","default":true},"isEnabled":{"type":"boolean","title":"Isenabled","default":true},"isFree":{"type":"boolean","title":"Isfree","default":false},"position":{"type":"integer","title":"Position","default":0},"paymentGateway":{"type":"integer","title":"Paymentgateway","default":1},"config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Config"},"couponOnly":{"type":"boolean","title":"Coupononly","default":false},"artistPlan":{"type":"boolean","title":"Artistplan","default":false},"gdpZones":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Gdpzones"}},"type":"object","required":["id","name"],"title":"SubscriptionPlanResponseSchema","description":"Subscription plan response."},"SubscriptionPlanShortSchema":{"properties":{"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Createdat","description":"Timestamp when the record was created"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat","description":"Timestamp when the record was last updated"},"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"notes":{"anyOf":[{},{"type":"null"}],"title":"Notes"},"isVisible":{"type":"boolean","title":"Isvisible","default":true},"isEnabled":{"type":"boolean","title":"Isenabled","default":true},"isFree":{"type":"boolean","title":"Isfree","default":false}},"type":"object","required":["id","name"],"title":"SubscriptionPlanShortSchema","description":"Short subscription plan schema for embedding."},"SubscriptionPlanTextAdditionalLinkSchema":{"properties":{"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Createdat","description":"Timestamp when the record was created"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat","description":"Timestamp when the record was last updated"},"text":{"type":"string","title":"Text"},"url":{"type":"string","title":"Url"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"}},"type":"object","required":["text","url"],"title":"SubscriptionPlanTextAdditionalLinkSchema","description":"Schema for additional links in subscription plan text details."},"SubscriptionPlanTextBoxSchema":{"properties":{"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Createdat","description":"Timestamp when the record was created"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat","description":"Timestamp when the record was last updated"},"heading":{"type":"string","title":"Heading"},"items":{"items":{"$ref":"#/components/schemas/SubscriptionPlanIconTextSchema"},"type":"array","title":"Items"}},"type":"object","required":["heading"],"title":"SubscriptionPlanTextBoxSchema","description":"Schema for text box section."},"SubscriptionPlanTextDescrptionSchema":{"properties":{"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Createdat","description":"Timestamp when the record was created"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat","description":"Timestamp when the record was last updated"},"short":{"type":"string","maxLength":200,"title":"Short","description":"Short description text"},"long":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Long","description":"Long description text"}},"type":"object","required":["short"],"title":"SubscriptionPlanTextDescrptionSchema","description":"Schema for description section in subscription plan text details."},"SubscriptionPlanTextDetailsPageSchema":{"properties":{"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Createdat","description":"Timestamp when the record was created"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat","description":"Timestamp when the record was last updated"},"heading":{"$ref":"#/components/schemas/SubscriptionPlanIconTextSchema"},"subHeading":{"$ref":"#/components/schemas/SubscriptionPlanIconTextSchema"},"textBoxes":{"items":{"$ref":"#/components/schemas/SubscriptionPlanTextBoxSchema"},"type":"array","title":"Textboxes"},"terms":{"$ref":"#/components/schemas/SubscriptionPlanTextTermsSchema"},"description":{"$ref":"#/components/schemas/SubscriptionPlanTextDescrptionSchema"},"additionalLinks":{"items":{"$ref":"#/components/schemas/SubscriptionPlanTextAdditionalLinkSchema"},"type":"array","title":"Additionallinks"}},"type":"object","required":["heading","subHeading","textBoxes","terms","description","additionalLinks"],"title":"SubscriptionPlanTextDetailsPageSchema","description":"Subscription plan details for text details page."},"SubscriptionPlanTextTermsAndroidSchema":{"properties":{"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Createdat","description":"Timestamp when the record was created"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat","description":"Timestamp when the record was last updated"},"title":{"type":"string","title":"Title","description":"Title for Android-specific terms","default":"android"},"short":{"type":"string","maxLength":200,"title":"Short","description":"Short Android-specific terms text"},"long":{"items":{"type":"string"},"type":"array","title":"Long","description":"List of long Android-specific terms"}},"type":"object","required":["short"],"title":"SubscriptionPlanTextTermsAndroidSchema"},"SubscriptionPlanTextTermsIosSchema":{"properties":{"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Createdat","description":"Timestamp when the record was created"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat","description":"Timestamp when the record was last updated"},"title":{"type":"string","title":"Title","description":"Title for iOS-specific terms","default":"ios"},"short":{"type":"string","maxLength":200,"title":"Short","description":"Short iOS-specific terms text"},"long":{"items":{"type":"string"},"type":"array","title":"Long","description":"List of long iOS-specific terms"}},"type":"object","required":["short"],"title":"SubscriptionPlanTextTermsIosSchema"},"SubscriptionPlanTextTermsSchema":{"properties":{"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Createdat","description":"Timestamp when the record was created"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat","description":"Timestamp when the record was last updated"},"android":{"$ref":"#/components/schemas/SubscriptionPlanTextTermsAndroidSchema"},"ios":{"$ref":"#/components/schemas/SubscriptionPlanTextTermsIosSchema"}},"type":"object","required":["android","ios"],"title":"SubscriptionPlanTextTermsSchema","description":"Schema for terms in subscription plan text details."},"SubscriptionPurchaseResponse":{"properties":{"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Createdat","description":"Timestamp when the record was created"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat","description":"Timestamp when the record was last updated"},"user":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"User"},"subscription":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Subscription"},"subscriptionId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subscriptionid"},"orderId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Orderid"},"paymentType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Paymenttype"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"},"verificationMode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Verificationmode"},"localSubscriptionId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Localsubscriptionid"},"gatewayDetails":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Gatewaydetails"},"checkout":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Checkout"},"razorpay":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Razorpay"}},"type":"object","title":"SubscriptionPurchaseResponse","description":"Subscription purchase response."},"SubscriptionStatusSchema":{"properties":{"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Createdat","description":"Timestamp when the record was created"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat","description":"Timestamp when the record was last updated"},"plan":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Plan"},"status":{"anyOf":[{"$ref":"#/components/schemas/UserSubscriptionStatusEnum"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expiresat"},"autoRenew":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Autorenew","default":false}},"type":"object","title":"SubscriptionStatusSchema"},"SubscriptionSummaryResponse":{"properties":{"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Createdat","description":"Timestamp when the record was created"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat","description":"Timestamp when the record was last updated"},"summary":{"items":{"$ref":"#/components/schemas/OrderSummaryLineItem"},"type":"array","title":"Summary"},"quantity":{"type":"integer","title":"Quantity","default":1},"currency":{"$ref":"#/components/schemas/CurrencySchema"},"subscriptionPlan":{"anyOf":[{"$ref":"#/components/schemas/SubscriptionPlanShortSchema"},{"type":"null"}]},"total":{"type":"number","title":"Total","default":0.0},"pricing":{"$ref":"#/components/schemas/PricingSchema"},"coupon":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Coupon"},"notes":{"anyOf":[{},{"type":"null"}],"title":"Notes"},"purchaseType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Purchasetype"},"durationText":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Durationtext"},"durationSeconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Durationseconds"}},"type":"object","required":["currency","pricing"],"title":"SubscriptionSummaryResponse","description":"Subscription purchase summary response."},"SubscriptionTypeEnum":{"type":"integer","enum":[1,2],"title":"SubscriptionTypeEnum"},"TransactionChargeSchema":{"properties":{"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Createdat","description":"Timestamp when the record was created"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat","description":"Timestamp when the record was last updated"},"label":{"type":"string","title":"Label"},"amount":{"type":"number","title":"Amount"},"divisor":{"type":"number","title":"Divisor","default":100.0},"amountMajor":{"type":"number","title":"Amountmajor","description":"Amount in major currency units (e.g. dollars instead of cents).","readOnly":true}},"type":"object","required":["label","amount","amountMajor"],"title":"TransactionChargeSchema","description":"Transaction charge line item."},"TransactionListResponse":{"properties":{"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Createdat","description":"Timestamp when the record was created"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat","description":"Timestamp when the record was last updated"},"transactions":{"items":{"$ref":"#/components/schemas/TransactionResponseSchema"},"type":"array","title":"Transactions"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"TransactionListResponse","description":"Paginated transaction list."},"TransactionParticularSchema":{"properties":{"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Createdat","description":"Timestamp when the record was created"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat","description":"Timestamp when the record was last updated"},"id":{"type":"string","format":"uuid","title":"Id"},"description":{"type":"string","title":"Description"},"quantity":{"type":"integer","title":"Quantity","default":1},"price":{"type":"number","title":"Price","default":0.0},"contentId":{"type":"string","format":"uuid","title":"Contentid"},"entityType":{"type":"integer","title":"Entitytype"},"divisor":{"type":"number","title":"Divisor","default":100.0},"servicePeriod":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Serviceperiod"},"totalPrice":{"type":"number","title":"Totalprice","description":"Calculate total price for this particular (quantity * price).","readOnly":true},"totalPriceMajor":{"type":"number","title":"Totalpricemajor","description":"Total price in major currency units (e.g. dollars instead of cents).","readOnly":true},"priceMajor":{"type":"number","title":"Pricemajor","description":"Price in major currency units (e.g. dollars instead of cents).","readOnly":true}},"type":"object","required":["id","description","contentId","entityType","totalPrice","totalPriceMajor","priceMajor"],"title":"TransactionParticularSchema","description":"Transaction particular (line item)."},"TransactionPaymentSchema":{"properties":{"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Createdat","description":"Timestamp when the record was created"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat","description":"Timestamp when the record was last updated"},"gatewayPaymentId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gatewaypaymentid"},"gatewayOrderId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gatewayorderid"},"gatewaySubscriptionId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gatewaysubscriptionid"},"gatewayRefundId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gatewayrefundid"},"paymentGateway":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Paymentgateway"},"paymentMethod":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"null"}],"title":"Paymentmethod"},"details":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Details"}},"type":"object","title":"TransactionPaymentSchema","description":"Transaction payment details (safe for API)."},"TransactionPricingSchema":{"properties":{"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Createdat","description":"Timestamp when the record was created"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat","description":"Timestamp when the record was last updated"},"total":{"type":"number","title":"Total","default":0.0},"baseAmount":{"type":"number","title":"Baseamount","default":0.0},"discount":{"type":"number","title":"Discount","default":0.0},"currency":{"type":"string","title":"Currency","default":"USD"},"divisor":{"type":"number","title":"Divisor","default":100.0},"summary":{"items":{"$ref":"#/components/schemas/TransactionChargeSchema"},"type":"array","title":"Summary"},"baseAmountMajor":{"type":"number","title":"Baseamountmajor","description":"Base amount in major currency units (e.g. dollars instead of cents).","readOnly":true},"totalMajor":{"type":"number","title":"Totalmajor","description":"Total amount in major currency units (e.g. dollars instead of cents).","readOnly":true},"discountMajor":{"type":"number","title":"Discountmajor","description":"Discount amount in major currency units (e.g. dollars instead of cents).","readOnly":true}},"type":"object","required":["baseAmountMajor","totalMajor","discountMajor"],"title":"TransactionPricingSchema","description":"Transaction pricing details."},"TransactionResponseSchema":{"properties":{"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Createdat","description":"Timestamp when the record was created"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat","description":"Timestamp when the record was last updated"},"id":{"type":"string","format":"uuid","title":"Id"},"user":{"type":"string","format":"uuid","title":"User"},"total":{"type":"number","title":"Total"},"discount":{"type":"number","title":"Discount","default":0.0},"divisor":{"type":"number","title":"Divisor","default":100.0},"status":{"type":"integer","title":"Status"},"paymentMethodDetails":{"anyOf":[{"$ref":"#/components/schemas/TransactionPaymentSchema"},{"type":"null"}]},"transactionType":{"type":"integer","title":"Transactiontype"},"particulars":{"items":{"$ref":"#/components/schemas/TransactionParticularSchema"},"type":"array","title":"Particulars"},"pricing":{"anyOf":[{"$ref":"#/components/schemas/TransactionPricingSchema"},{"type":"null"}]},"symbol":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Symbol"},"invoiceUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invoiceurl"},"invoiceData":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Invoicedata"},"totalMajor":{"type":"number","title":"Totalmajor","description":"Total amount in major currency units (e.g. dollars instead of cents).","readOnly":true},"discountMajor":{"type":"number","title":"Discountmajor","description":"Discount amount in major currency units (e.g. dollars instead of cents).","readOnly":true}},"type":"object","required":["id","user","total","status","transactionType","totalMajor","discountMajor"],"title":"TransactionResponseSchema","description":"Full transaction response."},"TransactionStatusResponse":{"properties":{"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Createdat"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat","description":"Timestamp when the record was last updated"},"id":{"type":"string","format":"uuid","title":"Id"},"status":{"type":"integer","title":"Status"},"statusName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Statusname"},"transactionType":{"type":"integer","title":"Transactiontype"},"total":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total"},"currency":{"type":"string","title":"Currency"}},"type":"object","required":["id","status","transactionType","currency"],"title":"TransactionStatusResponse"},"USER_TAX_TYPE":{"type":"string","enum":["GST","VAT","EIN","OTHER"],"title":"USER_TAX_TYPE"},"UserSubscriptionResponseSchema":{"properties":{"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Createdat","description":"Timestamp when the record was created"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat","description":"Timestamp when the record was last updated"},"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string"}],"title":"Id"},"user":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string"}],"title":"User"},"status":{"$ref":"#/components/schemas/UserSubscriptionStatusEnum"},"paymentGatewayType":{"$ref":"#/components/schemas/PaymentGatewayType","description":"Payment gateway type","default":1},"paymentMethod":{"anyOf":[{"$ref":"#/components/schemas/PaymentMethodType"},{"type":"null"}]},"subscribedOn":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Subscribedon"},"subscriptionDue":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Subscriptiondue"},"cancelledOn":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Cancelledon"},"processed":{"type":"boolean","title":"Processed","default":false},"frequency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Frequency"},"currencySymbol":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currencysymbol"},"currentPaymentAmount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Currentpaymentamount"},"nextPaymentAmount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Nextpaymentamount"},"subscriptionPlan":{"anyOf":[{"$ref":"#/components/schemas/SubscriptionPlanResponseSchema"},{"type":"null"}]},"gatewayDetails":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Gatewaydetails"},"methodDetails":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Methoddetails"},"taxId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Taxid"},"taxType":{"anyOf":[{"$ref":"#/components/schemas/USER_TAX_TYPE"},{"type":"null"}]},"paymentGatewayTypeText":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Paymentgatewaytypetext","description":"Get human-readable payment gateway type.","readOnly":true},"paymentMethodText":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Paymentmethodtext","description":"Get human-readable payment method type.","readOnly":true},"statusText":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Statustext","description":"Get human-readable subscription status.","readOnly":true},"isActive":{"type":"boolean","title":"Isactive","description":"Check if subscription is currently active.","readOnly":true},"totalActiveDuration":{"type":"integer","title":"Totalactiveduration","description":"Calculate total active duration if subscribedOn and subscriptionDue are available.","readOnly":true},"timeUntilDue":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Timeuntildue","description":"Calculate time until subscription is due if subscriptionDue is available.","readOnly":true},"nextPaymentDate":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Nextpaymentdate","description":"Return the next scheduled billing date for recurring subscriptions only.","readOnly":true},"isExpired":{"type":"boolean","title":"Isexpired","description":"Check if subscription is expired based on subscriptionDue.","readOnly":true},"subscriptionType":{"$ref":"#/components/schemas/SubscriptionTypeEnum","description":"Derive whether this is a one-time or recurring subscription.\n\nRules:\n- OneTime: Razorpay-powered purchase where the period is hourly or daily\n  (detected via gatewayDetails.paymentType==\"one_time\" OR\n  gatewayDetails.period.period in {hourly, daily} OR\n  frequency in {hourly, daily} with Razorpay as the gateway).\n- Recurring: everything else (Razorpay monthly/weekly/yearly plans,\n  Apple IAP, Google IAP, Free, etc.).","readOnly":true},"subscriptionTypeText":{"type":"string","title":"Subscriptiontypetext","description":"Get human-readable subscription type.","readOnly":true},"availableSubscriptionTypes":{"items":{"$ref":"#/components/schemas/SubscriptionTypeEnum"},"type":"array","title":"Availablesubscriptiontypes","description":"List of available subscription types.","readOnly":true}},"type":"object","required":["id","user","status","paymentGatewayTypeText","paymentMethodText","statusText","isActive","totalActiveDuration","timeUntilDue","nextPaymentDate","isExpired","subscriptionType","subscriptionTypeText","availableSubscriptionTypes"],"title":"UserSubscriptionResponseSchema","description":"Full user subscription response."},"UserSubscriptionStatusEnum":{"type":"integer","enum":[1,2,3,4,5,6,7,8,9,10,11],"title":"UserSubscriptionStatusEnum"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"apps__billing__apis__payments_api__PaymentVerificationRequest":{"properties":{"razorpay_payment_id":{"type":"string","title":"Razorpay Payment Id"},"razorpay_signature":{"type":"string","title":"Razorpay Signature"},"razorpay_order_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Razorpay Order Id"},"razorpay_subscription_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Razorpay Subscription Id"}},"type":"object","required":["razorpay_payment_id","razorpay_signature"],"title":"PaymentVerificationRequest","description":"Request schema for payment signature verification."},"g__schemas__billing__subscription_schemas__PaymentVerificationRequest":{"properties":{"razorpay_payment_id":{"type":"string","title":"Razorpay Payment Id"},"razorpay_signature":{"type":"string","title":"Razorpay Signature"},"razorpay_order_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Razorpay Order Id"},"razorpay_subscription_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Razorpay Subscription Id"}},"type":"object","required":["razorpay_payment_id","razorpay_signature"],"title":"PaymentVerificationRequest","description":"Payment verification request (order-based)."}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}},"servers":[{"url":"/v1/billing"}]}