1
+ <?php
2
+
3
+ namespace NexaMerchant \Apis \Http \Resources \Api \V1 \Admin \Sales ;
4
+
5
+ use Illuminate \Http \Resources \Json \JsonResource ;
6
+
7
+ class DisputeResource extends JsonResource
8
+ {
9
+ /**
10
+ * Transform the resource into an array.
11
+ *
12
+ * @param \Illuminate\Http\Request $request
13
+ * @return array
14
+ */
15
+ public function toArray ($ request )
16
+ {
17
+ return [
18
+ 'id ' => $ this ->id ,
19
+ 'order_id ' => $ this ->order_id ,
20
+ 'dispute_id ' => $ this ->dispute_id ,
21
+ 'platform ' => $ this ->platform ,
22
+ 'transaction_id ' => $ this ->transaction_id ,
23
+ 'status ' => $ this ->status ,
24
+ // 'order_increment_id' => $this->order_increment_id,
25
+ // 'order_status' => $this->order_status,
26
+ // 'order_status_label' => $this->order_status_label,
27
+ // 'dispute_type' => $this->dispute_type,
28
+ // 'dispute_type_label' => $this->dispute_type_label,
29
+ // 'dispute_status' => $this->dispute_status,
30
+ // 'dispute_status_label' => $this->dispute_status_label,
31
+ // 'dispute_created_at' => $this->created_at,
32
+ // 'dispute_updated_at' => $this->updated_at,
33
+ // 'dispute_closed_at' => $this->closed_at,
34
+ // 'dispute_reason' => $this->reason,
35
+ // 'dispute_description' => $this->description,
36
+ // 'dispute_images' => $this->images,
37
+ // 'dispute_refund' => $this->refund,
38
+ // 'dispute_refund_label' => core()->formatPrice($this->refund, $this->order->order_currency_code),
39
+ // 'dispute_refund_base' => $this->refund,
40
+ // 'dispute_refund_base_label' => core()->formatBasePrice($this->refund),
41
+ // 'dispute_refund_status' => $this->refund_status,
42
+ // 'dispute_refund_status_label' => $this->refund_status_label,
43
+ // 'dispute_refund_created_at' => $this->refund_created_at,
44
+ // 'dispute_refund_updated_at' => $this->refund_updated_at,
45
+ // 'dispute_refund_closed_at' => $this->refund_closed_at,
46
+ // 'dispute_refund_reason' => $this->refund_reason,
47
+ // 'dispute_refund_description' => $this->refund_description,
48
+ // 'dispute_refund_images' => $this->refund_images,
49
+ // 'dispute_refund_amount' => $this->refund_amount,
50
+ // 'dispute_refund_amount_label' => core()->formatPrice($this->refund_amount, $this->order->order_currency_code),
51
+ // 'dispute_refund_base_amount' => $this->refund_amount,
52
+ // 'dispute_refund_base_amount_label' => core()->formatBasePrice($this->refund_amount),
53
+ // 'dispute_refund_transaction_id' => $this->refund_transaction_id,
54
+ // 'dispute_refund_transaction_status' => $this->refund_transaction_status,
55
+ // 'dispute_refund_transaction_created_at' => $this->refund_transaction_created_at,
56
+ // 'dispute_refund_transaction_updated_at' => $this->refund_transaction_updated_at,
57
+ // 'dispute_refund_transaction_closed_at' => $this->refund_transaction_closed_at,
58
+ // 'dispute_refund_transaction_reason' => $this->refund_transaction_reason,
59
+ // 'dispute_refund_transaction_description' => $this->refund_transaction_description,
60
+ // 'dispute_refund_transaction_images' => $this->refund_transaction_images,
61
+ // 'dispute_refund_transaction_amount' => $this->refund_transaction_amount,
62
+ // 'dispute_refund_transaction_amount_label' => core()->formatPrice($this->refund_transaction_amount, $this->order->order_currency_code),
63
+ // 'dispute_refund_transaction_base_amount' => $this->refund_transaction_amount,
64
+ // 'dispute_refund_transaction_base_amount_label' => core()->formatBasePrice($this->refund_transaction_amount),
65
+ // 'dispute_refund_transaction_payment_id' => $this->refund_transaction_payment_id,
66
+ // 'dispute_refund_transaction_payment_status' => $this->refund_transaction_payment_status,
67
+ // 'dispute_refund_transaction_payment_created_at' => $this->refund_transaction_payment_created_at,
68
+ // 'dispute_refund_transaction_payment_updated_at' => $this->refund_transaction_payment_updated_at,
69
+ // 'dispute_refund_transaction_payment_closed_at' => $this->refund_transaction_payment_closed_at,
70
+ // 'dispute_refund_transaction_payment_reason' => $this->refund_transaction_payment_reason,
71
+ // 'dispute_refund_transaction_payment_description' => $this->refund_transaction_payment_description,
72
+ // 'dispute_refund_transaction_payment_images' => $this->refund_transaction_payment_images,
73
+ // 'dispute_refund_transaction_payment_amount' => $this->refund_transaction_payment_amount,
74
+ // 'dispute_refund_transaction_payment_amount_label' => core()->formatPrice($this->refund_transaction_payment_amount, $this->order->order_currency_code),
75
+ // 'dispute_refund_transaction_payment_base_amount' => $this->refund_transaction_payment_amount,
76
+ // 'dispute_refund_transaction_payment_base_amount_label' => core()->formatBasePrice($this->refund_transaction_payment_amount),
77
+ // 'dispute_refund_transaction_payment_transaction_id' => $this->refund_transaction_payment_transaction_id,
78
+ // 'dispute_refund_transaction_payment_transaction_status' => $this->refund_transaction_payment_transaction_status,
79
+ // 'dispute_refund_transaction_payment_transaction_created_at' => $this->refund_transaction_payment_transaction_created_at,
80
+ // 'dispute_refund_transaction_payment_transaction_updated_at' => $this->refund_transaction_payment_transaction_updated_at,
81
+ // 'dispute_refund_transaction_payment_transaction_closed_at' => $this->refund_transaction_payment_transaction_closed_at,
82
+ // 'dispute_refund_transaction_payment_transaction_reason' => $this->refund_transaction_payment_transaction_reason,
83
+ // 'dispute_refund_transaction_payment_transaction_description' => $this->refund_transaction_payment_transaction_description,
84
+ // 'dispute_refund_transaction_payment_transaction_images' => $this->refund_transaction_payment_transaction_images,
85
+ // 'dispute_refund_transaction_payment_transaction_amount' => $this->refund_transaction_payment_transaction_amount,
86
+ ];
87
+ }
88
+ }
0 commit comments