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

valtown bug fixes #220

Merged
merged 1 commit into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ const request = {
]
};

craftgate
.payment()
.initApmPayment(request)
craftgate.payment().initApmPayment(request)
.then(result => console.info('Instant Transfer Apm payment successful', result))
.catch(err => console.error('Failed to create Instant Transfer Apm payment', err));
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ const craftgate = new Craftgate.Client({
baseUrl: 'https://sandbox-api.craftgate.io'
});

craftgate
.payment()
.retrieveActiveBanks()
craftgate.payment().retrieveActiveBanks()
.then(results => console.info('Retrieve instant transfer active banks response ', results))
.catch(err => console.error('Failed to retrieve instant transfer active banks', err));
4 changes: 1 addition & 3 deletions samples/onboarding/CreateBuyer.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ const request = {
address: 'Suadiye Mah. Örnek Cd. No:23, 34740 Kadıköy/İstanbul'
};

craftgate
.onboarding()
.createMember(request)
craftgate.onboarding().createMember(request)
.then(result => console.info('Buyer member created', result))
.catch(err => console.error('Failed to create buyer member', err));
4 changes: 1 addition & 3 deletions samples/onboarding/CreateMemberAsBuyerAndSubMerchant.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ const request = {
address: 'Suadiye Mah. Örnek Cd. No:23, 34740 Kadıköy/İstanbul'
};

craftgate
.onboarding()
.createMember(request)
craftgate.onboarding().createMember(request)
.then(result => console.info('Member created', result))
.catch(err => console.error('Failed to create member', err));
4 changes: 1 addition & 3 deletions samples/onboarding/CreateSubMerchant.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ const request = {
address: 'Suadiye Mah. Örnek Cd. No:23, 34740 Kadıköy/İstanbul'
};

craftgate
.onboarding()
.createMember(request)
craftgate.onboarding().createMember(request)
.then(result => console.info('Sub merchant member created', result))
.catch(err => console.error('Failed to create sub merchant member', err));
4 changes: 1 addition & 3 deletions samples/onboarding/UpdateBuyer.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ const request = {
};

// change the memberId (displayed as 1 below) with a valid id to run the sample
craftgate
.onboarding()
.updateMember(1, request)
craftgate.onboarding().updateMember(1, request)
.then(result => console.info('Buyer member updated', result))
.catch(err => console.error('Failed to update buyer member', err));
4 changes: 1 addition & 3 deletions samples/onboarding/UpdateSubMerchant.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ const request = {
};

// change the memberId (displayed as 1 below) with a valid id to run the sample
craftgate
.onboarding()
.updateMember(1, request)
craftgate.onboarding().updateMember(1, request)
.then(result => console.info('Sub merchant member updated', result))
.catch(err => console.error('Failed to update sub merchant member', err));
4 changes: 1 addition & 3 deletions samples/payment/InitKlarnaApmPayment.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ const request = {
}
};

craftgate
.payment()
.initApmPayment(request)
craftgate.payment().initApmPayment(request)
.then(result => console.info('Klarna Apm init payment successful', result))
.catch(err => console.error('Failed to init Klarna Apm payment', err));
4 changes: 1 addition & 3 deletions samples/settlement/CreateInstantWalletSettlement.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ const request = {
excludedSubMerchantMemberIds: [] // you can add member ids for excluding from settlement
};

craftgate
.settlement()
.createInstantWalletSettlement(request)
craftgate.settlement().createInstantWalletSettlement(request)
.then(result => console.info('Instant wallet settlement create response', result))
.catch(err => console.error('Failed to create instant wallet settlement', err));
4 changes: 1 addition & 3 deletions samples/settlement/CreatePayoutAccountForMerchant.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ const request = {
accountOwner: Craftgate.Model.AccountOwner.MERCHANT
};

craftgate
.settlement()
.createPayoutAccount(request)
craftgate.settlement().createPayoutAccount(request)
.then(result => console.info('Payout Account create response', result))
.catch(err => console.error('Failed to create payout account', err));
4 changes: 1 addition & 3 deletions samples/settlement/CreatePayoutAccountForSubMerchant.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ const request = {
subMerchantMemberId: 1
};

craftgate
.settlement()
.createPayoutAccount(request)
craftgate.settlement().createPayoutAccount(request)
.then(result => console.info('Payout Account create response', result))
.catch(err => console.error('Failed to create payout account', err));
4 changes: 1 addition & 3 deletions samples/settlement/DeletePayoutAccount.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,5 @@ const craftgate = new Craftgate.Client({
baseUrl: 'https://sandbox-api.craftgate.io'
});

craftgate
.settlement()
.deletePayoutAccount(11)
craftgate.settlement().deletePayoutAccount(11)
.catch(err => console.error('Failed to delete payout account', err));
4 changes: 1 addition & 3 deletions samples/settlement/UpdatePayoutAccount.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,5 @@ const request = {
externalAccountId: 'wiseRecipientId2'
};

craftgate
.settlement()
.updatePayoutAccount(11, request)
craftgate.settlement().updatePayoutAccount(11, request)
.catch(err => console.error('Failed to update payout account', err));