Skip to content

Commit

Permalink
fix: TransactionsCreateOptions interface (#103)
Browse files Browse the repository at this point in the history
* chore: update main (#98)

* Update package.json

* fix: add comment to external_id field (#91)

* fix: add percentage field to SplitRuleArg and add comments (#90)

* fix: Customer interface (#92)

* fix: add missing fields to Customer and fix birthday in CustomerCreateOptiosn

* fix: add comments to Document's new fields

* fix: update TransactionCreateOptionsBase split_rules type (#97)

* Update package.json (#93)

* Release Next Version (#94)

* Update package.json

* fix: add comment to external_id field (#91)

* fix: add percentage field to SplitRuleArg and add comments (#90)

* fix: Customer interface (#92)

* fix: add missing fields to Customer and fix birthday in CustomerCreateOptiosn

* fix: add comments to Document's new fields

Co-authored-by: Arthur Abrantes <[email protected]>

* fix: update TransactionCreateOptionsBase split_rules type

* fix: update TransactionCreateOptionsBase split_rules type

Co-authored-by: Jonathan Célio <[email protected]>

* fix: remove 'opts' argument from cards functions (#95)

* Update package.json (#93)

* Release Next Version (#94)

* Update package.json

* fix: add comment to external_id field (#91)

* fix: add percentage field to SplitRuleArg and add comments (#90)

* fix: Customer interface (#92)

* fix: add missing fields to Customer and fix birthday in CustomerCreateOptiosn

* fix: add comments to Document's new fields

Co-authored-by: Arthur Abrantes <[email protected]>

* remove 'opts' argument from cards functions

* fix: remove 'opts' argument from cards functions

* fix: remove 'opts' argument from cards functions

Co-authored-by: Jonathan Célio <[email protected]>

* fix: change type of customer.id from string to number (#96)

* Update package.json (#93)

* Release Next Version (#94)

* Update package.json

* fix: add comment to external_id field (#91)

* fix: add percentage field to SplitRuleArg and add comments (#90)

* fix: Customer interface (#92)

* fix: add missing fields to Customer and fix birthday in CustomerCreateOptiosn

* fix: add comments to Document's new fields

Co-authored-by: Arthur Abrantes <[email protected]>

* fix: change type of customer.id from string to number

* fix customer field of TransactionCreateOptionsBase

* fix: change type of customer.id from string to number

* fix customer field of TransactionCreateOptionsBase

Co-authored-by: Jonathan Célio <[email protected]>

Co-authored-by: Arthur Abrantes <[email protected]>

* ci: update ci to trigger in next version

* chore: update master (#100)

* Update package.json

* fix: add comment to external_id field (#91)

* fix: add percentage field to SplitRuleArg and add comments (#90)

* fix: Customer interface (#92)

* fix: add missing fields to Customer and fix birthday in CustomerCreateOptiosn

* fix: add comments to Document's new fields

* fix: update TransactionCreateOptionsBase split_rules type (#97)

* Update package.json (#93)

* Release Next Version (#94)

* Update package.json

* fix: add comment to external_id field (#91)

* fix: add percentage field to SplitRuleArg and add comments (#90)

* fix: Customer interface (#92)

* fix: add missing fields to Customer and fix birthday in CustomerCreateOptiosn

* fix: add comments to Document's new fields

Co-authored-by: Arthur Abrantes <[email protected]>

* fix: update TransactionCreateOptionsBase split_rules type

* fix: update TransactionCreateOptionsBase split_rules type

Co-authored-by: Jonathan Célio <[email protected]>

* fix: remove 'opts' argument from cards functions (#95)

* Update package.json (#93)

* Release Next Version (#94)

* Update package.json

* fix: add comment to external_id field (#91)

* fix: add percentage field to SplitRuleArg and add comments (#90)

* fix: Customer interface (#92)

* fix: add missing fields to Customer and fix birthday in CustomerCreateOptiosn

* fix: add comments to Document's new fields

Co-authored-by: Arthur Abrantes <[email protected]>

* remove 'opts' argument from cards functions

* fix: remove 'opts' argument from cards functions

* fix: remove 'opts' argument from cards functions

Co-authored-by: Jonathan Célio <[email protected]>

* fix: change type of customer.id from string to number (#96)

* Update package.json (#93)

* Release Next Version (#94)

* Update package.json

* fix: add comment to external_id field (#91)

* fix: add percentage field to SplitRuleArg and add comments (#90)

* fix: Customer interface (#92)

* fix: add missing fields to Customer and fix birthday in CustomerCreateOptiosn

* fix: add comments to Document's new fields

Co-authored-by: Arthur Abrantes <[email protected]>

* fix: change type of customer.id from string to number

* fix customer field of TransactionCreateOptionsBase

* fix: change type of customer.id from string to number

* fix customer field of TransactionCreateOptionsBase

Co-authored-by: Jonathan Célio <[email protected]>

* chore: update next (#99)

* chore: update main (#98)

* Update package.json

* fix: add comment to external_id field (#91)

* fix: add percentage field to SplitRuleArg and add comments (#90)

* fix: Customer interface (#92)

* fix: add missing fields to Customer and fix birthday in CustomerCreateOptiosn

* fix: add comments to Document's new fields

* fix: update TransactionCreateOptionsBase split_rules type (#97)

* Update package.json (#93)

* Release Next Version (#94)

* Update package.json

* fix: add comment to external_id field (#91)

* fix: add percentage field to SplitRuleArg and add comments (#90)

* fix: Customer interface (#92)

* fix: add missing fields to Customer and fix birthday in CustomerCreateOptiosn

* fix: add comments to Document's new fields

Co-authored-by: Arthur Abrantes <[email protected]>

* fix: update TransactionCreateOptionsBase split_rules type

* fix: update TransactionCreateOptionsBase split_rules type

Co-authored-by: Jonathan Célio <[email protected]>

* fix: remove 'opts' argument from cards functions (#95)

* Update package.json (#93)

* Release Next Version (#94)

* Update package.json

* fix: add comment to external_id field (#91)

* fix: add percentage field to SplitRuleArg and add comments (#90)

* fix: Customer interface (#92)

* fix: add missing fields to Customer and fix birthday in CustomerCreateOptiosn

* fix: add comments to Document's new fields

Co-authored-by: Arthur Abrantes <[email protected]>

* remove 'opts' argument from cards functions

* fix: remove 'opts' argument from cards functions

* fix: remove 'opts' argument from cards functions

Co-authored-by: Jonathan Célio <[email protected]>

* fix: change type of customer.id from string to number (#96)

* Update package.json (#93)

* Release Next Version (#94)

* Update package.json

* fix: add comment to external_id field (#91)

* fix: add percentage field to SplitRuleArg and add comments (#90)

* fix: Customer interface (#92)

* fix: add missing fields to Customer and fix birthday in CustomerCreateOptiosn

* fix: add comments to Document's new fields

Co-authored-by: Arthur Abrantes <[email protected]>

* fix: change type of customer.id from string to number

* fix customer field of TransactionCreateOptionsBase

* fix: change type of customer.id from string to number

* fix customer field of TransactionCreateOptionsBase

Co-authored-by: Jonathan Célio <[email protected]>

Co-authored-by: Arthur Abrantes <[email protected]>

* ci: update ci to trigger in next version

Co-authored-by: Arthur Abrantes <[email protected]>

* chore: update package.json

Co-authored-by: Arthur Abrantes <[email protected]>

* fix: customer type

* fix: customer type

Co-authored-by: Jonathan Célio <[email protected]>
  • Loading branch information
Arthur Abrantes and jonyw4 authored May 12, 2021
1 parent b64c90a commit 0625d92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/transactions/options/Create/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ interface TransactionCreateOptionsBase {
capture?: boolean;
/** Regras de divisão da transação */
split_rules?: Array<SplitRuleArg>;
customer?: Customer | { id: string };
customer?: Customer | { id: number };
/** Obrigatório com o antifraude habilitado. Define os dados de cobrança, como nome e endereço */
billing?: Billing;
/** Deve ser preenchido no caso da venda de bem físico (ver objeto items) */
Expand Down

0 comments on commit 0625d92

Please sign in to comment.