Skip to content

Latest commit

 

History

History
129 lines (90 loc) · 4.59 KB

File metadata and controls

129 lines (90 loc) · 4.59 KB

Adjustments

Overview

Available Operations

  • list - List adjustments associated with a Moov account.

To access this endpoint using an access token you'll need to specify the /accounts/{accountID}/wallets.read scope.

  • get - Retrieve a specific adjustment associated with a Moov account.

To access this endpoint using an access token you'll need to specify the /accounts/{accountID}/wallets.read scope.

list

List adjustments associated with a Moov account.

To access this endpoint using an access token you'll need to specify the /accounts/{accountID}/wallets.read scope.

Example Usage

package hello.world;

import io.moov.sdk.Moov;
import io.moov.sdk.models.components.Security;
import io.moov.sdk.models.operations.ListAdjustmentsResponse;
import java.lang.Exception;

public class Application {

    public static void main(String[] args) throws Exception {

        Moov sdk = Moov.builder()
                .security(Security.builder()
                    .username("")
                    .password("")
                    .build())
            .build();

        ListAdjustmentsResponse res = sdk.adjustments().list()
                .accountID("c054f3a6-d542-4310-a955-830739f800f0")
                .call();

        if (res.adjustments().isPresent()) {
            System.out.println(res.adjustments().get());
        }
    }
}

Parameters

Parameter Type Required Description
accountID String ✔️ N/A
walletID Optional<String> A wallet ID to filter adjustments by.

Response

ListAdjustmentsResponse

Errors

Error Type Status Code Content Type
models/errors/APIException 4XX, 5XX */*

get

Retrieve a specific adjustment associated with a Moov account.

To access this endpoint using an access token you'll need to specify the /accounts/{accountID}/wallets.read scope.

Example Usage

package hello.world;

import io.moov.sdk.Moov;
import io.moov.sdk.models.components.Security;
import io.moov.sdk.models.operations.GetAdjustmentResponse;
import java.lang.Exception;

public class Application {

    public static void main(String[] args) throws Exception {

        Moov sdk = Moov.builder()
                .security(Security.builder()
                    .username("")
                    .password("")
                    .build())
            .build();

        GetAdjustmentResponse res = sdk.adjustments().get()
                .accountID("3ef4e658-8aaa-449f-a7a4-95a6839172a1")
                .adjustmentID("cbe4a8e7-605f-4667-a308-1afde85cd7a5")
                .call();

        if (res.adjustment().isPresent()) {
            System.out.println(res.adjustment().get());
        }
    }
}

Parameters

Parameter Type Required Description
accountID String ✔️ N/A
adjustmentID String ✔️ N/A

Response

GetAdjustmentResponse

Errors

Error Type Status Code Content Type
models/errors/APIException 4XX, 5XX */*