diff --git a/docs/components/Payment/credit_card_types.rst b/docs/components/Payment/credit_card_types.rst deleted file mode 100644 index 7813f67aa29..00000000000 --- a/docs/components/Payment/credit_card_types.rst +++ /dev/null @@ -1,35 +0,0 @@ -Credit Card Types -================= - -The following credit card types are available by default: - -+--------------------------+--------------------+ -| Related constant | Type | -+==========================+====================+ -| BRAND_VISA | visa | -+--------------------------+--------------------+ -| BRAND_MASTERCARD | mastercard | -+--------------------------+--------------------+ -| BRAND_DISCOVER | discover | -+--------------------------+--------------------+ -| BRAND_AMEX | amex | -+--------------------------+--------------------+ -| BRAND_DINERS_CLUB | diners_club | -+--------------------------+--------------------+ -| BRAND_JCB | jcb | -+--------------------------+--------------------+ -| BRAND_SWITCH | switch | -+--------------------------+--------------------+ -| BRAND_SOLO | solo | -+--------------------------+--------------------+ -| BRAND_DANKORT | dankort | -+--------------------------+--------------------+ -| BRAND_MAESTRO | maestro | -+--------------------------+--------------------+ -| BRAND_FORBRUGSFORENINGEN | forbrugsforeningen | -+--------------------------+--------------------+ -| BRAND_LASER | laser | -+--------------------------+--------------------+ - -.. note:: - All of above types are constant fields in :ref:`component_payment_model_credit-card-interface`. diff --git a/docs/components/Payment/index.rst b/docs/components/Payment/index.rst index 814cc10944a..db911d0a425 100644 --- a/docs/components/Payment/index.rst +++ b/docs/components/Payment/index.rst @@ -3,7 +3,7 @@ Payment PHP library which provides abstraction of payments management. -It ships with default **Payment**, **PaymentMethod** and **CreditCard** models. +It ships with default **Payment** and **PaymentMethod** models. .. note:: This component does not provide any payment gateway. @@ -16,6 +16,5 @@ It ships with default **Payment**, **PaymentMethod** and **CreditCard** models. basic_usage models interfaces - credit_card_types default_fee_calculators state_machine diff --git a/docs/components/Payment/interfaces.rst b/docs/components/Payment/interfaces.rst index 146cb184bab..0b22c01b3b7 100644 --- a/docs/components/Payment/interfaces.rst +++ b/docs/components/Payment/interfaces.rst @@ -4,22 +4,6 @@ Interfaces Model Interfaces ---------------- -.. _component_payment_model_credit-card-interface: - -CreditCardInterface -~~~~~~~~~~~~~~~~~~~ - -This interface should be implemented by any custom model representing a credit card. -It also contains all the default :doc:`/components/Payment/credit_card_types`. - -.. note:: - This interface extends the :ref:`component_payment_model_payment-source-interface` - and the :ref:`component_resource_model_timestampable-interface`. - - For more detailed information go to `Sylius API CreditCardInterface`_. - -.. _Sylius API CreditCardInterface: http://api.sylius.org/Sylius/Component/Payment/Model/CreditCardInterface.html - .. _component_payment_model_payment-interface: PaymentInterface @@ -85,8 +69,6 @@ PaymentSourceInterface This interface needs to be implemented by any custom payment source. -The default payment source is :ref:`component_payment_model_credit-card`. - .. note:: For more detailed information go to `Sylius API PaymentSourceInterface`_. diff --git a/docs/components/Payment/models.rst b/docs/components/Payment/models.rst index 97be004c9a1..da76013fc3d 100644 --- a/docs/components/Payment/models.rst +++ b/docs/components/Payment/models.rst @@ -21,8 +21,6 @@ Every payment is represented by a **Payment** instance and has the following pro +------------+---------------------------------------------+ | state | Payment's state | +------------+---------------------------------------------+ -| creditCard | Credit card as a source | -+------------+---------------------------------------------+ | details | Payment's details | +------------+---------------------------------------------+ | createdAt | Date of creation | @@ -41,44 +39,6 @@ Every payment is represented by a **Payment** instance and has the following pro .. hint:: All default payment states are available in :ref:`component_payment_payment-states`. -.. _component_payment_model_credit-card: - -CreditCard ----------- - -Every credit card is represented by a **CreditCard** instance and has the following properties: - -+----------------+-------------------------------------------+ -| Property | Description | -+================+===========================================+ -| id | Unique id of the credit card | -+----------------+-------------------------------------------+ -| token | Payment gateway token | -+----------------+-------------------------------------------+ -| type | Type of credit card (VISA, MasterCard...) | -+----------------+-------------------------------------------+ -| cardholderName | Cardholder's name | -+----------------+-------------------------------------------+ -| number | Card number | -+----------------+-------------------------------------------+ -| securityCode | Security code | -+----------------+-------------------------------------------+ -| expiryMonth | Expiry month | -+----------------+-------------------------------------------+ -| expiryYear | Expiry year | -+----------------+-------------------------------------------+ -| createdAt | Date of creation | -+----------------+-------------------------------------------+ -| updatedAt | Date of the last update | -+----------------+-------------------------------------------+ - -.. note:: - This model implements the :ref:`component_payment_model_credit-card-interface`. - - For more detailed information go to `Sylius API CreditCard`_. - -.. _Sylius API CreditCard: http://api.sylius.org/Sylius/Component/Payment/Model/CreditCard.html - .. _component_payment_model_payment-method: PaymentMethod