# Method

One local payment method and its current availability for this merchant.

[Definition in OpenAPI](https://api.cadmospay.com/static/api/gateway-machine-api.json#/components/schemas/Method)

## JSON schema

```json
{
  "type": "object",
  "properties": {
    "code": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "state": {
      "type": "string",
      "enum": [
        "available",
        "unavailable"
      ]
    },
    "reason": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "temporarily_paused",
        "amount_unavailable",
        null,
        "checkout_unavailable"
      ]
    }
  },
  "required": [
    "code",
    "name",
    "state",
    "reason"
  ],
  "description": "One local payment method and its current availability for this merchant."
}
```
