woocommerce/includes/data-stores
Justin Shreve fb124232cf Update Payment Tokens to follow the same pattern for custom data as other object types.
Payment tokens was introduced in 2.6 and was updated to use the new CRUD code while some of the CRUD system was still in flux.

While most things were correct, the prop handling for custom fields (like a card's last 4 digits) were directly calling meta functions, instead of delegating to the data store/parent.

This PR moves these props to `extra_data` and follows the same pattern as product types or order items. It also updates some version tags to 3.0.0. Finally, it adds an additional test for saving meta after a create which looks like it was lacking.

To Test:
* Run `phpunit`.
* Go to the "My Account" tab and add a new payment method. You need a payment gateway that supports this, like Simplify.
* Test the add a payment method flow.
* Make a test purchase using the saved payment method.
2017-03-14 12:33:35 -07:00
..
abstract-wc-order-data-store-cpt.php Handle date paid in getter and during save to avoid filters during construct 2017-03-09 14:40:19 +00:00
abstract-wc-order-item-type-data-store.php Standardize cache group names 2017-03-02 17:15:39 +00:00
class-wc-coupon-data-store-cpt.php Better increase/decreasing 2017-03-10 10:28:56 -08:00
class-wc-customer-data-store-session.php Tidy, refactor, and split up methods in checkout class 2016-11-25 21:46:34 +00:00
class-wc-customer-data-store.php Prevent update or list _order_count and _money_spent on WC_Customer_Data_Store 2017-03-06 19:03:26 -03:00
class-wc-customer-download-data-store.php Fix download count 2017-02-20 13:36:15 +00:00
class-wc-data-store-wp.php Merge pull request #13104 from woocommerce/fix-13015 2017-02-09 13:37:54 -02:00
class-wc-order-data-store-cpt.php Handle date paid in getter and during save to avoid filters during construct 2017-03-09 14:40:19 +00:00
class-wc-order-item-coupon-data-store.php Cache items 2017-02-01 14:54:18 +01:00
class-wc-order-item-data-store.php Merge branch 'master' into crud-perf-tweaks 2017-02-09 12:31:25 +00:00
class-wc-order-item-fee-data-store.php Cache items 2017-02-01 14:54:18 +01:00
class-wc-order-item-product-store.php Cache items 2017-02-01 14:54:18 +01:00
class-wc-order-item-shipping-data-store.php Cache items 2017-02-01 14:54:18 +01:00
class-wc-order-item-tax-data-store.php Cache items 2017-02-01 14:54:18 +01:00
class-wc-order-refund-data-store-cpt.php woocommerce_delete_order_refund 2017-02-16 12:33:47 +00:00
class-wc-payment-token-data-store.php Update Payment Tokens to follow the same pattern for custom data as other object types. 2017-03-14 12:33:35 -07:00
class-wc-product-data-store-cpt.php Avoid wc_clean 2017-03-06 14:53:32 +00:00
class-wc-product-grouped-data-store-cpt.php Fix duplication by passing through force 2017-02-22 13:15:33 +00:00
class-wc-product-variable-data-store-cpt.php Fix is_purchasable (requires save) when price is null 2017-03-09 13:26:12 +00:00
class-wc-product-variation-data-store-cpt.php Fix some PHPCS errors 2017-03-07 19:57:28 +02:00
class-wc-shipping-zone-data-store.php Reduce `select *` usage 2017-02-13 12:58:42 +00:00