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

Remove editable bitcoin receiver actions #488

Merged
merged 1 commit into from
Aug 27, 2018
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
3 changes: 1 addition & 2 deletions lib/resources/BitcoinReceivers.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ module.exports = StripeResource.extend({
path: 'bitcoin/receivers',

includeBasic: [
'create', 'list', 'retrieve',
'update', 'setMetadata', 'getMetadata',
'list', 'retrieve', 'getMetadata',
],

listTransactions: stripeMethod({
Expand Down
37 changes: 0 additions & 37 deletions test/resources/BitcoinReceivers.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,28 +16,6 @@ describe('BitcoinReceivers Resource', function() {
});
});

describe('create', function() {
it('Sends the correct request', function() {
stripe.bitcoinReceivers.create({
amount: 200,
currency: 'usd',
description: 'some details',
email: '[email protected]',
});
expect(stripe.LAST_REQUEST).to.deep.equal({
method: 'POST',
url: '/v1/bitcoin/receivers',
headers: {},
data: {
amount: 200,
currency: 'usd',
description: 'some details',
email: '[email protected]',
},
});
});
});

describe('list', function() {
it('Sends the correct request', function() {
stripe.bitcoinReceivers.list();
Expand All @@ -50,21 +28,6 @@ describe('BitcoinReceivers Resource', function() {
});
});

describe('update', function() {
it('Sends the correct request to the top-level API', function() {
stripe.bitcoinReceivers.update(
'btcrcv_123',
{metadata: {key: 'value'}}
);
expect(stripe.LAST_REQUEST).to.deep.equal({
method: 'POST',
url: '/v1/bitcoin/receivers/btcrcv_123',
data: {metadata: {key: 'value'}},
headers: {},
});
});
});

describe('listTransactions', function() {
it('Sends the correct request', function() {
stripe.bitcoinReceivers.listTransactions('receiverId', {
Expand Down
28 changes: 0 additions & 28 deletions test/resources/Charges.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,34 +42,6 @@ describe('Charge Resource', function() {
headers: {},
});
});

it('Sends the correct request for Bitcoin', function() {
var receiver = stripe.bitcoinReceivers.create({
amount: 100,
currency: 'usd',
description: 'some details',
email: '[email protected]',
})

stripe.charges.create({
amount: receiver.amount,
currency: receiver.currency,
description: receiver.description,
source: receiver.id,
});

expect(stripe.LAST_REQUEST).to.deep.equal({
method: 'POST',
url: '/v1/charges',
headers: {},
data: {
amount: receiver.amount,
currency: receiver.currency,
description: receiver.description,
source: receiver.id,
},
})
});
});

describe('list', function() {
Expand Down