Module: PaypalAPI::PaymentExperienceWebProfiles::APIs

Included in:
PaypalAPI::PaymentExperienceWebProfiles, PaypalAPI::PaymentExperienceWebProfiles
Defined in:
lib/paypal-api/api_collections/payment_experience_web_profiles.rb

Overview

Common methods for PaypalAPI::PaymentExperienceWebProfiles class and client.orders instance

Instance Method Summary collapse

Instance Method Details

#create(query: nil, body: nil, headers: nil) ⇒ Response

Create web experience profile



27
28
29
# File 'lib/paypal-api/api_collections/payment_experience_web_profiles.rb', line 27

def create(query: nil, body: nil, headers: nil)
  client.post("/v1/payment-experience/web-profiles", query: query, body: body, headers: headers)
end

#delete(id, query: nil, body: nil, headers: nil) ⇒ Response

Delete web experience profile



86
87
88
# File 'lib/paypal-api/api_collections/payment_experience_web_profiles.rb', line 86

def delete(id, query: nil, body: nil, headers: nil)
  client.delete("/v1/payment-experience/web-profiles/#{encode(id)}", query: query, body: body, headers: headers)
end

#list(query: nil, body: nil, headers: nil) ⇒ Response

List web experience profiles



38
39
40
# File 'lib/paypal-api/api_collections/payment_experience_web_profiles.rb', line 38

def list(query: nil, body: nil, headers: nil)
  client.get("/v1/payment-experience/web-profiles", query: query, body: body, headers: headers)
end

#replace(id, query: nil, body: nil, headers: nil) ⇒ Response

Replace web experience profile



62
63
64
# File 'lib/paypal-api/api_collections/payment_experience_web_profiles.rb', line 62

def replace(id, query: nil, body: nil, headers: nil)
  client.put("/v1/payment-experience/web-profiles/#{encode(id)}", query: query, body: body, headers: headers)
end

#show(id, query: nil, body: nil, headers: nil) ⇒ Response

Show web experience profile details by ID



50
51
52
# File 'lib/paypal-api/api_collections/payment_experience_web_profiles.rb', line 50

def show(id, query: nil, body: nil, headers: nil)
  client.get("/v1/payment-experience/web-profiles/#{encode(id)}", query: query, body: body, headers: headers)
end

#update(id, query: nil, body: nil, headers: nil) ⇒ Response

Partially update web experience profile



74
75
76
# File 'lib/paypal-api/api_collections/payment_experience_web_profiles.rb', line 74

def update(id, query: nil, body: nil, headers: nil)
  client.patch("/v1/payment-experience/web-profiles/#{encode(id)}", query: query, body: body, headers: headers)
end