36 public function testInvoke()
43 if (TESTS_WEB_API_ADAPTER == self::ADAPTER_REST) {
57 'operation' => self::SERVICE_READ_NAME.
'refund',
61 'order_id' =>
$order->getId(),
62 'subtotal' =>
$order->getSubtotal(),
63 'grand_total' =>
$order->getGrandTotal(),
64 'base_grand_total' =>
$order->getBaseGrandTotal(),
65 'base_shipping_amount' =>
$order->getBaseShippingAmount(),
66 'shipping_address_id' =>
$order->getShippigAddressId(),
67 'billing_address_id' =>
$order->getBillingAddressId(),
68 'invoiceId' =>
$order->getInvoiceCollection()->getFirstItem()->getId(),
70 'adjustment_negative' =>
null,
71 'adjustment_positive' =>
null,
72 'base_adjustment' =>
null,
73 'base_adjustment_negative' =>
null,
74 'base_adjustment_positive' =>
null,
75 'base_currency_code' =>
null,
76 'base_discount_amount' =>
null,
77 'base_discount_tax_compensation_amount' =>
null,
78 'base_shipping_discount_tax_compensation_amnt' =>
null,
79 'base_shipping_incl_tax' =>
null,
80 'base_shipping_tax_amount' =>
null,
81 'base_subtotal' =>
null,
82 'base_subtotal_incl_tax' =>
null,
83 'base_tax_amount' =>
null,
84 'base_to_global_rate' =>
null,
85 'base_to_order_rate' =>
null,
87 'creditmemo_status' =>
null,
88 'discount_amount' =>
null,
89 'discount_description' =>
null,
92 'global_currency_code' =>
null,
93 'discount_tax_compensation_amount' =>
null,
94 'increment_id' =>
null,
96 'order_currency_code' =>
null,
97 'shipping_amount' =>
null,
98 'shipping_discount_tax_compensation_amount' =>
null,
99 'shipping_incl_tax' =>
null,
100 'shipping_tax_amount' =>
null,
102 'store_currency_code' =>
null,
104 'store_to_base_rate' =>
null,
105 'store_to_order_rate' =>
null,
106 'subtotal_incl_tax' =>
null,
107 'tax_amount' =>
null,
108 'transaction_id' =>
null,
109 'updated_at' =>
null,
114 [
'creditmemo' =>
$data,
'offline_requested' =>
true]
116 $this->assertNotEmpty(
$result);
117 $order = $this->objectManager->get(OrderRepositoryInterface::class)->get(
$order->getId());
121 private function getItemsForRest(
$order)
137 private function getItemsForSoap(
$order)
_webApiCall( $serviceInfo, $arguments=[], $webApiAdapterCode=null, $storeCode=null, $integration=null)
static getObjectManager()