Class TestClockAdvanceParams.Builder

java.lang.Object
com.stripe.param.testhelpers.TestClockAdvanceParams.Builder
Enclosing class:
TestClockAdvanceParams

public static class TestClockAdvanceParams.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

      public TestClockAdvanceParams build()
      Finalize and obtain parameter instance from this builder.
    • addExpand

      public TestClockAdvanceParams.Builder addExpand(String element)
      Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. See TestClockAdvanceParams.expand for the field documentation.
    • addAllExpand

      public TestClockAdvanceParams.Builder addAllExpand(List<String> elements)
      Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. See TestClockAdvanceParams.expand for the field documentation.
    • putExtraParam

      public TestClockAdvanceParams.Builder putExtraParam(String key, Object value)
      Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. See TestClockAdvanceParams.extraParams for the field documentation.
    • putAllExtraParam

      public TestClockAdvanceParams.Builder putAllExtraParam(Map<String,Object> map)
      Add all map key/value pairs to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. See TestClockAdvanceParams.extraParams for the field documentation.
    • setFrozenTime

      public TestClockAdvanceParams.Builder setFrozenTime(Long frozenTime)
      Required. The time to advance the test clock. Must be after the test clock's current frozen time. Cannot be more than two intervals in the future from the shortest subscription in this test clock. If there are no subscriptions in this test clock, it cannot be more than two years in the future.