simnova / ownercommunity

MIT License
5 stars 1 forks source link

Create Cybersource customer with default payment #172

Closed heruwala closed 2 months ago

heruwala commented 2 months ago

This pull request adds the ability to create a Cybersource customer profile with a default payment. Previously, the createCustomerProfile method accepted a payment token as a string, but now it accepts a PaymentTokenInfo object that includes the payment token and a boolean flag indicating whether it should be set as the default payment instrument. This allows for more flexibility when creating customer profiles.

Summary by Sourcery

This pull request enhances the Cybersource integration by allowing the creation of customer profiles with a default payment instrument. The createCustomerProfile method now accepts a PaymentTokenInfo object, which includes the payment token and a flag to set it as the default payment instrument. Corresponding tests have been updated to reflect this change.

sourcery-ai[bot] commented 2 months ago

Reviewer's Guide by Sourcery

This pull request updates the createCustomerProfile method to accept a PaymentTokenInfo object, which includes a payment token and a boolean flag to set the default payment instrument. This change enhances flexibility when creating customer profiles. The corresponding test cases and method signatures in related interfaces have also been updated to reflect this change.

File-Level Changes

Files Changes
data-access/seedwork/services-seedwork-payment-cybersource-interfaces/index.ts
data-access/src/app/infrastructure-services/payment/index.ts
Updated method signatures to accept PaymentTokenInfo object instead of a string for createCustomerProfile.

Tips - Trigger a new Sourcery review by commenting `@sourcery-ai review` on the pull request. - Continue your discussion with Sourcery by replying directly to review comments. - You can change your review settings at any time by accessing your [dashboard](https://app.sourcery.ai): - Enable or disable the Sourcery-generated pull request summary or reviewer's guide; - Change the review language; - You can always [contact us](mailto:support@sourcery.ai) if you have any questions or feedback.