All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.sphere.sdk.payments.queries.PaymentQueryModel Maven / Gradle / Ivy

There is a newer version: 1.0.0-M26
Show newest version
package io.sphere.sdk.payments.queries;

import io.sphere.sdk.customers.Customer;
import io.sphere.sdk.payments.Payment;
import io.sphere.sdk.queries.*;
import io.sphere.sdk.types.queries.CustomQueryModel;
import io.sphere.sdk.types.queries.CustomQueryModelImpl;

/**
 * {@doc.gen summary payments}
 */
public final class PaymentQueryModel extends ResourceQueryModelImpl {

    public static PaymentQueryModel of() {
        return new PaymentQueryModel(null, null);
    }

    private PaymentQueryModel(QueryModel parent, String pathSegment) {
        super(parent, pathSegment);
    }

    public CustomQueryModel custom() {
        return new CustomQueryModelImpl<>(this, "custom");
    }

    public ReferenceOptionalQueryModel customer() {
        return referenceOptionalModel("customer");
    }

    public StringQuerySortingModel externalId() {
        return stringModel("externalId");
    }

    public StringQuerySortingModel interfaceId() {
        return stringModel("interfaceId");
    }

    public MoneyQueryModel amountPlanned() {
        return moneyModel("amountPlanned");
    }

    public MoneyQueryModel amountAuthorized() {
        return moneyModel("amountAuthorized");
    }

    public MoneyQueryModel amountPaid() {
        return moneyModel("amountPaid");
    }

    public MoneyQueryModel amountRefunded() {
        return moneyModel("amountRefunded");
    }

    public TimestampSortingModel authorizedUntil() {
        return timestampSortingModel("authorizedUntil");
    }

    public PaymentMethodInfoQueryModel paymentMethodInfo() {
        return new PaymentMethodInfoQueryModelImpl<>(this, "paymentMethodInfo");
    }

    public PaymentStatusQueryModel paymentStatus() {
        return new PaymentStatusQueryModelImpl<>(this, "paymentStatus");
    }

    public TransactionCollectionQueryModel transactions() {
        return new TransactionCollectionQueryModelImpl<>(this, "transactions");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy