-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #241 from Pinelab-studio/feat/store-payment-status
Storing failed and successful payments for Stripe Plugin
- Loading branch information
Showing
25 changed files
with
1,580 additions
and
573 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@pinelab/vendure-plugin-stripe-subscription", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"description": "Vendure plugin for selling subscriptions via Stripe", | ||
"author": "Martijn van de Brug <[email protected]>", | ||
"homepage": "https://pinelab-plugins.com/", | ||
|
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
34 changes: 34 additions & 0 deletions
34
packages/vendure-plugin-stripe-subscription/src/api/stripe-subscription-payment.entity.ts
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,34 @@ | ||
import { DeepPartial } from '@vendure/common/lib/shared-types'; | ||
import { VendureEntity, ID } from '@vendure/core'; | ||
import { Column, Entity } from 'typeorm'; | ||
|
||
@Entity() | ||
export class StripeSubscriptionPayment extends VendureEntity { | ||
constructor(input?: DeepPartial<StripeSubscriptionPayment>) { | ||
super(input); | ||
} | ||
|
||
@Column({ nullable: true }) | ||
invoiceId!: string; | ||
|
||
@Column({ nullable: true }) | ||
collectionMethod!: string; | ||
|
||
@Column({ nullable: true }) | ||
eventType!: string; | ||
|
||
@Column({ nullable: true }) | ||
charge!: number; | ||
|
||
@Column({ nullable: true }) | ||
currency!: string; | ||
|
||
@Column({ nullable: true }) | ||
orderCode!: string; | ||
|
||
@Column({ nullable: true }) | ||
channelId!: string; | ||
|
||
@Column({ nullable: true }) | ||
subscriptionId!: string; | ||
} |
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.