public void should_call_SetThePaymentMethod()
        {
            //arrange
            var customerId = TakeCustomer();
            var request    = new SetThePaymentMethod
            {
                Paymethod    = "crd",
                CreditcardId = TakeCreditCard(customerId),
            };
            //act
            var addSubscription = AddSubscription(customerId: customerId);
            var actual          = Sut.SetThePaymentMethod(addSubscription, request);

            //assert
            Assert.AreEqual(200, actual.Code);
            Assert.IsEmpty(actual.Message);
            Assert.AreEqual("OK", actual.Status);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Set the payment method
 /// details: https://developer.chargeover.com/apidocs/rest/#example-package-set-paymethod
 /// </summary>
 public ICustomResponse <bool> SetPaymentMethod(int id, SetThePaymentMethod request)
 {
     return(GetCustomBool($"/package/{id}?action=paymethod", request));
 }