Skip to content

Latest commit

 

History

History
executable file
·
144 lines (86 loc) · 5.41 KB

File metadata and controls

executable file
·
144 lines (86 loc) · 5.41 KB

PaymentEligibilityRequirement

(payment_eligibility_requirement)

Available Operations

  • create - Create Payment Eligibility Requirement
  • delete - Delete Payment Eligibility Requirement
  • get - Get Payment Eligibility Requirement
  • update - Update Payment Eligibility Requirement

create

Create Payment Eligibility Requirement

Example Usage

import wingspan
from wingspan.models import shared

s = wingspan.Wingspan()

req = shared.PaymentEligibility(
    field='online',
    value='Configuration',
)

res = s.payment_eligibility_requirement.create(req)

if res.payment_eligibility is not None:
    # handle response
    pass

Parameters

Parameter Type Required Description
request shared.PaymentEligibility ✔️ The request object to use for the request.

Response

operations.CreatePaymentEligibilityRequirementResponse

delete

Delete Payment Eligibility Requirement

Example Usage

import wingspan
from wingspan.models import operations

s = wingspan.Wingspan()


res = s.payment_eligibility_requirement.delete(id='program')

if res.payment_eligibility is not None:
    # handle response
    pass

Parameters

Parameter Type Required Description
id str ✔️ Unique identifier

Response

operations.DeletePaymentEligibilityRequirementResponse

get

Get Payment Eligibility Requirement

Example Usage

import wingspan
from wingspan.models import operations

s = wingspan.Wingspan()


res = s.payment_eligibility_requirement.get(id='female')

if res.payment_eligibility is not None:
    # handle response
    pass

Parameters

Parameter Type Required Description
id str ✔️ Unique identifier

Response

operations.GetPaymentEligibilityRequirementResponse

update

Update Payment Eligibility Requirement

Example Usage

import wingspan
from wingspan.models import operations, shared

s = wingspan.Wingspan()


res = s.payment_eligibility_requirement.update(id='Van', payment_eligibility_update_request=shared.PaymentEligibilityUpdateRequest(
    value=shared.PaymentEligibilityUpdateRequestValue(),
))

if res.payment_eligibility is not None:
    # handle response
    pass

Parameters

Parameter Type Required Description
id str ✔️ Unique identifier
payment_eligibility_update_request Optional[shared.PaymentEligibilityUpdateRequest] N/A

Response

operations.UpdatePaymentEligibilityRequirementResponse