-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SP-1135 Add exports to Node.js SDK #130
base: 7.0.x
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Additional notes:
- please add export of BitPayException to Exceptions/index.ts
- I think there is a bug here https://github.com/bitpay/nodejs-bitpay-client/blob/6.3.x/src/Model/Ledger/BuyerFields.ts#L14
export class BuyerFields implements BuyerFields {
Please change it to:
export class BuyerFields implements BuyerFieldsInterface {
@@ -20,26 +20,96 @@ import { Bill, BillInterface } from './Bill/Bill'; | |||
import { Item as BillItem } from './Bill/Item'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add ItemInterface too?
import { PayoutGroupFailed, PayoutGroupFailedInterface } from './Payout/PayoutGroupFailed'; | ||
import { Buyer, BuyerInterface } from './Invoice/Buyer'; | ||
import { InvoiceBuyerProvidedInfo } from './Invoice/InvoiceBuyerProvidedInfo'; | ||
import { InvoiceEventTokenInterface } from './Invoice/InvoiceEventToken'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add InvoiceEventToken
@@ -20,26 +20,96 @@ import { Bill, BillInterface } from './Bill/Bill'; | |||
import { Item as BillItem } from './Bill/Item'; | |||
import { LedgerInterface } from './Ledger/Ledger'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add Ledger
@@ -20,26 +20,96 @@ import { Bill, BillInterface } from './Bill/Bill'; | |||
import { Item as BillItem } from './Bill/Item'; | |||
import { LedgerInterface } from './Ledger/Ledger'; | |||
import { LedgerEntryInterface } from './Ledger/LedgerEntry'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add LedgerEntry
@@ -20,26 +20,96 @@ import { Bill, BillInterface } from './Bill/Bill'; | |||
import { Item as BillItem } from './Bill/Item'; | |||
import { LedgerInterface } from './Ledger/Ledger'; | |||
import { LedgerEntryInterface } from './Ledger/LedgerEntry'; | |||
import { BuyerFieldsInterface, BuyerFields } from './Ledger/BuyerFields'; | |||
import { PayoutRecipient, PayoutRecipientInterface } from './Payout/PayoutRecipient'; | |||
import { PayoutRecipients, PayoutRecipientsInterface } from './Payout/PayoutRecipients'; | |||
import { Payout, PayoutInterface } from './Payout/Payout'; | |||
import { PayoutGroupInterface } from './Payout/PayoutGroup'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing PayoutGroup
import { SupportedTransactionCurrency } from './Invoice/SupportedTransactionCurrency'; | ||
import { InvoiceDataInterface, InvoiceData } from './Settlement/InvoiceData'; | ||
import { PayoutInfoInterface, PayoutInfo } from './Settlement/PayoutInfo'; | ||
import { RefundInfoInterface } from './Settlement/RefundInfo'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add RefundInfo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add exports for enum like consts? For example:
import * as InvoiceStatus from './Invoice/InvoiceStatus';
...
export {
...
InvoiceStatus
...
}
This should be done in the following cases:
- Model/Bill/BillStatus.ts
- Model/Invoice/InvoiceStatus.ts
- Model/Invoice/RefundParams.ts
- Model/Invoice/RefundStatus.ts
- Model/Payout/PayoutStatus.ts
- Model/Payout/RecipientReferenceMethod.ts
- Model/Payout/RecipientStatus.ts
No description provided.