{"openapi":"3.1.0","info":{"title":"Reverse Gateway","version":"1.0.0"},"paths":{"/pay":{"post":{"summary":"Pay","operationId":"pay_pay_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payout":{"post":{"summary":"Pay","operationId":"pay_payout_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayoutRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/refund":{"post":{"summary":"Pay","operationId":"pay_refund_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefundRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/status":{"post":{"summary":"Status","operationId":"status_status_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayStatus"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/callback":{"post":{"summary":"Callback","operationId":"callback_callback_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayCallback"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"CardInfo":{"properties":{"pan":{"type":"string","title":"Pan"},"expires":{"type":"string","title":"Expires"}},"type":"object","required":["pan","expires"],"title":"CardInfo"},"CustomerInfo":{"properties":{"email":{"type":"string","title":"Email"},"ip":{"type":"string","title":"Ip"}},"type":"object","required":["email","ip"],"title":"CustomerInfo"},"CustomerParams":{"properties":{"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ip"}},"type":"object","title":"CustomerParams"},"GatewayCallback":{"properties":{"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"object":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Object"},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Createdat"},"status":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Status"},"error":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Error"}},"additionalProperties":true,"type":"object","title":"GatewayCallback"},"GatewayStatus":{"properties":{"settings":{"$ref":"#/components/schemas/schemas__status__SettingsInfo"},"refund":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Refund"},"payment":{"$ref":"#/components/schemas/StatusParams"},"method_name":{"type":"string","title":"Method Name"}},"type":"object","required":["settings","payment","method_name"],"title":"GatewayStatus"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"PaymentRequest":{"properties":{"processing_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Processing Url"},"charge_page_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Charge Page Url"},"params":{"anyOf":[{"$ref":"#/components/schemas/schemas__payment__InnerParams"},{"type":"null"}]},"payment":{"$ref":"#/components/schemas/schemas__payment__PaymentInfo"},"settings":{"$ref":"#/components/schemas/schemas__payment__SettingsInfo"},"method_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Method Name"}},"type":"object","required":["processing_url","charge_page_url","params","payment","settings","method_name"],"title":"PaymentRequest"},"PayoutRequest":{"properties":{"params":{"$ref":"#/components/schemas/schemas__payout__InnerParams"},"payment":{"$ref":"#/components/schemas/schemas__payout__PaymentInfo"},"settings":{"$ref":"#/components/schemas/schemas__payout__SettingsInfo"},"callback_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Callback Url"},"method_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Method Name"}},"type":"object","required":["params","payment","settings","callback_url","method_name"],"title":"PayoutRequest"},"RefundRequest":{"properties":{"refund":{"$ref":"#/components/schemas/schemas__refund__InnerParams"},"payment":{"$ref":"#/components/schemas/schemas__refund__PaymentInfo"},"settings":{"$ref":"#/components/schemas/schemas__refund__SettingsInfo"},"method_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Method Name"}},"type":"object","required":["refund","payment","settings","method_name"],"title":"RefundRequest"},"StatusParams":{"properties":{"gateway_token":{"type":"string","title":"Gateway Token"},"operation_type":{"type":"string","title":"Operation Type"}},"type":"object","required":["gateway_token","operation_type"],"title":"StatusParams"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"schemas__payment__InnerParams":{"properties":{"pan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pan"},"expires":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expires"},"holder":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Holder"},"cvv":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cvv"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ip"},"customer":{"anyOf":[{"$ref":"#/components/schemas/CustomerParams"},{"type":"null"}]}},"type":"object","title":"InnerParams"},"schemas__payment__PaymentInfo":{"properties":{"token":{"type":"string","title":"Token"},"gateway_amount":{"type":"integer","title":"Gateway Amount"},"gateway_currency":{"type":"string","title":"Gateway Currency"},"product":{"type":"string","title":"Product"},"merchant_private_key":{"type":"string","title":"Merchant Private Key"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ip"},"order_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Order Number"},"extra_return_param":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Extra Return Param"}},"type":"object","required":["token","gateway_amount","gateway_currency","product","merchant_private_key","extra_return_param"],"title":"PaymentInfo"},"schemas__payment__SettingsInfo":{"properties":{"api_key":{"type":"string","title":"Api Key"},"method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Method"},"wrapped_to_json_response":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Wrapped To Json Response","default":true}},"type":"object","required":["api_key"],"title":"SettingsInfo"},"schemas__payout__InnerParams":{"properties":{"card":{"$ref":"#/components/schemas/CardInfo"},"customer":{"$ref":"#/components/schemas/CustomerInfo"},"extra_return_param":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Extra Return Param"},"order_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Order Number"}},"type":"object","required":["card","customer"],"title":"InnerParams"},"schemas__payout__PaymentInfo":{"properties":{"token":{"type":"string","title":"Token"},"gateway_amount":{"type":"integer","title":"Gateway Amount"},"gateway_currency":{"type":"string","title":"Gateway Currency"},"merchant_private_key":{"type":"string","title":"Merchant Private Key"}},"type":"object","required":["token","gateway_amount","gateway_currency","merchant_private_key"],"title":"PaymentInfo"},"schemas__payout__SettingsInfo":{"properties":{"api_key":{"type":"string","title":"Api Key"}},"type":"object","required":["api_key"],"title":"SettingsInfo"},"schemas__refund__InnerParams":{"properties":{"gateway_amount":{"type":"integer","title":"Gateway Amount"},"gateway_currency":{"type":"string","title":"Gateway Currency"},"merchant_private_key":{"type":"string","title":"Merchant Private Key"},"token":{"type":"string","title":"Token"}},"type":"object","required":["gateway_amount","gateway_currency","merchant_private_key","token"],"title":"InnerParams"},"schemas__refund__PaymentInfo":{"properties":{"amount":{"type":"integer","title":"Amount"},"token":{"type":"string","title":"Token"},"gateway_token":{"type":"string","title":"Gateway Token"},"gateway_currency":{"type":"string","title":"Gateway Currency"},"merchant_private_key":{"type":"string","title":"Merchant Private Key"}},"type":"object","required":["amount","token","gateway_token","gateway_currency","merchant_private_key"],"title":"PaymentInfo"},"schemas__refund__SettingsInfo":{"properties":{"api_key":{"type":"string","title":"Api Key"}},"type":"object","required":["api_key"],"title":"SettingsInfo"},"schemas__status__SettingsInfo":{"properties":{"api_key":{"type":"string","title":"Api Key"}},"type":"object","required":["api_key"],"title":"SettingsInfo"}}}}