Class: ShopeePayService::InvalidateInvoice

Inherits:
Base
  • Object
show all
Defined in:
app/services/shopee_pay_service/invalidate_invoice.rb

Instance Method Summary collapse

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, options = {})
  @reservation = reservation
  @options = options.reverse_merge(platform_type: 'pc')
end

Instance Method Details

#executeObject



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