Skip to content
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

Open
wants to merge 2 commits into
base: 7.0.x
Choose a base branch
from

Conversation

dmatuszczak
Copy link

No description provided.

Copy link
Collaborator

@swlodarski-sumoheavy swlodarski-sumoheavy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional notes:

@@ -20,26 +20,96 @@ import { Bill, BillInterface } from './Bill/Bill';
import { Item as BillItem } from './Bill/Item';
Copy link
Collaborator

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';
Copy link
Collaborator

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';
Copy link
Collaborator

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';
Copy link
Collaborator

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';
Copy link
Collaborator

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';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add RefundInfo

Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants