1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-05 13:16:14 +01:00
phorge-phorge/resources/sql/autopatches/20141008.phortunerefund.sql
epriestley 1e8c314c81 Mostly implement order refunds and cancellations
Summary:
Ref T2787. This has some rough edges but basically works.

  - Users can cancel orders that are in incomplete states (or in complete states, if the application allows them to -- for example, some future application might allow cancellation of billed-but-not-shipped orders).
  - Merchant controllers can partially or fully refund orders from any state after payment.

Test Plan: This is still rough around the edges, but issued Stripe and WePay refunds.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: chad, epriestley

Maniphest Tasks: T2787

Differential Revision: https://secure.phabricator.com/D10664
2014-10-08 15:33:25 -07:00

11 lines
388 B
SQL

ALTER TABLE {$NAMESPACE}_phortune.phortune_charge
ADD amountRefundedAsCurrency VARCHAR(64) NOT NULL COLLATE utf8_bin;
UPDATE {$NAMESPACE}_phortune.phortune_charge
SET amountRefundedAsCurrency = '0.00 USD';
ALTER TABLE {$NAMESPACE}_phortune.phortune_charge
ADD refundingPHID VARBINARY(64);
ALTER TABLE {$NAMESPACE}_phortune.phortune_charge
ADD refundedChargePHID VARBINARY(64);