Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mutation {
- createRule(input: {
- name: "range_rule for product test1",
- service: "digired",
- type: REGULAR,
- category: REALTIME,
- isActive: true,
- timeline: {
- useTimeline: true,
- startDate: "2021-01-01",
- endDate: "2021-06-01"
- },
- target: {
- targetByAll: false,
- targetByProfile: false,
- # profile: "test_profile",
- targetByGeography: true,
- geography: {
- districts: ["RGlzdHJpY3Q6NDM=","RGlzdHJpY3Q6MjY4="],
- thanas: ["VGhhbmE6NDQ=", "VGhhbmE6MjY5="]
- },
- targetByGroup: false,
- },
- calculation: {
- commissionType: PERCENTAGE,
- commissionCategory: PRODUCT,
- product: [
- {
- productSku: "digired-622",
- commission: 15,
- maxCap: 500
- },
- {
- productSku: "digired-623",
- commission: 20,
- maxCap: 1000
- },
- {
- productSku: "digired-624",
- commission: 25,
- maxCap: 1000
- }
- ]
- }
- }) {
- rule {
- id
- name
- }
- ruleErrors {
- code
- field
- message
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement