Skip to content

Instantly share code, notes, and snippets.

@greenboxal
Created January 25, 2015 19:18
Show Gist options
  • Save greenboxal/3e146469e3edb8ea45c6 to your computer and use it in GitHub Desktop.
Save greenboxal/3e146469e3edb8ea45c6 to your computer and use it in GitHub Desktop.
this.concern('postbacks', function() {
this.resources('postbacks', {
only: ['index', 'show']
}, function() {
this.post('redeliver', { on: 'member' });
});
});
this.concern('events', function() {
this.resources('events', { only: ['index', 'show'] });
});
this.resources('transactions', {
except: ['destroy']
}, function() {
this.concerns('postbacks', 'events');
this.collection(function() {
this.get('cardHashKey');
this.get('calculateInstallmentsAmount');
});
this.member(function() {
this.get('refuseMessage');
this.post('capture');
this.post('issue');
this.post('refund');
this.post('collectPayment');
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment