File size: 2,450 Bytes
af1bee9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Fusion O2C test case. Schema: tests/README.md. UNVERIFIED against any Fusion pod.
id: O2C-INT-001
title: "REST: create and submit a sales order from an external source"
module: O2C
process: Order capture
priority: P1
priority_rationale: "External order import channel (map ORD-02). I5 x C4 x U4 = 80 -> P1 (map row ORD-02 is P1, score 80). Usage placeholder drove\

  \ tier: usage 3 would give P2."
priority_source: case-level risk x usage (analysis/o2c-coverage-map.md §4 method) scored on what this case tests; not the row tier
priority_score:
  impact: 5
  change_likelihood: 4
  usage: 4
  usage_basis: ASSUMED (placeholder until Scout usage counts)
  risk: 20
  score: 80
  tiers: P1 >= 75, P2 40-74, P3 20-39, P4 < 20
  usage_sensitive: true
map_ids:
- ORD-02
- "O2C:INT-01"
verification: UNVERIFIED
approval_status: draft - pending consultant approval (architecture approval gate)
client_questions:
- O2C-Q01
- O2C-Q04
- X-Q08
- X-Q09
type: happy
tags:
- integration
- o2c
- order-management
- p1
- rest
roles:
- integration_user
preconditions:
- None beyond referenced data recipes.
data_recipes:
- DR-O2C-USR-001
- DR-O2C-CUS-001
- DR-O2C-ITM-001
- DR-O2C-PRC-001
test_values:
  qty: 5
  unit_selling_price: 108.0
  line_amount: 540.0
steps:
- n: 1
  action: verify_api
  target:
    method: POST
    path: "{{env.rest_base}}/salesOrdersForOrderHub"
  value:
    SourceTransactionNumber: "ZZ-SRC-{{run.suffix}}"
    SourceTransactionSystem: "{{data.order_source_system}}"
    BusinessUnitName: "{{org.o2c_bu}}"
    BuyingPartyName: "{{data.customer_name}}"
    SubmittedFlag: true
    lines:
    - SourceTransactionLineNumber: '1'
      ProductNumber: "{{data.o2c_item}}"
      OrderedQuantity: 5
      OrderedUOM: "{{data.o2c_uom}}"
  expected: "201; order created with SourceTransactionNumber ZZ-SRC-{{run.suffix}}; capture {{run.order_number}}."
- n: 2
  action: verify_api
  target:
    method: GET
    path: "{{env.rest_base}}/salesOrdersForOrderHub?q=SourceTransactionNumber='ZZ-SRC-{{run.suffix}}'&expand=lines"
  expected: Order submitted; line UnitSellingPrice 108.00, ExtendedAmount 540.00.
expected_result: Order submitted; line UnitSellingPrice 108.00, ExtendedAmount 540.00.
notes:
- "Usage ASSUMED: which external channels exist is POD-REQUIRED. Resource and field names UNVERIFIED."
- Runs against a mock prove only the mock, never Oracle Fusion.