Class: ShopeePayService::InvalidateInvoice
- Defined in:
- app/services/shopee_pay_service/invalidate_invoice.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(reservation, options = {}) ⇒ InvalidateInvoice
constructor
A new instance of InvalidateInvoice.
Constructor Details
#initialize(reservation, options = {}) ⇒ InvalidateInvoice
Returns a new instance of InvalidateInvoice.
6 7 8 9 |
# File 'app/services/shopee_pay_service/invalidate_invoice.rb', line 6 def initialize(reservation, = {}) @reservation = reservation @options = .reverse_merge(platform_type: 'pc') end |
Instance Method Details
#execute ⇒ Object
11 12 13 14 15 16 |
# File 'app/services/shopee_pay_service/invalidate_invoice.rb', line 11 def execute response = super response rescue ShopeePayService::Error false end |