This repository has been archived by the owner on Sep 3, 2024. It is now read-only.
forked from dj-stripe/dj-stripe
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also adds migrations (including missing migrations).
- Loading branch information
Showing
9 changed files
with
631 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.9.1 on 2016-06-25 17:51 | ||
from __future__ import unicode_literals | ||
|
||
import django.core.validators | ||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
import djstripe.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('djstripe', '0013_sync_cleanup'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='charge', | ||
name='receipt_sent', | ||
field=models.BooleanField(default=False, help_text='Whether or not a receipt was sent for this charge.'), | ||
), | ||
migrations.AlterField( | ||
model_name='charge', | ||
name='source', | ||
field=models.ForeignKey(help_text='The source used for this charge.', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='charges', to='djstripe.StripeSource'), | ||
), | ||
migrations.AlterField( | ||
model_name='subscription', | ||
name='application_fee_percent', | ||
field=djstripe.fields.StripePercentField(decimal_places=2, help_text=b'A positive decimal that represents the fee percentage of the subscription invoice amount that will be transferred to the application owner\xe2\x80\x99s Stripe account each billing period.', max_digits=5, null=True, validators=[django.core.validators.MinValueValidator(1.0), django.core.validators.MaxValueValidator(100.0)]), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.9.1 on 2016-06-25 17:51 | ||
from __future__ import unicode_literals | ||
|
||
import django.core.validators | ||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('djstripe', '0014_auto_20160625_1851'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='UpcomingInvoice', | ||
fields=[ | ||
('invoice_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='djstripe.Invoice')), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
bases=('djstripe.invoice',), | ||
), | ||
migrations.AlterField( | ||
model_name='invoiceitem', | ||
name='invoice', | ||
field=models.ForeignKey(help_text='The invoice to which this invoiceitem is attached.', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='invoiceitems', to='djstripe.Invoice'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.9.1 on 2016-06-25 22:40 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations | ||
import djstripe.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('djstripe', '0015_upcoming_invoices'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='account', | ||
name='stripe_id', | ||
field=djstripe.fields.StripeIdField(max_length=255, unique=True), | ||
), | ||
migrations.AlterField( | ||
model_name='charge', | ||
name='source_stripe_id', | ||
field=djstripe.fields.StripeIdField(help_text=b'The payment source id.', max_length=255, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='charge', | ||
name='stripe_id', | ||
field=djstripe.fields.StripeIdField(max_length=255, unique=True), | ||
), | ||
migrations.AlterField( | ||
model_name='customer', | ||
name='stripe_id', | ||
field=djstripe.fields.StripeIdField(max_length=255, unique=True), | ||
), | ||
migrations.AlterField( | ||
model_name='event', | ||
name='stripe_id', | ||
field=djstripe.fields.StripeIdField(max_length=255, unique=True), | ||
), | ||
migrations.AlterField( | ||
model_name='invoice', | ||
name='stripe_id', | ||
field=djstripe.fields.StripeIdField(max_length=255, unique=True), | ||
), | ||
migrations.AlterField( | ||
model_name='invoiceitem', | ||
name='stripe_id', | ||
field=djstripe.fields.StripeIdField(max_length=255, unique=True), | ||
), | ||
migrations.AlterField( | ||
model_name='plan', | ||
name='stripe_id', | ||
field=djstripe.fields.StripeIdField(max_length=255, unique=True), | ||
), | ||
migrations.AlterField( | ||
model_name='stripesource', | ||
name='stripe_id', | ||
field=djstripe.fields.StripeIdField(max_length=255, unique=True), | ||
), | ||
migrations.AlterField( | ||
model_name='subscription', | ||
name='stripe_id', | ||
field=djstripe.fields.StripeIdField(max_length=255, unique=True), | ||
), | ||
migrations.AlterField( | ||
model_name='transfer', | ||
name='destination', | ||
field=djstripe.fields.StripeIdField(help_text=b'ID of the bank account, card, or Stripe account the transfer was sent to.', max_length=255), | ||
), | ||
migrations.AlterField( | ||
model_name='transfer', | ||
name='destination_payment', | ||
field=djstripe.fields.StripeIdField(help_text=b'If the destination is a Stripe account, this will be the ID of the payment that the destination account received for the transfer.', max_length=255, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='transfer', | ||
name='source_transaction', | ||
field=djstripe.fields.StripeIdField(help_text=b'ID of the charge (or other transaction) that was used to fund the transfer. If null, the transfer was funded from the available balance.', max_length=255, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='transfer', | ||
name='stripe_id', | ||
field=djstripe.fields.StripeIdField(max_length=255, unique=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.