Class: Stripe::Identity::VerificationReportService

Inherits:
StripeService
  • Object
show all
Defined in:
lib/stripe/services/identity/verification_report_service.rb

Defined Under Namespace

Classes: ListParams, RetrieveParams

Instance Method Summary collapse

Methods inherited from StripeService

#initialize, #request, #request_stream

Constructor Details

This class inherits a constructor from Stripe::StripeService

Instance Method Details

#list(params = {}, opts = {}) ⇒ Object

List all verification reports.



73
74
75
76
77
78
79
80
81
# File 'lib/stripe/services/identity/verification_report_service.rb', line 73

def list(params = {}, opts = {})
  request(
    method: :get,
    path: "/v1/identity/verification_reports",
    params: params,
    opts: opts,
    base_address: :api
  )
end

#retrieve(report, params = {}, opts = {}) ⇒ Object

Retrieves an existing VerificationReport



84
85
86
87
88
89
90
91
92
# File 'lib/stripe/services/identity/verification_report_service.rb', line 84

def retrieve(report, params = {}, opts = {})
  request(
    method: :get,
    path: format("/v1/identity/verification_reports/%<report>s", { report: CGI.escape(report) }),
    params: params,
    opts: opts,
    base_address: :api
  )
end