You are here

commerce_exchanger.schema.yml in Commerce Exchanger 8

config/schema/commerce_exchanger.schema.yml

File

config/schema/commerce_exchanger.schema.yml
View source
  1. commerce_exchanger.commerce_exchange_rates.*:
  2. type: config_entity
  3. label: 'Exchange rates config'
  4. mapping:
  5. id:
  6. type: string
  7. label: 'ID'
  8. label:
  9. type: label
  10. label: 'Label'
  11. uuid:
  12. type: string
  13. plugin:
  14. type: string
  15. configuration:
  16. type: commerce_exchanger.commerce_exchanger_provider.plugin.[%parent.plugin]
  17. commerce_exchanger.commerce_exchanger_provider.plugin.*:
  18. type: commerce_exchanger_provider_configuration
  19. commerce_exchanger_provider_configuration:
  20. type: mapping
  21. mapping:
  22. api_key:
  23. type: string
  24. label: 'Api Key'
  25. auth:
  26. type: mapping
  27. label: 'Auth data'
  28. mapping:
  29. username:
  30. type: string
  31. label: 'Username'
  32. password:
  33. type: string
  34. label: 'Password'
  35. cron:
  36. type: integer
  37. label: 'Cron'
  38. use_cross_sync:
  39. type: boolean
  40. label: 'Demo amount'
  41. base_currency:
  42. type: string
  43. label: 'Base currency'
  44. demo_amount:
  45. type: integer
  46. label: 'Demo amount'
  47. mode:
  48. type: string
  49. label: 'Mode'
  50. enterprise:
  51. type: boolean
  52. label: 'Enterprise'
  53. manual:
  54. type: boolean
  55. label: 'Manual'
  56. refresh_once:
  57. type: boolean
  58. label: 'Refresh once'
  59. transform_rates:
  60. type: boolean
  61. label: 'Transform rates'
  62. commerce_exchanger.latest_exchange_rates.*:
  63. type: config_object
  64. label: 'Exchange rates'
  65. mapping:
  66. rates:
  67. type: sequence
  68. label: 'List of currencies'
  69. sequence:
  70. type: sequence
  71. label: 'Currency upon exchanges is based'
  72. sequence:
  73. type: mapping
  74. label: 'Other currencies exchange rates'
  75. mapping:
  76. value:
  77. type: float
  78. label: 'Value'
  79. sync:
  80. type: integer
  81. label: 'Sync'