{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/soeru-biz/json-schema/soeru-biz-b2-bsettings-update-schema.json",
  "title": "B2BSettingsUpdate",
  "description": "B2B設定更新リクエスト",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/soeru-biz-openapi.json#/components/schemas/B2BSettingsUpdate",
  "properties": {
    "shopify_b2b_enabled": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Shopify B2B Enabled"
    },
    "shopify_b2b_ai_message": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Shopify B2B Ai Message"
    },
    "invoice_registration_number": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Invoice Registration Number"
    },
    "invoice_payment_terms": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Invoice Payment Terms"
    },
    "invoice_notes": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Invoice Notes"
    },
    "stamp_image": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Stamp Image"
    },
    "stamp_width_cm": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Stamp Width Cm"
    },
    "stamp_position_top_cm": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Stamp Position Top Cm"
    },
    "stamp_position_right_cm": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Stamp Position Right Cm"
    },
    "bank_transfer_info": {
      "anyOf": [
        {
          "$ref": "#/$defs/BankTransferInfo"
        },
        {
          "type": "null"
        }
      ]
    },
    "b2b_addressee_format": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "company_name_御中",
            "company_name_person_様",
            "person_様"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "B2B Addressee Format"
    },
    "quotation_validity_days": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Quotation Validity Days"
    }
  },
  "type": "object",
  "$defs": {
    "BankTransferInfo": {
      "properties": {
        "bank_name": {
          "type": "string",
          "title": "Bank Name",
          "default": ""
        },
        "branch_name": {
          "type": "string",
          "title": "Branch Name",
          "default": ""
        },
        "account_type": {
          "type": "string",
          "enum": [
            "普通",
            "当座"
          ],
          "title": "Account Type",
          "default": "普通"
        },
        "account_number": {
          "type": "string",
          "title": "Account Number",
          "default": ""
        },
        "account_holder": {
          "type": "string",
          "title": "Account Holder",
          "default": ""
        }
      },
      "type": "object",
      "title": "BankTransferInfo",
      "description": "振込先情報"
    }
  }
}