Skip to content

Commit

Permalink
ledger: bpoint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Percival authored and brendanc-dpaw committed Oct 26, 2017
1 parent 515d10a commit 9c926da
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
1 change: 0 additions & 1 deletion ledger/payments/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@ class BpayFileList(viewsets.ReadOnlyModelViewSet):
# #
#######################################################
class BpointTransactionSerializer(serializers.ModelSerializer):
original_txn = serializers.CharField(source='original_txn.txn_number')
order = serializers.CharField(source='order.number')
cardtype = serializers.SerializerMethodField()
settlement_date = serializers.DateField(format='%B, %d %Y')
Expand Down
20 changes: 20 additions & 0 deletions ledger/payments/bpoint/migrations/0011_auto_20171026_1630.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2017-10-26 08:30
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('bpoint', '0010_auto_20171026_1540'),
]

operations = [
migrations.AlterField(
model_name='bpointtransaction',
name='original_txn',
field=models.CharField(blank=True, help_text='Transaction number stored if current transaction depends on a previous transaction in the case where the action is a refund, reversal or capture', max_length=128, null=True),
),
]
2 changes: 1 addition & 1 deletion ledger/payments/bpoint/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class BpointTransaction(models.Model):
type = models.CharField(max_length=50, choices=TRANSACTION_TYPES)
# store the txn number from Bpoint
txn_number = models.CharField(unique=True, max_length=128, help_text='Transaction number used by BPOINT to identify a transaction')
original_txn = models.ForeignKey('self', to_field='txn_number', blank=True, null=True, help_text='Transaction number stored \
original_txn = models.CharField(max_length=128, blank=True, null=True, help_text='Transaction number stored \
if current transaction depends on a previous transaction \
in the case where the action is a refund, reversal or capture')
dvtoken = models.CharField(max_length=128,null=True,blank=True,help_text='Stored card dv token')
Expand Down

0 comments on commit 9c926da

Please sign in to comment.