<filename>saleor/rest/serializers/store/bank_account.py
from django.apps import apps
from rest_flex_fields import FlexFieldsModelSerializer

__all__ = [
    'BankAccountSerializer',
]

BankAccount = apps.get_model(*'store.BankAccount'.split())


class BankAccountSerializer(FlexFieldsModelSerializer):
    """Serializer for :model:`store.BankAccount`:

    `**Fields:**`
        01. `id`                          : `AutoField`
        02. `number`                      : `CharField`
        03. `provider`                    : `CharField`
        04. `site_settings`               : `ForeignKey` [:model:`site.SiteSettings`]

    `**Reverse Fields:**`
    """

    class Meta:
        model = BankAccount
        fields = [
            # Fields
            'id',
            'number',
            'provider',
            'site_settings',

            # Reverse Fields
        ]
        read_only_fields = []

    # def create(self, validated_data):
    #     return super().create(validated_data)

    # def update(self, instance, validated_data):
    #     return super().update(instance, validated_data)

<filename>saleor/rest/serializers/store/bank_account.py
from django.apps import apps
from rest_flex_fields import FlexFieldsModelSerializer

__all__ = [
    'BankAccountSerializer',
]

BankAccount = apps.get_model(*'store.BankAccount'.split())


class BankAccountSerializer(FlexFieldsModelSerializer):
    """Serializer for :model:`store.BankAccount`:

    `**Fields:**`
        01. `id`                          : `AutoField`
        02. `number`                      : `CharField`
        03. `provider`                    : `CharField`
        04. `site_settings`               : `ForeignKey` [:model:`site.SiteSettings`]

    `**Reverse Fields:**`
    """

    class Meta:
        model = BankAccount
        fields = [
            # Fields
            'id',
            'number',
            'provider',
            'site_settings',

            # Reverse Fields
        ]
        read_only_fields = []

    # def create(self, validated_data):
    #     return super().create(validated_data)

    # def update(self, instance, validated_data):
    #     return super().update(instance, validated_data)

Serializer for :model:`store.BankAccount`:      `**Fields:**`         01. `id`                          : `AutoField`         02. `number`                      : `CharField`         03. `provider`                    : `CharField`         04. `site_settings`               : `ForeignKey` [:model:`site.SiteSettings`]      `**Reverse Fields:**` # Fields # Reverse Fields # def create(self, validated_data): #     return super().create(validated_data) # def update(self, instance, validated_data): #     return super().update(instance, validated_data)