diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..7fe70d7 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.json filter=lfs diff=lfs merge=lfs -text diff --git a/node-sdk/openapi-generator-config.json b/node-sdk/openapi-generator-config.json index 986e824..45db04c 100644 --- a/node-sdk/openapi-generator-config.json +++ b/node-sdk/openapi-generator-config.json @@ -1,5 +1,3 @@ -{ - "modelPropertyNaming": "snake_case", - "removeOperationIdPrefix": true, - "useObjectParameters": true -} +version https://git-lfs.github.com/spec/v1 +oid sha256:3d91e4e8b5c27210a7ae757de23a82e75aefa0bbf56e7b8ee0a585276a7bbcb8 +size 108 diff --git a/node-sdk/package.json b/node-sdk/package.json index 5ad12dc..f74c817 100644 --- a/node-sdk/package.json +++ b/node-sdk/package.json @@ -1,30 +1,3 @@ -{ - "name": "@plutohq/pluto-node", - "version": "1.5.5", - "type": "commonjs", - "keywords": [], - "license": "MIT", - "main": "./dist/index.js", - "typings": "./dist/index.d.ts", - "files": [ - "dist/**/*" - ], - "scripts": { - "build": "tsc", - "format": "prettier . --write" - }, - "dependencies": { - "axios": "^0.27.2", - "es6-promise": "^4.2.4", - "isomorphic-unfetch": "^3.1.0", - "url-parse": "^1.5.10", - "whatwg-fetch": "^3.6.2" - }, - "devDependencies": { - "@types/node": "^17.0.25", - "@types/node-fetch": "^2.6.1", - "@types/url-parse": "^1.4.8", - "prettier": "^2.2.1", - "typescript": "^3.9.3" - } -} +version https://git-lfs.github.com/spec/v1 +oid sha256:f974c04624a7db1731c4df037b6f41c04aad7ea5760989399cc69f1b5262296e +size 642 diff --git a/node-sdk/tsconfig.json b/node-sdk/tsconfig.json index 4206a4c..6f6bdb6 100644 --- a/node-sdk/tsconfig.json +++ b/node-sdk/tsconfig.json @@ -1,25 +1,3 @@ -{ - "compilerOptions": { - "strict": true, - /* Basic Options */ - "target": "es6", - "module": "CommonJS", - "moduleResolution": "node", - "declaration": true, - "allowJs": true, - - /* Additional Checks */ - "noUnusedLocals": false /* Report errors on unused locals. */, // TODO: reenable (unused imports!) - "noUnusedParameters": false /* Report errors on unused parameters. */, // TODO: set to true again - "noImplicitReturns": true /* Report error when not all code paths in function return a value. */, - "noFallthroughCasesInSwitch": true /* Report errors for fallthrough cases in switch statement. */, - - "removeComments": true, - "sourceMap": true, - "outDir": "./dist", - "noLib": false, - "lib": ["es6", "dom"] - }, - "exclude": ["dist", "/node_modules", "jest.config.js", "src/**/*.test.ts"], - "filesGlob": ["./src/**/*.ts"] -} +version https://git-lfs.github.com/spec/v1 +oid sha256:fe3bd1ee1d5fe80cf604bbba6107d5130d4b247d4475eeff4a0616d291a78dde +size 873 diff --git a/openapi/Pluto.json b/openapi/Pluto.json new file mode 100644 index 0000000..1d0dd80 --- /dev/null +++ b/openapi/Pluto.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9100981b830b3477960cd5ba440e72d9adc07fb6be8c4054079be9e8f47d2761 +size 163599550 diff --git a/openapi/spec.json b/openapi/spec.json index 95543b6..5c7573d 100644 --- a/openapi/spec.json +++ b/openapi/spec.json @@ -1,4632 +1,3 @@ -{ - "components": { - "parameters": { - "Pluto-Account": { - "description": "The ID of the connected Pluto account you are making a request on behalf on.", - "in": "header", - "name": "Pluto-Account", - "schema": { - "type": "string" - } - }, - "expand": { - "description": "Specifies which fields to populate in the response.", - "in": "query", - "name": "expand", - "required": false, - "schema": { - "type": "string" - } - }, - "limit": { - "description": "A limit on the number of objects to be returned between 1 and 100.", - "in": "query", - "name": "limit", - "required": false, - "schema": { - "type": "number" - } - }, - "page": { - "description": "Index of the page to be returned in a paginated response.", - "in": "query", - "name": "page", - "required": false, - "schema": { - "type": "number" - } - }, - "sort": { - "description": "Specifies whether documents are sorted in an ascending or descending order.", - "in": "query", - "name": "sort", - "required": false, - "schema": {} - } - }, - "responses": { - "400": { - "content": { - "application/json": { - "schema": { - "properties": { - "error": { - "properties": { - "message": { - "type": "string" - }, - "param": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "type": "object" - } - }, - "type": "object" - } - } - }, - "description": "Bad Request" - }, - "401": { - "description": "Unauthorized" - }, - "404": { - "description": "Not Found" - } - }, - "schemas": { - "Account": { - "allOf": [ - { - "$ref": "#/components/schemas/Model" - }, - { - "properties": { - "application_fee_percent": { - "default": 1, - "type": "number" - }, - "business_profile": { - "properties": { - "name": { - "type": "string" - }, - "product_description": { - "type": "string" - }, - "support_address": { - "$ref": "#/components/schemas/Address" - }, - "support_email": { - "type": "string" - }, - "support_phone": { - "type": "string" - }, - "support_url": { - "type": "string" - }, - "url": { - "type": "string" - } - }, - "required": ["name"], - "type": "object" - }, - "connected_accounts": { - "items": { - "type": "string" - }, - "type": "array" - }, - "integrations": { - "properties": { - "ftx": { - "properties": { - "nickname": { - "type": "string" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "parent_account": { - "oneOf": [ - { - "type": "string" - }, - { - "$ref": "#/components/schemas/Account" - } - ] - }, - "payout_wallets": { - "items": { - "$ref": "#/components/schemas/PayoutWallet" - }, - "type": "array" - }, - "platform_account": { - "default": false, - "type": "boolean" - }, - "settings": { - "properties": { - "billing": { - "properties": { - "retry_period_days": { - "default": 14, - "type": "number" - } - }, - "type": "object" - }, - "branding": { - "properties": { - "logo": { - "type": "string" - } - }, - "type": "object" - }, - "payments": { - "properties": { - "invoice_prefix": { - "type": "string" - }, - "invoice_reminder_frequency": { - "default": 3, - "type": "number" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "team": { - "items": { - "properties": { - "owner": { - "type": "boolean" - }, - "user": { - "type": "string" - } - }, - "type": "object" - }, - "type": "array" - }, - "verified": { - "default": false, - "type": "boolean" - } - }, - "required": ["platform_account", "application_fee_percent"], - "type": "object" - } - ], - "description": "", - "title": "Account", - "x-examples": {}, - "x-internal": false - }, - "Address": { - "description": "", - "properties": { - "city": { - "type": "string" - }, - "country": { - "type": "string" - }, - "line1": { - "type": "string" - }, - "line2": { - "type": "string" - }, - "postal_code": { - "type": "string" - }, - "state": { - "type": "string" - } - }, - "title": "Address", - "type": "object", - "x-examples": {}, - "x-internal": true - }, - "ApiKey": { - "allOf": [ - { - "$ref": "#/components/schemas/Model" - }, - { - "properties": { - "account": { - "oneOf": [ - { - "type": "string" - }, - { - "$ref": "#/components/schemas/Account" - } - ] - }, - "admin": { - "default": false, - "type": "boolean" - }, - "key": { - "enum": ["publishable", "secret", "restricted"], - "type": "string" - }, - "last_used": { - "format": "date-time", - "type": "string" - }, - "name": { - "type": "string" - }, - "note": { - "type": "string" - }, - "type": { - "enum": ["publishable", "secret", "restricted"], - "type": "string" - } - }, - "required": ["account", "key", "type", "admin"], - "type": "object" - } - ], - "description": "", - "title": "ApiKey", - "x-internal": true - }, - "Checkout": { - "allOf": [ - { - "$ref": "#/components/schemas/Model" - }, - { - "properties": { - "account": { - "oneOf": [ - { - "type": "string" - }, - { - "$ref": "#/components/schemas/Account" - } - ] - }, - "amount": { - "type": "number" - }, - "customer": { - "oneOf": [ - { - "type": "string" - }, - { - "$ref": "#/components/schemas/Customer" - } - ] - }, - "customer_details": { - "properties": { - "email": { - "type": "string" - }, - "name": { - "type": "string" - } - }, - "required": ["name", "email"], - "type": "object" - }, - "last_payment_error": { - "type": "string" - }, - "payment_intent": { - "oneOf": [ - { - "type": "string" - }, - { - "$ref": "#/components/schemas/PaymentIntent" - } - ] - }, - "payment_link": { - "oneOf": [ - { - "type": "string" - }, - { - "$ref": "#/components/schemas/PaymentLink" - } - ] - }, - "platform_account": { - "oneOf": [ - { - "type": "string" - }, - { - "$ref": "#/components/schemas/Account" - } - ] - }, - "status": { - "default": "processing", - "enum": [ - "processing", - "requires_confirmation", - "succeeded", - "failed" - ], - "type": "string" - } - }, - "required": [ - "account", - "platform_account", - "customer_details", - "amount", - "payment_link", - "payment_intent", - "customer", - "last_payment_error" - ], - "type": "object" - } - ], - "description": "", - "title": "Checkout" - }, - "Customer": { - "allOf": [ - { - "$ref": "#/components/schemas/Model" - }, - { - "properties": { - "account": { - "oneOf": [ - { - "type": "string" - }, - { - "$ref": "#/components/schemas/Account" - } - ] - }, - "billing_details": { - "properties": { - "address": { - "$ref": "#/components/schemas/Address" - } - }, - "type": "object" - }, - "email": { - "type": "string" - }, - "last_payment": { - "oneOf": [ - { - "nullable": true - }, - { - "$ref": "#/components/schemas/PaymentIntent" - } - ] - }, - "name": { - "type": "string" - }, - "payments": { - "items": { - "$ref": "#/components/schemas/PaymentIntent" - }, - "type": "array" - }, - "phone": { - "type": "string" - }, - "wallets": { - "items": { - "$ref": "#/components/schemas/Wallet" - }, - "type": "array" - } - }, - "required": ["account", "wallets", "payments", "last_payment"], - "type": "object" - } - ], - "description": "", - "title": "Customer" - }, - "Fee": { - "allOf": [ - { - "$ref": "#/components/schemas/Model" - }, - { - "properties": { - "account": { - "oneOf": [ - { - "type": "string" - }, - { - "$ref": "#/components/schemas/Account" - } - ] - }, - "description": { - "type": "string" - }, - "internal": { - "type": "boolean" - }, - "payment_intent": { - "oneOf": [ - { - "type": "string" - }, - { - "$ref": "#/components/schemas/PaymentIntent" - } - ] - }, - "percent": { - "maximum": 100, - "minimum": 0, - "type": "number" - }, - "platform_account": { - "oneOf": [ - { - "type": "string" - }, - { - "$ref": "#/components/schemas/Account" - } - ] - }, - "wallet": { - "oneOf": [ - { - "type": "string" - }, - { - "$ref": "#/components/schemas/PayoutWallet" - } - ] - } - }, - "required": [ - "account", - "internal", - "payment_intent", - "wallet", - "percent" - ], - "type": "object" - } - ], - "description": "", - "title": "Fee" - }, - "Invoice": { - "allOf": [ - { - "$ref": "#/components/schemas/Model" - }, - { - "properties": { - "account": { - "oneOf": [ - { - "type": "string" - }, - { - "$ref": "#/components/schemas/Account" - } - ] - }, - "customer": { - "oneOf": [ - { - "type": "string" - }, - { - "$ref": "#/components/schemas/Customer" - } - ] - }, - "due": { - "type": "number" - }, - "line_items": { - "items": { - "$ref": "#/components/schemas/LineItem" - }, - "type": "array" - }, - "metadata": { - "type": "object" - }, - "notify": { - "type": "boolean" - }, - "number": { - "type": "string" - }, - "period_end": { - "type": "number" - }, - "period_start": { - "type": "number" - }, - "platform_account": { - "oneOf": [ - { - "type": "string" - }, - { - "$ref": "#/components/schemas/Account" - } - ] - }, - "price": { - "oneOf": [ - { - "type": "string" - }, - { - "$ref": "#/components/schemas/Price" - } - ] - }, - "status": { - "enum": ["open", "paid", "void", "past_due", "uncollectible"], - "type": "string" - }, - "subscription": { - "oneOf": [ - { - "type": "string" - }, - { - "$ref": "#/components/schemas/Subscription" - } - ] - }, - "trial_period_days": { - "default": 0, - "type": "number" - } - }, - "required": [ - "account", - "status", - "number", - "price", - "customer", - "notify" - ], - "type": "object" - } - ], - "title": "Invoice" - }, - "LineItem": { - "description": "", - "properties": { - "description": { - "type": "string" - }, - "price": { - "oneOf": [ - { - "properties": {}, - "type": "string" - }, - { - "$ref": "#/components/schemas/Price" - } - ] - }, - "price_data": { - "$ref": "#/components/schemas/Price" - }, - "quantity": { - "type": "number" - } - }, - "required": ["quantity"], - "title": "Line Item", - "type": "object" - }, - "Log": { - "allOf": [ - { - "$ref": "#/components/schemas/Model" - }, - { - "properties": { - "api_key": { - "type": "string" - }, - "body": { - "type": "object" - }, - "created": { - "format": "date-time", - "type": "string" - }, - "headers": { - "type": "object" - }, - "ip": { - "type": "string" - }, - "method": { - "enum": ["POST", "PATCH", "DELETE"], - "type": "string" - }, - "origin": { - "type": "string" - }, - "query": { - "type": "object" - }, - "success": { - "type": "boolean" - }, - "url": { - "type": "string" - } - }, - "required": [ - "api_key", - "created", - "ip", - "method", - "query", - "url", - "success" - ], - "type": "object" - } - ], - "title": "Log", - "x-internal": true - }, - "Model": { - "properties": { - "created": { - "format": "date-time", - "type": "string" - }, - "id": { - "pattern": "^[a-z]{2,4}_[A-Za-z0-9]{21}$", - "type": "string" - }, - "object": { - "type": "string" - }, - "test": { - "default": false, - "type": "boolean" - } - }, - "required": ["id", "created", "object", "test"], - "title": "Model", - "type": "object" - }, - "Notification": { - "allOf": [ - { - "$ref": "#/components/schemas/Model" - }, - { - "properties": { - "account": { - "oneOf": [ - { - "type": "string" - }, - { - "$ref": "#/components/schemas/Account" - } - ] - }, - "data": { - "type": "object" - }, - "emails": { - "items": { - "type": "string" - }, - "type": "array" - }, - "type": { - "enum": [ - "invoice.open", - "invoice.uncollectible", - "invoice.void", - "payment_intent.failed", - "payment_intent.succeeded", - "login", - "team.invite" - ], - "type": "string" - } - }, - "required": ["account", "type", "data", "emails"], - "type": "object" - } - ], - "description": "", - "title": "Notification", - "x-internal": true, - "x-stoplight": { - "id": "box03v954vyx6" - } - }, - "PaymentIntent": { - "allOf": [ - { - "$ref": "#/components/schemas/Model" - }, - { - "properties": { - "account": { - "oneOf": [ - { - "type": "string" - }, - { - "$ref": "#/components/schemas/Account" - } - ] - }, - "amount": { - "exclusiveMinimum": true, - "minimum": 0, - "type": "number" - }, - "application_fee_percent": { - "type": "number" - }, - "chain": { - "default": "pending", - "enum": ["eth", "sol"], - "type": "string" - }, - "checkout": { - "oneOf": [ - { - "type": "string" - }, - { - "$ref": "#/components/schemas/Subscription" - } - ] - }, - "currency": { - "default": "eth", - "enum": ["eth", "sol"], - "type": "string" - }, - "customer": { - "oneOf": [ - { - "type": "string" - }, - { - "$ref": "#/components/schemas/Customer" - } - ] - }, - "exchange_rate": { - "type": "number" - }, - "fees": { - "items": { - "$ref": "#/components/schemas/Fee" - }, - "type": "array" - }, - "hash": { - "type": "string" - }, - "invoice": { - "oneOf": [ - { - "default": null, - "type": "string" - }, - { - "$ref": "#/components/schemas/Invoice" - } - ] - }, - "last_payment_error": { - "type": "string" - }, - "line_items": { - "items": { - "$ref": "#/components/schemas/LineItem" - }, - "type": "array" - }, - "metadata": { - "type": "object" - }, - "platform_account": { - "oneOf": [ - { - "type": "string" - }, - { - "$ref": "#/components/schemas/Account" - } - ] - }, - "price": { - "oneOf": [ - { - "type": "string" - }, - { - "$ref": "#/components/schemas/Price" - } - ] - }, - "status": { - "default": "pending", - "enum": [ - "failed", - "succeeded", - "canceled", - "requires_confirmation" - ], - "type": "string" - }, - "subscription": { - "oneOf": [ - { - "type": "string" - }, - { - "$ref": "#/components/schemas/Subscription" - } - ] - }, - "transfers": { - "items": { - "$ref": "#/components/schemas/Transfer" - }, - "type": "array" - }, - "usd_amount": { - "type": "number" - }, - "wallet": { - "oneOf": [ - { - "type": "string" - }, - { - "$ref": "#/components/schemas/Wallet" - } - ] - } - }, - "required": [ - "customer", - "amount", - "status", - "chain", - "currency", - "fees", - "transfers" - ], - "type": "object" - } - ], - "description": "", - "title": "PaymentIntent" - }, - "PaymentLink": { - "allOf": [ - { - "$ref": "#/components/schemas/Model" - }, - { - "properties": { - "account": { - "oneOf": [ - { - "type": "string" - }, - { - "$ref": "#/components/schemas/Account" - } - ] - }, - "active": { - "type": "boolean" - }, - "after_completion": { - "properties": { - "hosted_confirmation_message": { - "type": "string" - }, - "redirect_url": { - "type": "string" - } - }, - "type": "object" - }, - "application_fee_percent": { - "type": "number" - }, - "chain": { - "default": "pending", - "enum": ["eth", "sol"], - "type": "string" - }, - "currency": { - "default": "eth", - "enum": ["eth", "sol"], - "type": "string" - }, - "expires_at": { - "format": "date-time", - "type": "string" - }, - "line_items": { - "items": { - "$ref": "#/components/schemas/LineItem" - }, - "type": "array" - }, - "max_usages": { - "type": "number" - }, - "platform_account": { - "oneOf": [ - { - "type": "string" - }, - { - "$ref": "#/components/schemas/Account" - } - ] - }, - "remaining_stock": { - "type": "number" - }, - "url": { - "type": "string" - } - }, - "required": ["currency", "chain"], - "type": "object" - } - ], - "description": "", - "title": "PaymentLink" - }, - "PayoutWallet": { - "allOf": [ - { - "$ref": "#/components/schemas/Model" - }, - { - "properties": { - "account": { - "oneOf": [ - { - "type": "string" - }, - { - "$ref": "#/components/schemas/Account" - } - ] - }, - "address": { - "type": "string" - }, - "chain": { - "enum": ["eth", "sol"], - "type": "string" - }, - "default": { - "default": true, - "type": "boolean" - }, - "type": { - "default": "external", - "enum": ["external", "ftx"], - "type": "string" - } - }, - "required": ["account", "chain", "address", "type"], - "type": "object" - } - ], - "description": "", - "title": "PayoutWallet" - }, - "Price": { - "allOf": [ - { - "$ref": "#/components/schemas/Model" - }, - { - "properties": { - "account": { - "oneOf": [ - { - "type": "string" - }, - { - "$ref": "#/components/schemas/Account" - } - ] - }, - "amount": { - "type": "number" - }, - "application_fee_percent": { - "maximum": 99, - "minimum": 0, - "type": "number" - }, - "archived": { - "type": "boolean" - }, - "base_price": { - "properties": { - "amount": { - "type": "number" - }, - "currency": { - "type": "string" - }, - "custom_amount": { - "properties": { - "default": { - "type": "number" - }, - "maximum": { - "type": "number" - }, - "minimum": { - "type": "number" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "billing_period_days": { - "minimum": 0, - "type": "number" - }, - "chain": { - "type": "string" - }, - "currency": { - "type": "string" - }, - "custom_amount": { - "properties": { - "default": { - "type": "number" - }, - "maximum": { - "type": "number" - }, - "minimum": { - "type": "number" - } - }, - "type": "object" - }, - "metadata": { - "type": "object" - }, - "platform_account": { - "oneOf": [ - { - "type": "string" - }, - { - "$ref": "#/components/schemas/Account" - } - ] - }, - "product": { - "oneOf": [ - { - "type": "string" - }, - { - "$ref": "#/components/schemas/Product" - } - ] - } - }, - "required": [ - "account", - "amount", - "custom_amount", - "currency", - "chain" - ], - "type": "object" - } - ], - "title": "Price", - "x-examples": {}, - "x-stoplight": { - "id": "m0pyvk4d0thqq" - } - }, - "Product": { - "allOf": [ - { - "$ref": "#/components/schemas/Model" - }, - { - "properties": { - "account": { - "oneOf": [ - { - "type": "string" - }, - { - "$ref": "#/components/schemas/Account" - } - ] - }, - "active": { - "default": true, - "type": "boolean" - }, - "description": { - "type": "string" - }, - "name": { - "type": "string" - }, - "prices": { - "items": { - "$ref": "#/components/schemas/Price" - }, - "type": "array" - } - }, - "required": ["account", "name"], - "type": "object" - } - ], - "title": "Product" - }, - "Subscription": { - "allOf": [ - { - "$ref": "#/components/schemas/Model" - }, - { - "properties": { - "account": { - "oneOf": [ - { - "type": "string" - }, - { - "$ref": "#/components/schemas/Account" - } - ] - }, - "cancel_at": { - "type": "number" - }, - "cancel_at_period_end": { - "type": "boolean" - }, - "canceled_at": { - "type": "number" - }, - "current_period_end": { - "type": "number" - }, - "current_period_start": { - "format": "date-time", - "type": "number" - }, - "customer": { - "oneOf": [ - { - "type": "string" - }, - { - "$ref": "#/components/schemas/Customer" - } - ] - }, - "latest_invoice": { - "$ref": "#/components/schemas/Invoice" - }, - "line_items": { - "items": { - "$ref": "#/components/schemas/LineItem" - }, - "type": "array" - }, - "pause_collection": { - "type": "boolean" - }, - "platform_account": { - "oneOf": [ - { - "type": "string" - }, - { - "$ref": "#/components/schemas/Account" - } - ] - }, - "price": { - "oneOf": [ - { - "type": "string" - }, - { - "$ref": "#/components/schemas/Price" - } - ] - }, - "status": { - "default": "incomplete", - "enum": [ - "active", - "canceled", - "trialing", - "past_due", - "incomplete" - ], - "type": "string" - }, - "trial_period_days": { - "type": "number" - } - }, - "required": [ - "account", - "price", - "customer", - "status", - "cancel_at_period_end" - ], - "type": "object" - } - ], - "description": "" - }, - "Transfer": { - "allOf": [ - { - "$ref": "#/components/schemas/Model" - }, - { - "properties": { - "account": { - "oneOf": [ - { - "type": "string" - }, - { - "$ref": "#/components/schemas/Account" - } - ] - }, - "description": { - "type": "string" - }, - "payment_intent": { - "oneOf": [ - { - "type": "string" - }, - { - "$ref": "#/components/schemas/PaymentIntent" - } - ] - }, - "percent": { - "exclusiveMinimum": true, - "maximum": 100, - "minimum": 0, - "type": "number" - }, - "wallet": { - "oneOf": [ - { - "type": "string" - }, - { - "$ref": "#/components/schemas/PayoutWallet" - } - ] - } - }, - "required": ["account", "percent", "payment_intent", "wallet"], - "type": "object" - } - ], - "description": "", - "title": "Transfer" - }, - "Wallet": { - "allOf": [ - { - "$ref": "#/components/schemas/Model" - }, - { - "properties": { - "account": { - "oneOf": [ - { - "type": "string" - }, - { - "$ref": "#/components/schemas/Account" - } - ] - }, - "address": { - "type": "string" - }, - "chain": { - "enum": ["eth", "sol"], - "type": "string" - }, - "customer": { - "oneOf": [ - { - "type": "string" - }, - { - "$ref": "#/components/schemas/Customer" - } - ] - } - }, - "required": ["account", "chain", "address", "customer"], - "type": "object" - } - ], - "title": "Wallet", - "x-examples": { - "example-1": { - "account": "string", - "address": "string", - "admin": true, - "chain": "eth", - "created": "2019-08-24T14:15:22Z", - "customer": "string", - "id": "string", - "test": false - } - } - }, - "Webhook": { - "allOf": [ - { - "$ref": "#/components/schemas/Model" - }, - { - "properties": { - "account": { - "oneOf": [ - { - "type": "string" - }, - { - "$ref": "#/components/schemas/Account" - } - ] - }, - "created": { - "format": "date-time", - "type": "string" - }, - "endpoint_url": { - "type": "string" - }, - "event_types": { - "items": { - "type": "string" - }, - "type": "array" - }, - "secret": { - "type": "string" - } - }, - "required": ["account", "created", "endpoint_url", "event_types"], - "type": "object" - } - ], - "description": "", - "title": "Webhook" - } - }, - "securitySchemes": { - "ApiKey": { - "scheme": "bearer", - "type": "http" - } - } - }, - "info": { - "contact": { - "email": "support@pluto.co", - "name": "Pluto", - "url": "https://pluto.co" - }, - "description": "The API for Pluto", - "termsOfService": "https://pluto.com/terms", - "title": "Pluto", - "version": "1.0" - }, - "openapi": "3.0.0", - "paths": { - "/accounts": { - "get": { - "description": "", - "operationId": "accounts_list", - "parameters": [ - { - "$ref": "#/components/parameters/limit" - }, - { - "$ref": "#/components/parameters/page" - }, - { - "$ref": "#/components/parameters/sort" - }, - { - "$ref": "#/components/parameters/expand" - }, - { - "$ref": "#/components/parameters/Pluto-Account" - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "description": "", - "properties": { - "data": { - "items": { - "$ref": "#/components/schemas/Account" - }, - "minItems": 1, - "type": "array", - "uniqueItems": true - }, - "has_more": { - "type": "boolean" - }, - "page": { - "type": "number" - }, - "total": { - "type": "number" - } - }, - "required": ["data", "has_more", "page", "total"], - "title": "ListAccountsResponse", - "type": "object", - "x-examples": { - "example-1": { - "data": [ - { - "account": "t", - "billing_details": { - "address": { - "city": "p", - "country": "ruh", - "line1": "ag", - "line2": "e", - "postal_code": "e", - "state": "e" - } - }, - "email": "t", - "name": "t", - "phone": "t" - } - ], - "has_more": true, - "page": 4, - "total": 5 - } - } - } - } - }, - "description": "OK" - }, - "401": { - "$ref": "#/components/responses/401" - }, - "404": { - "$ref": "#/components/responses/404" - } - }, - "summary": "List Accounts", - "tags": ["Accounts"] - }, - "parameters": [], - "post": { - "operationId": "accounts_create", - "parameters": [ - { - "$ref": "#/components/parameters/Pluto-Account" - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Account" - } - } - }, - "description": "" - }, - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Account" - } - } - }, - "description": "OK" - }, - "400": { - "$ref": "#/components/responses/400" - }, - "401": { - "$ref": "#/components/responses/401" - } - }, - "summary": "Create Account", - "tags": ["Accounts"] - } - }, - "/accounts/{id}": { - "get": { - "operationId": "accounts_retrieve", - "parameters": [ - { - "$ref": "#/components/parameters/expand" - }, - { - "$ref": "#/components/parameters/Pluto-Account" - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Account" - } - } - }, - "description": "OK" - }, - "401": { - "$ref": "#/components/responses/401" - }, - "404": { - "$ref": "#/components/responses/404" - } - }, - "summary": "Retrieve Account By Id", - "tags": ["Accounts"] - }, - "parameters": [ - { - "in": "path", - "name": "id", - "required": true, - "schema": { - "type": "string" - } - } - ], - "patch": { - "operationId": "accounts_update", - "parameters": [ - { - "$ref": "#/components/parameters/Pluto-Account" - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Account" - } - } - } - }, - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Account" - } - } - }, - "description": "OK" - }, - "400": { - "$ref": "#/components/responses/400" - }, - "401": { - "$ref": "#/components/responses/401" - }, - "404": { - "$ref": "#/components/responses/404" - } - }, - "summary": "Update Account By Id", - "tags": ["Accounts"] - } - }, - "/customers": { - "get": { - "operationId": "customers_list", - "parameters": [ - { - "$ref": "#/components/parameters/limit" - }, - { - "$ref": "#/components/parameters/page" - }, - { - "$ref": "#/components/parameters/sort" - }, - { - "$ref": "#/components/parameters/expand" - }, - { - "$ref": "#/components/parameters/Pluto-Account" - }, - { - "description": "Email of the customer.", - "in": "query", - "name": "email", - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "description": "", - "properties": { - "data": { - "items": { - "$ref": "#/components/schemas/Customer" - }, - "minItems": 1, - "type": "array", - "uniqueItems": true - }, - "has_more": { - "type": "boolean" - }, - "page": { - "type": "number" - }, - "total": { - "type": "number" - } - }, - "required": ["data", "has_more", "page", "total"], - "title": "ListCustomersResponse", - "type": "object", - "x-examples": { - "example-1": { - "data": [ - { - "account": "t", - "billing_details": { - "address": { - "city": "p", - "country": "ruh", - "line1": "ag", - "line2": "e", - "postal_code": "e", - "state": "e" - } - }, - "email": "t", - "name": "t", - "phone": "t" - } - ], - "has_more": true, - "page": 4, - "total": 5 - } - } - } - } - }, - "description": "OK" - }, - "401": { - "$ref": "#/components/responses/401" - }, - "404": { - "$ref": "#/components/responses/404" - } - }, - "summary": "List Customers", - "tags": ["Customers"] - }, - "post": { - "operationId": "customers_create", - "parameters": [ - { - "$ref": "#/components/parameters/Pluto-Account" - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "description": "", - "properties": { - "account": { - "minLength": 1, - "type": "string" - }, - "billing_details": { - "properties": { - "address": { - "properties": { - "city": { - "minLength": 1, - "type": "string" - }, - "country": { - "minLength": 1, - "type": "string" - }, - "line1": { - "minLength": 1, - "type": "string" - }, - "line2": { - "minLength": 1, - "type": "string" - }, - "postal_code": { - "minLength": 1, - "type": "string" - }, - "state": { - "minLength": 1, - "type": "string" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "email": { - "minLength": 1, - "type": "string" - }, - "name": { - "minLength": 1, - "type": "string" - }, - "phone": { - "minLength": 1, - "type": "string" - } - }, - "required": ["account"], - "title": "CreateCustomerBody", - "type": "object", - "x-examples": { - "example-1": { - "account": "acct_oCV7GPmaqJzHCWu8FoxGP", - "billing_details": { - "address": { - "city": "Palo Alto", - "country": "US", - "line1": "855 El Camino Real", - "line2": "Suite 290", - "postal_code": "94301", - "state": "CA" - } - }, - "email": "admin@hyper.co", - "name": "Lebon Jame", - "phone": "+16508006399" - } - } - } - } - }, - "description": "" - }, - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Customer" - } - } - }, - "description": "OK" - }, - "400": { - "$ref": "#/components/responses/400" - }, - "401": { - "$ref": "#/components/responses/401" - } - }, - "summary": "Create Customer", - "tags": ["Customers"] - } - }, - "/customers/{id}": { - "get": { - "operationId": "customers_retrieve", - "parameters": [ - { - "$ref": "#/components/parameters/expand" - }, - { - "$ref": "#/components/parameters/Pluto-Account" - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Customer" - } - } - }, - "description": "OK" - }, - "401": { - "$ref": "#/components/responses/401" - }, - "404": { - "$ref": "#/components/responses/404" - } - }, - "summary": "Retrieve Customer By Id", - "tags": ["Customers"] - }, - "parameters": [ - { - "in": "path", - "name": "id", - "required": true, - "schema": { - "type": "string" - } - } - ], - "patch": { - "operationId": "customers_update", - "parameters": [ - { - "$ref": "#/components/parameters/Pluto-Account" - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "properties": { - "billing_details": { - "properties": { - "address": { - "properties": { - "city": { - "type": "string" - }, - "country": { - "type": "string" - }, - "line1": { - "type": "string" - }, - "line2": { - "type": "string" - }, - "postal_code": { - "type": "string" - }, - "state": { - "type": "string" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "email": { - "type": "string" - }, - "name": { - "type": "string" - }, - "phone": { - "type": "string" - } - }, - "title": "UpdateCustomerBody", - "type": "object", - "x-examples": { - "example-1": { - "billing_details": { - "address": { - "city": "string", - "country": "string", - "line1": "string", - "line2": "string", - "postal_code": "string", - "state": "string" - } - }, - "email": "string", - "name": "string", - "phone": "string" - } - } - } - } - } - }, - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Customer" - } - } - }, - "description": "OK" - }, - "400": { - "$ref": "#/components/responses/400" - }, - "401": { - "$ref": "#/components/responses/401" - }, - "404": { - "$ref": "#/components/responses/404" - } - }, - "summary": "Update Customer By Id", - "tags": ["Customers"] - } - }, - "/fees": { - "get": { - "operationId": "fees_list", - "parameters": [ - { - "$ref": "#/components/parameters/limit" - }, - { - "$ref": "#/components/parameters/page" - }, - { - "$ref": "#/components/parameters/sort" - }, - { - "$ref": "#/components/parameters/expand" - }, - { - "$ref": "#/components/parameters/Pluto-Account" - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "description": "", - "properties": { - "data": { - "items": { - "$ref": "#/components/schemas/Fee" - }, - "minItems": 1, - "type": "array", - "uniqueItems": true - }, - "has_more": { - "type": "boolean" - }, - "page": { - "type": "number" - }, - "total": { - "type": "number" - } - }, - "required": ["data", "has_more", "page", "total"], - "title": "ListFeesResponse", - "type": "object", - "x-examples": { - "example-1": { - "data": [ - { - "account": "acct_p82RIso0f9EOvdJoFTYIK", - "amount": 0.02, - "created": "1650314886146", - "currency": "eth", - "description": null, - "invoice": "in_bV55Zc1noFSSBI0CKYoxS", - "percent": 2, - "usd_amount": 6021, - "wallet": "wal_OQPDWnLFRD1BzVdIXp5jd" - } - ], - "has_more": true, - "page": 2, - "total": 5 - } - } - } - } - }, - "description": "OK" - }, - "401": { - "$ref": "#/components/responses/401" - }, - "404": { - "$ref": "#/components/responses/404" - } - }, - "summary": "List Fees", - "tags": ["Fees"] - }, - "post": { - "operationId": "fees_create", - "parameters": [ - { - "$ref": "#/components/parameters/Pluto-Account" - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "description": "", - "properties": { - "description": { - "type": "string" - }, - "invoice": { - "minLength": 1, - "type": "string" - }, - "percent": { - "type": "number" - }, - "wallet": { - "minLength": 1, - "type": "string" - } - }, - "required": ["invoice", "wallet", "percent"], - "title": "CreateFeeBody", - "type": "object", - "x-examples": { - "example-1": { - "description": null, - "invoice": "in_nt53BEkygtCBEzDsH7PLi", - "percent": 2, - "wallet": "wal_OQPDWnLFRD1BzVdIXp5jd" - } - } - } - } - } - }, - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Fee" - } - } - }, - "description": "OK" - }, - "400": { - "$ref": "#/components/responses/400" - }, - "401": { - "$ref": "#/components/responses/401" - } - }, - "summary": "Create Fee", - "tags": ["Fees"] - } - }, - "/fees/{id}": { - "delete": { - "operationId": "fees_delete", - "parameters": [ - { - "$ref": "#/components/parameters/Pluto-Account" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "401": { - "$ref": "#/components/responses/401" - }, - "404": { - "$ref": "#/components/responses/404" - } - }, - "summary": "Delete Fee By Id", - "tags": ["Fees"] - }, - "get": { - "operationId": "fees_retrieve", - "parameters": [ - { - "$ref": "#/components/parameters/expand" - }, - { - "$ref": "#/components/parameters/Pluto-Account" - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Fee" - } - } - }, - "description": "OK" - }, - "401": { - "$ref": "#/components/responses/401" - }, - "404": { - "$ref": "#/components/responses/404" - } - }, - "summary": "Retrieve Fee By Id", - "tags": ["Fees"] - }, - "parameters": [ - { - "in": "path", - "name": "id", - "required": true, - "schema": { - "type": "string" - } - } - ] - }, - "/invoices": { - "get": { - "operationId": "invoices_list", - "parameters": [ - { - "$ref": "#/components/parameters/limit" - }, - { - "$ref": "#/components/parameters/page" - }, - { - "$ref": "#/components/parameters/sort" - }, - { - "$ref": "#/components/parameters/expand" - }, - { - "$ref": "#/components/parameters/Pluto-Account" - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "description": "", - "properties": { - "data": { - "items": { - "$ref": "#/components/schemas/Invoice" - }, - "minItems": 1, - "type": "array", - "uniqueItems": true - }, - "has_more": { - "type": "boolean" - }, - "page": { - "type": "number" - }, - "total": { - "type": "number" - } - }, - "required": ["data", "has_more", "page", "total"], - "title": "ListInvoicesResponse", - "type": "object", - "x-examples": { - "example-1": { - "data": [ - { - "account": "acct_p82RIso0f9EOvdJoFTYIK", - "amount": 3, - "chain": "eth", - "created": "1650314892103", - "currency": "eth", - "customer": "cus_bbDGyc8wXlUzCXAIvVWK5", - "deleted": false, - "deleted_at": null, - "due": null, - "number": "ACC-0000000", - "product": "prod_PbGSMBV0lu3zlRCowy195", - "status": "open", - "transaction": "0x0000000000000000000000000000000000000001", - "wallet": "wal_qDu7LKYeeMHvykIx7hekG" - } - ], - "has_more": true, - "page": 5, - "total": 5 - } - } - } - } - }, - "description": "OK" - }, - "401": { - "$ref": "#/components/responses/401" - }, - "404": { - "$ref": "#/components/responses/404" - } - }, - "summary": "List Invoices", - "tags": ["Invoices"] - }, - "post": { - "description": "", - "operationId": "invoices_create", - "parameters": [ - { - "$ref": "#/components/parameters/Pluto-Account" - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Invoice" - } - } - } - }, - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Invoice" - } - } - }, - "description": "OK" - }, - "400": { - "$ref": "#/components/responses/400" - }, - "401": { - "$ref": "#/components/responses/401" - } - }, - "summary": "Create Invoice", - "tags": ["Invoices"] - } - }, - "/invoices/{id}": { - "get": { - "operationId": "invoices_retrieve", - "parameters": [ - { - "$ref": "#/components/parameters/expand" - }, - { - "$ref": "#/components/parameters/Pluto-Account" - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Invoice" - } - } - }, - "description": "OK" - }, - "401": { - "$ref": "#/components/responses/401" - }, - "404": { - "$ref": "#/components/responses/404" - } - }, - "summary": "Retrieve Invoice By Id", - "tags": ["Invoices"] - }, - "parameters": [ - { - "in": "path", - "name": "id", - "required": true, - "schema": { - "type": "string" - } - } - ], - "patch": { - "operationId": "invoices_update", - "parameters": [ - { - "$ref": "#/components/parameters/Pluto-Account" - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Invoice" - } - } - } - }, - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Invoice" - } - } - }, - "description": "OK" - }, - "400": { - "$ref": "#/components/responses/400" - }, - "401": { - "$ref": "#/components/responses/401" - }, - "404": { - "$ref": "#/components/responses/404" - } - }, - "summary": "Update Invoice By Id", - "tags": ["Invoices"] - } - }, - "/invoices/{id}/pay": { - "parameters": [ - { - "in": "path", - "name": "id", - "required": true, - "schema": { - "type": "string" - } - } - ], - "post": { - "operationId": "invoices_pay", - "parameters": [ - { - "$ref": "#/components/parameters/Pluto-Account" - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PaymentIntent" - } - } - }, - "description": "OK" - }, - "401": { - "$ref": "#/components/responses/401" - }, - "404": { - "$ref": "#/components/responses/404" - } - }, - "summary": "Pay Invoice", - "tags": ["Invoices"] - } - }, - "/logs": { - "get": { - "description": "", - "operationId": "logs_list", - "parameters": [ - { - "$ref": "#/components/parameters/limit" - }, - { - "$ref": "#/components/parameters/page" - }, - { - "$ref": "#/components/parameters/sort" - }, - { - "$ref": "#/components/parameters/expand" - }, - { - "$ref": "#/components/parameters/Pluto-Account" - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "description": "", - "properties": { - "data": { - "items": { - "$ref": "#/components/schemas/Log" - }, - "minItems": 1, - "type": "array", - "uniqueItems": true - }, - "has_more": { - "minLength": 1, - "type": "string" - }, - "page": { - "type": "number" - }, - "total": { - "type": "number" - } - }, - "required": ["data", "has_more", "page", "total"], - "title": "ListLogsResponse", - "type": "object", - "x-examples": { - "example-1": { - "data": [ - { - "account": "string", - "created": "string", - "request": { - "api_key": "string", - "body": { - "invoice_prefix": "string" - }, - "headers": { - "accept": "string", - "accept-encoding": "string", - "connection": "string", - "content-length": "string", - "content-type": "string", - "host": "string", - "postman-token": "string", - "user-agent": "string" - }, - "ip": "string", - "method": "string", - "url": "string" - }, - "response": { - "body": { - "_id": "string", - "branding": { - "background": null, - "color": "string", - "logo": null - }, - "created": "string", - "invoice_prefix": "string", - "name": "string" - }, - "status": 0 - } - } - ], - "has_more": "test", - "page": 2 - } - } - } - } - }, - "description": "OK" - }, - "401": { - "$ref": "#/components/responses/401" - }, - "404": { - "$ref": "#/components/responses/404" - } - }, - "summary": "List Logs", - "tags": ["Logs"], - "x-internal": false - } - }, - "/logs/{id}": { - "get": { - "operationId": "logs_retrieve", - "parameters": [ - { - "$ref": "#/components/parameters/expand" - }, - { - "$ref": "#/components/parameters/Pluto-Account" - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Log" - } - } - }, - "description": "OK" - }, - "401": { - "$ref": "#/components/responses/401" - }, - "404": { - "$ref": "#/components/responses/404" - } - }, - "summary": "Retrieve Log By Id", - "tags": ["Logs"] - }, - "parameters": [ - { - "in": "path", - "name": "id", - "required": true, - "schema": { - "type": "string" - } - } - ] - }, - "/payment_intents": { - "get": { - "operationId": "payment-intents_list", - "parameters": [ - { - "$ref": "#/components/parameters/Pluto-Account" - }, - { - "$ref": "#/components/parameters/expand" - }, - { - "$ref": "#/components/parameters/limit" - }, - { - "$ref": "#/components/parameters/page" - }, - { - "$ref": "#/components/parameters/sort" - }, - { - "description": "The status of the payment intent to filter by.", - "in": "query", - "name": "status", - "schema": { - "enum": ["processing", "succeeded", "failed", "canceled"], - "type": "string" - } - }, - { - "description": "The ID of the customer on the payment intent to filter by.", - "in": "query", - "name": "customer", - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "properties": { - "data": { - "items": { - "$ref": "#/components/schemas/PaymentIntent" - }, - "type": "array" - }, - "has_more": { - "type": "boolean" - }, - "page": { - "type": "number" - }, - "total": { - "type": "number" - } - }, - "title": "ListPaymentIntentsResponse", - "type": "object" - } - } - }, - "description": "OK" - }, - "401": { - "$ref": "#/components/responses/401" - }, - "404": { - "$ref": "#/components/responses/404" - } - }, - "summary": "List Payment Intents", - "tags": ["PaymentIntents"] - }, - "parameters": [], - "post": { - "operationId": "payment-intents_create", - "parameters": [ - { - "$ref": "#/components/parameters/Pluto-Account" - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PaymentIntent" - } - } - } - }, - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PaymentIntent" - } - } - }, - "description": "OK" - }, - "400": { - "$ref": "#/components/responses/400" - }, - "401": { - "$ref": "#/components/responses/401" - } - }, - "summary": "Create Payment Intent", - "tags": ["PaymentIntents"] - } - }, - "/payment_intents/{id}": { - "delete": { - "operationId": "payment-intents_cancel", - "parameters": [ - { - "$ref": "#/components/parameters/Pluto-Account" - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PaymentIntent" - } - } - }, - "description": "OK" - }, - "400": { - "$ref": "#/components/responses/400" - }, - "401": { - "$ref": "#/components/responses/401" - } - }, - "summary": "Cancel Payment Intent", - "tags": ["PaymentIntents"] - }, - "get": { - "operationId": "payment-intents_retrieve", - "parameters": [ - { - "$ref": "#/components/parameters/Pluto-Account" - }, - { - "$ref": "#/components/parameters/expand" - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PaymentIntent" - } - } - }, - "description": "OK" - }, - "401": { - "$ref": "#/components/responses/401" - }, - "404": { - "$ref": "#/components/responses/404" - } - }, - "summary": "Retrieve Payment Intent", - "tags": ["PaymentIntents"] - }, - "parameters": [ - { - "in": "path", - "name": "id", - "required": true, - "schema": { - "type": "string" - } - } - ], - "patch": { - "operationId": "payment-intents_update", - "parameters": [ - { - "$ref": "#/components/parameters/Pluto-Account" - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "properties": { - "hash": { - "type": "string" - }, - "metadata": { - "type": "object" - } - }, - "title": "UpdatePaymentIntentBody", - "type": "object" - } - } - } - }, - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PaymentIntent" - } - } - }, - "description": "OK" - }, - "400": { - "$ref": "#/components/responses/400" - }, - "404": { - "$ref": "#/components/responses/404" - } - }, - "summary": "Update Payment Intent", - "tags": ["PaymentIntents"] - } - }, - "/payment_intents/{id}/poll": { - "get": { - "operationId": "payment-intents_poll", - "parameters": [ - { - "$ref": "#/components/parameters/Pluto-Account" - }, - { - "$ref": "#/components/parameters/expand" - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PaymentIntent" - } - } - }, - "description": "OK" - }, - "401": { - "$ref": "#/components/responses/401" - }, - "404": { - "$ref": "#/components/responses/404" - } - }, - "summary": "Poll Payment Intent", - "tags": ["PaymentIntents"] - }, - "parameters": [ - { - "in": "path", - "name": "id", - "required": true, - "schema": { - "type": "string" - } - } - ] - }, - "/payout_wallets": { - "get": { - "description": "", - "operationId": "payout-wallets_list", - "parameters": [ - { - "$ref": "#/components/parameters/limit" - }, - { - "$ref": "#/components/parameters/page" - }, - { - "$ref": "#/components/parameters/sort" - }, - { - "$ref": "#/components/parameters/expand" - }, - { - "$ref": "#/components/parameters/Pluto-Account" - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "properties": { - "data": { - "items": { - "$ref": "#/components/schemas/PayoutWallet" - }, - "type": "array" - }, - "has_more": { - "type": "boolean" - }, - "page": { - "type": "number" - }, - "total": { - "type": "number" - } - }, - "title": "ListPayoutWalletsResponse", - "type": "object" - } - } - }, - "description": "OK" - }, - "401": { - "$ref": "#/components/responses/401" - }, - "404": { - "$ref": "#/components/responses/404" - } - }, - "summary": "List Payout Wallets", - "tags": ["PayoutWallets"] - }, - "post": { - "operationId": "payout-wallets_create", - "parameters": [ - { - "$ref": "#/components/parameters/Pluto-Account" - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "properties": { - "account": { - "type": "string" - }, - "address": { - "type": "string" - }, - "chain": { - "type": "string" - } - }, - "required": ["account", "chain", "address"], - "title": "CreatePayoutWalletBody", - "type": "object", - "x-examples": { - "example-1": { - "account": "t", - "address": "x", - "chain": "eth" - } - } - } - } - } - }, - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PayoutWallet" - } - } - }, - "description": "OK" - }, - "400": { - "$ref": "#/components/responses/400" - }, - "401": { - "$ref": "#/components/responses/401" - } - }, - "summary": "Create Payout Wallets", - "tags": ["PayoutWallets"] - } - }, - "/payout_wallets/{id}": { - "delete": { - "operationId": "payout-wallets_delete", - "parameters": [ - { - "$ref": "#/components/parameters/Pluto-Account" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "401": { - "$ref": "#/components/responses/401" - }, - "404": { - "$ref": "#/components/responses/404" - } - }, - "summary": "Delete Payout Wallet By ID", - "tags": ["PayoutWallets"] - }, - "get": { - "operationId": "payout-wallets_retrieve", - "parameters": [ - { - "$ref": "#/components/parameters/expand" - }, - { - "$ref": "#/components/parameters/Pluto-Account" - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PayoutWallet" - } - } - }, - "description": "OK" - }, - "401": { - "$ref": "#/components/responses/401" - }, - "404": { - "$ref": "#/components/responses/404" - } - }, - "summary": "Retrieve Payout Wallet By ID", - "tags": ["PayoutWallets"] - }, - "parameters": [ - { - "in": "path", - "name": "id", - "required": true, - "schema": { - "type": "string" - } - } - ], - "patch": { - "operationId": "payout-wallets_update", - "parameters": [ - { - "$ref": "#/components/parameters/Pluto-Account" - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PayoutWallet" - } - } - } - }, - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PayoutWallet" - } - } - }, - "description": "OK" - }, - "400": { - "$ref": "#/components/responses/400" - }, - "401": { - "$ref": "#/components/responses/401" - }, - "404": { - "$ref": "#/components/responses/404" - } - }, - "summary": "Update Payout Wallet By ID", - "tags": ["PayoutWallets"] - } - }, - "/prices": { - "get": { - "operationId": "prices_list", - "parameters": [ - { - "$ref": "#/components/parameters/Pluto-Account" - }, - { - "$ref": "#/components/parameters/expand" - }, - { - "$ref": "#/components/parameters/limit" - }, - { - "$ref": "#/components/parameters/page" - }, - { - "$ref": "#/components/parameters/sort" - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "properties": { - "data": { - "items": { - "$ref": "#/components/schemas/Price" - }, - "type": "array" - }, - "has_more": { - "type": "boolean" - }, - "page": { - "type": "number" - }, - "total": { - "type": "number" - } - }, - "title": "ListPricesResponse", - "type": "object" - } - } - }, - "description": "OK" - }, - "401": { - "$ref": "#/components/responses/401" - }, - "404": { - "$ref": "#/components/responses/404" - } - }, - "summary": "List Prices", - "tags": ["Prices"] - }, - "post": { - "operationId": "prices_create", - "parameters": [ - { - "$ref": "#/components/parameters/Pluto-Account" - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Price" - } - } - }, - "description": "" - }, - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Price" - } - } - }, - "description": "OK" - }, - "400": { - "$ref": "#/components/responses/400" - }, - "401": { - "$ref": "#/components/responses/401" - } - }, - "summary": "Create Price", - "tags": ["Prices"] - } - }, - "/prices/{id}": { - "delete": { - "operationId": "prices_delete", - "parameters": [ - { - "$ref": "#/components/parameters/Pluto-Account" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "401": { - "$ref": "#/components/responses/401" - }, - "404": { - "$ref": "#/components/responses/404" - } - }, - "summary": "Delete Price", - "tags": ["Prices"] - }, - "get": { - "operationId": "prices_retrieve", - "parameters": [ - { - "$ref": "#/components/parameters/Pluto-Account" - }, - { - "$ref": "#/components/parameters/expand" - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Price" - } - } - }, - "description": "OK" - }, - "400": { - "$ref": "#/components/responses/400" - }, - "404": { - "$ref": "#/components/responses/404" - } - }, - "summary": "Retrieve Price", - "tags": ["Prices"] - }, - "parameters": [ - { - "in": "path", - "name": "id", - "required": true, - "schema": { - "type": "string" - } - } - ], - "patch": { - "operationId": "prices_update", - "parameters": [ - { - "$ref": "#/components/parameters/Pluto-Account" - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "properties": { - "application_fee_percent": { - "type": "number" - } - }, - "title": "UpdatePriceBody", - "type": "object" - } - } - } - }, - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Price" - } - } - }, - "description": "OK" - }, - "400": { - "$ref": "#/components/responses/400" - }, - "401": { - "$ref": "#/components/responses/401" - }, - "404": { - "$ref": "#/components/responses/404" - } - }, - "summary": "Update Price", - "tags": ["Prices"] - } - }, - "/products": { - "get": { - "operationId": "products_list", - "parameters": [ - { - "$ref": "#/components/parameters/limit" - }, - { - "$ref": "#/components/parameters/page" - }, - { - "$ref": "#/components/parameters/sort" - }, - { - "$ref": "#/components/parameters/expand" - }, - { - "$ref": "#/components/parameters/Pluto-Account" - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "description": "", - "properties": { - "data": { - "items": { - "$ref": "#/components/schemas/Product" - }, - "minItems": 1, - "type": "array", - "uniqueItems": true - }, - "has_more": { - "type": "boolean" - }, - "page": { - "type": "number" - }, - "total": { - "type": "number" - } - }, - "required": ["data", "has_more", "page", "total"], - "title": "ListProductsResponse", - "type": "object", - "x-examples": { - "example-1": { - "data": [ - { - "account": "acct_p82RIso0f9EOvdJoFTYIK", - "amount": 100, - "base_currency": null, - "chain": "eth", - "created": "1650314884047", - "currency": "eth", - "deleted": false, - "deleted_at": null, - "name": "Product 1" - } - ], - "has_more": true, - "page": 3, - "total": 4 - } - } - } - } - }, - "description": "OK" - }, - "401": { - "$ref": "#/components/responses/401" - }, - "404": { - "$ref": "#/components/responses/404" - } - }, - "summary": "List Products", - "tags": ["Products"] - }, - "post": { - "operationId": "products_create", - "parameters": [ - { - "$ref": "#/components/parameters/Pluto-Account" - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "description": "", - "properties": { - "description": { - "type": "string" - }, - "name": { - "minLength": 1, - "type": "string" - } - }, - "required": ["name"], - "title": "CreateProductBody", - "type": "object", - "x-examples": { - "example-1": { - "amount": 0, - "chain": "eth", - "currency": "eth", - "name": "Product 0" - } - } - } - } - } - }, - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Product" - } - } - }, - "description": "OK" - }, - "400": { - "$ref": "#/components/responses/400" - }, - "401": { - "$ref": "#/components/responses/401" - } - }, - "summary": "Create Product", - "tags": ["Products"] - } - }, - "/products/{id}": { - "delete": { - "operationId": "products_delete", - "parameters": [ - { - "$ref": "#/components/parameters/Pluto-Account" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "401": { - "$ref": "#/components/responses/401" - }, - "404": { - "$ref": "#/components/responses/404" - } - }, - "summary": "Delete Product By Id", - "tags": ["Products"] - }, - "get": { - "operationId": "products_retrieve", - "parameters": [ - { - "$ref": "#/components/parameters/expand" - }, - { - "$ref": "#/components/parameters/Pluto-Account" - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Product" - } - } - }, - "description": "OK" - }, - "401": { - "$ref": "#/components/responses/401" - }, - "404": { - "$ref": "#/components/responses/404" - } - }, - "summary": "Retrieve Product By Id", - "tags": ["Products"] - }, - "parameters": [ - { - "in": "path", - "name": "id", - "required": true, - "schema": { - "type": "string" - } - } - ], - "patch": { - "operationId": "products_update", - "parameters": [ - { - "$ref": "#/components/parameters/Pluto-Account" - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "properties": { - "description": { - "type": "string" - }, - "name": { - "type": "string" - } - }, - "title": "UpdateProductBody", - "type": "object", - "x-examples": { - "example-1": { - "amount": 0, - "base_currency": "string", - "chain": "string", - "currency": "succeeded", - "name": "string" - } - } - } - } - } - }, - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Product" - } - } - }, - "description": "OK" - }, - "400": { - "$ref": "#/components/responses/400" - }, - "401": { - "$ref": "#/components/responses/401" - }, - "404": { - "$ref": "#/components/responses/404" - } - }, - "summary": "Update Product By Id", - "tags": ["Products"] - } - }, - "/subscriptions": { - "get": { - "operationId": "subscriptions_list", - "parameters": [ - { - "$ref": "#/components/parameters/expand" - }, - { - "$ref": "#/components/parameters/limit" - }, - { - "$ref": "#/components/parameters/page" - }, - { - "$ref": "#/components/parameters/sort" - }, - { - "$ref": "#/components/parameters/Pluto-Account" - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "properties": { - "data": { - "$ref": "#/components/schemas/Subscription" - }, - "has_more": { - "type": "boolean" - }, - "page": { - "type": "number" - }, - "total": { - "type": "number" - } - }, - "required": ["data", "has_more", "page", "total"], - "title": "ListSubscriptionsResponse", - "type": "object" - } - } - }, - "description": "OK" - }, - "400": { - "$ref": "#/components/responses/400" - }, - "401": { - "$ref": "#/components/responses/401" - } - }, - "summary": "List Subscriptions", - "tags": ["Subscriptions"] - }, - "post": { - "operationId": "subscriptions_create", - "parameters": [ - { - "$ref": "#/components/parameters/Pluto-Account" - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Subscription" - } - } - }, - "description": "" - }, - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Subscription" - } - } - }, - "description": "OK" - }, - "400": { - "$ref": "#/components/responses/400" - }, - "401": { - "$ref": "#/components/responses/401" - } - }, - "summary": "Create Subscription", - "tags": ["Subscriptions"] - } - }, - "/subscriptions/{id}": { - "delete": { - "operationId": "subscriptions_cancel", - "parameters": [ - { - "$ref": "#/components/parameters/Pluto-Account" - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Subscription" - } - } - }, - "description": "OK" - }, - "401": { - "$ref": "#/components/responses/401" - }, - "404": { - "$ref": "#/components/responses/404" - } - }, - "summary": "Cancel Subscription", - "tags": ["Subscriptions"] - }, - "get": { - "operationId": "subscriptions_retrieve", - "parameters": [ - { - "$ref": "#/components/parameters/expand" - }, - { - "$ref": "#/components/parameters/Pluto-Account" - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Subscription" - } - } - }, - "description": "OK" - }, - "400": { - "$ref": "#/components/responses/400" - }, - "401": { - "$ref": "#/components/responses/401" - }, - "404": { - "$ref": "#/components/responses/404" - } - }, - "summary": "Retrieve Subscription", - "tags": ["Subscriptions"] - }, - "parameters": [ - { - "in": "path", - "name": "id", - "required": true, - "schema": { - "type": "string" - } - } - ], - "patch": { - "operationId": "subscriptions_update", - "parameters": [ - { - "$ref": "#/components/parameters/Pluto-Account" - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Subscription" - } - } - }, - "description": "" - }, - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Subscription" - } - } - }, - "description": "OK" - }, - "400": { - "$ref": "#/components/responses/400" - }, - "401": { - "$ref": "#/components/responses/401" - }, - "404": { - "$ref": "#/components/responses/404" - } - }, - "summary": "Update Subscription", - "tags": ["Subscriptions"] - } - }, - "/transfers": { - "get": { - "operationId": "transfers_list", - "parameters": [ - { - "$ref": "#/components/parameters/limit" - }, - { - "$ref": "#/components/parameters/page" - }, - { - "$ref": "#/components/parameters/sort" - }, - { - "$ref": "#/components/parameters/expand" - }, - { - "$ref": "#/components/parameters/Pluto-Account" - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "properties": { - "data": { - "items": { - "$ref": "#/components/schemas/Transfer" - }, - "type": "array" - }, - "has_more": { - "type": "boolean" - }, - "page": { - "type": "number" - }, - "total": { - "type": "number" - } - }, - "title": "ListTransfersResponse", - "type": "object" - } - } - }, - "description": "OK" - }, - "401": { - "$ref": "#/components/responses/401" - }, - "404": { - "$ref": "#/components/responses/404" - } - }, - "summary": "List Transfers", - "tags": ["Transfers"] - }, - "post": { - "operationId": "transfers_create", - "parameters": [ - { - "$ref": "#/components/parameters/Pluto-Account" - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "properties": { - "account": { - "type": "string" - }, - "description": { - "type": "string" - }, - "invoice": { - "type": "string" - }, - "percent": { - "type": "integer" - }, - "wallet": { - "type": "string" - } - }, - "required": ["account", "invoice", "wallet"], - "title": "CreateTransferBody", - "type": "object", - "x-examples": { - "example-1": { - "account": "eth", - "amount": "e", - "description": "oo", - "invoice": "E", - "percent": 3, - "usd_amount": 3, - "wallet": "e" - } - } - } - } - } - }, - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Transfer" - } - } - }, - "description": "OK" - }, - "400": { - "$ref": "#/components/responses/400" - }, - "401": { - "$ref": "#/components/responses/401" - } - }, - "summary": "Create Transfer", - "tags": ["Transfers"] - } - }, - "/transfers/{id}": { - "get": { - "operationId": "transfers_retrieve", - "parameters": [ - { - "$ref": "#/components/parameters/expand" - }, - { - "$ref": "#/components/parameters/Pluto-Account" - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Transfer" - } - } - }, - "description": "OK" - }, - "401": { - "$ref": "#/components/responses/401" - }, - "404": { - "$ref": "#/components/responses/404" - } - }, - "summary": "Retrieve Transfer By ID", - "tags": ["Transfers"] - }, - "parameters": [ - { - "in": "path", - "name": "id", - "required": true, - "schema": { - "type": "string" - } - } - ] - }, - "/wallets": { - "get": { - "operationId": "wallets_list", - "parameters": [ - { - "$ref": "#/components/parameters/limit" - }, - { - "$ref": "#/components/parameters/page" - }, - { - "$ref": "#/components/parameters/sort" - }, - { - "$ref": "#/components/parameters/expand" - }, - { - "$ref": "#/components/parameters/Pluto-Account" - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "description": "", - "properties": { - "data": { - "items": { - "$ref": "#/components/schemas/Wallet" - }, - "minItems": 0, - "type": "array", - "uniqueItems": true - }, - "has_more": { - "type": "boolean" - }, - "page": { - "type": "number" - }, - "total": { - "type": "number" - } - }, - "required": ["data", "has_more", "page", "total"], - "title": "ListWalletsResponse", - "type": "object", - "x-examples": { - "example-1": { - "data": [ - { - "account": "acct_N1nX5NcznNujnha1y6Bg6", - "address": "0x7be26fCf555F77c40318Bc0BC55f69B920C60eeD", - "chain": "eth", - "created": "1649297674007" - } - ], - "has_more": true, - "page": 2, - "total": 50 - } - } - } - } - }, - "description": "OK" - }, - "401": { - "$ref": "#/components/responses/401" - }, - "404": { - "$ref": "#/components/responses/404" - } - }, - "summary": "List Wallets", - "tags": ["Wallets"] - }, - "post": { - "operationId": "wallets_create", - "parameters": [ - { - "$ref": "#/components/parameters/Pluto-Account" - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "description": "", - "properties": { - "account": { - "minLength": 1, - "type": "string" - }, - "address": { - "minLength": 1, - "type": "string" - }, - "chain": { - "minLength": 1, - "type": "string" - }, - "customer": { - "minLength": 1, - "type": "string" - } - }, - "required": ["account", "chain", "address", "customer"], - "title": "CreateWalletBody", - "type": "object", - "x-examples": { - "example-1": { - "account": "acct_oCV7GPmaqJzHCWu8FoxGP", - "address": "0x7546f7A3bDDB28fd9BB04C5d6d6949CcCFeAd967", - "chain": "eth", - "customer": "cus_Dp8xAoM0wjenYstkQ00K6" - } - } - } - } - } - }, - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Wallet" - } - } - }, - "description": "OK" - }, - "400": { - "$ref": "#/components/responses/400" - }, - "401": { - "$ref": "#/components/responses/401" - } - }, - "summary": "Create Wallet", - "tags": ["Wallets"] - } - }, - "/wallets/{id}": { - "delete": { - "operationId": "wallets_delete", - "parameters": [ - { - "$ref": "#/components/parameters/expand" - }, - { - "$ref": "#/components/parameters/Pluto-Account" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "401": { - "$ref": "#/components/responses/401" - }, - "404": { - "$ref": "#/components/responses/404" - } - }, - "summary": "Delete Wallet By Id", - "tags": ["Wallets"] - }, - "get": { - "description": "", - "operationId": "wallets_retrieve", - "parameters": [ - { - "$ref": "#/components/parameters/expand" - }, - { - "$ref": "#/components/parameters/Pluto-Account" - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "examples": { - "example-1": { - "value": { - "account": "acct_N1nX5NcznNujnha1y6Bg6", - "address": "0x4be36fCf59aF77c40318Bc0Ck55f69B920C60eeF", - "chain": "eth", - "created": "1649297674007" - } - } - }, - "schema": { - "$ref": "#/components/schemas/Wallet" - } - } - }, - "description": "OK" - }, - "401": { - "$ref": "#/components/responses/401" - }, - "404": { - "$ref": "#/components/responses/404" - } - }, - "summary": "Retrieve Wallet By Id", - "tags": ["Wallets"] - }, - "parameters": [ - { - "in": "path", - "name": "id", - "required": true, - "schema": { - "type": "string" - } - } - ], - "patch": { - "operationId": "wallets_update", - "parameters": [ - { - "$ref": "#/components/parameters/Pluto-Account" - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "properties": { - "chain": { - "type": "string" - } - }, - "title": "UpdateWalletBody", - "type": "object", - "x-examples": { - "example-1": { - "account": "string", - "chain": "eth" - } - } - } - } - } - }, - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Wallet" - } - } - }, - "description": "OK" - }, - "400": { - "$ref": "#/components/responses/400" - }, - "401": { - "$ref": "#/components/responses/401" - }, - "404": { - "$ref": "#/components/responses/400" - } - }, - "summary": "Update Wallet By Id", - "tags": ["Wallets"] - } - }, - "/webhooks": { - "get": { - "operationId": "webhooks_list", - "parameters": [ - { - "$ref": "#/components/parameters/limit" - }, - { - "$ref": "#/components/parameters/page" - }, - { - "$ref": "#/components/parameters/sort" - }, - { - "$ref": "#/components/parameters/expand" - }, - { - "$ref": "#/components/parameters/Pluto-Account" - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "description": "", - "properties": { - "data": { - "items": { - "$ref": "#/components/schemas/Webhook" - }, - "minItems": 1, - "type": "array", - "uniqueItems": true - }, - "has_more": { - "type": "boolean" - }, - "page": { - "type": "number" - }, - "total": { - "type": "number" - } - }, - "required": ["data", "has_more", "page", "total"], - "title": "ListWebhooksResponse", - "type": "object", - "x-examples": { - "example-1": { - "data": [ - { - "account": "test", - "endpoint_url": "e", - "event_types": ["s", "b"] - } - ], - "has_more": true, - "page": 4, - "total": 4 - } - } - } - } - }, - "description": "OK" - }, - "401": { - "$ref": "#/components/responses/401" - }, - "404": { - "$ref": "#/components/responses/404" - } - }, - "summary": "List Webhooks", - "tags": ["Webhooks"] - }, - "post": { - "operationId": "webhooks_create", - "parameters": [ - { - "$ref": "#/components/parameters/Pluto-Account" - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "description": "", - "properties": { - "account": { - "minLength": 1, - "type": "string" - }, - "endpoint_url": { - "minLength": 1, - "type": "string" - }, - "event_types": { - "items": { - "type": "string" - }, - "type": "array" - }, - "secret": { - "minLength": 1, - "type": "string" - } - }, - "required": ["account", "endpoint_url", "event_types"], - "title": "CreateWebhookBody", - "type": "object", - "x-examples": { - "example-1": { - "account": "acct_bafbskrgsiur", - "endpoint_url": "https://example.com/webhook", - "event_types": [], - "secret": "whsec_BADHFBSJDFBSEURBOEUR" - } - } - } - } - } - }, - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Webhook" - } - } - }, - "description": "OK" - }, - "400": { - "$ref": "#/components/responses/400" - }, - "401": { - "$ref": "#/components/responses/401" - } - }, - "summary": "Create Webhook", - "tags": ["Webhooks"] - } - }, - "/webhooks/{id}": { - "delete": { - "operationId": "webhooks_delete", - "parameters": [ - { - "description": "The ID of the connected Pluto account you are making a request on behalf on.", - "in": "header", - "name": "Pluto-Account", - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK" - }, - "401": { - "$ref": "#/components/responses/401" - }, - "404": { - "$ref": "#/components/responses/404" - } - }, - "summary": "Delete Webhook By Id", - "tags": ["Webhooks"] - }, - "get": { - "description": "", - "operationId": "webhooks_retrieve", - "parameters": [ - { - "$ref": "#/components/parameters/expand" - }, - { - "$ref": "#/components/parameters/Pluto-Account" - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Webhook" - } - } - }, - "description": "OK" - }, - "401": { - "$ref": "#/components/responses/401" - }, - "404": { - "$ref": "#/components/responses/404" - } - }, - "summary": "Retrieve Webhook By Id", - "tags": ["Webhooks"] - }, - "parameters": [ - { - "in": "path", - "name": "id", - "required": true, - "schema": { - "type": "string" - } - } - ], - "patch": { - "operationId": "webhooks_update", - "parameters": [ - { - "$ref": "#/components/parameters/Pluto-Account" - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "properties": { - "endpoint_url": { - "type": "string" - }, - "event_types": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "title": "UpdateWebhookBody", - "type": "object", - "x-examples": { - "example-1": { - "endpoint_url": "string", - "event_types": ["string"] - } - } - } - } - } - }, - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Webhook" - } - } - }, - "description": "OK" - }, - "400": { - "$ref": "#/components/responses/400" - }, - "401": { - "$ref": "#/components/responses/401" - }, - "404": { - "$ref": "#/components/responses/404" - } - }, - "summary": "Update Webhook By Id", - "tags": ["Webhooks"] - } - } - }, - "servers": [ - { - "description": "develop", - "url": "http://localhost:7070/v1" - }, - { - "description": "staging", - "url": "https://pluto-api-stg.herokuapp.com/v1" - }, - { - "description": "production", - "url": "https://api.pluto.co/v1" - } - ], - "tags": [ - { - "name": "Accounts" - }, - { - "name": "Customers" - }, - { - "name": "Fees" - }, - { - "name": "Invoices" - }, - { - "name": "Logs" - }, - { - "name": "PayoutWallets" - }, - { - "name": "Products" - }, - { - "name": "Subscriptions" - }, - { - "name": "Wallets" - }, - { - "name": "Webhooks" - } - ], - "x-stoplight": { - "id": "b8226f588c3aa" - } -} +version https://git-lfs.github.com/spec/v1 +oid sha256:bf92e33a3ed6e79d2ed1ba969273bac3baf64a39b0d1babbad545ccab89614c7 +size 124827 diff --git a/openapitools.json b/openapitools.json index 5173a28..aee4146 100644 --- a/openapitools.json +++ b/openapitools.json @@ -1,7 +1,3 @@ -{ - "$schema": "node_modules/@openapitools/openapi-generator-cli/config.schema.json", - "generator-cli": { - "version": "5.4.0" - }, - "spaces": 2 -} +version https://git-lfs.github.com/spec/v1 +oid sha256:08399028a802c9bba3d832f337320c6b21d971f805733448552f1773926e051d +size 151 diff --git a/package.json b/package.json index e801dbf..31c85eb 100644 --- a/package.json +++ b/package.json @@ -1,18 +1,3 @@ -{ - "name": "pluto-openapi", - "version": "1.0.0", - "main": "index.js", - "repository": "https://github.com/hyper/prism-openapi.git", - "author": "sid ", - "license": "MIT", - "scripts": { - "format": "prettier . --write", - "generate:js": "yarn openapi-generator-cli generate -i openapi/spec.json -g typescript -t node-sdk/templates -o node-sdk/src/openapi -c node-sdk/openapi-generator-config.json && yarn format && cd node-sdk && yarn build" - }, - "devDependencies": { - "@openapitools/openapi-generator-cli": "^2.5.1", - "@types/node": "^17.0.29", - "prettier": "^2.6.2", - "prettier-plugin-sort-json": "^0.0.2" - } -} +version https://git-lfs.github.com/spec/v1 +oid sha256:6ebce30f6eaa7bbbffd9d57737e6611cbad11c46cf0d4baf64891247dc6ae6b0 +size 648