Skip to content
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
31 changes: 23 additions & 8 deletions lib/fat_zebra/utilities/apple_pay/domain.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,36 +12,51 @@ class << self
##
# List Apple Pay (web) domains
#
# @param [Hash] options for the request, and configurations (Optional)
#
# @return [FatZebra::Utilities::ApplePay::Domains] response
def list
response = request(:get, ENDPOINT_URL)
def list(options: {})
params = {}
response = request(:get, ENDPOINT_URL, params, options)
initialize_from(response)
end

##
# Register an Apple Pay (web) domain
#
# @param [String] domain
# @param [Hash] params
# @param [Hash] options for the request, and configurations (Optional)
#
# @return [FatZebra::Utilities::ApplePay::Domains] response
def register!(domain, params = {})
response = request(:post, path(domain), params)
def register!(domain, params = {}, options: {})
response = request(:post, path(domain), params, options)
initialize_from(response)
end

##
# Check registration status of an Apple Pay (web) domain
#
# @param [String] domain
# @param [Hash] options for the request, and configurations (Optional)
#
# @return [FatZebra::Utilities::ApplePay::Domains] response
def find!(domain)
response = request(:get, path(domain))
def find!(domain, options: {})
params = {}
response = request(:get, path(domain), params, options)
initialize_from(response)
end

##
# Delete an Apple Pay (web) domain
#
# @param [String] domain
# @param [Hash] options for the request, and configurations (Optional)
#
# @return [FatZebra::Utilities::ApplePay::Domains] response
def delete!(domain)
response = request(:delete, path(domain))
def delete!(domain, options: {})
params = {}
response = request(:delete, path(domain), params, options)
initialize_from(response)
end

Expand Down
2 changes: 1 addition & 1 deletion lib/fat_zebra/version.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

module FatZebra
VERSION = '3.2.8'
VERSION = '3.2.9'

end